Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libnfnetlink 1.0.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libnfnetlink'
589 PACKAGE_TARNAME='libnfnetlink'
590 PACKAGE_VERSION='1.0.2'
591 PACKAGE_STRING='libnfnetlink 1.0.2'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 CPP
636 LT_SYS_LIBRARY_PATH
637 OTOOL64
638 OTOOL
639 LIPO
640 NMEDIT
641 DSYMUTIL
642 MANIFEST_TOOL
643 RANLIB
644 DLLTOOL
645 OBJDUMP
646 LN_S
647 NM
648 ac_ct_DUMPBIN
649 DUMPBIN
650 LD
651 FGREP
652 EGREP
653 GREP
654 SED
655 LIBTOOL
656 am__fastdepCC_FALSE
657 am__fastdepCC_TRUE
658 CCDEPMODE
659 am__nodep
660 AMDEPBACKSLASH
661 AMDEP_FALSE
662 AMDEP_TRUE
663 am__include
664 DEPDIR
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
671 CC
672 ac_ct_AR
673 AR
674 AM_BACKSLASH
675 AM_DEFAULT_VERBOSITY
676 AM_DEFAULT_V
677 AM_V
678 am__untar
679 am__tar
680 AMTAR
681 am__leading_dot
682 SET_MAKE
683 AWK
684 mkdir_p
685 MKDIR_P
686 INSTALL_STRIP_PROGRAM
687 STRIP
688 install_sh
689 MAKEINFO
690 AUTOHEADER
691 AUTOMAKE
692 AUTOCONF
693 ACLOCAL
694 VERSION
695 PACKAGE
696 CYGPATH_W
697 am__isrc
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 host_os
702 host_vendor
703 host_cpu
704 host
705 build_os
706 build_vendor
707 build_cpu
708 build
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 runstatedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL
748 am__quote'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 enable_silent_rules
753 enable_dependency_tracking
754 enable_static
755 enable_shared
756 with_pic
757 enable_fast_install
758 with_aix_soname
759 with_gnu_ld
760 with_sysroot
761 enable_libtool_lock
762 '
763 ac_precious_vars='build_alias
764 host_alias
765 target_alias
766 CC
767 CFLAGS
768 LDFLAGS
769 LIBS
770 CPPFLAGS
771 LT_SYS_LIBRARY_PATH
772 CPP'
773
774
775 # Initialize some variables set by options.
776 ac_init_help=
777 ac_init_version=false
778 ac_unrecognized_opts=
779 ac_unrecognized_sep=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
782 cache_file=/dev/null
783 exec_prefix=NONE
784 no_create=
785 no_recursion=
786 prefix=NONE
787 program_prefix=NONE
788 program_suffix=NONE
789 program_transform_name=s,x,x,
790 silent=
791 site=
792 srcdir=
793 verbose=
794 x_includes=NONE
795 x_libraries=NONE
796
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 runstatedir='${localstatedir}/run'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
823
824 ac_prev=
825 ac_dashdash=
826 for ac_option
827 do
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
831 ac_prev=
832 continue
833 fi
834
835 case $ac_option in
836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *=) ac_optarg= ;;
838 *) ac_optarg=yes ;;
839 esac
840
841 # Accept the important Cygnus configure options, so we can diagnose typos.
842
843 case $ac_dashdash$ac_option in
844 --)
845 ac_dashdash=yes ;;
846
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 ac_prev=bindir ;;
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850 bindir=$ac_optarg ;;
851
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
856
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
863
864 --config-cache | -C)
865 cache_file=config.cache ;;
866
867 -datadir | --datadir | --datadi | --datad)
868 ac_prev=datadir ;;
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
871
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
878
879 -disable-* | --disable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=no ;;
894
895 -docdir | --docdir | --docdi | --doc | --do)
896 ac_prev=docdir ;;
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898 docdir=$ac_optarg ;;
899
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 ac_prev=dvidir ;;
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903 dvidir=$ac_optarg ;;
904
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=\$ac_optarg ;;
920
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
929
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
932 with_gas=yes ;;
933
934 -help | --help | --hel | --he | -h)
935 ac_init_help=long ;;
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
940
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
945
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 ac_prev=htmldir ;;
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 | --ht=*)
950 htmldir=$ac_optarg ;;
951
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
958
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 ac_prev=infodir ;;
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
963
964 -libdir | --libdir | --libdi | --libd)
965 ac_prev=libdir ;;
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 libdir=$ac_optarg ;;
968
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
975
976 -localedir | --localedir | --localedi | --localed | --locale)
977 ac_prev=localedir ;;
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
980
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
987
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 ac_prev=mandir ;;
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 mandir=$ac_optarg ;;
992
993 -nfp | --nfp | --nf)
994 # Obsolete; use --without-fp.
995 with_fp=no ;;
996
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
999 no_create=yes ;;
1000
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 no_recursion=yes ;;
1004
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1013
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 ac_prev=prefix ;;
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1018
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1025
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1032
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1049
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 ac_prev=pdfdir ;;
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1054
1055 -psdir | --psdir | --psdi | --psd | --ps)
1056 ac_prev=psdir ;;
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 psdir=$ac_optarg ;;
1059
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 silent=yes ;;
1063
1064 -runstatedir | --runstatedir | --runstatedi | --runstated \
1065 | --runstate | --runstat | --runsta | --runst | --runs \
1066 | --run | --ru | --r)
1067 ac_prev=runstatedir ;;
1068 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1069 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1070 | --run=* | --ru=* | --r=*)
1071 runstatedir=$ac_optarg ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 ;;
1189
1190 esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir runstatedir
1211 do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures libnfnetlink 1.0.2 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/libnfnetlink]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1378
1379 cat <<\_ACEOF
1380
1381 Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of libnfnetlink 1.0.2:";;
1395 esac
1396 cat <<\_ACEOF
1397
1398 Optional Features:
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-silent-rules less verbose build output (undo: "make V=1")
1403 --disable-silent-rules verbose build output (undo: "make V=0")
1404 --enable-dependency-tracking
1405 do not reject slow dependency extractors
1406 --disable-dependency-tracking
1407 speeds up one-time build
1408 --enable-static[=PKGS] build static libraries [default=no]
1409 --enable-shared[=PKGS] build shared libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-libtool-lock avoid locking (might break parallel builds)
1413
1414 Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1418 both]
1419 --with-aix-soname=aix|svr4|both
1420 shared library versioning (aka "SONAME") variant to
1421 provide on AIX, [default=aix].
1422 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1423 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1424 compiler's sysroot if not specified).
1425
1426 Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 LT_SYS_LIBRARY_PATH
1435 User-defined run-time library search path.
1436 CPP C preprocessor
1437
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1440
1441 Report bugs to the package provider.
1442 _ACEOF
1443 ac_status=$?
1444 fi
1445
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
1452 ac_builddir=.
1453
1454 case "$ac_dir" in
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *)
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464 esac
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1469
1470 case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 esac
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1499 fi
1500
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1503 cat <<\_ACEOF
1504 libnfnetlink configure 1.0.2
1505 generated by GNU Autoconf 2.69
1506
1507 Copyright (C) 2012 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1510 _ACEOF
1511 exit
1512 fi
1513
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1517
1518 # ac_fn_c_try_compile LINENO
1519 # --------------------------
1520 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1522 {
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550 fi
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1553
1554 } # ac_fn_c_try_compile
1555
1556 # ac_fn_c_try_link LINENO
1557 # -----------------------
1558 # Try to link conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_link ()
1560 {
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext conftest$ac_exeext
1563 if { { ac_try="$ac_link"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_link") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest$ac_exeext && {
1582 test "$cross_compiling" = yes ||
1583 test -x conftest$ac_exeext
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594 # interfere with the next link command; also delete a directory that is
1595 # left behind by Apple's compiler. We do this before executing the actions.
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_link
1601
1602 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists and can be compiled using the include files in
1605 # INCLUDES, setting the cache variable VAR accordingly.
1606 ac_fn_c_check_header_compile ()
1607 {
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if eval \${$3+:} false; then :
1612 $as_echo_n "(cached) " >&6
1613 else
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1616 $4
1617 #include <$2>
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"; then :
1620 eval "$3=yes"
1621 else
1622 eval "$3=no"
1623 fi
1624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625 fi
1626 eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 $as_echo "$ac_res" >&6; }
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630
1631 } # ac_fn_c_check_header_compile
1632
1633 # ac_fn_c_try_cpp LINENO
1634 # ----------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_cpp ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } > conftest.i && {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_cpp
1669
1670 # ac_fn_c_try_run LINENO
1671 # ----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_c_try_run ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=$ac_status
1705 fi
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_run
1711
1712 # ac_fn_c_check_func LINENO FUNC VAR
1713 # ----------------------------------
1714 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 ac_fn_c_check_func ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval \${$3+:} false; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727 #define $2 innocuous_$2
1728
1729 /* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below.
1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 <limits.h> exists even on freestanding compilers. */
1733
1734 #ifdef __STDC__
1735 # include <limits.h>
1736 #else
1737 # include <assert.h>
1738 #endif
1739
1740 #undef $2
1741
1742 /* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 ();
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1755
1756 int
1757 main ()
1758 {
1759 return $2 ();
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext \
1770 conftest$ac_exeext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_func
1778 cat >config.log <<_ACEOF
1779 This file contains any messages produced by compilers while
1780 running configure, to aid debugging if configure makes a mistake.
1781
1782 It was created by libnfnetlink $as_me 1.0.2, which was
1783 generated by GNU Autoconf 2.69. Invocation command line was
1784
1785 $ $0 $@
1786
1787 _ACEOF
1788 exec 5>>config.log
1789 {
1790 cat <<_ASUNAME
1791 ## --------- ##
1792 ## Platform. ##
1793 ## --------- ##
1794
1795 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1796 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1797 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1798 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1799 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1800
1801 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1802 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1803
1804 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1805 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1806 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1807 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1808 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1809 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1810 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1811
1812 _ASUNAME
1813
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 $as_echo "PATH: $as_dir"
1820 done
1821 IFS=$as_save_IFS
1822
1823 } >&5
1824
1825 cat >&5 <<_ACEOF
1826
1827
1828 ## ----------- ##
1829 ## Core tests. ##
1830 ## ----------- ##
1831
1832 _ACEOF
1833
1834
1835 # Keep a trace of the command line.
1836 # Strip out --no-create and --no-recursion so they do not pile up.
1837 # Strip out --silent because we don't want to record it for future runs.
1838 # Also quote any args containing shell meta-characters.
1839 # Make two passes to allow for proper duplicate-argument suppression.
1840 ac_configure_args=
1841 ac_configure_args0=
1842 ac_configure_args1=
1843 ac_must_keep_next=false
1844 for ac_pass in 1 2
1845 do
1846 for ac_arg
1847 do
1848 case $ac_arg in
1849 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1851 | -silent | --silent | --silen | --sile | --sil)
1852 continue ;;
1853 *\'*)
1854 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 esac
1856 case $ac_pass in
1857 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1858 2)
1859 as_fn_append ac_configure_args1 " '$ac_arg'"
1860 if test $ac_must_keep_next = true; then
1861 ac_must_keep_next=false # Got value, back to normal.
1862 else
1863 case $ac_arg in
1864 *=* | --config-cache | -C | -disable-* | --disable-* \
1865 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1866 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1867 | -with-* | --with-* | -without-* | --without-* | --x)
1868 case "$ac_configure_args0 " in
1869 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1870 esac
1871 ;;
1872 -* ) ac_must_keep_next=true ;;
1873 esac
1874 fi
1875 as_fn_append ac_configure_args " '$ac_arg'"
1876 ;;
1877 esac
1878 done
1879 done
1880 { ac_configure_args0=; unset ac_configure_args0;}
1881 { ac_configure_args1=; unset ac_configure_args1;}
1882
1883 # When interrupted or exit'd, cleanup temporary files, and complete
1884 # config.log. We remove comments because anyway the quotes in there
1885 # would cause problems or look ugly.
1886 # WARNING: Use '\'' to represent an apostrophe within the trap.
1887 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1888 trap 'exit_status=$?
1889 # Save into config.log some information that might help in debugging.
1890 {
1891 echo
1892
1893 $as_echo "## ---------------- ##
1894 ## Cache variables. ##
1895 ## ---------------- ##"
1896 echo
1897 # The following way of writing the cache mishandles newlines in values,
1898 (
1899 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1900 eval ac_val=\$$ac_var
1901 case $ac_val in #(
1902 *${as_nl}*)
1903 case $ac_var in #(
1904 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1905 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1906 esac
1907 case $ac_var in #(
1908 _ | IFS | as_nl) ;; #(
1909 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1910 *) { eval $ac_var=; unset $ac_var;} ;;
1911 esac ;;
1912 esac
1913 done
1914 (set) 2>&1 |
1915 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1916 *${as_nl}ac_space=\ *)
1917 sed -n \
1918 "s/'\''/'\''\\\\'\'''\''/g;
1919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1920 ;; #(
1921 *)
1922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1923 ;;
1924 esac |
1925 sort
1926 )
1927 echo
1928
1929 $as_echo "## ----------------- ##
1930 ## Output variables. ##
1931 ## ----------------- ##"
1932 echo
1933 for ac_var in $ac_subst_vars
1934 do
1935 eval ac_val=\$$ac_var
1936 case $ac_val in
1937 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938 esac
1939 $as_echo "$ac_var='\''$ac_val'\''"
1940 done | sort
1941 echo
1942
1943 if test -n "$ac_subst_files"; then
1944 $as_echo "## ------------------- ##
1945 ## File substitutions. ##
1946 ## ------------------- ##"
1947 echo
1948 for ac_var in $ac_subst_files
1949 do
1950 eval ac_val=\$$ac_var
1951 case $ac_val in
1952 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953 esac
1954 $as_echo "$ac_var='\''$ac_val'\''"
1955 done | sort
1956 echo
1957 fi
1958
1959 if test -s confdefs.h; then
1960 $as_echo "## ----------- ##
1961 ## confdefs.h. ##
1962 ## ----------- ##"
1963 echo
1964 cat confdefs.h
1965 echo
1966 fi
1967 test "$ac_signal" != 0 &&
1968 $as_echo "$as_me: caught signal $ac_signal"
1969 $as_echo "$as_me: exit $exit_status"
1970 } >&5
1971 rm -f core *.core core.conftest.* &&
1972 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1973 exit $exit_status
1974 ' 0
1975 for ac_signal in 1 2 13 15; do
1976 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1977 done
1978 ac_signal=0
1979
1980 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1981 rm -f -r conftest* confdefs.h
1982
1983 $as_echo "/* confdefs.h */" > confdefs.h
1984
1985 # Predefined preprocessor variables.
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_NAME "$PACKAGE_NAME"
1989 _ACEOF
1990
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1993 _ACEOF
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1997 _ACEOF
1998
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_STRING "$PACKAGE_STRING"
2001 _ACEOF
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2005 _ACEOF
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_URL "$PACKAGE_URL"
2009 _ACEOF
2010
2011
2012 # Let the site file select an alternate cache file if it wants to.
2013 # Prefer an explicitly selected file to automatically selected ones.
2014 ac_site_file1=NONE
2015 ac_site_file2=NONE
2016 if test -n "$CONFIG_SITE"; then
2017 # We do not want a PATH search for config.site.
2018 case $CONFIG_SITE in #((
2019 -*) ac_site_file1=./$CONFIG_SITE;;
2020 */*) ac_site_file1=$CONFIG_SITE;;
2021 *) ac_site_file1=./$CONFIG_SITE;;
2022 esac
2023 elif test "x$prefix" != xNONE; then
2024 ac_site_file1=$prefix/share/config.site
2025 ac_site_file2=$prefix/etc/config.site
2026 else
2027 ac_site_file1=$ac_default_prefix/share/config.site
2028 ac_site_file2=$ac_default_prefix/etc/config.site
2029 fi
2030 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2031 do
2032 test "x$ac_site_file" = xNONE && continue
2033 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2035 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2036 sed 's/^/| /' "$ac_site_file" >&5
2037 . "$ac_site_file" \
2038 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2040 as_fn_error $? "failed to load site script $ac_site_file
2041 See \`config.log' for more details" "$LINENO" 5; }
2042 fi
2043 done
2044
2045 if test -r "$cache_file"; then
2046 # Some versions of bash will fail to source /dev/null (special files
2047 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2048 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2050 $as_echo "$as_me: loading cache $cache_file" >&6;}
2051 case $cache_file in
2052 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2053 *) . "./$cache_file";;
2054 esac
2055 fi
2056 else
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2058 $as_echo "$as_me: creating cache $cache_file" >&6;}
2059 >$cache_file
2060 fi
2061
2062 # Check that the precious variables saved in the cache have kept the same
2063 # value.
2064 ac_cache_corrupted=false
2065 for ac_var in $ac_precious_vars; do
2066 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2067 eval ac_new_set=\$ac_env_${ac_var}_set
2068 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2069 eval ac_new_val=\$ac_env_${ac_var}_value
2070 case $ac_old_set,$ac_new_set in
2071 set,)
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2073 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2074 ac_cache_corrupted=: ;;
2075 ,set)
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2077 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2078 ac_cache_corrupted=: ;;
2079 ,);;
2080 *)
2081 if test "x$ac_old_val" != "x$ac_new_val"; then
2082 # differences in whitespace do not lead to failure.
2083 ac_old_val_w=`echo x $ac_old_val`
2084 ac_new_val_w=`echo x $ac_new_val`
2085 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2087 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2088 ac_cache_corrupted=:
2089 else
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2091 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2092 eval $ac_var=\$ac_old_val
2093 fi
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2095 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2097 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2098 fi;;
2099 esac
2100 # Pass precious variables to config.status.
2101 if test "$ac_new_set" = set; then
2102 case $ac_new_val in
2103 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2104 *) ac_arg=$ac_var=$ac_new_val ;;
2105 esac
2106 case " $ac_configure_args " in
2107 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2108 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2109 esac
2110 fi
2111 done
2112 if $ac_cache_corrupted; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2116 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2117 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2118 fi
2119 ## -------------------- ##
2120 ## Main body of script. ##
2121 ## -------------------- ##
2122
2123 ac_ext=c
2124 ac_cpp='$CPP $CPPFLAGS'
2125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128
2129
2130 ac_aux_dir=
2131 for ac_dir in build-aux "$srcdir"/build-aux; do
2132 if test -f "$ac_dir/install-sh"; then
2133 ac_aux_dir=$ac_dir
2134 ac_install_sh="$ac_aux_dir/install-sh -c"
2135 break
2136 elif test -f "$ac_dir/install.sh"; then
2137 ac_aux_dir=$ac_dir
2138 ac_install_sh="$ac_aux_dir/install.sh -c"
2139 break
2140 elif test -f "$ac_dir/shtool"; then
2141 ac_aux_dir=$ac_dir
2142 ac_install_sh="$ac_aux_dir/shtool install -c"
2143 break
2144 fi
2145 done
2146 if test -z "$ac_aux_dir"; then
2147 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2148 fi
2149
2150 # These three variables are undocumented and unsupported,
2151 # and are intended to be withdrawn in a future Autoconf release.
2152 # They can cause serious problems if a builder's source tree is in a directory
2153 # whose full name contains unusual characters.
2154 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2155 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2156 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2157
2158
2159
2160 # Make sure we can run config.sub.
2161 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2162 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2163
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2165 $as_echo_n "checking build system type... " >&6; }
2166 if ${ac_cv_build+:} false; then :
2167 $as_echo_n "(cached) " >&6
2168 else
2169 ac_build_alias=$build_alias
2170 test "x$ac_build_alias" = x &&
2171 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2172 test "x$ac_build_alias" = x &&
2173 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2174 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2175 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2176
2177 fi
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2179 $as_echo "$ac_cv_build" >&6; }
2180 case $ac_cv_build in
2181 *-*-*) ;;
2182 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2183 esac
2184 build=$ac_cv_build
2185 ac_save_IFS=$IFS; IFS='-'
2186 set x $ac_cv_build
2187 shift
2188 build_cpu=$1
2189 build_vendor=$2
2190 shift; shift
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2193 build_os=$*
2194 IFS=$ac_save_IFS
2195 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2196
2197
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2199 $as_echo_n "checking host system type... " >&6; }
2200 if ${ac_cv_host+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 if test "x$host_alias" = x; then
2204 ac_cv_host=$ac_cv_build
2205 else
2206 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2207 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2208 fi
2209
2210 fi
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2212 $as_echo "$ac_cv_host" >&6; }
2213 case $ac_cv_host in
2214 *-*-*) ;;
2215 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2216 esac
2217 host=$ac_cv_host
2218 ac_save_IFS=$IFS; IFS='-'
2219 set x $ac_cv_host
2220 shift
2221 host_cpu=$1
2222 host_vendor=$2
2223 shift; shift
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2226 host_os=$*
2227 IFS=$ac_save_IFS
2228 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2229
2230
2231
2232 am__api_version='1.16'
2233
2234 # Find a good install program. We prefer a C program (faster),
2235 # so one script is as good as another. But avoid the broken or
2236 # incompatible versions:
2237 # SysV /etc/install, /usr/sbin/install
2238 # SunOS /usr/etc/install
2239 # IRIX /sbin/install
2240 # AIX /bin/install
2241 # AmigaOS /C/install, which installs bootblocks on floppy discs
2242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2245 # OS/2's system install, which has a completely different semantic
2246 # ./install, which can be erroneously created by make from ./install.sh.
2247 # Reject install programs that cannot install multiple files.
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2249 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2250 if test -z "$INSTALL"; then
2251 if ${ac_cv_path_install+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 # Account for people who put trailing slashes in PATH elements.
2260 case $as_dir/ in #((
2261 ./ | .// | /[cC]/* | \
2262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2264 /usr/ucb/* ) ;;
2265 *)
2266 # OSF1 and SCO ODT 3.0 have their own names for install.
2267 # Don't use installbsd from OSF since it installs stuff as root
2268 # by default.
2269 for ac_prog in ginstall scoinst install; do
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2272 if test $ac_prog = install &&
2273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274 # AIX install. It has an incompatible calling convention.
2275 :
2276 elif test $ac_prog = install &&
2277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278 # program-specific install script used by HP pwplus--don't use.
2279 :
2280 else
2281 rm -rf conftest.one conftest.two conftest.dir
2282 echo one > conftest.one
2283 echo two > conftest.two
2284 mkdir conftest.dir
2285 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2286 test -s conftest.one && test -s conftest.two &&
2287 test -s conftest.dir/conftest.one &&
2288 test -s conftest.dir/conftest.two
2289 then
2290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2291 break 3
2292 fi
2293 fi
2294 fi
2295 done
2296 done
2297 ;;
2298 esac
2299
2300 done
2301 IFS=$as_save_IFS
2302
2303 rm -rf conftest.one conftest.two conftest.dir
2304
2305 fi
2306 if test "${ac_cv_path_install+set}" = set; then
2307 INSTALL=$ac_cv_path_install
2308 else
2309 # As a last resort, use the slow shell script. Don't cache a
2310 # value for INSTALL within a source directory, because that will
2311 # break other packages using the cache if that directory is
2312 # removed, or if the value is a relative name.
2313 INSTALL=$ac_install_sh
2314 fi
2315 fi
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2317 $as_echo "$INSTALL" >&6; }
2318
2319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2320 # It thinks the first close brace ends the variable substitution.
2321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2322
2323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2324
2325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2326
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2328 $as_echo_n "checking whether build environment is sane... " >&6; }
2329 # Reject unsafe characters in $srcdir or the absolute working directory
2330 # name. Accept space and tab only in the latter.
2331 am_lf='
2332 '
2333 case `pwd` in
2334 *[\\\"\#\$\&\'\`$am_lf]*)
2335 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2336 esac
2337 case $srcdir in
2338 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2339 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2340 esac
2341
2342 # Do 'set' in a subshell so we don't clobber the current shell's
2343 # arguments. Must try -L first in case configure is actually a
2344 # symlink; some systems play weird games with the mod time of symlinks
2345 # (eg FreeBSD returns the mod time of the symlink's containing
2346 # directory).
2347 if (
2348 am_has_slept=no
2349 for am_try in 1 2; do
2350 echo "timestamp, slept: $am_has_slept" > conftest.file
2351 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2352 if test "$*" = "X"; then
2353 # -L didn't work.
2354 set X `ls -t "$srcdir/configure" conftest.file`
2355 fi
2356 if test "$*" != "X $srcdir/configure conftest.file" \
2357 && test "$*" != "X conftest.file $srcdir/configure"; then
2358
2359 # If neither matched, then we have a broken ls. This can happen
2360 # if, for instance, CONFIG_SHELL is bash and it inherits a
2361 # broken ls alias from the environment. This has actually
2362 # happened. Such a system could not be considered "sane".
2363 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2364 alias in your environment" "$LINENO" 5
2365 fi
2366 if test "$2" = conftest.file || test $am_try -eq 2; then
2367 break
2368 fi
2369 # Just in case.
2370 sleep 1
2371 am_has_slept=yes
2372 done
2373 test "$2" = conftest.file
2374 )
2375 then
2376 # Ok.
2377 :
2378 else
2379 as_fn_error $? "newly created file is older than distributed files!
2380 Check your system clock" "$LINENO" 5
2381 fi
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2383 $as_echo "yes" >&6; }
2384 # If we didn't sleep, we still need to ensure time stamps of config.status and
2385 # generated files are strictly newer.
2386 am_sleep_pid=
2387 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2388 ( sleep 1 ) &
2389 am_sleep_pid=$!
2390 fi
2391
2392 rm -f conftest.file
2393
2394 test "$program_prefix" != NONE &&
2395 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2396 # Use a double $ so make ignores it.
2397 test "$program_suffix" != NONE &&
2398 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2399 # Double any \ or $.
2400 # By default was `s,x,x', remove it if useless.
2401 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2402 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2403
2404 # Expand $ac_aux_dir to an absolute path.
2405 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2406
2407 if test x"${MISSING+set}" != xset; then
2408 MISSING="\${SHELL} '$am_aux_dir/missing'"
2409 fi
2410 # Use eval to expand $SHELL
2411 if eval "$MISSING --is-lightweight"; then
2412 am_missing_run="$MISSING "
2413 else
2414 am_missing_run=
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2416 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2417 fi
2418
2419 if test x"${install_sh+set}" != xset; then
2420 case $am_aux_dir in
2421 *\ * | *\ *)
2422 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2423 *)
2424 install_sh="\${SHELL} $am_aux_dir/install-sh"
2425 esac
2426 fi
2427
2428 # Installed binaries are usually stripped using 'strip' when the user
2429 # run "make install-strip". However 'strip' might not be the right
2430 # tool to use in cross-compilation environments, therefore Automake
2431 # will honor the 'STRIP' environment variable to overrule this program.
2432 if test "$cross_compiling" != no; then
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}strip; ac_word=$2
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if ${ac_cv_prog_STRIP+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test -n "$STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455 done
2456 done
2457 IFS=$as_save_IFS
2458
2459 fi
2460 fi
2461 STRIP=$ac_cv_prog_STRIP
2462 if test -n "$STRIP"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2464 $as_echo "$STRIP" >&6; }
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467 $as_echo "no" >&6; }
2468 fi
2469
2470
2471 fi
2472 if test -z "$ac_cv_prog_STRIP"; then
2473 ac_ct_STRIP=$STRIP
2474 # Extract the first word of "strip", so it can be a program name with args.
2475 set dummy strip; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 if test -n "$ac_ct_STRIP"; then
2482 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_ac_ct_STRIP="strip"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495 done
2496 done
2497 IFS=$as_save_IFS
2498
2499 fi
2500 fi
2501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2502 if test -n "$ac_ct_STRIP"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2504 $as_echo "$ac_ct_STRIP" >&6; }
2505 else
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2508 fi
2509
2510 if test "x$ac_ct_STRIP" = x; then
2511 STRIP=":"
2512 else
2513 case $cross_compiling:$ac_tool_warned in
2514 yes:)
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2517 ac_tool_warned=yes ;;
2518 esac
2519 STRIP=$ac_ct_STRIP
2520 fi
2521 else
2522 STRIP="$ac_cv_prog_STRIP"
2523 fi
2524
2525 fi
2526 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2527
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2529 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2530 if test -z "$MKDIR_P"; then
2531 if ${ac_cv_path_mkdir+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2536 do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_prog in mkdir gmkdir; do
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2542 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2543 'mkdir (GNU coreutils) '* | \
2544 'mkdir (coreutils) '* | \
2545 'mkdir (fileutils) '4.1*)
2546 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2547 break 3;;
2548 esac
2549 done
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 fi
2555
2556 test -d ./--version && rmdir ./--version
2557 if test "${ac_cv_path_mkdir+set}" = set; then
2558 MKDIR_P="$ac_cv_path_mkdir -p"
2559 else
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for MKDIR_P within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 MKDIR_P="$ac_install_sh -d"
2565 fi
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2568 $as_echo "$MKDIR_P" >&6; }
2569
2570 for ac_prog in gawk mawk nawk awk
2571 do
2572 # Extract the first word of "$ac_prog", so it can be a program name with args.
2573 set dummy $ac_prog; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_AWK+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$AWK"; then
2580 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_AWK="$ac_prog"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 AWK=$ac_cv_prog_AWK
2600 if test -n "$AWK"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2602 $as_echo "$AWK" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608
2609 test -n "$AWK" && break
2610 done
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2613 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2614 set x ${MAKE-make}
2615 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2616 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 cat >conftest.make <<\_ACEOF
2620 SHELL = /bin/sh
2621 all:
2622 @echo '@@@%%%=$(MAKE)=@@@%%%'
2623 _ACEOF
2624 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2625 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2626 *@@@%%%=?*=@@@%%%*)
2627 eval ac_cv_prog_make_${ac_make}_set=yes;;
2628 *)
2629 eval ac_cv_prog_make_${ac_make}_set=no;;
2630 esac
2631 rm -f conftest.make
2632 fi
2633 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 SET_MAKE=
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 SET_MAKE="MAKE=${MAKE-make}"
2641 fi
2642
2643 rm -rf .tst 2>/dev/null
2644 mkdir .tst 2>/dev/null
2645 if test -d .tst; then
2646 am__leading_dot=.
2647 else
2648 am__leading_dot=_
2649 fi
2650 rmdir .tst 2>/dev/null
2651
2652 # Check whether --enable-silent-rules was given.
2653 if test "${enable_silent_rules+set}" = set; then :
2654 enableval=$enable_silent_rules;
2655 fi
2656
2657 case $enable_silent_rules in # (((
2658 yes) AM_DEFAULT_VERBOSITY=0;;
2659 no) AM_DEFAULT_VERBOSITY=1;;
2660 *) AM_DEFAULT_VERBOSITY=1;;
2661 esac
2662 am_make=${MAKE-make}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2664 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2665 if ${am_cv_make_support_nested_variables+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if $as_echo 'TRUE=$(BAR$(V))
2669 BAR0=false
2670 BAR1=true
2671 V=1
2672 am__doit:
2673 @$(TRUE)
2674 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2675 am_cv_make_support_nested_variables=yes
2676 else
2677 am_cv_make_support_nested_variables=no
2678 fi
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2681 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2682 if test $am_cv_make_support_nested_variables = yes; then
2683 AM_V='$(V)'
2684 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2685 else
2686 AM_V=$AM_DEFAULT_VERBOSITY
2687 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2688 fi
2689 AM_BACKSLASH='\'
2690
2691 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2692 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2693 # is not polluted with repeated "-I."
2694 am__isrc=' -I$(srcdir)'
2695 # test to see if srcdir already configured
2696 if test -f $srcdir/config.status; then
2697 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2698 fi
2699 fi
2700
2701 # test whether we have cygpath
2702 if test -z "$CYGPATH_W"; then
2703 if (cygpath --version) >/dev/null 2>/dev/null; then
2704 CYGPATH_W='cygpath -w'
2705 else
2706 CYGPATH_W=echo
2707 fi
2708 fi
2709
2710
2711 # Define the identity of the package.
2712 PACKAGE='libnfnetlink'
2713 VERSION='1.0.2'
2714
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE "$PACKAGE"
2718 _ACEOF
2719
2720
2721 cat >>confdefs.h <<_ACEOF
2722 #define VERSION "$VERSION"
2723 _ACEOF
2724
2725 # Some tools Automake needs.
2726
2727 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2728
2729
2730 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2731
2732
2733 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2734
2735
2736 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2737
2738
2739 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2740
2741 # For better backward compatibility. To be removed once Automake 1.9.x
2742 # dies out for good. For more background, see:
2743 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2744 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2745 mkdir_p='$(MKDIR_P)'
2746
2747 # We need awk for the "check" target (and possibly the TAP driver). The
2748 # system "awk" is bad on some platforms.
2749 # Always define AMTAR for backward compatibility. Yes, it's still used
2750 # in the wild :-( We should find a proper way to deprecate it ...
2751 AMTAR='$${TAR-tar}'
2752
2753
2754 # We'll loop over all known methods to create a tar archive until one works.
2755 _am_tools='gnutar pax cpio none'
2756
2757
2758
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2760 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2761
2762 # Go ahead even if we have the value already cached. We do so because we
2763 # need to set the values for the 'am__tar' and 'am__untar' variables.
2764 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2765
2766 for _am_tool in $_am_tools; do
2767 case $_am_tool in
2768 gnutar)
2769 for _am_tar in tar gnutar gtar; do
2770 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2771 ($_am_tar --version) >&5 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } && break
2775 done
2776 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2777 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2778 am__untar="$_am_tar -xf -"
2779 ;;
2780 plaintar)
2781 # Must skip GNU tar: if it does not support --format= it doesn't create
2782 # ustar tarball either.
2783 (tar --version) >/dev/null 2>&1 && continue
2784 am__tar='tar chf - "$$tardir"'
2785 am__tar_='tar chf - "$tardir"'
2786 am__untar='tar xf -'
2787 ;;
2788 pax)
2789 am__tar='pax -L -x pax -w "$$tardir"'
2790 am__tar_='pax -L -x pax -w "$tardir"'
2791 am__untar='pax -r'
2792 ;;
2793 cpio)
2794 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2795 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2796 am__untar='cpio -i -H pax -d'
2797 ;;
2798 none)
2799 am__tar=false
2800 am__tar_=false
2801 am__untar=false
2802 ;;
2803 esac
2804
2805 # If the value was cached, stop now. We just wanted to have am__tar
2806 # and am__untar set.
2807 test -n "${am_cv_prog_tar_pax}" && break
2808
2809 # tar/untar a dummy directory, and stop if the command works.
2810 rm -rf conftest.dir
2811 mkdir conftest.dir
2812 echo GrepMe > conftest.dir/file
2813 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2814 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }
2818 rm -rf conftest.dir
2819 if test -s conftest.tar; then
2820 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2821 ($am__untar <conftest.tar) >&5 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }
2825 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2826 (cat conftest.dir/file) >&5 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2831 fi
2832 done
2833 rm -rf conftest.dir
2834
2835 if ${am_cv_prog_tar_pax+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 am_cv_prog_tar_pax=$_am_tool
2839 fi
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2842 $as_echo "$am_cv_prog_tar_pax" >&6; }
2843
2844
2845
2846
2847
2848
2849 # POSIX will say in a future version that running "rm -f" with no argument
2850 # is OK; and we want to be able to make that assumption in our Makefile
2851 # recipes. So use an aggressive probe to check that the usage we want is
2852 # actually supported "in the wild" to an acceptable degree.
2853 # See automake bug#10828.
2854 # To make any issue more visible, cause the running configure to be aborted
2855 # by default if the 'rm' program in use doesn't match our expectations; the
2856 # user can still override this though.
2857 if rm -f && rm -fr && rm -rf; then : OK; else
2858 cat >&2 <<'END'
2859 Oops!
2860
2861 Your 'rm' program seems unable to run without file operands specified
2862 on the command line, even when the '-f' option is present. This is contrary
2863 to the behaviour of most rm programs out there, and not conforming with
2864 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2865
2866 Please tell [email protected] about your system, including the value
2867 of your $PATH and any error possibly output before this message. This
2868 can help us improve future automake versions.
2869
2870 END
2871 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2872 echo 'Configuration will proceed anyway, since you have set the' >&2
2873 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2874 echo >&2
2875 else
2876 cat >&2 <<'END'
2877 Aborting the configuration process, to ensure you take notice of the issue.
2878
2879 You can download and install GNU coreutils to get an 'rm' implementation
2880 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2881
2882 If you want to complete the configuration process using your problematic
2883 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2884 to "yes", and re-run configure.
2885
2886 END
2887 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2888 fi
2889 fi
2890
2891 DEPDIR="${am__leading_dot}deps"
2892
2893 ac_config_commands="$ac_config_commands depfiles"
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2896 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2897 cat > confinc.mk << 'END'
2898 am__doit:
2899 @echo this is the am__doit target >confinc.out
2900 .PHONY: am__doit
2901 END
2902 am__include="#"
2903 am__quote=
2904 # BSD make does it like this.
2905 echo '.include "confinc.mk" # ignored' > confmf.BSD
2906 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2907 echo 'include confinc.mk # ignored' > confmf.GNU
2908 _am_result=no
2909 for s in GNU BSD; do
2910 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2911 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915 case $?:`cat confinc.out 2>/dev/null` in #(
2916 '0:this is the am__doit target') :
2917 case $s in #(
2918 BSD) :
2919 am__include='.include' am__quote='"' ;; #(
2920 *) :
2921 am__include='include' am__quote='' ;;
2922 esac ;; #(
2923 *) :
2924 ;;
2925 esac
2926 if test "$am__include" != "#"; then
2927 _am_result="yes ($s style)"
2928 break
2929 fi
2930 done
2931 rm -f confinc.* confmf.*
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2933 $as_echo "${_am_result}" >&6; }
2934
2935 # Check whether --enable-dependency-tracking was given.
2936 if test "${enable_dependency_tracking+set}" = set; then :
2937 enableval=$enable_dependency_tracking;
2938 fi
2939
2940 if test "x$enable_dependency_tracking" != xno; then
2941 am_depcomp="$ac_aux_dir/depcomp"
2942 AMDEPBACKSLASH='\'
2943 am__nodep='_no'
2944 fi
2945 if test "x$enable_dependency_tracking" != xno; then
2946 AMDEP_TRUE=
2947 AMDEP_FALSE='#'
2948 else
2949 AMDEP_TRUE='#'
2950 AMDEP_FALSE=
2951 fi
2952
2953
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2961 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_CC+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 CC=$ac_cv_prog_CC
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 fi
2998 if test -z "$ac_cv_prog_CC"; then
2999 ac_ct_CC=$CC
3000 # Extract the first word of "gcc", so it can be a program name with args.
3001 set dummy gcc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_CC="gcc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036 if test "x$ac_ct_CC" = x; then
3037 CC=""
3038 else
3039 case $cross_compiling:$ac_tool_warned in
3040 yes:)
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043 ac_tool_warned=yes ;;
3044 esac
3045 CC=$ac_ct_CC
3046 fi
3047 else
3048 CC="$ac_cv_prog_CC"
3049 fi
3050
3051 if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}cc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if ${ac_cv_prog_CC+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070 ac_cv_prog_CC="${ac_tool_prefix}cc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090 fi
3091 fi
3092 if test -z "$CC"; then
3093 # Extract the first word of "cc", so it can be a program name with args.
3094 set dummy cc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 ac_prog_rejected=no
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3112 ac_prog_rejected=yes
3113 continue
3114 fi
3115 ac_cv_prog_CC="cc"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 if test $ac_prog_rejected = yes; then
3124 # We found a bogon in the path, so make sure we never use it.
3125 set dummy $ac_cv_prog_CC
3126 shift
3127 if test $# != 0; then
3128 # We chose a different compiler from the bogus one.
3129 # However, it has the same basename, so the bogon will be chosen
3130 # first if we set CC to just the basename; use the full file name.
3131 shift
3132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3133 fi
3134 fi
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 fi
3148 if test -z "$CC"; then
3149 if test -n "$ac_tool_prefix"; then
3150 for ac_prog in cl.exe
3151 do
3152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 test -n "$CC" && break
3190 done
3191 fi
3192 if test -z "$CC"; then
3193 ac_ct_CC=$CC
3194 for ac_prog in cl.exe
3195 do
3196 # Extract the first word of "$ac_prog", so it can be a program name with args.
3197 set dummy $ac_prog; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_CC="$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226 $as_echo "$ac_ct_CC" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233 test -n "$ac_ct_CC" && break
3234 done
3235
3236 if test "x$ac_ct_CC" = x; then
3237 CC=""
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240 yes:)
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243 ac_tool_warned=yes ;;
3244 esac
3245 CC=$ac_ct_CC
3246 fi
3247 fi
3248
3249 fi
3250
3251
3252 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $? "no acceptable C compiler found in \$PATH
3255 See \`config.log' for more details" "$LINENO" 5; }
3256
3257 # Provide some information about the compiler.
3258 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3259 set X $ac_compile
3260 ac_compiler=$2
3261 for ac_option in --version -v -V -qversion; do
3262 { { ac_try="$ac_compiler $ac_option >&5"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3270 ac_status=$?
3271 if test -s conftest.err; then
3272 sed '10a\
3273 ... rest of stderr output deleted ...
3274 10q' conftest.err >conftest.er1
3275 cat conftest.er1 >&5
3276 fi
3277 rm -f conftest.er1 conftest.err
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }
3280 done
3281
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3284
3285 int
3286 main ()
3287 {
3288
3289 ;
3290 return 0;
3291 }
3292 _ACEOF
3293 ac_clean_files_save=$ac_clean_files
3294 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3295 # Try to create an executable without -o first, disregard a.out.
3296 # It will help us diagnose broken compilers, and finding out an intuition
3297 # of exeext.
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3299 $as_echo_n "checking whether the C compiler works... " >&6; }
3300 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301
3302 # The possible output files:
3303 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3304
3305 ac_rmfiles=
3306 for ac_file in $ac_files
3307 do
3308 case $ac_file in
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 esac
3312 done
3313 rm -f $ac_rmfiles
3314
3315 if { { ac_try="$ac_link_default"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link_default") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3329 # so that the user can short-circuit this test for compilers unknown to
3330 # Autoconf.
3331 for ac_file in $ac_files ''
3332 do
3333 test -f "$ac_file" || continue
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3336 ;;
3337 [ab].out )
3338 # We found the default executable, but exeext='' is most
3339 # certainly right.
3340 break;;
3341 *.* )
3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 then :; else
3344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 fi
3346 # We set ac_cv_exeext here because the later test for it is not
3347 # safe: cross compilers may not add the suffix if given an `-o'
3348 # argument, so we may need to know it at that point already.
3349 # Even if this section looks crufty: it has the advantage of
3350 # actually working.
3351 break;;
3352 * )
3353 break;;
3354 esac
3355 done
3356 test "$ac_cv_exeext" = no && ac_cv_exeext=
3357
3358 else
3359 ac_file=''
3360 fi
3361 if test -z "$ac_file"; then :
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error 77 "C compiler cannot create executables
3370 See \`config.log' for more details" "$LINENO" 5; }
3371 else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3376 $as_echo_n "checking for C compiler default output file name... " >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3378 $as_echo "$ac_file" >&6; }
3379 ac_exeext=$ac_cv_exeext
3380
3381 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3382 ac_clean_files=$ac_clean_files_save
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3384 $as_echo_n "checking for suffix of executables... " >&6; }
3385 if { { ac_try="$ac_link"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }; then :
3396 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3397 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3398 # work properly (i.e., refer to `conftest.exe'), while it won't with
3399 # `rm'.
3400 for ac_file in conftest.exe conftest conftest.*; do
3401 test -f "$ac_file" || continue
3402 case $ac_file in
3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3404 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405 break;;
3406 * ) break;;
3407 esac
3408 done
3409 else
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 executables: cannot compile and link
3413 See \`config.log' for more details" "$LINENO" 5; }
3414 fi
3415 rm -f conftest conftest$ac_cv_exeext
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3417 $as_echo "$ac_cv_exeext" >&6; }
3418
3419 rm -f conftest.$ac_ext
3420 EXEEXT=$ac_cv_exeext
3421 ac_exeext=$EXEEXT
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424 #include <stdio.h>
3425 int
3426 main ()
3427 {
3428 FILE *f = fopen ("conftest.out", "w");
3429 return ferror (f) || fclose (f) != 0;
3430
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 ac_clean_files="$ac_clean_files conftest.out"
3436 # Check that the compiler produces executables we can run. If not, either
3437 # the compiler is broken, or we cross compile.
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3439 $as_echo_n "checking whether we are cross compiling... " >&6; }
3440 if test "$cross_compiling" != yes; then
3441 { { ac_try="$ac_link"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_link") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }
3452 if { ac_try='./conftest$ac_cv_exeext'
3453 { { case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_try") 2>&5
3460 ac_status=$?
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; }; then
3463 cross_compiling=no
3464 else
3465 if test "$cross_compiling" = maybe; then
3466 cross_compiling=yes
3467 else
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error $? "cannot run C compiled programs.
3471 If you meant to cross compile, use \`--host'.
3472 See \`config.log' for more details" "$LINENO" 5; }
3473 fi
3474 fi
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3477 $as_echo "$cross_compiling" >&6; }
3478
3479 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3480 ac_clean_files=$ac_clean_files_save
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3482 $as_echo_n "checking for suffix of object files... " >&6; }
3483 if ${ac_cv_objext+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488
3489 int
3490 main ()
3491 {
3492
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.o conftest.obj
3498 if { { ac_try="$ac_compile"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_compile") 2>&5
3506 ac_status=$?
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }; then :
3509 for ac_file in conftest.o conftest.obj conftest.*; do
3510 test -f "$ac_file" || continue;
3511 case $ac_file in
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3513 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 break;;
3515 esac
3516 done
3517 else
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of object files: cannot compile
3524 See \`config.log' for more details" "$LINENO" 5; }
3525 fi
3526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3529 $as_echo "$ac_cv_objext" >&6; }
3530 OBJEXT=$ac_cv_objext
3531 ac_objext=$OBJEXT
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534 if ${ac_cv_c_compiler_gnu+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539
3540 int
3541 main ()
3542 {
3543 #ifndef __GNUC__
3544 choke me
3545 #endif
3546
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_compiler_gnu=yes
3553 else
3554 ac_compiler_gnu=no
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3558
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3561 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3562 if test $ac_compiler_gnu = yes; then
3563 GCC=yes
3564 else
3565 GCC=
3566 fi
3567 ac_test_CFLAGS=${CFLAGS+set}
3568 ac_save_CFLAGS=$CFLAGS
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3570 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3571 if ${ac_cv_prog_cc_g+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 ac_save_c_werror_flag=$ac_c_werror_flag
3575 ac_c_werror_flag=yes
3576 ac_cv_prog_cc_g=no
3577 CFLAGS="-g"
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_prog_cc_g=yes
3591 else
3592 CFLAGS=""
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595
3596 int
3597 main ()
3598 {
3599
3600 ;
3601 return 0;
3602 }
3603 _ACEOF
3604 if ac_fn_c_try_compile "$LINENO"; then :
3605
3606 else
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3608 CFLAGS="-g"
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3611
3612 int
3613 main ()
3614 {
3615
3616 ;
3617 return 0;
3618 }
3619 _ACEOF
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_cv_prog_cc_g=yes
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 fi
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3631 $as_echo "$ac_cv_prog_cc_g" >&6; }
3632 if test "$ac_test_CFLAGS" = set; then
3633 CFLAGS=$ac_save_CFLAGS
3634 elif test $ac_cv_prog_cc_g = yes; then
3635 if test "$GCC" = yes; then
3636 CFLAGS="-g -O2"
3637 else
3638 CFLAGS="-g"
3639 fi
3640 else
3641 if test "$GCC" = yes; then
3642 CFLAGS="-O2"
3643 else
3644 CFLAGS=
3645 fi
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3648 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3649 if ${ac_cv_prog_cc_c89+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 ac_cv_prog_cc_c89=no
3653 ac_save_CC=$CC
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656 #include <stdarg.h>
3657 #include <stdio.h>
3658 struct stat;
3659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3660 struct buf { int x; };
3661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662 static char *e (p, i)
3663 char **p;
3664 int i;
3665 {
3666 return p[i];
3667 }
3668 static char *f (char * (*g) (char **, int), char **p, ...)
3669 {
3670 char *s;
3671 va_list v;
3672 va_start (v,p);
3673 s = g (p, va_arg (v,int));
3674 va_end (v);
3675 return s;
3676 }
3677
3678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3679 function prototypes and stuff, but not '\xHH' hex character constants.
3680 These don't provoke an error unfortunately, instead are silently treated
3681 as 'x'. The following induces an error, until -std is added to get
3682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3683 array size at least. It's necessary to write '\x00'==0 to get something
3684 that's true only with -std. */
3685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686
3687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3688 inside strings and character constants. */
3689 #define FOO(x) 'x'
3690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691
3692 int test (int i, double x);
3693 struct s1 {int (*f) (int a);};
3694 struct s2 {int (*f) (double a);};
3695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3696 int argc;
3697 char **argv;
3698 int
3699 main ()
3700 {
3701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 do
3709 CC="$ac_save_CC $ac_arg"
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_c89=$ac_arg
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext
3714 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715 done
3716 rm -f conftest.$ac_ext
3717 CC=$ac_save_CC
3718
3719 fi
3720 # AC_CACHE_VAL
3721 case "x$ac_cv_prog_cc_c89" in
3722 x)
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3724 $as_echo "none needed" >&6; } ;;
3725 xno)
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3727 $as_echo "unsupported" >&6; } ;;
3728 *)
3729 CC="$CC $ac_cv_prog_cc_c89"
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3731 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732 esac
3733 if test "x$ac_cv_prog_cc_c89" != xno; then :
3734
3735 fi
3736
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3749 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3750 if ${am_cv_prog_cc_c_o+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755
3756 int
3757 main ()
3758 {
3759
3760 ;
3761 return 0;
3762 }
3763 _ACEOF
3764 # Make sure it works both with $CC and with simple cc.
3765 # Following AC_PROG_CC_C_O, we do the test twice because some
3766 # compilers refuse to overwrite an existing .o file with -o,
3767 # though they will create one.
3768 am_cv_prog_cc_c_o=yes
3769 for am_i in 1 2; do
3770 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3771 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } \
3775 && test -f conftest2.$ac_objext; then
3776 : OK
3777 else
3778 am_cv_prog_cc_c_o=no
3779 break
3780 fi
3781 done
3782 rm -f core conftest*
3783 unset am_i
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3786 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3787 if test "$am_cv_prog_cc_c_o" != yes; then
3788 # Losing compiler, so override with the script.
3789 # FIXME: It is wrong to rewrite CC.
3790 # But if we don't then we get into trouble of one sort or another.
3791 # A longer-term fix would be to have automake use am__CC in this case,
3792 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3793 CC="$am_aux_dir/compile $CC"
3794 fi
3795 ac_ext=c
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800
3801
3802 depcc="$CC" am_compiler_list=
3803
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3805 $as_echo_n "checking dependency style of $depcc... " >&6; }
3806 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3810 # We make a subdir and do the tests there. Otherwise we can end up
3811 # making bogus files that we don't know about and never remove. For
3812 # instance it was reported that on HP-UX the gcc test will end up
3813 # making a dummy file named 'D' -- because '-MD' means "put the output
3814 # in D".
3815 rm -rf conftest.dir
3816 mkdir conftest.dir
3817 # Copy depcomp to subdir because otherwise we won't find it if we're
3818 # using a relative directory.
3819 cp "$am_depcomp" conftest.dir
3820 cd conftest.dir
3821 # We will build objects and dependencies in a subdirectory because
3822 # it helps to detect inapplicable dependency modes. For instance
3823 # both Tru64's cc and ICC support -MD to output dependencies as a
3824 # side effect of compilation, but ICC will put the dependencies in
3825 # the current directory while Tru64 will put them in the object
3826 # directory.
3827 mkdir sub
3828
3829 am_cv_CC_dependencies_compiler_type=none
3830 if test "$am_compiler_list" = ""; then
3831 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3832 fi
3833 am__universal=false
3834 case " $depcc " in #(
3835 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3836 esac
3837
3838 for depmode in $am_compiler_list; do
3839 # Setup a source with many dependencies, because some compilers
3840 # like to wrap large dependency lists on column 80 (with \), and
3841 # we should not choose a depcomp mode which is confused by this.
3842 #
3843 # We need to recreate these files for each test, as the compiler may
3844 # overwrite some of them when testing with obscure command lines.
3845 # This happens at least with the AIX C compiler.
3846 : > sub/conftest.c
3847 for i in 1 2 3 4 5 6; do
3848 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3849 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3850 # Solaris 10 /bin/sh.
3851 echo '/* dummy */' > sub/conftst$i.h
3852 done
3853 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3854
3855 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3856 # mode. It turns out that the SunPro C++ compiler does not properly
3857 # handle '-M -o', and we need to detect this. Also, some Intel
3858 # versions had trouble with output in subdirs.
3859 am__obj=sub/conftest.${OBJEXT-o}
3860 am__minus_obj="-o $am__obj"
3861 case $depmode in
3862 gcc)
3863 # This depmode causes a compiler race in universal mode.
3864 test "$am__universal" = false || continue
3865 ;;
3866 nosideeffect)
3867 # After this tag, mechanisms are not by side-effect, so they'll
3868 # only be used when explicitly requested.
3869 if test "x$enable_dependency_tracking" = xyes; then
3870 continue
3871 else
3872 break
3873 fi
3874 ;;
3875 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3876 # This compiler won't grok '-c -o', but also, the minuso test has
3877 # not run yet. These depmodes are late enough in the game, and
3878 # so weak that their functioning should not be impacted.
3879 am__obj=conftest.${OBJEXT-o}
3880 am__minus_obj=
3881 ;;
3882 none) break ;;
3883 esac
3884 if depmode=$depmode \
3885 source=sub/conftest.c object=$am__obj \
3886 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3887 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3888 >/dev/null 2>conftest.err &&
3889 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3891 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3893 # icc doesn't choke on unknown options, it will just issue warnings
3894 # or remarks (even with -Werror). So we grep stderr for any message
3895 # that says an option was ignored or not supported.
3896 # When given -MP, icc 7.0 and 7.1 complain thusly:
3897 # icc: Command line warning: ignoring option '-M'; no argument required
3898 # The diagnosis changed in icc 8.0:
3899 # icc: Command line remark: option '-MP' not supported
3900 if (grep 'ignoring option' conftest.err ||
3901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3902 am_cv_CC_dependencies_compiler_type=$depmode
3903 break
3904 fi
3905 fi
3906 done
3907
3908 cd ..
3909 rm -rf conftest.dir
3910 else
3911 am_cv_CC_dependencies_compiler_type=none
3912 fi
3913
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3916 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3917 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3918
3919 if
3920 test "x$enable_dependency_tracking" != xno \
3921 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3922 am__fastdepCC_TRUE=
3923 am__fastdepCC_FALSE='#'
3924 else
3925 am__fastdepCC_TRUE='#'
3926 am__fastdepCC_FALSE=
3927 fi
3928
3929
3930
3931 if test -n "$ac_tool_prefix"; then
3932 for ac_prog in ar lib "link -lib"
3933 do
3934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if ${ac_cv_prog_AR+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 if test -n "$AR"; then
3942 ac_cv_prog_AR="$AR" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955 done
3956 done
3957 IFS=$as_save_IFS
3958
3959 fi
3960 fi
3961 AR=$ac_cv_prog_AR
3962 if test -n "$AR"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3964 $as_echo "$AR" >&6; }
3965 else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3968 fi
3969
3970
3971 test -n "$AR" && break
3972 done
3973 fi
3974 if test -z "$AR"; then
3975 ac_ct_AR=$AR
3976 for ac_prog in ar lib "link -lib"
3977 do
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$ac_ct_AR"; then
3986 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_ac_ct_AR="$ac_prog"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4006 if test -n "$ac_ct_AR"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4008 $as_echo "$ac_ct_AR" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4014
4015 test -n "$ac_ct_AR" && break
4016 done
4017
4018 if test "x$ac_ct_AR" = x; then
4019 AR="false"
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022 yes:)
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4025 ac_tool_warned=yes ;;
4026 esac
4027 AR=$ac_ct_AR
4028 fi
4029 fi
4030
4031 : ${AR=ar}
4032
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4034 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4035 if ${am_cv_ar_interface+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044 am_cv_ar_interface=ar
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 int some_variable = 0;
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4052 (eval $am_ar_try) 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }
4056 if test "$ac_status" -eq 0; then
4057 am_cv_ar_interface=ar
4058 else
4059 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4061 (eval $am_ar_try) 2>&5
4062 ac_status=$?
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }
4065 if test "$ac_status" -eq 0; then
4066 am_cv_ar_interface=lib
4067 else
4068 am_cv_ar_interface=unknown
4069 fi
4070 fi
4071 rm -f conftest.lib libconftest.a
4072
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4083 $as_echo "$am_cv_ar_interface" >&6; }
4084
4085 case $am_cv_ar_interface in
4086 ar)
4087 ;;
4088 lib)
4089 # Microsoft lib, so override with the ar-lib wrapper script.
4090 # FIXME: It is wrong to rewrite AR.
4091 # But if we don't then we get into trouble of one sort or another.
4092 # A longer-term fix would be to have automake use am__AR in this case,
4093 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4094 # similar.
4095 AR="$am_aux_dir/ar-lib $AR"
4096 ;;
4097 unknown)
4098 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4099 ;;
4100 esac
4101
4102
4103 # Check whether --enable-silent-rules was given.
4104 if test "${enable_silent_rules+set}" = set; then :
4105 enableval=$enable_silent_rules;
4106 fi
4107
4108 case $enable_silent_rules in # (((
4109 yes) AM_DEFAULT_VERBOSITY=0;;
4110 no) AM_DEFAULT_VERBOSITY=1;;
4111 *) AM_DEFAULT_VERBOSITY=0;;
4112 esac
4113 am_make=${MAKE-make}
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4115 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4116 if ${am_cv_make_support_nested_variables+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 if $as_echo 'TRUE=$(BAR$(V))
4120 BAR0=false
4121 BAR1=true
4122 V=1
4123 am__doit:
4124 @$(TRUE)
4125 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4126 am_cv_make_support_nested_variables=yes
4127 else
4128 am_cv_make_support_nested_variables=no
4129 fi
4130 fi
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4132 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4133 if test $am_cv_make_support_nested_variables = yes; then
4134 AM_V='$(V)'
4135 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4136 else
4137 AM_V=$AM_DEFAULT_VERBOSITY
4138 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4139 fi
4140 AM_BACKSLASH='\'
4141
4142
4143 ac_ext=c
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if ${ac_cv_prog_CC+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 if test -n "$CC"; then
4157 ac_cv_prog_CC="$CC" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170 done
4171 done
4172 IFS=$as_save_IFS
4173
4174 fi
4175 fi
4176 CC=$ac_cv_prog_CC
4177 if test -n "$CC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4179 $as_echo "$CC" >&6; }
4180 else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4183 fi
4184
4185
4186 fi
4187 if test -z "$ac_cv_prog_CC"; then
4188 ac_ct_CC=$CC
4189 # Extract the first word of "gcc", so it can be a program name with args.
4190 set dummy gcc; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$ac_ct_CC"; then
4197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_ac_ct_CC="gcc"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4209 fi
4210 done
4211 done
4212 IFS=$as_save_IFS
4213
4214 fi
4215 fi
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4219 $as_echo "$ac_ct_CC" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4223 fi
4224
4225 if test "x$ac_ct_CC" = x; then
4226 CC=""
4227 else
4228 case $cross_compiling:$ac_tool_warned in
4229 yes:)
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4232 ac_tool_warned=yes ;;
4233 esac
4234 CC=$ac_ct_CC
4235 fi
4236 else
4237 CC="$ac_cv_prog_CC"
4238 fi
4239
4240 if test -z "$CC"; then
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}cc; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_CC+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$CC"; then
4250 ac_cv_prog_CC="$CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_CC="${ac_tool_prefix}cc"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 CC=$ac_cv_prog_CC
4270 if test -n "$CC"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4272 $as_echo "$CC" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278
4279 fi
4280 fi
4281 if test -z "$CC"; then
4282 # Extract the first word of "cc", so it can be a program name with args.
4283 set dummy cc; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_CC+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$CC"; then
4290 ac_cv_prog_CC="$CC" # Let the user override the test.
4291 else
4292 ac_prog_rejected=no
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4301 ac_prog_rejected=yes
4302 continue
4303 fi
4304 ac_cv_prog_CC="cc"
4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4307 fi
4308 done
4309 done
4310 IFS=$as_save_IFS
4311
4312 if test $ac_prog_rejected = yes; then
4313 # We found a bogon in the path, so make sure we never use it.
4314 set dummy $ac_cv_prog_CC
4315 shift
4316 if test $# != 0; then
4317 # We chose a different compiler from the bogus one.
4318 # However, it has the same basename, so the bogon will be chosen
4319 # first if we set CC to just the basename; use the full file name.
4320 shift
4321 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4322 fi
4323 fi
4324 fi
4325 fi
4326 CC=$ac_cv_prog_CC
4327 if test -n "$CC"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4329 $as_echo "$CC" >&6; }
4330 else
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4333 fi
4334
4335
4336 fi
4337 if test -z "$CC"; then
4338 if test -n "$ac_tool_prefix"; then
4339 for ac_prog in cl.exe
4340 do
4341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if ${ac_cv_prog_CC+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -n "$CC"; then
4349 ac_cv_prog_CC="$CC" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362 done
4363 done
4364 IFS=$as_save_IFS
4365
4366 fi
4367 fi
4368 CC=$ac_cv_prog_CC
4369 if test -n "$CC"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4371 $as_echo "$CC" >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4375 fi
4376
4377
4378 test -n "$CC" && break
4379 done
4380 fi
4381 if test -z "$CC"; then
4382 ac_ct_CC=$CC
4383 for ac_prog in cl.exe
4384 do
4385 # Extract the first word of "$ac_prog", so it can be a program name with args.
4386 set dummy $ac_prog; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -n "$ac_ct_CC"; then
4393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_ac_ct_CC="$ac_prog"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4413 if test -n "$ac_ct_CC"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4415 $as_echo "$ac_ct_CC" >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419 fi
4420
4421
4422 test -n "$ac_ct_CC" && break
4423 done
4424
4425 if test "x$ac_ct_CC" = x; then
4426 CC=""
4427 else
4428 case $cross_compiling:$ac_tool_warned in
4429 yes:)
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4432 ac_tool_warned=yes ;;
4433 esac
4434 CC=$ac_ct_CC
4435 fi
4436 fi
4437
4438 fi
4439
4440
4441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4443 as_fn_error $? "no acceptable C compiler found in \$PATH
4444 See \`config.log' for more details" "$LINENO" 5; }
4445
4446 # Provide some information about the compiler.
4447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4448 set X $ac_compile
4449 ac_compiler=$2
4450 for ac_option in --version -v -V -qversion; do
4451 { { ac_try="$ac_compiler $ac_option >&5"
4452 case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4459 ac_status=$?
4460 if test -s conftest.err; then
4461 sed '10a\
4462 ... rest of stderr output deleted ...
4463 10q' conftest.err >conftest.er1
4464 cat conftest.er1 >&5
4465 fi
4466 rm -f conftest.er1 conftest.err
4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }
4469 done
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4472 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4473 if ${ac_cv_c_compiler_gnu+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478
4479 int
4480 main ()
4481 {
4482 #ifndef __GNUC__
4483 choke me
4484 #endif
4485
4486 ;
4487 return 0;
4488 }
4489 _ACEOF
4490 if ac_fn_c_try_compile "$LINENO"; then :
4491 ac_compiler_gnu=yes
4492 else
4493 ac_compiler_gnu=no
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4497
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4500 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4501 if test $ac_compiler_gnu = yes; then
4502 GCC=yes
4503 else
4504 GCC=
4505 fi
4506 ac_test_CFLAGS=${CFLAGS+set}
4507 ac_save_CFLAGS=$CFLAGS
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4509 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4510 if ${ac_cv_prog_cc_g+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 ac_save_c_werror_flag=$ac_c_werror_flag
4514 ac_c_werror_flag=yes
4515 ac_cv_prog_cc_g=no
4516 CFLAGS="-g"
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519
4520 int
4521 main ()
4522 {
4523
4524 ;
4525 return 0;
4526 }
4527 _ACEOF
4528 if ac_fn_c_try_compile "$LINENO"; then :
4529 ac_cv_prog_cc_g=yes
4530 else
4531 CFLAGS=""
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534
4535 int
4536 main ()
4537 {
4538
4539 ;
4540 return 0;
4541 }
4542 _ACEOF
4543 if ac_fn_c_try_compile "$LINENO"; then :
4544
4545 else
4546 ac_c_werror_flag=$ac_save_c_werror_flag
4547 CFLAGS="-g"
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550
4551 int
4552 main ()
4553 {
4554
4555 ;
4556 return 0;
4557 }
4558 _ACEOF
4559 if ac_fn_c_try_compile "$LINENO"; then :
4560 ac_cv_prog_cc_g=yes
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 fi
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 ac_c_werror_flag=$ac_save_c_werror_flag
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4570 $as_echo "$ac_cv_prog_cc_g" >&6; }
4571 if test "$ac_test_CFLAGS" = set; then
4572 CFLAGS=$ac_save_CFLAGS
4573 elif test $ac_cv_prog_cc_g = yes; then
4574 if test "$GCC" = yes; then
4575 CFLAGS="-g -O2"
4576 else
4577 CFLAGS="-g"
4578 fi
4579 else
4580 if test "$GCC" = yes; then
4581 CFLAGS="-O2"
4582 else
4583 CFLAGS=
4584 fi
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4587 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4588 if ${ac_cv_prog_cc_c89+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 ac_cv_prog_cc_c89=no
4592 ac_save_CC=$CC
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595 #include <stdarg.h>
4596 #include <stdio.h>
4597 struct stat;
4598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4599 struct buf { int x; };
4600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4601 static char *e (p, i)
4602 char **p;
4603 int i;
4604 {
4605 return p[i];
4606 }
4607 static char *f (char * (*g) (char **, int), char **p, ...)
4608 {
4609 char *s;
4610 va_list v;
4611 va_start (v,p);
4612 s = g (p, va_arg (v,int));
4613 va_end (v);
4614 return s;
4615 }
4616
4617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4618 function prototypes and stuff, but not '\xHH' hex character constants.
4619 These don't provoke an error unfortunately, instead are silently treated
4620 as 'x'. The following induces an error, until -std is added to get
4621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4622 array size at least. It's necessary to write '\x00'==0 to get something
4623 that's true only with -std. */
4624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4625
4626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4627 inside strings and character constants. */
4628 #define FOO(x) 'x'
4629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4630
4631 int test (int i, double x);
4632 struct s1 {int (*f) (int a);};
4633 struct s2 {int (*f) (double a);};
4634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4635 int argc;
4636 char **argv;
4637 int
4638 main ()
4639 {
4640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4641 ;
4642 return 0;
4643 }
4644 _ACEOF
4645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4647 do
4648 CC="$ac_save_CC $ac_arg"
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 ac_cv_prog_cc_c89=$ac_arg
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext
4653 test "x$ac_cv_prog_cc_c89" != "xno" && break
4654 done
4655 rm -f conftest.$ac_ext
4656 CC=$ac_save_CC
4657
4658 fi
4659 # AC_CACHE_VAL
4660 case "x$ac_cv_prog_cc_c89" in
4661 x)
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4663 $as_echo "none needed" >&6; } ;;
4664 xno)
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4666 $as_echo "unsupported" >&6; } ;;
4667 *)
4668 CC="$CC $ac_cv_prog_cc_c89"
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4670 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4671 esac
4672 if test "x$ac_cv_prog_cc_c89" != xno; then :
4673
4674 fi
4675
4676 ac_ext=c
4677 ac_cpp='$CPP $CPPFLAGS'
4678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681
4682 ac_ext=c
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4688 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4689 if ${am_cv_prog_cc_c_o+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694
4695 int
4696 main ()
4697 {
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 # Make sure it works both with $CC and with simple cc.
4704 # Following AC_PROG_CC_C_O, we do the test twice because some
4705 # compilers refuse to overwrite an existing .o file with -o,
4706 # though they will create one.
4707 am_cv_prog_cc_c_o=yes
4708 for am_i in 1 2; do
4709 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4710 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } \
4714 && test -f conftest2.$ac_objext; then
4715 : OK
4716 else
4717 am_cv_prog_cc_c_o=no
4718 break
4719 fi
4720 done
4721 rm -f core conftest*
4722 unset am_i
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4725 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4726 if test "$am_cv_prog_cc_c_o" != yes; then
4727 # Losing compiler, so override with the script.
4728 # FIXME: It is wrong to rewrite CC.
4729 # But if we don't then we get into trouble of one sort or another.
4730 # A longer-term fix would be to have automake use am__CC in this case,
4731 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4732 CC="$am_aux_dir/compile $CC"
4733 fi
4734 ac_ext=c
4735 ac_cpp='$CPP $CPPFLAGS'
4736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739
4740
4741 depcc="$CC" am_compiler_list=
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4744 $as_echo_n "checking dependency style of $depcc... " >&6; }
4745 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4749 # We make a subdir and do the tests there. Otherwise we can end up
4750 # making bogus files that we don't know about and never remove. For
4751 # instance it was reported that on HP-UX the gcc test will end up
4752 # making a dummy file named 'D' -- because '-MD' means "put the output
4753 # in D".
4754 rm -rf conftest.dir
4755 mkdir conftest.dir
4756 # Copy depcomp to subdir because otherwise we won't find it if we're
4757 # using a relative directory.
4758 cp "$am_depcomp" conftest.dir
4759 cd conftest.dir
4760 # We will build objects and dependencies in a subdirectory because
4761 # it helps to detect inapplicable dependency modes. For instance
4762 # both Tru64's cc and ICC support -MD to output dependencies as a
4763 # side effect of compilation, but ICC will put the dependencies in
4764 # the current directory while Tru64 will put them in the object
4765 # directory.
4766 mkdir sub
4767
4768 am_cv_CC_dependencies_compiler_type=none
4769 if test "$am_compiler_list" = ""; then
4770 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4771 fi
4772 am__universal=false
4773 case " $depcc " in #(
4774 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4775 esac
4776
4777 for depmode in $am_compiler_list; do
4778 # Setup a source with many dependencies, because some compilers
4779 # like to wrap large dependency lists on column 80 (with \), and
4780 # we should not choose a depcomp mode which is confused by this.
4781 #
4782 # We need to recreate these files for each test, as the compiler may
4783 # overwrite some of them when testing with obscure command lines.
4784 # This happens at least with the AIX C compiler.
4785 : > sub/conftest.c
4786 for i in 1 2 3 4 5 6; do
4787 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4788 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4789 # Solaris 10 /bin/sh.
4790 echo '/* dummy */' > sub/conftst$i.h
4791 done
4792 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4793
4794 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4795 # mode. It turns out that the SunPro C++ compiler does not properly
4796 # handle '-M -o', and we need to detect this. Also, some Intel
4797 # versions had trouble with output in subdirs.
4798 am__obj=sub/conftest.${OBJEXT-o}
4799 am__minus_obj="-o $am__obj"
4800 case $depmode in
4801 gcc)
4802 # This depmode causes a compiler race in universal mode.
4803 test "$am__universal" = false || continue
4804 ;;
4805 nosideeffect)
4806 # After this tag, mechanisms are not by side-effect, so they'll
4807 # only be used when explicitly requested.
4808 if test "x$enable_dependency_tracking" = xyes; then
4809 continue
4810 else
4811 break
4812 fi
4813 ;;
4814 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4815 # This compiler won't grok '-c -o', but also, the minuso test has
4816 # not run yet. These depmodes are late enough in the game, and
4817 # so weak that their functioning should not be impacted.
4818 am__obj=conftest.${OBJEXT-o}
4819 am__minus_obj=
4820 ;;
4821 none) break ;;
4822 esac
4823 if depmode=$depmode \
4824 source=sub/conftest.c object=$am__obj \
4825 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4826 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4827 >/dev/null 2>conftest.err &&
4828 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4829 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4830 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4831 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4832 # icc doesn't choke on unknown options, it will just issue warnings
4833 # or remarks (even with -Werror). So we grep stderr for any message
4834 # that says an option was ignored or not supported.
4835 # When given -MP, icc 7.0 and 7.1 complain thusly:
4836 # icc: Command line warning: ignoring option '-M'; no argument required
4837 # The diagnosis changed in icc 8.0:
4838 # icc: Command line remark: option '-MP' not supported
4839 if (grep 'ignoring option' conftest.err ||
4840 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4841 am_cv_CC_dependencies_compiler_type=$depmode
4842 break
4843 fi
4844 fi
4845 done
4846
4847 cd ..
4848 rm -rf conftest.dir
4849 else
4850 am_cv_CC_dependencies_compiler_type=none
4851 fi
4852
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4855 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4856 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4857
4858 if
4859 test "x$enable_dependency_tracking" != xno \
4860 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4861 am__fastdepCC_TRUE=
4862 am__fastdepCC_FALSE='#'
4863 else
4864 am__fastdepCC_TRUE='#'
4865 am__fastdepCC_FALSE=
4866 fi
4867
4868
4869
4870 # Check whether --enable-static was given.
4871 if test "${enable_static+set}" = set; then :
4872 enableval=$enable_static; p=${PACKAGE-default}
4873 case $enableval in
4874 yes) enable_static=yes ;;
4875 no) enable_static=no ;;
4876 *)
4877 enable_static=no
4878 # Look at the argument we got. We use all the common list separators.
4879 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4880 for pkg in $enableval; do
4881 IFS=$lt_save_ifs
4882 if test "X$pkg" = "X$p"; then
4883 enable_static=yes
4884 fi
4885 done
4886 IFS=$lt_save_ifs
4887 ;;
4888 esac
4889 else
4890 enable_static=no
4891 fi
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901 case `pwd` in
4902 *\ * | *\ *)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4904 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4905 esac
4906
4907
4908
4909 macro_version='2.4.6'
4910 macro_revision='2.4.6'
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924 ltmain=$ac_aux_dir/ltmain.sh
4925
4926 # Backslashify metacharacters that are still active within
4927 # double-quoted strings.
4928 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4929
4930 # Same as above, but do not quote variable references.
4931 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4932
4933 # Sed substitution to delay expansion of an escaped shell variable in a
4934 # double_quote_subst'ed string.
4935 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4936
4937 # Sed substitution to delay expansion of an escaped single quote.
4938 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4939
4940 # Sed substitution to avoid accidental globbing in evaled expressions
4941 no_glob_subst='s/\*/\\\*/g'
4942
4943 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4944 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4945 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4946
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4948 $as_echo_n "checking how to print strings... " >&6; }
4949 # Test print first, because it will be a builtin if present.
4950 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4951 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4952 ECHO='print -r --'
4953 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4954 ECHO='printf %s\n'
4955 else
4956 # Use this function as a fallback that always works.
4957 func_fallback_echo ()
4958 {
4959 eval 'cat <<_LTECHO_EOF
4960 $1
4961 _LTECHO_EOF'
4962 }
4963 ECHO='func_fallback_echo'
4964 fi
4965
4966 # func_echo_all arg...
4967 # Invoke $ECHO with all args, space-separated.
4968 func_echo_all ()
4969 {
4970 $ECHO ""
4971 }
4972
4973 case $ECHO in
4974 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4975 $as_echo "printf" >&6; } ;;
4976 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4977 $as_echo "print -r" >&6; } ;;
4978 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4979 $as_echo "cat" >&6; } ;;
4980 esac
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4996 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4997 if ${ac_cv_path_SED+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5001 for ac_i in 1 2 3 4 5 6 7; do
5002 ac_script="$ac_script$as_nl$ac_script"
5003 done
5004 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5005 { ac_script=; unset ac_script;}
5006 if test -z "$SED"; then
5007 ac_path_SED_found=false
5008 # Loop through the user's path and test for each of PROGNAME-LIST
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_prog in sed gsed; do
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5017 as_fn_executable_p "$ac_path_SED" || continue
5018 # Check for GNU ac_path_SED and select it if it is found.
5019 # Check for GNU $ac_path_SED
5020 case `"$ac_path_SED" --version 2>&1` in
5021 *GNU*)
5022 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5023 *)
5024 ac_count=0
5025 $as_echo_n 0123456789 >"conftest.in"
5026 while :
5027 do
5028 cat "conftest.in" "conftest.in" >"conftest.tmp"
5029 mv "conftest.tmp" "conftest.in"
5030 cp "conftest.in" "conftest.nl"
5031 $as_echo '' >> "conftest.nl"
5032 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5034 as_fn_arith $ac_count + 1 && ac_count=$as_val
5035 if test $ac_count -gt ${ac_path_SED_max-0}; then
5036 # Best one so far, save it but keep looking for a better one
5037 ac_cv_path_SED="$ac_path_SED"
5038 ac_path_SED_max=$ac_count
5039 fi
5040 # 10*(2^10) chars as input seems more than enough
5041 test $ac_count -gt 10 && break
5042 done
5043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5044 esac
5045
5046 $ac_path_SED_found && break 3
5047 done
5048 done
5049 done
5050 IFS=$as_save_IFS
5051 if test -z "$ac_cv_path_SED"; then
5052 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5053 fi
5054 else
5055 ac_cv_path_SED=$SED
5056 fi
5057
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5060 $as_echo "$ac_cv_path_SED" >&6; }
5061 SED="$ac_cv_path_SED"
5062 rm -f conftest.sed
5063
5064 test -z "$SED" && SED=sed
5065 Xsed="$SED -e 1s/^X//"
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5078 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5079 if ${ac_cv_path_GREP+:} false; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 if test -z "$GREP"; then
5083 ac_path_GREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in grep ggrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5093 as_fn_executable_p "$ac_path_GREP" || continue
5094 # Check for GNU ac_path_GREP and select it if it is found.
5095 # Check for GNU $ac_path_GREP
5096 case `"$ac_path_GREP" --version 2>&1` in
5097 *GNU*)
5098 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5099 *)
5100 ac_count=0
5101 $as_echo_n 0123456789 >"conftest.in"
5102 while :
5103 do
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 $as_echo 'GREP' >> "conftest.nl"
5108 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 as_fn_arith $ac_count + 1 && ac_count=$as_val
5111 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_GREP="$ac_path_GREP"
5114 ac_path_GREP_max=$ac_count
5115 fi
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5118 done
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5121
5122 $ac_path_GREP_found && break 3
5123 done
5124 done
5125 done
5126 IFS=$as_save_IFS
5127 if test -z "$ac_cv_path_GREP"; then
5128 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5129 fi
5130 else
5131 ac_cv_path_GREP=$GREP
5132 fi
5133
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5136 $as_echo "$ac_cv_path_GREP" >&6; }
5137 GREP="$ac_cv_path_GREP"
5138
5139
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5141 $as_echo_n "checking for egrep... " >&6; }
5142 if ${ac_cv_path_EGREP+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5146 then ac_cv_path_EGREP="$GREP -E"
5147 else
5148 if test -z "$EGREP"; then
5149 ac_path_EGREP_found=false
5150 # Loop through the user's path and test for each of PROGNAME-LIST
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5153 do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_prog in egrep; do
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5159 as_fn_executable_p "$ac_path_EGREP" || continue
5160 # Check for GNU ac_path_EGREP and select it if it is found.
5161 # Check for GNU $ac_path_EGREP
5162 case `"$ac_path_EGREP" --version 2>&1` in
5163 *GNU*)
5164 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5165 *)
5166 ac_count=0
5167 $as_echo_n 0123456789 >"conftest.in"
5168 while :
5169 do
5170 cat "conftest.in" "conftest.in" >"conftest.tmp"
5171 mv "conftest.tmp" "conftest.in"
5172 cp "conftest.in" "conftest.nl"
5173 $as_echo 'EGREP' >> "conftest.nl"
5174 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5176 as_fn_arith $ac_count + 1 && ac_count=$as_val
5177 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5178 # Best one so far, save it but keep looking for a better one
5179 ac_cv_path_EGREP="$ac_path_EGREP"
5180 ac_path_EGREP_max=$ac_count
5181 fi
5182 # 10*(2^10) chars as input seems more than enough
5183 test $ac_count -gt 10 && break
5184 done
5185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5186 esac
5187
5188 $ac_path_EGREP_found && break 3
5189 done
5190 done
5191 done
5192 IFS=$as_save_IFS
5193 if test -z "$ac_cv_path_EGREP"; then
5194 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5195 fi
5196 else
5197 ac_cv_path_EGREP=$EGREP
5198 fi
5199
5200 fi
5201 fi
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5203 $as_echo "$ac_cv_path_EGREP" >&6; }
5204 EGREP="$ac_cv_path_EGREP"
5205
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5208 $as_echo_n "checking for fgrep... " >&6; }
5209 if ${ac_cv_path_FGREP+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5213 then ac_cv_path_FGREP="$GREP -F"
5214 else
5215 if test -z "$FGREP"; then
5216 ac_path_FGREP_found=false
5217 # Loop through the user's path and test for each of PROGNAME-LIST
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5220 do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_prog in fgrep; do
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5226 as_fn_executable_p "$ac_path_FGREP" || continue
5227 # Check for GNU ac_path_FGREP and select it if it is found.
5228 # Check for GNU $ac_path_FGREP
5229 case `"$ac_path_FGREP" --version 2>&1` in
5230 *GNU*)
5231 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5232 *)
5233 ac_count=0
5234 $as_echo_n 0123456789 >"conftest.in"
5235 while :
5236 do
5237 cat "conftest.in" "conftest.in" >"conftest.tmp"
5238 mv "conftest.tmp" "conftest.in"
5239 cp "conftest.in" "conftest.nl"
5240 $as_echo 'FGREP' >> "conftest.nl"
5241 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5243 as_fn_arith $ac_count + 1 && ac_count=$as_val
5244 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5245 # Best one so far, save it but keep looking for a better one
5246 ac_cv_path_FGREP="$ac_path_FGREP"
5247 ac_path_FGREP_max=$ac_count
5248 fi
5249 # 10*(2^10) chars as input seems more than enough
5250 test $ac_count -gt 10 && break
5251 done
5252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5253 esac
5254
5255 $ac_path_FGREP_found && break 3
5256 done
5257 done
5258 done
5259 IFS=$as_save_IFS
5260 if test -z "$ac_cv_path_FGREP"; then
5261 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5262 fi
5263 else
5264 ac_cv_path_FGREP=$FGREP
5265 fi
5266
5267 fi
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5270 $as_echo "$ac_cv_path_FGREP" >&6; }
5271 FGREP="$ac_cv_path_FGREP"
5272
5273
5274 test -z "$GREP" && GREP=grep
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 # Check whether --with-gnu-ld was given.
5295 if test "${with_gnu_ld+set}" = set; then :
5296 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5297 else
5298 with_gnu_ld=no
5299 fi
5300
5301 ac_prog=ld
5302 if test yes = "$GCC"; then
5303 # Check if gcc -print-prog-name=ld gives a path.
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5305 $as_echo_n "checking for ld used by $CC... " >&6; }
5306 case $host in
5307 *-*-mingw*)
5308 # gcc leaves a trailing carriage return, which upsets mingw
5309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5310 *)
5311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5312 esac
5313 case $ac_prog in
5314 # Accept absolute paths.
5315 [\\/]* | ?:[\\/]*)
5316 re_direlt='/[^/][^/]*/\.\./'
5317 # Canonicalize the pathname of ld
5318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5321 done
5322 test -z "$LD" && LD=$ac_prog
5323 ;;
5324 "")
5325 # If it fails, then pretend we aren't using GCC.
5326 ac_prog=ld
5327 ;;
5328 *)
5329 # If it is relative, then search for the first ld in PATH.
5330 with_gnu_ld=unknown
5331 ;;
5332 esac
5333 elif test yes = "$with_gnu_ld"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5335 $as_echo_n "checking for GNU ld... " >&6; }
5336 else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5338 $as_echo_n "checking for non-GNU ld... " >&6; }
5339 fi
5340 if ${lt_cv_path_LD+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 if test -z "$LD"; then
5344 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5345 for ac_dir in $PATH; do
5346 IFS=$lt_save_ifs
5347 test -z "$ac_dir" && ac_dir=.
5348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5349 lt_cv_path_LD=$ac_dir/$ac_prog
5350 # Check to see if the program is GNU ld. I'd rather use --version,
5351 # but apparently some variants of GNU ld only accept -v.
5352 # Break only if it was the GNU/non-GNU ld that we prefer.
5353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5354 *GNU* | *'with BFD'*)
5355 test no != "$with_gnu_ld" && break
5356 ;;
5357 *)
5358 test yes != "$with_gnu_ld" && break
5359 ;;
5360 esac
5361 fi
5362 done
5363 IFS=$lt_save_ifs
5364 else
5365 lt_cv_path_LD=$LD # Let the user override the test with a path.
5366 fi
5367 fi
5368
5369 LD=$lt_cv_path_LD
5370 if test -n "$LD"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5372 $as_echo "$LD" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5379 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5380 if ${lt_cv_prog_gnu_ld+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5384 case `$LD -v 2>&1 </dev/null` in
5385 *GNU* | *'with BFD'*)
5386 lt_cv_prog_gnu_ld=yes
5387 ;;
5388 *)
5389 lt_cv_prog_gnu_ld=no
5390 ;;
5391 esac
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5394 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5395 with_gnu_ld=$lt_cv_prog_gnu_ld
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5406 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5407 if ${lt_cv_path_NM+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$NM"; then
5411 # Let the user override the test.
5412 lt_cv_path_NM=$NM
5413 else
5414 lt_nm_to_check=${ac_tool_prefix}nm
5415 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5416 lt_nm_to_check="$lt_nm_to_check nm"
5417 fi
5418 for lt_tmp_nm in $lt_nm_to_check; do
5419 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5420 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5421 IFS=$lt_save_ifs
5422 test -z "$ac_dir" && ac_dir=.
5423 tmp_nm=$ac_dir/$lt_tmp_nm
5424 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5425 # Check to see if the nm accepts a BSD-compat flag.
5426 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5427 # nm: unknown option "B" ignored
5428 # Tru64's nm complains that /dev/null is an invalid object file
5429 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5430 case $build_os in
5431 mingw*) lt_bad_file=conftest.nm/nofile ;;
5432 *) lt_bad_file=/dev/null ;;
5433 esac
5434 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5435 *$lt_bad_file* | *'Invalid file or object type'*)
5436 lt_cv_path_NM="$tmp_nm -B"
5437 break 2
5438 ;;
5439 *)
5440 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5441 */dev/null*)
5442 lt_cv_path_NM="$tmp_nm -p"
5443 break 2
5444 ;;
5445 *)
5446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5447 continue # so that we can try to find one that supports BSD flags
5448 ;;
5449 esac
5450 ;;
5451 esac
5452 fi
5453 done
5454 IFS=$lt_save_ifs
5455 done
5456 : ${lt_cv_path_NM=no}
5457 fi
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5460 $as_echo "$lt_cv_path_NM" >&6; }
5461 if test no != "$lt_cv_path_NM"; then
5462 NM=$lt_cv_path_NM
5463 else
5464 # Didn't find any BSD compatible name lister, look for dumpbin.
5465 if test -n "$DUMPBIN"; then :
5466 # Let the user override the test.
5467 else
5468 if test -n "$ac_tool_prefix"; then
5469 for ac_prog in dumpbin "link -dump"
5470 do
5471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_DUMPBIN+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$DUMPBIN"; then
5479 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 fi
5497 fi
5498 DUMPBIN=$ac_cv_prog_DUMPBIN
5499 if test -n "$DUMPBIN"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5501 $as_echo "$DUMPBIN" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507
5508 test -n "$DUMPBIN" && break
5509 done
5510 fi
5511 if test -z "$DUMPBIN"; then
5512 ac_ct_DUMPBIN=$DUMPBIN
5513 for ac_prog in dumpbin "link -dump"
5514 do
5515 # Extract the first word of "$ac_prog", so it can be a program name with args.
5516 set dummy $ac_prog; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$ac_ct_DUMPBIN"; then
5523 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536 done
5537 done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5543 if test -n "$ac_ct_DUMPBIN"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5545 $as_echo "$ac_ct_DUMPBIN" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552 test -n "$ac_ct_DUMPBIN" && break
5553 done
5554
5555 if test "x$ac_ct_DUMPBIN" = x; then
5556 DUMPBIN=":"
5557 else
5558 case $cross_compiling:$ac_tool_warned in
5559 yes:)
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 ac_tool_warned=yes ;;
5563 esac
5564 DUMPBIN=$ac_ct_DUMPBIN
5565 fi
5566 fi
5567
5568 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5569 *COFF*)
5570 DUMPBIN="$DUMPBIN -symbols -headers"
5571 ;;
5572 *)
5573 DUMPBIN=:
5574 ;;
5575 esac
5576 fi
5577
5578 if test : != "$DUMPBIN"; then
5579 NM=$DUMPBIN
5580 fi
5581 fi
5582 test -z "$NM" && NM=nm
5583
5584
5585
5586
5587
5588
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5590 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5591 if ${lt_cv_nm_interface+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 lt_cv_nm_interface="BSD nm"
5595 echo "int some_variable = 0;" > conftest.$ac_ext
5596 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5597 (eval "$ac_compile" 2>conftest.err)
5598 cat conftest.err >&5
5599 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5600 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5601 cat conftest.err >&5
5602 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5603 cat conftest.out >&5
5604 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5605 lt_cv_nm_interface="MS dumpbin"
5606 fi
5607 rm -f conftest*
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5610 $as_echo "$lt_cv_nm_interface" >&6; }
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5613 $as_echo_n "checking whether ln -s works... " >&6; }
5614 LN_S=$as_ln_s
5615 if test "$LN_S" = "ln -s"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5617 $as_echo "yes" >&6; }
5618 else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5620 $as_echo "no, using $LN_S" >&6; }
5621 fi
5622
5623 # find the maximum length of command line arguments
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5625 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5626 if ${lt_cv_sys_max_cmd_len+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 i=0
5630 teststring=ABCD
5631
5632 case $build_os in
5633 msdosdjgpp*)
5634 # On DJGPP, this test can blow up pretty badly due to problems in libc
5635 # (any single argument exceeding 2000 bytes causes a buffer overrun
5636 # during glob expansion). Even if it were fixed, the result of this
5637 # check would be larger than it should be.
5638 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5639 ;;
5640
5641 gnu*)
5642 # Under GNU Hurd, this test is not required because there is
5643 # no limit to the length of command line arguments.
5644 # Libtool will interpret -1 as no limit whatsoever
5645 lt_cv_sys_max_cmd_len=-1;
5646 ;;
5647
5648 cygwin* | mingw* | cegcc*)
5649 # On Win9x/ME, this test blows up -- it succeeds, but takes
5650 # about 5 minutes as the teststring grows exponentially.
5651 # Worse, since 9x/ME are not pre-emptively multitasking,
5652 # you end up with a "frozen" computer, even though with patience
5653 # the test eventually succeeds (with a max line length of 256k).
5654 # Instead, let's just punt: use the minimum linelength reported by
5655 # all of the supported platforms: 8192 (on NT/2K/XP).
5656 lt_cv_sys_max_cmd_len=8192;
5657 ;;
5658
5659 mint*)
5660 # On MiNT this can take a long time and run out of memory.
5661 lt_cv_sys_max_cmd_len=8192;
5662 ;;
5663
5664 amigaos*)
5665 # On AmigaOS with pdksh, this test takes hours, literally.
5666 # So we just punt and use a minimum line length of 8192.
5667 lt_cv_sys_max_cmd_len=8192;
5668 ;;
5669
5670 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5671 # This has been around since 386BSD, at least. Likely further.
5672 if test -x /sbin/sysctl; then
5673 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5674 elif test -x /usr/sbin/sysctl; then
5675 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5676 else
5677 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5678 fi
5679 # And add a safety zone
5680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5682 ;;
5683
5684 interix*)
5685 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5686 lt_cv_sys_max_cmd_len=196608
5687 ;;
5688
5689 os2*)
5690 # The test takes a long time on OS/2.
5691 lt_cv_sys_max_cmd_len=8192
5692 ;;
5693
5694 osf*)
5695 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5696 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5697 # nice to cause kernel panics so lets avoid the loop below.
5698 # First set a reasonable default.
5699 lt_cv_sys_max_cmd_len=16384
5700 #
5701 if test -x /sbin/sysconfig; then
5702 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5703 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5704 esac
5705 fi
5706 ;;
5707 sco3.2v5*)
5708 lt_cv_sys_max_cmd_len=102400
5709 ;;
5710 sysv5* | sco5v6* | sysv4.2uw2*)
5711 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5712 if test -n "$kargmax"; then
5713 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5714 else
5715 lt_cv_sys_max_cmd_len=32768
5716 fi
5717 ;;
5718 *)
5719 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5720 if test -n "$lt_cv_sys_max_cmd_len" && \
5721 test undefined != "$lt_cv_sys_max_cmd_len"; then
5722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5724 else
5725 # Make teststring a little bigger before we do anything with it.
5726 # a 1K string should be a reasonable start.
5727 for i in 1 2 3 4 5 6 7 8; do
5728 teststring=$teststring$teststring
5729 done
5730 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5731 # If test is not a shell built-in, we'll probably end up computing a
5732 # maximum length that is only half of the actual maximum length, but
5733 # we can't tell.
5734 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5735 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5736 test 17 != "$i" # 1/2 MB should be enough
5737 do
5738 i=`expr $i + 1`
5739 teststring=$teststring$teststring
5740 done
5741 # Only check the string length outside the loop.
5742 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5743 teststring=
5744 # Add a significant safety factor because C++ compilers can tack on
5745 # massive amounts of additional arguments before passing them to the
5746 # linker. It appears as though 1/2 is a usable value.
5747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5748 fi
5749 ;;
5750 esac
5751
5752 fi
5753
5754 if test -n "$lt_cv_sys_max_cmd_len"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5756 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5759 $as_echo "none" >&6; }
5760 fi
5761 max_cmd_len=$lt_cv_sys_max_cmd_len
5762
5763
5764
5765
5766
5767
5768 : ${CP="cp -f"}
5769 : ${MV="mv -f"}
5770 : ${RM="rm -f"}
5771
5772 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5773 lt_unset=unset
5774 else
5775 lt_unset=false
5776 fi
5777
5778
5779
5780
5781
5782 # test EBCDIC or ASCII
5783 case `echo X|tr X '\101'` in
5784 A) # ASCII based system
5785 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5786 lt_SP2NL='tr \040 \012'
5787 lt_NL2SP='tr \015\012 \040\040'
5788 ;;
5789 *) # EBCDIC based system
5790 lt_SP2NL='tr \100 \n'
5791 lt_NL2SP='tr \r\n \100\100'
5792 ;;
5793 esac
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5804 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5805 if ${lt_cv_to_host_file_cmd+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 case $host in
5809 *-*-mingw* )
5810 case $build in
5811 *-*-mingw* ) # actually msys
5812 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5813 ;;
5814 *-*-cygwin* )
5815 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5816 ;;
5817 * ) # otherwise, assume *nix
5818 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5819 ;;
5820 esac
5821 ;;
5822 *-*-cygwin* )
5823 case $build in
5824 *-*-mingw* ) # actually msys
5825 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5826 ;;
5827 *-*-cygwin* )
5828 lt_cv_to_host_file_cmd=func_convert_file_noop
5829 ;;
5830 * ) # otherwise, assume *nix
5831 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5832 ;;
5833 esac
5834 ;;
5835 * ) # unhandled hosts (and "normal" native builds)
5836 lt_cv_to_host_file_cmd=func_convert_file_noop
5837 ;;
5838 esac
5839
5840 fi
5841
5842 to_host_file_cmd=$lt_cv_to_host_file_cmd
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5844 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5845
5846
5847
5848
5849
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5851 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5852 if ${lt_cv_to_tool_file_cmd+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 #assume ordinary cross tools, or native build.
5856 lt_cv_to_tool_file_cmd=func_convert_file_noop
5857 case $host in
5858 *-*-mingw* )
5859 case $build in
5860 *-*-mingw* ) # actually msys
5861 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5862 ;;
5863 esac
5864 ;;
5865 esac
5866
5867 fi
5868
5869 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5871 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5872
5873
5874
5875
5876
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5878 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5879 if ${lt_cv_ld_reload_flag+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 lt_cv_ld_reload_flag='-r'
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5885 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5886 reload_flag=$lt_cv_ld_reload_flag
5887 case $reload_flag in
5888 "" | " "*) ;;
5889 *) reload_flag=" $reload_flag" ;;
5890 esac
5891 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5892 case $host_os in
5893 cygwin* | mingw* | pw32* | cegcc*)
5894 if test yes != "$GCC"; then
5895 reload_cmds=false
5896 fi
5897 ;;
5898 darwin*)
5899 if test yes = "$GCC"; then
5900 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5901 else
5902 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5903 fi
5904 ;;
5905 esac
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915 if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5917 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_OBJDUMP+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$OBJDUMP"; then
5924 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 OBJDUMP=$ac_cv_prog_OBJDUMP
5944 if test -n "$OBJDUMP"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5946 $as_echo "$OBJDUMP" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5950 fi
5951
5952
5953 fi
5954 if test -z "$ac_cv_prog_OBJDUMP"; then
5955 ac_ct_OBJDUMP=$OBJDUMP
5956 # Extract the first word of "objdump", so it can be a program name with args.
5957 set dummy objdump; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$ac_ct_OBJDUMP"; then
5964 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5984 if test -n "$ac_ct_OBJDUMP"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5986 $as_echo "$ac_ct_OBJDUMP" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992 if test "x$ac_ct_OBJDUMP" = x; then
5993 OBJDUMP="false"
5994 else
5995 case $cross_compiling:$ac_tool_warned in
5996 yes:)
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999 ac_tool_warned=yes ;;
6000 esac
6001 OBJDUMP=$ac_ct_OBJDUMP
6002 fi
6003 else
6004 OBJDUMP="$ac_cv_prog_OBJDUMP"
6005 fi
6006
6007 test -z "$OBJDUMP" && OBJDUMP=objdump
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6018 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6019 if ${lt_cv_deplibs_check_method+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 lt_cv_file_magic_cmd='$MAGIC_CMD'
6023 lt_cv_file_magic_test_file=
6024 lt_cv_deplibs_check_method='unknown'
6025 # Need to set the preceding variable on all platforms that support
6026 # interlibrary dependencies.
6027 # 'none' -- dependencies not supported.
6028 # 'unknown' -- same as none, but documents that we really don't know.
6029 # 'pass_all' -- all dependencies passed with no checks.
6030 # 'test_compile' -- check by making test program.
6031 # 'file_magic [[regex]]' -- check by looking for files in library path
6032 # that responds to the $file_magic_cmd with a given extended regex.
6033 # If you have 'file' or equivalent on your system and you're not sure
6034 # whether 'pass_all' will *always* work, you probably want this one.
6035
6036 case $host_os in
6037 aix[4-9]*)
6038 lt_cv_deplibs_check_method=pass_all
6039 ;;
6040
6041 beos*)
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044
6045 bsdi[45]*)
6046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6047 lt_cv_file_magic_cmd='/usr/bin/file -L'
6048 lt_cv_file_magic_test_file=/shlib/libc.so
6049 ;;
6050
6051 cygwin*)
6052 # func_win32_libid is a shell function defined in ltmain.sh
6053 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6054 lt_cv_file_magic_cmd='func_win32_libid'
6055 ;;
6056
6057 mingw* | pw32*)
6058 # Base MSYS/MinGW do not provide the 'file' command needed by
6059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6060 # unless we find 'file', for example because we are cross-compiling.
6061 if ( file / ) >/dev/null 2>&1; then
6062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6063 lt_cv_file_magic_cmd='func_win32_libid'
6064 else
6065 # Keep this pattern in sync with the one in func_win32_libid.
6066 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6067 lt_cv_file_magic_cmd='$OBJDUMP -f'
6068 fi
6069 ;;
6070
6071 cegcc*)
6072 # use the weaker test based on 'objdump'. See mingw*.
6073 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6074 lt_cv_file_magic_cmd='$OBJDUMP -f'
6075 ;;
6076
6077 darwin* | rhapsody*)
6078 lt_cv_deplibs_check_method=pass_all
6079 ;;
6080
6081 freebsd* | dragonfly*)
6082 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6083 case $host_cpu in
6084 i*86 )
6085 # Not sure whether the presence of OpenBSD here was a mistake.
6086 # Let's accept both of them until this is cleared up.
6087 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6088 lt_cv_file_magic_cmd=/usr/bin/file
6089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6090 ;;
6091 esac
6092 else
6093 lt_cv_deplibs_check_method=pass_all
6094 fi
6095 ;;
6096
6097 haiku*)
6098 lt_cv_deplibs_check_method=pass_all
6099 ;;
6100
6101 hpux10.20* | hpux11*)
6102 lt_cv_file_magic_cmd=/usr/bin/file
6103 case $host_cpu in
6104 ia64*)
6105 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6106 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6107 ;;
6108 hppa*64*)
6109 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]'
6110 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6111 ;;
6112 *)
6113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6114 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6115 ;;
6116 esac
6117 ;;
6118
6119 interix[3-9]*)
6120 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6122 ;;
6123
6124 irix5* | irix6* | nonstopux*)
6125 case $LD in
6126 *-32|*"-32 ") libmagic=32-bit;;
6127 *-n32|*"-n32 ") libmagic=N32;;
6128 *-64|*"-64 ") libmagic=64-bit;;
6129 *) libmagic=never-match;;
6130 esac
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133
6134 # This must be glibc/ELF.
6135 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6136 lt_cv_deplibs_check_method=pass_all
6137 ;;
6138
6139 netbsd* | netbsdelf*-gnu)
6140 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6142 else
6143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6144 fi
6145 ;;
6146
6147 newos6*)
6148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6149 lt_cv_file_magic_cmd=/usr/bin/file
6150 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6151 ;;
6152
6153 *nto* | *qnx*)
6154 lt_cv_deplibs_check_method=pass_all
6155 ;;
6156
6157 openbsd* | bitrig*)
6158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6160 else
6161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6162 fi
6163 ;;
6164
6165 osf3* | osf4* | osf5*)
6166 lt_cv_deplibs_check_method=pass_all
6167 ;;
6168
6169 rdos*)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172
6173 solaris*)
6174 lt_cv_deplibs_check_method=pass_all
6175 ;;
6176
6177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
6180
6181 sysv4 | sysv4.3*)
6182 case $host_vendor in
6183 motorola)
6184 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]'
6185 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6186 ;;
6187 ncr)
6188 lt_cv_deplibs_check_method=pass_all
6189 ;;
6190 sequent)
6191 lt_cv_file_magic_cmd='/bin/file'
6192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6193 ;;
6194 sni)
6195 lt_cv_file_magic_cmd='/bin/file'
6196 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6197 lt_cv_file_magic_test_file=/lib/libc.so
6198 ;;
6199 siemens)
6200 lt_cv_deplibs_check_method=pass_all
6201 ;;
6202 pc)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205 esac
6206 ;;
6207
6208 tpf*)
6209 lt_cv_deplibs_check_method=pass_all
6210 ;;
6211 os2*)
6212 lt_cv_deplibs_check_method=pass_all
6213 ;;
6214 esac
6215
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6218 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6219
6220 file_magic_glob=
6221 want_nocaseglob=no
6222 if test "$build" = "$host"; then
6223 case $host_os in
6224 mingw* | pw32*)
6225 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6226 want_nocaseglob=yes
6227 else
6228 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6229 fi
6230 ;;
6231 esac
6232 fi
6233
6234 file_magic_cmd=$lt_cv_file_magic_cmd
6235 deplibs_check_method=$lt_cv_deplibs_check_method
6236 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_DLLTOOL+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 if test -n "$DLLTOOL"; then
6268 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 DLLTOOL=$ac_cv_prog_DLLTOOL
6288 if test -n "$DLLTOOL"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6290 $as_echo "$DLLTOOL" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297 fi
6298 if test -z "$ac_cv_prog_DLLTOOL"; then
6299 ac_ct_DLLTOOL=$DLLTOOL
6300 # Extract the first word of "dlltool", so it can be a program name with args.
6301 set dummy dlltool; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$ac_ct_DLLTOOL"; then
6308 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6328 if test -n "$ac_ct_DLLTOOL"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6330 $as_echo "$ac_ct_DLLTOOL" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336 if test "x$ac_ct_DLLTOOL" = x; then
6337 DLLTOOL="false"
6338 else
6339 case $cross_compiling:$ac_tool_warned in
6340 yes:)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned=yes ;;
6344 esac
6345 DLLTOOL=$ac_ct_DLLTOOL
6346 fi
6347 else
6348 DLLTOOL="$ac_cv_prog_DLLTOOL"
6349 fi
6350
6351 test -z "$DLLTOOL" && DLLTOOL=dlltool
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6363 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6364 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 lt_cv_sharedlib_from_linklib_cmd='unknown'
6368
6369 case $host_os in
6370 cygwin* | mingw* | pw32* | cegcc*)
6371 # two different shell functions defined in ltmain.sh;
6372 # decide which one to use based on capabilities of $DLLTOOL
6373 case `$DLLTOOL --help 2>&1` in
6374 *--identify-strict*)
6375 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6376 ;;
6377 *)
6378 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6379 ;;
6380 esac
6381 ;;
6382 *)
6383 # fallback: assume linklib IS sharedlib
6384 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6385 ;;
6386 esac
6387
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6390 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6391 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6392 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6393
6394
6395
6396
6397
6398
6399
6400 if test -n "$ac_tool_prefix"; then
6401 for ac_prog in ar
6402 do
6403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_AR+:} false; then :
6408 $as_echo_n "(cached) " >&6
6409 else
6410 if test -n "$AR"; then
6411 ac_cv_prog_AR="$AR" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6423 fi
6424 done
6425 done
6426 IFS=$as_save_IFS
6427
6428 fi
6429 fi
6430 AR=$ac_cv_prog_AR
6431 if test -n "$AR"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6433 $as_echo "$AR" >&6; }
6434 else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6437 fi
6438
6439
6440 test -n "$AR" && break
6441 done
6442 fi
6443 if test -z "$AR"; then
6444 ac_ct_AR=$AR
6445 for ac_prog in ar
6446 do
6447 # Extract the first word of "$ac_prog", so it can be a program name with args.
6448 set dummy $ac_prog; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$ac_ct_AR"; then
6455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_ac_ct_AR="$ac_prog"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6475 if test -n "$ac_ct_AR"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6477 $as_echo "$ac_ct_AR" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483
6484 test -n "$ac_ct_AR" && break
6485 done
6486
6487 if test "x$ac_ct_AR" = x; then
6488 AR="false"
6489 else
6490 case $cross_compiling:$ac_tool_warned in
6491 yes:)
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494 ac_tool_warned=yes ;;
6495 esac
6496 AR=$ac_ct_AR
6497 fi
6498 fi
6499
6500 : ${AR=ar}
6501 : ${AR_FLAGS=cr}
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6514 $as_echo_n "checking for archiver @FILE support... " >&6; }
6515 if ${lt_cv_ar_at_file+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 lt_cv_ar_at_file=no
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521
6522 int
6523 main ()
6524 {
6525
6526 ;
6527 return 0;
6528 }
6529 _ACEOF
6530 if ac_fn_c_try_compile "$LINENO"; then :
6531 echo conftest.$ac_objext > conftest.lst
6532 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6534 (eval $lt_ar_try) 2>&5
6535 ac_status=$?
6536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537 test $ac_status = 0; }
6538 if test 0 -eq "$ac_status"; then
6539 # Ensure the archiver fails upon bogus file names.
6540 rm -f conftest.$ac_objext libconftest.a
6541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6542 (eval $lt_ar_try) 2>&5
6543 ac_status=$?
6544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545 test $ac_status = 0; }
6546 if test 0 -ne "$ac_status"; then
6547 lt_cv_ar_at_file=@
6548 fi
6549 fi
6550 rm -f conftest.* libconftest.a
6551
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6557 $as_echo "$lt_cv_ar_at_file" >&6; }
6558
6559 if test no = "$lt_cv_ar_at_file"; then
6560 archiver_list_spec=
6561 else
6562 archiver_list_spec=$lt_cv_ar_at_file
6563 fi
6564
6565
6566
6567
6568
6569
6570
6571 if test -n "$ac_tool_prefix"; then
6572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6573 set dummy ${ac_tool_prefix}strip; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_prog_STRIP+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 if test -n "$STRIP"; then
6580 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 STRIP=$ac_cv_prog_STRIP
6600 if test -n "$STRIP"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6602 $as_echo "$STRIP" >&6; }
6603 else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6606 fi
6607
6608
6609 fi
6610 if test -z "$ac_cv_prog_STRIP"; then
6611 ac_ct_STRIP=$STRIP
6612 # Extract the first word of "strip", so it can be a program name with args.
6613 set dummy strip; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 if test -n "$ac_ct_STRIP"; then
6620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_ac_ct_STRIP="strip"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6640 if test -n "$ac_ct_STRIP"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6642 $as_echo "$ac_ct_STRIP" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648 if test "x$ac_ct_STRIP" = x; then
6649 STRIP=":"
6650 else
6651 case $cross_compiling:$ac_tool_warned in
6652 yes:)
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655 ac_tool_warned=yes ;;
6656 esac
6657 STRIP=$ac_ct_STRIP
6658 fi
6659 else
6660 STRIP="$ac_cv_prog_STRIP"
6661 fi
6662
6663 test -z "$STRIP" && STRIP=:
6664
6665
6666
6667
6668
6669
6670 if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if ${ac_cv_prog_RANLIB+:} false; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 if test -n "$RANLIB"; then
6679 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 RANLIB=$ac_cv_prog_RANLIB
6699 if test -n "$RANLIB"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6701 $as_echo "$RANLIB" >&6; }
6702 else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6705 fi
6706
6707
6708 fi
6709 if test -z "$ac_cv_prog_RANLIB"; then
6710 ac_ct_RANLIB=$RANLIB
6711 # Extract the first word of "ranlib", so it can be a program name with args.
6712 set dummy ranlib; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 if test -n "$ac_ct_RANLIB"; then
6719 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_ac_ct_RANLIB="ranlib"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6739 if test -n "$ac_ct_RANLIB"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6741 $as_echo "$ac_ct_RANLIB" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746
6747 if test "x$ac_ct_RANLIB" = x; then
6748 RANLIB=":"
6749 else
6750 case $cross_compiling:$ac_tool_warned in
6751 yes:)
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754 ac_tool_warned=yes ;;
6755 esac
6756 RANLIB=$ac_ct_RANLIB
6757 fi
6758 else
6759 RANLIB="$ac_cv_prog_RANLIB"
6760 fi
6761
6762 test -z "$RANLIB" && RANLIB=:
6763
6764
6765
6766
6767
6768
6769 # Determine commands to create old-style static archives.
6770 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6771 old_postinstall_cmds='chmod 644 $oldlib'
6772 old_postuninstall_cmds=
6773
6774 if test -n "$RANLIB"; then
6775 case $host_os in
6776 bitrig* | openbsd*)
6777 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6778 ;;
6779 *)
6780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6781 ;;
6782 esac
6783 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6784 fi
6785
6786 case $host_os in
6787 darwin*)
6788 lock_old_archive_extraction=yes ;;
6789 *)
6790 lock_old_archive_extraction=no ;;
6791 esac
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831 # If no C compiler was specified, use CC.
6832 LTCC=${LTCC-"$CC"}
6833
6834 # If no C compiler flags were specified, use CFLAGS.
6835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6836
6837 # Allow CC to be a program name with arguments.
6838 compiler=$CC
6839
6840
6841 # Check for command to grab the raw symbol name followed by C symbol from nm.
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6843 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6844 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847
6848 # These are sane defaults that work on at least a few old systems.
6849 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6850
6851 # Character class describing NM global symbol codes.
6852 symcode='[BCDEGRST]'
6853
6854 # Regexp to match symbols that can be accessed directly from C.
6855 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6856
6857 # Define system-specific variables.
6858 case $host_os in
6859 aix*)
6860 symcode='[BCDT]'
6861 ;;
6862 cygwin* | mingw* | pw32* | cegcc*)
6863 symcode='[ABCDGISTW]'
6864 ;;
6865 hpux*)
6866 if test ia64 = "$host_cpu"; then
6867 symcode='[ABCDEGRST]'
6868 fi
6869 ;;
6870 irix* | nonstopux*)
6871 symcode='[BCDEGRST]'
6872 ;;
6873 osf*)
6874 symcode='[BCDEGQRST]'
6875 ;;
6876 solaris*)
6877 symcode='[BDRT]'
6878 ;;
6879 sco3.2v5*)
6880 symcode='[DT]'
6881 ;;
6882 sysv4.2uw2*)
6883 symcode='[DT]'
6884 ;;
6885 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6886 symcode='[ABDT]'
6887 ;;
6888 sysv4)
6889 symcode='[DFNSTU]'
6890 ;;
6891 esac
6892
6893 # If we're using GNU nm, then use its standard symbol codes.
6894 case `$NM -V 2>&1` in
6895 *GNU* | *'with BFD'*)
6896 symcode='[ABCDGIRSTW]' ;;
6897 esac
6898
6899 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6900 # Gets list of data symbols to import.
6901 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6902 # Adjust the below global symbol transforms to fixup imported variables.
6903 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6904 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6905 lt_c_name_lib_hook="\
6906 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6907 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6908 else
6909 # Disable hooks by default.
6910 lt_cv_sys_global_symbol_to_import=
6911 lt_cdecl_hook=
6912 lt_c_name_hook=
6913 lt_c_name_lib_hook=
6914 fi
6915
6916 # Transform an extracted symbol line into a proper C declaration.
6917 # Some systems (esp. on ia64) link data and code symbols differently,
6918 # so use this general approach.
6919 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6920 $lt_cdecl_hook\
6921 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6922 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6923
6924 # Transform an extracted symbol line into symbol name and symbol address
6925 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6926 $lt_c_name_hook\
6927 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6928 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6929
6930 # Transform an extracted symbol line into symbol name with lib prefix and
6931 # symbol address.
6932 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6933 $lt_c_name_lib_hook\
6934 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6935 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6936 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6937
6938 # Handle CRLF in mingw tool chain
6939 opt_cr=
6940 case $build_os in
6941 mingw*)
6942 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6943 ;;
6944 esac
6945
6946 # Try without a prefix underscore, then with it.
6947 for ac_symprfx in "" "_"; do
6948
6949 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6950 symxfrm="\\1 $ac_symprfx\\2 \\2"
6951
6952 # Write the raw and C identifiers.
6953 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6954 # Fake it for dumpbin and say T for any non-static function,
6955 # D for any global variable and I for any imported variable.
6956 # Also find C++ and __fastcall symbols from MSVC++,
6957 # which start with @ or ?.
6958 lt_cv_sys_global_symbol_pipe="$AWK '"\
6959 " {last_section=section; section=\$ 3};"\
6960 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6961 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6962 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6963 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6964 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6965 " \$ 0!~/External *\|/{next};"\
6966 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6967 " {if(hide[section]) next};"\
6968 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6969 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6970 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6971 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6972 " ' prfx=^$ac_symprfx"
6973 else
6974 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6975 fi
6976 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6977
6978 # Check to see that the pipe works correctly.
6979 pipe_works=no
6980
6981 rm -f conftest*
6982 cat > conftest.$ac_ext <<_LT_EOF
6983 #ifdef __cplusplus
6984 extern "C" {
6985 #endif
6986 char nm_test_var;
6987 void nm_test_func(void);
6988 void nm_test_func(void){}
6989 #ifdef __cplusplus
6990 }
6991 #endif
6992 int main(){nm_test_var='a';nm_test_func();return(0);}
6993 _LT_EOF
6994
6995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6996 (eval $ac_compile) 2>&5
6997 ac_status=$?
6998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6999 test $ac_status = 0; }; then
7000 # Now try to grab the symbols.
7001 nlist=conftest.nm
7002 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7003 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7004 # Try sorting and uniquifying the output.
7005 if sort "$nlist" | uniq > "$nlist"T; then
7006 mv -f "$nlist"T "$nlist"
7007 else
7008 rm -f "$nlist"T
7009 fi
7010
7011 # Make sure that we snagged all the symbols we need.
7012 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7013 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7014 cat <<_LT_EOF > conftest.$ac_ext
7015 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7016 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7017 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7018 relocations are performed -- see ld's documentation on pseudo-relocs. */
7019 # define LT_DLSYM_CONST
7020 #elif defined __osf__
7021 /* This system does not cope well with relocations in const data. */
7022 # define LT_DLSYM_CONST
7023 #else
7024 # define LT_DLSYM_CONST const
7025 #endif
7026
7027 #ifdef __cplusplus
7028 extern "C" {
7029 #endif
7030
7031 _LT_EOF
7032 # Now generate the symbol file.
7033 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7034
7035 cat <<_LT_EOF >> conftest.$ac_ext
7036
7037 /* The mapping between symbol names and symbols. */
7038 LT_DLSYM_CONST struct {
7039 const char *name;
7040 void *address;
7041 }
7042 lt__PROGRAM__LTX_preloaded_symbols[] =
7043 {
7044 { "@PROGRAM@", (void *) 0 },
7045 _LT_EOF
7046 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7047 cat <<\_LT_EOF >> conftest.$ac_ext
7048 {0, (void *) 0}
7049 };
7050
7051 /* This works around a problem in FreeBSD linker */
7052 #ifdef FREEBSD_WORKAROUND
7053 static const void *lt_preloaded_setup() {
7054 return lt__PROGRAM__LTX_preloaded_symbols;
7055 }
7056 #endif
7057
7058 #ifdef __cplusplus
7059 }
7060 #endif
7061 _LT_EOF
7062 # Now try linking the two files.
7063 mv conftest.$ac_objext conftstm.$ac_objext
7064 lt_globsym_save_LIBS=$LIBS
7065 lt_globsym_save_CFLAGS=$CFLAGS
7066 LIBS=conftstm.$ac_objext
7067 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7069 (eval $ac_link) 2>&5
7070 ac_status=$?
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7073 pipe_works=yes
7074 fi
7075 LIBS=$lt_globsym_save_LIBS
7076 CFLAGS=$lt_globsym_save_CFLAGS
7077 else
7078 echo "cannot find nm_test_func in $nlist" >&5
7079 fi
7080 else
7081 echo "cannot find nm_test_var in $nlist" >&5
7082 fi
7083 else
7084 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7085 fi
7086 else
7087 echo "$progname: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7089 fi
7090 rm -rf conftest* conftst*
7091
7092 # Do not use the global_symbol_pipe unless it works.
7093 if test yes = "$pipe_works"; then
7094 break
7095 else
7096 lt_cv_sys_global_symbol_pipe=
7097 fi
7098 done
7099
7100 fi
7101
7102 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7103 lt_cv_sys_global_symbol_to_cdecl=
7104 fi
7105 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7107 $as_echo "failed" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7110 $as_echo "ok" >&6; }
7111 fi
7112
7113 # Response file support.
7114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7115 nm_file_list_spec='@'
7116 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7117 nm_file_list_spec='@'
7118 fi
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7157 $as_echo_n "checking for sysroot... " >&6; }
7158
7159 # Check whether --with-sysroot was given.
7160 if test "${with_sysroot+set}" = set; then :
7161 withval=$with_sysroot;
7162 else
7163 with_sysroot=no
7164 fi
7165
7166
7167 lt_sysroot=
7168 case $with_sysroot in #(
7169 yes)
7170 if test yes = "$GCC"; then
7171 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7172 fi
7173 ;; #(
7174 /*)
7175 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7176 ;; #(
7177 no|'')
7178 ;; #(
7179 *)
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7181 $as_echo "$with_sysroot" >&6; }
7182 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7183 ;;
7184 esac
7185
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7187 $as_echo "${lt_sysroot:-no}" >&6; }
7188
7189
7190
7191
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7194 $as_echo_n "checking for a working dd... " >&6; }
7195 if ${ac_cv_path_lt_DD+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 printf 0123456789abcdef0123456789abcdef >conftest.i
7199 cat conftest.i conftest.i >conftest2.i
7200 : ${lt_DD:=$DD}
7201 if test -z "$lt_DD"; then
7202 ac_path_lt_DD_found=false
7203 # Loop through the user's path and test for each of PROGNAME-LIST
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_prog in dd; do
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7212 as_fn_executable_p "$ac_path_lt_DD" || continue
7213 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7214 cmp -s conftest.i conftest.out \
7215 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7216 fi
7217 $ac_path_lt_DD_found && break 3
7218 done
7219 done
7220 done
7221 IFS=$as_save_IFS
7222 if test -z "$ac_cv_path_lt_DD"; then
7223 :
7224 fi
7225 else
7226 ac_cv_path_lt_DD=$lt_DD
7227 fi
7228
7229 rm -f conftest.i conftest2.i conftest.out
7230 fi
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7232 $as_echo "$ac_cv_path_lt_DD" >&6; }
7233
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7236 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7237 if ${lt_cv_truncate_bin+:} false; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 printf 0123456789abcdef0123456789abcdef >conftest.i
7241 cat conftest.i conftest.i >conftest2.i
7242 lt_cv_truncate_bin=
7243 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7244 cmp -s conftest.i conftest.out \
7245 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7246 fi
7247 rm -f conftest.i conftest2.i conftest.out
7248 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7249 fi
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7251 $as_echo "$lt_cv_truncate_bin" >&6; }
7252
7253
7254
7255
7256
7257
7258
7259 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7260 func_cc_basename ()
7261 {
7262 for cc_temp in $*""; do
7263 case $cc_temp in
7264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7266 \-*) ;;
7267 *) break;;
7268 esac
7269 done
7270 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7271 }
7272
7273 # Check whether --enable-libtool-lock was given.
7274 if test "${enable_libtool_lock+set}" = set; then :
7275 enableval=$enable_libtool_lock;
7276 fi
7277
7278 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7279
7280 # Some flags need to be propagated to the compiler or linker for good
7281 # libtool support.
7282 case $host in
7283 ia64-*-hpux*)
7284 # Find out what ABI is being produced by ac_compile, and set mode
7285 # options accordingly.
7286 echo 'int i;' > conftest.$ac_ext
7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288 (eval $ac_compile) 2>&5
7289 ac_status=$?
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7292 case `/usr/bin/file conftest.$ac_objext` in
7293 *ELF-32*)
7294 HPUX_IA64_MODE=32
7295 ;;
7296 *ELF-64*)
7297 HPUX_IA64_MODE=64
7298 ;;
7299 esac
7300 fi
7301 rm -rf conftest*
7302 ;;
7303 *-*-irix6*)
7304 # Find out what ABI is being produced by ac_compile, and set linker
7305 # options accordingly.
7306 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7308 (eval $ac_compile) 2>&5
7309 ac_status=$?
7310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311 test $ac_status = 0; }; then
7312 if test yes = "$lt_cv_prog_gnu_ld"; then
7313 case `/usr/bin/file conftest.$ac_objext` in
7314 *32-bit*)
7315 LD="${LD-ld} -melf32bsmip"
7316 ;;
7317 *N32*)
7318 LD="${LD-ld} -melf32bmipn32"
7319 ;;
7320 *64-bit*)
7321 LD="${LD-ld} -melf64bmip"
7322 ;;
7323 esac
7324 else
7325 case `/usr/bin/file conftest.$ac_objext` in
7326 *32-bit*)
7327 LD="${LD-ld} -32"
7328 ;;
7329 *N32*)
7330 LD="${LD-ld} -n32"
7331 ;;
7332 *64-bit*)
7333 LD="${LD-ld} -64"
7334 ;;
7335 esac
7336 fi
7337 fi
7338 rm -rf conftest*
7339 ;;
7340
7341 mips64*-*linux*)
7342 # Find out what ABI is being produced by ac_compile, and set linker
7343 # options accordingly.
7344 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7346 (eval $ac_compile) 2>&5
7347 ac_status=$?
7348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349 test $ac_status = 0; }; then
7350 emul=elf
7351 case `/usr/bin/file conftest.$ac_objext` in
7352 *32-bit*)
7353 emul="${emul}32"
7354 ;;
7355 *64-bit*)
7356 emul="${emul}64"
7357 ;;
7358 esac
7359 case `/usr/bin/file conftest.$ac_objext` in
7360 *MSB*)
7361 emul="${emul}btsmip"
7362 ;;
7363 *LSB*)
7364 emul="${emul}ltsmip"
7365 ;;
7366 esac
7367 case `/usr/bin/file conftest.$ac_objext` in
7368 *N32*)
7369 emul="${emul}n32"
7370 ;;
7371 esac
7372 LD="${LD-ld} -m $emul"
7373 fi
7374 rm -rf conftest*
7375 ;;
7376
7377 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7378 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7379 # Find out what ABI is being produced by ac_compile, and set linker
7380 # options accordingly. Note that the listed cases only cover the
7381 # situations where additional linker options are needed (such as when
7382 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7383 # vice versa); the common cases where no linker options are needed do
7384 # not appear in the list.
7385 echo 'int i;' > conftest.$ac_ext
7386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7387 (eval $ac_compile) 2>&5
7388 ac_status=$?
7389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7390 test $ac_status = 0; }; then
7391 case `/usr/bin/file conftest.o` in
7392 *32-bit*)
7393 case $host in
7394 x86_64-*kfreebsd*-gnu)
7395 LD="${LD-ld} -m elf_i386_fbsd"
7396 ;;
7397 x86_64-*linux*)
7398 case `/usr/bin/file conftest.o` in
7399 *x86-64*)
7400 LD="${LD-ld} -m elf32_x86_64"
7401 ;;
7402 *)
7403 LD="${LD-ld} -m elf_i386"
7404 ;;
7405 esac
7406 ;;
7407 powerpc64le-*linux*)
7408 LD="${LD-ld} -m elf32lppclinux"
7409 ;;
7410 powerpc64-*linux*)
7411 LD="${LD-ld} -m elf32ppclinux"
7412 ;;
7413 s390x-*linux*)
7414 LD="${LD-ld} -m elf_s390"
7415 ;;
7416 sparc64-*linux*)
7417 LD="${LD-ld} -m elf32_sparc"
7418 ;;
7419 esac
7420 ;;
7421 *64-bit*)
7422 case $host in
7423 x86_64-*kfreebsd*-gnu)
7424 LD="${LD-ld} -m elf_x86_64_fbsd"
7425 ;;
7426 x86_64-*linux*)
7427 LD="${LD-ld} -m elf_x86_64"
7428 ;;
7429 powerpcle-*linux*)
7430 LD="${LD-ld} -m elf64lppc"
7431 ;;
7432 powerpc-*linux*)
7433 LD="${LD-ld} -m elf64ppc"
7434 ;;
7435 s390*-*linux*|s390*-*tpf*)
7436 LD="${LD-ld} -m elf64_s390"
7437 ;;
7438 sparc*-*linux*)
7439 LD="${LD-ld} -m elf64_sparc"
7440 ;;
7441 esac
7442 ;;
7443 esac
7444 fi
7445 rm -rf conftest*
7446 ;;
7447
7448 *-*-sco3.2v5*)
7449 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7450 SAVE_CFLAGS=$CFLAGS
7451 CFLAGS="$CFLAGS -belf"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7453 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7454 if ${lt_cv_cc_needs_belf+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 ac_ext=c
7458 ac_cpp='$CPP $CPPFLAGS'
7459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465
7466 int
7467 main ()
7468 {
7469
7470 ;
7471 return 0;
7472 }
7473 _ACEOF
7474 if ac_fn_c_try_link "$LINENO"; then :
7475 lt_cv_cc_needs_belf=yes
7476 else
7477 lt_cv_cc_needs_belf=no
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext \
7480 conftest$ac_exeext conftest.$ac_ext
7481 ac_ext=c
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486
7487 fi
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7489 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7490 if test yes != "$lt_cv_cc_needs_belf"; then
7491 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7492 CFLAGS=$SAVE_CFLAGS
7493 fi
7494 ;;
7495 *-*solaris*)
7496 # Find out what ABI is being produced by ac_compile, and set linker
7497 # options accordingly.
7498 echo 'int i;' > conftest.$ac_ext
7499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7500 (eval $ac_compile) 2>&5
7501 ac_status=$?
7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503 test $ac_status = 0; }; then
7504 case `/usr/bin/file conftest.o` in
7505 *64-bit*)
7506 case $lt_cv_prog_gnu_ld in
7507 yes*)
7508 case $host in
7509 i?86-*-solaris*|x86_64-*-solaris*)
7510 LD="${LD-ld} -m elf_x86_64"
7511 ;;
7512 sparc*-*-solaris*)
7513 LD="${LD-ld} -m elf64_sparc"
7514 ;;
7515 esac
7516 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7517 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7518 LD=${LD-ld}_sol2
7519 fi
7520 ;;
7521 *)
7522 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7523 LD="${LD-ld} -64"
7524 fi
7525 ;;
7526 esac
7527 ;;
7528 esac
7529 fi
7530 rm -rf conftest*
7531 ;;
7532 esac
7533
7534 need_locks=$enable_libtool_lock
7535
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}mt; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$MANIFEST_TOOL"; then
7545 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7565 if test -n "$MANIFEST_TOOL"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7567 $as_echo "$MANIFEST_TOOL" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 fi
7575 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7576 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7577 # Extract the first word of "mt", so it can be a program name with args.
7578 set dummy mt; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$ac_ct_MANIFEST_TOOL"; then
7585 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7605 if test -n "$ac_ct_MANIFEST_TOOL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7607 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7614 MANIFEST_TOOL=":"
7615 else
7616 case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7623 fi
7624 else
7625 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7626 fi
7627
7628 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7630 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7631 if ${lt_cv_path_mainfest_tool+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 lt_cv_path_mainfest_tool=no
7635 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7636 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7637 cat conftest.err >&5
7638 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7639 lt_cv_path_mainfest_tool=yes
7640 fi
7641 rm -f conftest*
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7644 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7645 if test yes != "$lt_cv_path_mainfest_tool"; then
7646 MANIFEST_TOOL=:
7647 fi
7648
7649
7650
7651
7652
7653
7654 case $host_os in
7655 rhapsody* | darwin*)
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 if test -n "$DSYMUTIL"; then
7665 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7685 if test -n "$DSYMUTIL"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7687 $as_echo "$DSYMUTIL" >&6; }
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693
7694 fi
7695 if test -z "$ac_cv_prog_DSYMUTIL"; then
7696 ac_ct_DSYMUTIL=$DSYMUTIL
7697 # Extract the first word of "dsymutil", so it can be a program name with args.
7698 set dummy dsymutil; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$ac_ct_DSYMUTIL"; then
7705 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7725 if test -n "$ac_ct_DSYMUTIL"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7727 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733 if test "x$ac_ct_DSYMUTIL" = x; then
7734 DSYMUTIL=":"
7735 else
7736 case $cross_compiling:$ac_tool_warned in
7737 yes:)
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740 ac_tool_warned=yes ;;
7741 esac
7742 DSYMUTIL=$ac_ct_DSYMUTIL
7743 fi
7744 else
7745 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7746 fi
7747
7748 if test -n "$ac_tool_prefix"; then
7749 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7750 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_prog_NMEDIT+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$NMEDIT"; then
7757 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770 done
7771 done
7772 IFS=$as_save_IFS
7773
7774 fi
7775 fi
7776 NMEDIT=$ac_cv_prog_NMEDIT
7777 if test -n "$NMEDIT"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7779 $as_echo "$NMEDIT" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7783 fi
7784
7785
7786 fi
7787 if test -z "$ac_cv_prog_NMEDIT"; then
7788 ac_ct_NMEDIT=$NMEDIT
7789 # Extract the first word of "nmedit", so it can be a program name with args.
7790 set dummy nmedit; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$ac_ct_NMEDIT"; then
7797 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814 fi
7815 fi
7816 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7817 if test -n "$ac_ct_NMEDIT"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7819 $as_echo "$ac_ct_NMEDIT" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824
7825 if test "x$ac_ct_NMEDIT" = x; then
7826 NMEDIT=":"
7827 else
7828 case $cross_compiling:$ac_tool_warned in
7829 yes:)
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832 ac_tool_warned=yes ;;
7833 esac
7834 NMEDIT=$ac_ct_NMEDIT
7835 fi
7836 else
7837 NMEDIT="$ac_cv_prog_NMEDIT"
7838 fi
7839
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_LIPO+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$LIPO"; then
7849 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 LIPO=$ac_cv_prog_LIPO
7869 if test -n "$LIPO"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7871 $as_echo "$LIPO" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877
7878 fi
7879 if test -z "$ac_cv_prog_LIPO"; then
7880 ac_ct_LIPO=$LIPO
7881 # Extract the first word of "lipo", so it can be a program name with args.
7882 set dummy lipo; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$ac_ct_LIPO"; then
7889 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_ac_ct_LIPO="lipo"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902 done
7903 done
7904 IFS=$as_save_IFS
7905
7906 fi
7907 fi
7908 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7909 if test -n "$ac_ct_LIPO"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7911 $as_echo "$ac_ct_LIPO" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917 if test "x$ac_ct_LIPO" = x; then
7918 LIPO=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921 yes:)
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7925 esac
7926 LIPO=$ac_ct_LIPO
7927 fi
7928 else
7929 LIPO="$ac_cv_prog_LIPO"
7930 fi
7931
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7934 set dummy ${ac_tool_prefix}otool; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_OTOOL+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$OTOOL"; then
7941 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954 done
7955 done
7956 IFS=$as_save_IFS
7957
7958 fi
7959 fi
7960 OTOOL=$ac_cv_prog_OTOOL
7961 if test -n "$OTOOL"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7963 $as_echo "$OTOOL" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968
7969
7970 fi
7971 if test -z "$ac_cv_prog_OTOOL"; then
7972 ac_ct_OTOOL=$OTOOL
7973 # Extract the first word of "otool", so it can be a program name with args.
7974 set dummy otool; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$ac_ct_OTOOL"; then
7981 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_ac_ct_OTOOL="otool"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8001 if test -n "$ac_ct_OTOOL"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8003 $as_echo "$ac_ct_OTOOL" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008
8009 if test "x$ac_ct_OTOOL" = x; then
8010 OTOOL=":"
8011 else
8012 case $cross_compiling:$ac_tool_warned in
8013 yes:)
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8016 ac_tool_warned=yes ;;
8017 esac
8018 OTOOL=$ac_ct_OTOOL
8019 fi
8020 else
8021 OTOOL="$ac_cv_prog_OTOOL"
8022 fi
8023
8024 if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8026 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_OTOOL64+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$OTOOL64"; then
8033 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi
8051 fi
8052 OTOOL64=$ac_cv_prog_OTOOL64
8053 if test -n "$OTOOL64"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8055 $as_echo "$OTOOL64" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060
8061
8062 fi
8063 if test -z "$ac_cv_prog_OTOOL64"; then
8064 ac_ct_OTOOL64=$OTOOL64
8065 # Extract the first word of "otool64", so it can be a program name with args.
8066 set dummy otool64; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$ac_ct_OTOOL64"; then
8073 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_OTOOL64="otool64"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8093 if test -n "$ac_ct_OTOOL64"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8095 $as_echo "$ac_ct_OTOOL64" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101 if test "x$ac_ct_OTOOL64" = x; then
8102 OTOOL64=":"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 OTOOL64=$ac_ct_OTOOL64
8111 fi
8112 else
8113 OTOOL64="$ac_cv_prog_OTOOL64"
8114 fi
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8143 $as_echo_n "checking for -single_module linker flag... " >&6; }
8144 if ${lt_cv_apple_cc_single_mod+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 lt_cv_apple_cc_single_mod=no
8148 if test -z "$LT_MULTI_MODULE"; then
8149 # By default we will add the -single_module flag. You can override
8150 # by either setting the environment variable LT_MULTI_MODULE
8151 # non-empty at configure time, or by adding -multi_module to the
8152 # link flags.
8153 rm -rf libconftest.dylib*
8154 echo "int foo(void){return 1;}" > conftest.c
8155 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8156 -dynamiclib -Wl,-single_module conftest.c" >&5
8157 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8158 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8159 _lt_result=$?
8160 # If there is a non-empty error log, and "single_module"
8161 # appears in it, assume the flag caused a linker warning
8162 if test -s conftest.err && $GREP single_module conftest.err; then
8163 cat conftest.err >&5
8164 # Otherwise, if the output was created with a 0 exit code from
8165 # the compiler, it worked.
8166 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8167 lt_cv_apple_cc_single_mod=yes
8168 else
8169 cat conftest.err >&5
8170 fi
8171 rm -rf libconftest.dylib*
8172 rm -f conftest.*
8173 fi
8174 fi
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8176 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8177
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8179 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8180 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 lt_cv_ld_exported_symbols_list=no
8184 save_LDFLAGS=$LDFLAGS
8185 echo "_main" > conftest.sym
8186 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189
8190 int
8191 main ()
8192 {
8193
8194 ;
8195 return 0;
8196 }
8197 _ACEOF
8198 if ac_fn_c_try_link "$LINENO"; then :
8199 lt_cv_ld_exported_symbols_list=yes
8200 else
8201 lt_cv_ld_exported_symbols_list=no
8202 fi
8203 rm -f core conftest.err conftest.$ac_objext \
8204 conftest$ac_exeext conftest.$ac_ext
8205 LDFLAGS=$save_LDFLAGS
8206
8207 fi
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8209 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8210
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8212 $as_echo_n "checking for -force_load linker flag... " >&6; }
8213 if ${lt_cv_ld_force_load+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 lt_cv_ld_force_load=no
8217 cat > conftest.c << _LT_EOF
8218 int forced_loaded() { return 2;}
8219 _LT_EOF
8220 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8221 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8222 echo "$AR cr libconftest.a conftest.o" >&5
8223 $AR cr libconftest.a conftest.o 2>&5
8224 echo "$RANLIB libconftest.a" >&5
8225 $RANLIB libconftest.a 2>&5
8226 cat > conftest.c << _LT_EOF
8227 int main() { return 0;}
8228 _LT_EOF
8229 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8230 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8231 _lt_result=$?
8232 if test -s conftest.err && $GREP force_load conftest.err; then
8233 cat conftest.err >&5
8234 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8235 lt_cv_ld_force_load=yes
8236 else
8237 cat conftest.err >&5
8238 fi
8239 rm -f conftest.err libconftest.a conftest conftest.c
8240 rm -rf conftest.dSYM
8241
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8244 $as_echo "$lt_cv_ld_force_load" >&6; }
8245 case $host_os in
8246 rhapsody* | darwin1.[012])
8247 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8248 darwin1.*)
8249 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8250 darwin*) # darwin 5.x on
8251 # if running on 10.5 or later, the deployment target defaults
8252 # to the OS version, if on x86, and 10.4, the deployment
8253 # target defaults to 10.4. Don't you love it?
8254 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8255 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8256 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8257 10.[012][,.]*)
8258 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8259 10.*|11.*)
8260 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8261 esac
8262 ;;
8263 esac
8264 if test yes = "$lt_cv_apple_cc_single_mod"; then
8265 _lt_dar_single_mod='$single_module'
8266 fi
8267 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8268 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8269 else
8270 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8271 fi
8272 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8273 _lt_dsymutil='~$DSYMUTIL $lib || :'
8274 else
8275 _lt_dsymutil=
8276 fi
8277 ;;
8278 esac
8279
8280 # func_munge_path_list VARIABLE PATH
8281 # -----------------------------------
8282 # VARIABLE is name of variable containing _space_ separated list of
8283 # directories to be munged by the contents of PATH, which is string
8284 # having a format:
8285 # "DIR[:DIR]:"
8286 # string "DIR[ DIR]" will be prepended to VARIABLE
8287 # ":DIR[:DIR]"
8288 # string "DIR[ DIR]" will be appended to VARIABLE
8289 # "DIRP[:DIRP]::[DIRA:]DIRA"
8290 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8291 # "DIRA[ DIRA]" will be appended to VARIABLE
8292 # "DIR[:DIR]"
8293 # VARIABLE will be replaced by "DIR[ DIR]"
8294 func_munge_path_list ()
8295 {
8296 case x$2 in
8297 x)
8298 ;;
8299 *:)
8300 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8301 ;;
8302 x:*)
8303 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8304 ;;
8305 *::*)
8306 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8307 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8308 ;;
8309 *)
8310 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8311 ;;
8312 esac
8313 }
8314
8315 ac_ext=c
8316 ac_cpp='$CPP $CPPFLAGS'
8317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8321 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8322 # On Suns, sometimes $CPP names a directory.
8323 if test -n "$CPP" && test -d "$CPP"; then
8324 CPP=
8325 fi
8326 if test -z "$CPP"; then
8327 if ${ac_cv_prog_CPP+:} false; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 # Double quotes because CPP needs to be expanded
8331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8332 do
8333 ac_preproc_ok=false
8334 for ac_c_preproc_warn_flag in '' yes
8335 do
8336 # Use a header file that comes with gcc, so configuring glibc
8337 # with a fresh cross-compiler works.
8338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8339 # <limits.h> exists even on freestanding compilers.
8340 # On the NeXT, cc -E runs the code through the compiler's parser,
8341 # not just through cpp. "Syntax error" is here to catch this case.
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 #ifdef __STDC__
8345 # include <limits.h>
8346 #else
8347 # include <assert.h>
8348 #endif
8349 Syntax error
8350 _ACEOF
8351 if ac_fn_c_try_cpp "$LINENO"; then :
8352
8353 else
8354 # Broken: fails on valid input.
8355 continue
8356 fi
8357 rm -f conftest.err conftest.i conftest.$ac_ext
8358
8359 # OK, works on sane cases. Now check whether nonexistent headers
8360 # can be detected and how.
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #include <ac_nonexistent.h>
8364 _ACEOF
8365 if ac_fn_c_try_cpp "$LINENO"; then :
8366 # Broken: success on invalid input.
8367 continue
8368 else
8369 # Passes both tests.
8370 ac_preproc_ok=:
8371 break
8372 fi
8373 rm -f conftest.err conftest.i conftest.$ac_ext
8374
8375 done
8376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8377 rm -f conftest.i conftest.err conftest.$ac_ext
8378 if $ac_preproc_ok; then :
8379 break
8380 fi
8381
8382 done
8383 ac_cv_prog_CPP=$CPP
8384
8385 fi
8386 CPP=$ac_cv_prog_CPP
8387 else
8388 ac_cv_prog_CPP=$CPP
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8391 $as_echo "$CPP" >&6; }
8392 ac_preproc_ok=false
8393 for ac_c_preproc_warn_flag in '' yes
8394 do
8395 # Use a header file that comes with gcc, so configuring glibc
8396 # with a fresh cross-compiler works.
8397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8398 # <limits.h> exists even on freestanding compilers.
8399 # On the NeXT, cc -E runs the code through the compiler's parser,
8400 # not just through cpp. "Syntax error" is here to catch this case.
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #ifdef __STDC__
8404 # include <limits.h>
8405 #else
8406 # include <assert.h>
8407 #endif
8408 Syntax error
8409 _ACEOF
8410 if ac_fn_c_try_cpp "$LINENO"; then :
8411
8412 else
8413 # Broken: fails on valid input.
8414 continue
8415 fi
8416 rm -f conftest.err conftest.i conftest.$ac_ext
8417
8418 # OK, works on sane cases. Now check whether nonexistent headers
8419 # can be detected and how.
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #include <ac_nonexistent.h>
8423 _ACEOF
8424 if ac_fn_c_try_cpp "$LINENO"; then :
8425 # Broken: success on invalid input.
8426 continue
8427 else
8428 # Passes both tests.
8429 ac_preproc_ok=:
8430 break
8431 fi
8432 rm -f conftest.err conftest.i conftest.$ac_ext
8433
8434 done
8435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8436 rm -f conftest.i conftest.err conftest.$ac_ext
8437 if $ac_preproc_ok; then :
8438
8439 else
8440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8442 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8443 See \`config.log' for more details" "$LINENO" 5; }
8444 fi
8445
8446 ac_ext=c
8447 ac_cpp='$CPP $CPPFLAGS'
8448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8451
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8454 $as_echo_n "checking for ANSI C header files... " >&6; }
8455 if ${ac_cv_header_stdc+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <stdlib.h>
8461 #include <stdarg.h>
8462 #include <string.h>
8463 #include <float.h>
8464
8465 int
8466 main ()
8467 {
8468
8469 ;
8470 return 0;
8471 }
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474 ac_cv_header_stdc=yes
8475 else
8476 ac_cv_header_stdc=no
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479
8480 if test $ac_cv_header_stdc = yes; then
8481 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 #include <string.h>
8485
8486 _ACEOF
8487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8488 $EGREP "memchr" >/dev/null 2>&1; then :
8489
8490 else
8491 ac_cv_header_stdc=no
8492 fi
8493 rm -f conftest*
8494
8495 fi
8496
8497 if test $ac_cv_header_stdc = yes; then
8498 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <stdlib.h>
8502
8503 _ACEOF
8504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8505 $EGREP "free" >/dev/null 2>&1; then :
8506
8507 else
8508 ac_cv_header_stdc=no
8509 fi
8510 rm -f conftest*
8511
8512 fi
8513
8514 if test $ac_cv_header_stdc = yes; then
8515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8516 if test "$cross_compiling" = yes; then :
8517 :
8518 else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 #include <ctype.h>
8522 #include <stdlib.h>
8523 #if ((' ' & 0x0FF) == 0x020)
8524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8526 #else
8527 # define ISLOWER(c) \
8528 (('a' <= (c) && (c) <= 'i') \
8529 || ('j' <= (c) && (c) <= 'r') \
8530 || ('s' <= (c) && (c) <= 'z'))
8531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8532 #endif
8533
8534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8535 int
8536 main ()
8537 {
8538 int i;
8539 for (i = 0; i < 256; i++)
8540 if (XOR (islower (i), ISLOWER (i))
8541 || toupper (i) != TOUPPER (i))
8542 return 2;
8543 return 0;
8544 }
8545 _ACEOF
8546 if ac_fn_c_try_run "$LINENO"; then :
8547
8548 else
8549 ac_cv_header_stdc=no
8550 fi
8551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8552 conftest.$ac_objext conftest.beam conftest.$ac_ext
8553 fi
8554
8555 fi
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8558 $as_echo "$ac_cv_header_stdc" >&6; }
8559 if test $ac_cv_header_stdc = yes; then
8560
8561 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8562
8563 fi
8564
8565 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8566 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8567 inttypes.h stdint.h unistd.h
8568 do :
8569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8571 "
8572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8573 cat >>confdefs.h <<_ACEOF
8574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8575 _ACEOF
8576
8577 fi
8578
8579 done
8580
8581
8582 for ac_header in dlfcn.h
8583 do :
8584 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8585 "
8586 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8587 cat >>confdefs.h <<_ACEOF
8588 #define HAVE_DLFCN_H 1
8589 _ACEOF
8590
8591 fi
8592
8593 done
8594
8595
8596
8597
8598
8599 # Set options
8600
8601
8602
8603 enable_dlopen=no
8604
8605
8606 enable_win32_dll=no
8607
8608
8609 # Check whether --enable-shared was given.
8610 if test "${enable_shared+set}" = set; then :
8611 enableval=$enable_shared; p=${PACKAGE-default}
8612 case $enableval in
8613 yes) enable_shared=yes ;;
8614 no) enable_shared=no ;;
8615 *)
8616 enable_shared=no
8617 # Look at the argument we got. We use all the common list separators.
8618 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8619 for pkg in $enableval; do
8620 IFS=$lt_save_ifs
8621 if test "X$pkg" = "X$p"; then
8622 enable_shared=yes
8623 fi
8624 done
8625 IFS=$lt_save_ifs
8626 ;;
8627 esac
8628 else
8629 enable_shared=yes
8630 fi
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642 # Check whether --with-pic was given.
8643 if test "${with_pic+set}" = set; then :
8644 withval=$with_pic; lt_p=${PACKAGE-default}
8645 case $withval in
8646 yes|no) pic_mode=$withval ;;
8647 *)
8648 pic_mode=default
8649 # Look at the argument we got. We use all the common list separators.
8650 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8651 for lt_pkg in $withval; do
8652 IFS=$lt_save_ifs
8653 if test "X$lt_pkg" = "X$lt_p"; then
8654 pic_mode=yes
8655 fi
8656 done
8657 IFS=$lt_save_ifs
8658 ;;
8659 esac
8660 else
8661 pic_mode=default
8662 fi
8663
8664
8665
8666
8667
8668
8669
8670
8671 # Check whether --enable-fast-install was given.
8672 if test "${enable_fast_install+set}" = set; then :
8673 enableval=$enable_fast_install; p=${PACKAGE-default}
8674 case $enableval in
8675 yes) enable_fast_install=yes ;;
8676 no) enable_fast_install=no ;;
8677 *)
8678 enable_fast_install=no
8679 # Look at the argument we got. We use all the common list separators.
8680 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8681 for pkg in $enableval; do
8682 IFS=$lt_save_ifs
8683 if test "X$pkg" = "X$p"; then
8684 enable_fast_install=yes
8685 fi
8686 done
8687 IFS=$lt_save_ifs
8688 ;;
8689 esac
8690 else
8691 enable_fast_install=yes
8692 fi
8693
8694
8695
8696
8697
8698
8699
8700
8701 shared_archive_member_spec=
8702 case $host,$enable_shared in
8703 power*-*-aix[5-9]*,yes)
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8705 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8706
8707 # Check whether --with-aix-soname was given.
8708 if test "${with_aix_soname+set}" = set; then :
8709 withval=$with_aix_soname; case $withval in
8710 aix|svr4|both)
8711 ;;
8712 *)
8713 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8714 ;;
8715 esac
8716 lt_cv_with_aix_soname=$with_aix_soname
8717 else
8718 if ${lt_cv_with_aix_soname+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 lt_cv_with_aix_soname=aix
8722 fi
8723
8724 with_aix_soname=$lt_cv_with_aix_soname
8725 fi
8726
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8728 $as_echo "$with_aix_soname" >&6; }
8729 if test aix != "$with_aix_soname"; then
8730 # For the AIX way of multilib, we name the shared archive member
8731 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8732 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8733 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8734 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8735 if test 64 = "${OBJECT_MODE-32}"; then
8736 shared_archive_member_spec=shr_64
8737 else
8738 shared_archive_member_spec=shr
8739 fi
8740 fi
8741 ;;
8742 *)
8743 with_aix_soname=aix
8744 ;;
8745 esac
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756 # This can be used to rebuild libtool when needed
8757 LIBTOOL_DEPS=$ltmain
8758
8759 # Always use our own libtool.
8760 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791 test -z "$LN_S" && LN_S="ln -s"
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806 if test -n "${ZSH_VERSION+set}"; then
8807 setopt NO_GLOB_SUBST
8808 fi
8809
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8811 $as_echo_n "checking for objdir... " >&6; }
8812 if ${lt_cv_objdir+:} false; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 rm -f .libs 2>/dev/null
8816 mkdir .libs 2>/dev/null
8817 if test -d .libs; then
8818 lt_cv_objdir=.libs
8819 else
8820 # MS-DOS does not allow filenames that begin with a dot.
8821 lt_cv_objdir=_libs
8822 fi
8823 rmdir .libs 2>/dev/null
8824 fi
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8826 $as_echo "$lt_cv_objdir" >&6; }
8827 objdir=$lt_cv_objdir
8828
8829
8830
8831
8832
8833 cat >>confdefs.h <<_ACEOF
8834 #define LT_OBJDIR "$lt_cv_objdir/"
8835 _ACEOF
8836
8837
8838
8839
8840 case $host_os in
8841 aix3*)
8842 # AIX sometimes has problems with the GCC collect2 program. For some
8843 # reason, if we set the COLLECT_NAMES environment variable, the problems
8844 # vanish in a puff of smoke.
8845 if test set != "${COLLECT_NAMES+set}"; then
8846 COLLECT_NAMES=
8847 export COLLECT_NAMES
8848 fi
8849 ;;
8850 esac
8851
8852 # Global variables:
8853 ofile=libtool
8854 can_build_shared=yes
8855
8856 # All known linkers require a '.a' archive for static linking (except MSVC,
8857 # which needs '.lib').
8858 libext=a
8859
8860 with_gnu_ld=$lt_cv_prog_gnu_ld
8861
8862 old_CC=$CC
8863 old_CFLAGS=$CFLAGS
8864
8865 # Set sane defaults for various variables
8866 test -z "$CC" && CC=cc
8867 test -z "$LTCC" && LTCC=$CC
8868 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8869 test -z "$LD" && LD=ld
8870 test -z "$ac_objext" && ac_objext=o
8871
8872 func_cc_basename $compiler
8873 cc_basename=$func_cc_basename_result
8874
8875
8876 # Only perform the check for file, if the check method requires it
8877 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8878 case $deplibs_check_method in
8879 file_magic*)
8880 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8882 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8883 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 case $MAGIC_CMD in
8887 [\\/*] | ?:[\\/]*)
8888 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8889 ;;
8890 *)
8891 lt_save_MAGIC_CMD=$MAGIC_CMD
8892 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8893 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8894 for ac_dir in $ac_dummy; do
8895 IFS=$lt_save_ifs
8896 test -z "$ac_dir" && ac_dir=.
8897 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8898 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8899 if test -n "$file_magic_test_file"; then
8900 case $deplibs_check_method in
8901 "file_magic "*)
8902 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8903 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8905 $EGREP "$file_magic_regex" > /dev/null; then
8906 :
8907 else
8908 cat <<_LT_EOF 1>&2
8909
8910 *** Warning: the command libtool uses to detect shared libraries,
8911 *** $file_magic_cmd, produces output that libtool cannot recognize.
8912 *** The result is that libtool may fail to recognize shared libraries
8913 *** as such. This will affect the creation of libtool libraries that
8914 *** depend on shared libraries, but programs linked with such libtool
8915 *** libraries will work regardless of this problem. Nevertheless, you
8916 *** may want to report the problem to your system manager and/or to
8917 *** [email protected]
8918
8919 _LT_EOF
8920 fi ;;
8921 esac
8922 fi
8923 break
8924 fi
8925 done
8926 IFS=$lt_save_ifs
8927 MAGIC_CMD=$lt_save_MAGIC_CMD
8928 ;;
8929 esac
8930 fi
8931
8932 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8933 if test -n "$MAGIC_CMD"; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8935 $as_echo "$MAGIC_CMD" >&6; }
8936 else
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8939 fi
8940
8941
8942
8943
8944
8945 if test -z "$lt_cv_path_MAGIC_CMD"; then
8946 if test -n "$ac_tool_prefix"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8948 $as_echo_n "checking for file... " >&6; }
8949 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 case $MAGIC_CMD in
8953 [\\/*] | ?:[\\/]*)
8954 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8955 ;;
8956 *)
8957 lt_save_MAGIC_CMD=$MAGIC_CMD
8958 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8959 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8960 for ac_dir in $ac_dummy; do
8961 IFS=$lt_save_ifs
8962 test -z "$ac_dir" && ac_dir=.
8963 if test -f "$ac_dir/file"; then
8964 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8965 if test -n "$file_magic_test_file"; then
8966 case $deplibs_check_method in
8967 "file_magic "*)
8968 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8969 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8971 $EGREP "$file_magic_regex" > /dev/null; then
8972 :
8973 else
8974 cat <<_LT_EOF 1>&2
8975
8976 *** Warning: the command libtool uses to detect shared libraries,
8977 *** $file_magic_cmd, produces output that libtool cannot recognize.
8978 *** The result is that libtool may fail to recognize shared libraries
8979 *** as such. This will affect the creation of libtool libraries that
8980 *** depend on shared libraries, but programs linked with such libtool
8981 *** libraries will work regardless of this problem. Nevertheless, you
8982 *** may want to report the problem to your system manager and/or to
8983 *** [email protected]
8984
8985 _LT_EOF
8986 fi ;;
8987 esac
8988 fi
8989 break
8990 fi
8991 done
8992 IFS=$lt_save_ifs
8993 MAGIC_CMD=$lt_save_MAGIC_CMD
8994 ;;
8995 esac
8996 fi
8997
8998 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8999 if test -n "$MAGIC_CMD"; then
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9001 $as_echo "$MAGIC_CMD" >&6; }
9002 else
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004 $as_echo "no" >&6; }
9005 fi
9006
9007
9008 else
9009 MAGIC_CMD=:
9010 fi
9011 fi
9012
9013 fi
9014 ;;
9015 esac
9016
9017 # Use C for the default configuration in the libtool script
9018
9019 lt_save_CC=$CC
9020 ac_ext=c
9021 ac_cpp='$CPP $CPPFLAGS'
9022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9025
9026
9027 # Source file extension for C test sources.
9028 ac_ext=c
9029
9030 # Object file extension for compiled C test sources.
9031 objext=o
9032 objext=$objext
9033
9034 # Code to be used in simple compile tests
9035 lt_simple_compile_test_code="int some_variable = 0;"
9036
9037 # Code to be used in simple link tests
9038 lt_simple_link_test_code='int main(){return(0);}'
9039
9040
9041
9042
9043
9044
9045
9046 # If no C compiler was specified, use CC.
9047 LTCC=${LTCC-"$CC"}
9048
9049 # If no C compiler flags were specified, use CFLAGS.
9050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9051
9052 # Allow CC to be a program name with arguments.
9053 compiler=$CC
9054
9055 # Save the default compiler, since it gets overwritten when the other
9056 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9057 compiler_DEFAULT=$CC
9058
9059 # save warnings/boilerplate of simple test code
9060 ac_outfile=conftest.$ac_objext
9061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9063 _lt_compiler_boilerplate=`cat conftest.err`
9064 $RM conftest*
9065
9066 ac_outfile=conftest.$ac_objext
9067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9069 _lt_linker_boilerplate=`cat conftest.err`
9070 $RM -r conftest*
9071
9072
9073 ## CAVEAT EMPTOR:
9074 ## There is no encapsulation within the following macros, do not change
9075 ## the running order or otherwise move them around unless you know exactly
9076 ## what you are doing...
9077 if test -n "$compiler"; then
9078
9079 lt_prog_compiler_no_builtin_flag=
9080
9081 if test yes = "$GCC"; then
9082 case $cc_basename in
9083 nvcc*)
9084 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9085 *)
9086 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9087 esac
9088
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9090 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9091 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9092 $as_echo_n "(cached) " >&6
9093 else
9094 lt_cv_prog_compiler_rtti_exceptions=no
9095 ac_outfile=conftest.$ac_objext
9096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9098 # Insert the option either (1) after the last *FLAGS variable, or
9099 # (2) before a word containing "conftest.", or (3) at the end.
9100 # Note that $ac_compile itself does not contain backslashes and begins
9101 # with a dollar sign (not a hyphen), so the echo should work correctly.
9102 # The option is referenced via a variable to avoid confusing sed.
9103 lt_compile=`echo "$ac_compile" | $SED \
9104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9106 -e 's:$: $lt_compiler_flag:'`
9107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9108 (eval "$lt_compile" 2>conftest.err)
9109 ac_status=$?
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 if (exit $ac_status) && test -s "$ac_outfile"; then
9113 # The compiler can only warn and ignore the option if not recognized
9114 # So say no if there are warnings other than the usual output.
9115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9118 lt_cv_prog_compiler_rtti_exceptions=yes
9119 fi
9120 fi
9121 $RM conftest*
9122
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9125 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9126
9127 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9128 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9129 else
9130 :
9131 fi
9132
9133 fi
9134
9135
9136
9137
9138
9139
9140 lt_prog_compiler_wl=
9141 lt_prog_compiler_pic=
9142 lt_prog_compiler_static=
9143
9144
9145 if test yes = "$GCC"; then
9146 lt_prog_compiler_wl='-Wl,'
9147 lt_prog_compiler_static='-static'
9148
9149 case $host_os in
9150 aix*)
9151 # All AIX code is PIC.
9152 if test ia64 = "$host_cpu"; then
9153 # AIX 5 now supports IA64 processor
9154 lt_prog_compiler_static='-Bstatic'
9155 fi
9156 lt_prog_compiler_pic='-fPIC'
9157 ;;
9158
9159 amigaos*)
9160 case $host_cpu in
9161 powerpc)
9162 # see comment about AmigaOS4 .so support
9163 lt_prog_compiler_pic='-fPIC'
9164 ;;
9165 m68k)
9166 # FIXME: we need at least 68020 code to build shared libraries, but
9167 # adding the '-m68020' flag to GCC prevents building anything better,
9168 # like '-m68040'.
9169 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9170 ;;
9171 esac
9172 ;;
9173
9174 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9175 # PIC is the default for these OSes.
9176 ;;
9177
9178 mingw* | cygwin* | pw32* | os2* | cegcc*)
9179 # This hack is so that the source file can tell whether it is being
9180 # built for inclusion in a dll (and should export symbols for example).
9181 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9182 # (--disable-auto-import) libraries
9183 lt_prog_compiler_pic='-DDLL_EXPORT'
9184 case $host_os in
9185 os2*)
9186 lt_prog_compiler_static='$wl-static'
9187 ;;
9188 esac
9189 ;;
9190
9191 darwin* | rhapsody*)
9192 # PIC is the default on this platform
9193 # Common symbols not allowed in MH_DYLIB files
9194 lt_prog_compiler_pic='-fno-common'
9195 ;;
9196
9197 haiku*)
9198 # PIC is the default for Haiku.
9199 # The "-static" flag exists, but is broken.
9200 lt_prog_compiler_static=
9201 ;;
9202
9203 hpux*)
9204 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9205 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9206 # sets the default TLS model and affects inlining.
9207 case $host_cpu in
9208 hppa*64*)
9209 # +Z the default
9210 ;;
9211 *)
9212 lt_prog_compiler_pic='-fPIC'
9213 ;;
9214 esac
9215 ;;
9216
9217 interix[3-9]*)
9218 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9219 # Instead, we relocate shared libraries at runtime.
9220 ;;
9221
9222 msdosdjgpp*)
9223 # Just because we use GCC doesn't mean we suddenly get shared libraries
9224 # on systems that don't support them.
9225 lt_prog_compiler_can_build_shared=no
9226 enable_shared=no
9227 ;;
9228
9229 *nto* | *qnx*)
9230 # QNX uses GNU C++, but need to define -shared option too, otherwise
9231 # it will coredump.
9232 lt_prog_compiler_pic='-fPIC -shared'
9233 ;;
9234
9235 sysv4*MP*)
9236 if test -d /usr/nec; then
9237 lt_prog_compiler_pic=-Kconform_pic
9238 fi
9239 ;;
9240
9241 *)
9242 lt_prog_compiler_pic='-fPIC'
9243 ;;
9244 esac
9245
9246 case $cc_basename in
9247 nvcc*) # Cuda Compiler Driver 2.2
9248 lt_prog_compiler_wl='-Xlinker '
9249 if test -n "$lt_prog_compiler_pic"; then
9250 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9251 fi
9252 ;;
9253 esac
9254 else
9255 # PORTME Check for flag to pass linker flags through the system compiler.
9256 case $host_os in
9257 aix*)
9258 lt_prog_compiler_wl='-Wl,'
9259 if test ia64 = "$host_cpu"; then
9260 # AIX 5 now supports IA64 processor
9261 lt_prog_compiler_static='-Bstatic'
9262 else
9263 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9264 fi
9265 ;;
9266
9267 darwin* | rhapsody*)
9268 # PIC is the default on this platform
9269 # Common symbols not allowed in MH_DYLIB files
9270 lt_prog_compiler_pic='-fno-common'
9271 case $cc_basename in
9272 nagfor*)
9273 # NAG Fortran compiler
9274 lt_prog_compiler_wl='-Wl,-Wl,,'
9275 lt_prog_compiler_pic='-PIC'
9276 lt_prog_compiler_static='-Bstatic'
9277 ;;
9278 esac
9279 ;;
9280
9281 mingw* | cygwin* | pw32* | os2* | cegcc*)
9282 # This hack is so that the source file can tell whether it is being
9283 # built for inclusion in a dll (and should export symbols for example).
9284 lt_prog_compiler_pic='-DDLL_EXPORT'
9285 case $host_os in
9286 os2*)
9287 lt_prog_compiler_static='$wl-static'
9288 ;;
9289 esac
9290 ;;
9291
9292 hpux9* | hpux10* | hpux11*)
9293 lt_prog_compiler_wl='-Wl,'
9294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9295 # not for PA HP-UX.
9296 case $host_cpu in
9297 hppa*64*|ia64*)
9298 # +Z the default
9299 ;;
9300 *)
9301 lt_prog_compiler_pic='+Z'
9302 ;;
9303 esac
9304 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9305 lt_prog_compiler_static='$wl-a ${wl}archive'
9306 ;;
9307
9308 irix5* | irix6* | nonstopux*)
9309 lt_prog_compiler_wl='-Wl,'
9310 # PIC (with -KPIC) is the default.
9311 lt_prog_compiler_static='-non_shared'
9312 ;;
9313
9314 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9315 case $cc_basename in
9316 # old Intel for x86_64, which still supported -KPIC.
9317 ecc*)
9318 lt_prog_compiler_wl='-Wl,'
9319 lt_prog_compiler_pic='-KPIC'
9320 lt_prog_compiler_static='-static'
9321 ;;
9322 # flang / f18. f95 an alias for gfortran or flang on Debian
9323 flang* | f18* | f95*)
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_pic='-fPIC'
9326 lt_prog_compiler_static='-static'
9327 ;;
9328 # icc used to be incompatible with GCC.
9329 # ICC 10 doesn't accept -KPIC any more.
9330 icc* | ifort*)
9331 lt_prog_compiler_wl='-Wl,'
9332 lt_prog_compiler_pic='-fPIC'
9333 lt_prog_compiler_static='-static'
9334 ;;
9335 # Lahey Fortran 8.1.
9336 lf95*)
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='--shared'
9339 lt_prog_compiler_static='--static'
9340 ;;
9341 nagfor*)
9342 # NAG Fortran compiler
9343 lt_prog_compiler_wl='-Wl,-Wl,,'
9344 lt_prog_compiler_pic='-PIC'
9345 lt_prog_compiler_static='-Bstatic'
9346 ;;
9347 tcc*)
9348 # Fabrice Bellard et al's Tiny C Compiler
9349 lt_prog_compiler_wl='-Wl,'
9350 lt_prog_compiler_pic='-fPIC'
9351 lt_prog_compiler_static='-static'
9352 ;;
9353 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9354 # Portland Group compilers (*not* the Pentium gcc compiler,
9355 # which looks to be a dead project)
9356 lt_prog_compiler_wl='-Wl,'
9357 lt_prog_compiler_pic='-fpic'
9358 lt_prog_compiler_static='-Bstatic'
9359 ;;
9360 ccc*)
9361 lt_prog_compiler_wl='-Wl,'
9362 # All Alpha code is PIC.
9363 lt_prog_compiler_static='-non_shared'
9364 ;;
9365 xl* | bgxl* | bgf* | mpixl*)
9366 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9367 lt_prog_compiler_wl='-Wl,'
9368 lt_prog_compiler_pic='-qpic'
9369 lt_prog_compiler_static='-qstaticlink'
9370 ;;
9371 *)
9372 case `$CC -V 2>&1 | sed 5q` in
9373 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9374 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9377 lt_prog_compiler_wl=''
9378 ;;
9379 *Sun\ F* | *Sun*Fortran*)
9380 lt_prog_compiler_pic='-KPIC'
9381 lt_prog_compiler_static='-Bstatic'
9382 lt_prog_compiler_wl='-Qoption ld '
9383 ;;
9384 *Sun\ C*)
9385 # Sun C 5.9
9386 lt_prog_compiler_pic='-KPIC'
9387 lt_prog_compiler_static='-Bstatic'
9388 lt_prog_compiler_wl='-Wl,'
9389 ;;
9390 *Intel*\ [CF]*Compiler*)
9391 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='-fPIC'
9393 lt_prog_compiler_static='-static'
9394 ;;
9395 *Portland\ Group*)
9396 lt_prog_compiler_wl='-Wl,'
9397 lt_prog_compiler_pic='-fpic'
9398 lt_prog_compiler_static='-Bstatic'
9399 ;;
9400 esac
9401 ;;
9402 esac
9403 ;;
9404
9405 newsos6)
9406 lt_prog_compiler_pic='-KPIC'
9407 lt_prog_compiler_static='-Bstatic'
9408 ;;
9409
9410 *nto* | *qnx*)
9411 # QNX uses GNU C++, but need to define -shared option too, otherwise
9412 # it will coredump.
9413 lt_prog_compiler_pic='-fPIC -shared'
9414 ;;
9415
9416 osf3* | osf4* | osf5*)
9417 lt_prog_compiler_wl='-Wl,'
9418 # All OSF/1 code is PIC.
9419 lt_prog_compiler_static='-non_shared'
9420 ;;
9421
9422 rdos*)
9423 lt_prog_compiler_static='-non_shared'
9424 ;;
9425
9426 solaris*)
9427 lt_prog_compiler_pic='-KPIC'
9428 lt_prog_compiler_static='-Bstatic'
9429 case $cc_basename in
9430 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9431 lt_prog_compiler_wl='-Qoption ld ';;
9432 *)
9433 lt_prog_compiler_wl='-Wl,';;
9434 esac
9435 ;;
9436
9437 sunos4*)
9438 lt_prog_compiler_wl='-Qoption ld '
9439 lt_prog_compiler_pic='-PIC'
9440 lt_prog_compiler_static='-Bstatic'
9441 ;;
9442
9443 sysv4 | sysv4.2uw2* | sysv4.3*)
9444 lt_prog_compiler_wl='-Wl,'
9445 lt_prog_compiler_pic='-KPIC'
9446 lt_prog_compiler_static='-Bstatic'
9447 ;;
9448
9449 sysv4*MP*)
9450 if test -d /usr/nec; then
9451 lt_prog_compiler_pic='-Kconform_pic'
9452 lt_prog_compiler_static='-Bstatic'
9453 fi
9454 ;;
9455
9456 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9457 lt_prog_compiler_wl='-Wl,'
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9460 ;;
9461
9462 unicos*)
9463 lt_prog_compiler_wl='-Wl,'
9464 lt_prog_compiler_can_build_shared=no
9465 ;;
9466
9467 uts4*)
9468 lt_prog_compiler_pic='-pic'
9469 lt_prog_compiler_static='-Bstatic'
9470 ;;
9471
9472 *)
9473 lt_prog_compiler_can_build_shared=no
9474 ;;
9475 esac
9476 fi
9477
9478 case $host_os in
9479 # For platforms that do not support PIC, -DPIC is meaningless:
9480 *djgpp*)
9481 lt_prog_compiler_pic=
9482 ;;
9483 *)
9484 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9485 ;;
9486 esac
9487
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9489 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9490 if ${lt_cv_prog_compiler_pic+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9494 fi
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9496 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9497 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9498
9499 #
9500 # Check to make sure the PIC flag actually works.
9501 #
9502 if test -n "$lt_prog_compiler_pic"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9504 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9505 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 lt_cv_prog_compiler_pic_works=no
9509 ac_outfile=conftest.$ac_objext
9510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9511 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9512 # Insert the option either (1) after the last *FLAGS variable, or
9513 # (2) before a word containing "conftest.", or (3) at the end.
9514 # Note that $ac_compile itself does not contain backslashes and begins
9515 # with a dollar sign (not a hyphen), so the echo should work correctly.
9516 # The option is referenced via a variable to avoid confusing sed.
9517 lt_compile=`echo "$ac_compile" | $SED \
9518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9520 -e 's:$: $lt_compiler_flag:'`
9521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9522 (eval "$lt_compile" 2>conftest.err)
9523 ac_status=$?
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 if (exit $ac_status) && test -s "$ac_outfile"; then
9527 # The compiler can only warn and ignore the option if not recognized
9528 # So say no if there are warnings other than the usual output.
9529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9531 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9532 lt_cv_prog_compiler_pic_works=yes
9533 fi
9534 fi
9535 $RM conftest*
9536
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9539 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9540
9541 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9542 case $lt_prog_compiler_pic in
9543 "" | " "*) ;;
9544 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9545 esac
9546 else
9547 lt_prog_compiler_pic=
9548 lt_prog_compiler_can_build_shared=no
9549 fi
9550
9551 fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563 #
9564 # Check to make sure the static flag actually works.
9565 #
9566 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9568 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9569 if ${lt_cv_prog_compiler_static_works+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 lt_cv_prog_compiler_static_works=no
9573 save_LDFLAGS=$LDFLAGS
9574 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9575 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9576 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9577 # The linker can only warn and ignore the option if not recognized
9578 # So say no if there are warnings
9579 if test -s conftest.err; then
9580 # Append any errors to the config.log.
9581 cat conftest.err 1>&5
9582 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9584 if diff conftest.exp conftest.er2 >/dev/null; then
9585 lt_cv_prog_compiler_static_works=yes
9586 fi
9587 else
9588 lt_cv_prog_compiler_static_works=yes
9589 fi
9590 fi
9591 $RM -r conftest*
9592 LDFLAGS=$save_LDFLAGS
9593
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9596 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9597
9598 if test yes = "$lt_cv_prog_compiler_static_works"; then
9599 :
9600 else
9601 lt_prog_compiler_static=
9602 fi
9603
9604
9605
9606
9607
9608
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9611 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9612 if ${lt_cv_prog_compiler_c_o+:} false; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 lt_cv_prog_compiler_c_o=no
9616 $RM -r conftest 2>/dev/null
9617 mkdir conftest
9618 cd conftest
9619 mkdir out
9620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9621
9622 lt_compiler_flag="-o out/conftest2.$ac_objext"
9623 # Insert the option either (1) after the last *FLAGS variable, or
9624 # (2) before a word containing "conftest.", or (3) at the end.
9625 # Note that $ac_compile itself does not contain backslashes and begins
9626 # with a dollar sign (not a hyphen), so the echo should work correctly.
9627 lt_compile=`echo "$ac_compile" | $SED \
9628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9630 -e 's:$: $lt_compiler_flag:'`
9631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9632 (eval "$lt_compile" 2>out/conftest.err)
9633 ac_status=$?
9634 cat out/conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9637 then
9638 # The compiler can only warn and ignore the option if not recognized
9639 # So say no if there are warnings
9640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9641 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9642 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9643 lt_cv_prog_compiler_c_o=yes
9644 fi
9645 fi
9646 chmod u+w . 2>&5
9647 $RM conftest*
9648 # SGI C++ compiler will create directory out/ii_files/ for
9649 # template instantiation
9650 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9651 $RM out/* && rmdir out
9652 cd ..
9653 $RM -r conftest
9654 $RM conftest*
9655
9656 fi
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9658 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9659
9660
9661
9662
9663
9664
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9666 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9667 if ${lt_cv_prog_compiler_c_o+:} false; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 lt_cv_prog_compiler_c_o=no
9671 $RM -r conftest 2>/dev/null
9672 mkdir conftest
9673 cd conftest
9674 mkdir out
9675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9676
9677 lt_compiler_flag="-o out/conftest2.$ac_objext"
9678 # Insert the option either (1) after the last *FLAGS variable, or
9679 # (2) before a word containing "conftest.", or (3) at the end.
9680 # Note that $ac_compile itself does not contain backslashes and begins
9681 # with a dollar sign (not a hyphen), so the echo should work correctly.
9682 lt_compile=`echo "$ac_compile" | $SED \
9683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9685 -e 's:$: $lt_compiler_flag:'`
9686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9687 (eval "$lt_compile" 2>out/conftest.err)
9688 ac_status=$?
9689 cat out/conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9692 then
9693 # The compiler can only warn and ignore the option if not recognized
9694 # So say no if there are warnings
9695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9696 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9697 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9698 lt_cv_prog_compiler_c_o=yes
9699 fi
9700 fi
9701 chmod u+w . 2>&5
9702 $RM conftest*
9703 # SGI C++ compiler will create directory out/ii_files/ for
9704 # template instantiation
9705 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9706 $RM out/* && rmdir out
9707 cd ..
9708 $RM -r conftest
9709 $RM conftest*
9710
9711 fi
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9713 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9714
9715
9716
9717
9718 hard_links=nottested
9719 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9720 # do not overwrite the value of need_locks provided by the user
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9722 $as_echo_n "checking if we can lock with hard links... " >&6; }
9723 hard_links=yes
9724 $RM conftest*
9725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9726 touch conftest.a
9727 ln conftest.a conftest.b 2>&5 || hard_links=no
9728 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9730 $as_echo "$hard_links" >&6; }
9731 if test no = "$hard_links"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9733 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9734 need_locks=warn
9735 fi
9736 else
9737 need_locks=no
9738 fi
9739
9740
9741
9742
9743
9744
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9746 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9747
9748 runpath_var=
9749 allow_undefined_flag=
9750 always_export_symbols=no
9751 archive_cmds=
9752 archive_expsym_cmds=
9753 compiler_needs_object=no
9754 enable_shared_with_static_runtimes=no
9755 export_dynamic_flag_spec=
9756 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9757 hardcode_automatic=no
9758 hardcode_direct=no
9759 hardcode_direct_absolute=no
9760 hardcode_libdir_flag_spec=
9761 hardcode_libdir_separator=
9762 hardcode_minus_L=no
9763 hardcode_shlibpath_var=unsupported
9764 inherit_rpath=no
9765 link_all_deplibs=unknown
9766 module_cmds=
9767 module_expsym_cmds=
9768 old_archive_from_new_cmds=
9769 old_archive_from_expsyms_cmds=
9770 thread_safe_flag_spec=
9771 whole_archive_flag_spec=
9772 # include_expsyms should be a list of space-separated symbols to be *always*
9773 # included in the symbol list
9774 include_expsyms=
9775 # exclude_expsyms can be an extended regexp of symbols to exclude
9776 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9777 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9778 # as well as any symbol that contains 'd'.
9779 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9780 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9781 # platforms (ab)use it in PIC code, but their linkers get confused if
9782 # the symbol is explicitly referenced. Since portable code cannot
9783 # rely on this symbol name, it's probably fine to never include it in
9784 # preloaded symbol tables.
9785 # Exclude shared library initialization/finalization symbols.
9786 extract_expsyms_cmds=
9787
9788 case $host_os in
9789 cygwin* | mingw* | pw32* | cegcc*)
9790 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9791 # When not using gcc, we currently assume that we are using
9792 # Microsoft Visual C++.
9793 if test yes != "$GCC"; then
9794 with_gnu_ld=no
9795 fi
9796 ;;
9797 interix*)
9798 # we just hope/assume this is gcc and not c89 (= MSVC++)
9799 with_gnu_ld=yes
9800 ;;
9801 openbsd* | bitrig*)
9802 with_gnu_ld=no
9803 ;;
9804 linux* | k*bsd*-gnu | gnu*)
9805 link_all_deplibs=no
9806 ;;
9807 esac
9808
9809 ld_shlibs=yes
9810
9811 # On some targets, GNU ld is compatible enough with the native linker
9812 # that we're better off using the native interface for both.
9813 lt_use_gnu_ld_interface=no
9814 if test yes = "$with_gnu_ld"; then
9815 case $host_os in
9816 aix*)
9817 # The AIX port of GNU ld has always aspired to compatibility
9818 # with the native linker. However, as the warning in the GNU ld
9819 # block says, versions before 2.19.5* couldn't really create working
9820 # shared libraries, regardless of the interface used.
9821 case `$LD -v 2>&1` in
9822 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9823 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9824 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9825 *)
9826 lt_use_gnu_ld_interface=yes
9827 ;;
9828 esac
9829 ;;
9830 *)
9831 lt_use_gnu_ld_interface=yes
9832 ;;
9833 esac
9834 fi
9835
9836 if test yes = "$lt_use_gnu_ld_interface"; then
9837 # If archive_cmds runs LD, not CC, wlarc should be empty
9838 wlarc='$wl'
9839
9840 # Set some defaults for GNU ld with shared library support. These
9841 # are reset later if shared libraries are not supported. Putting them
9842 # here allows them to be overridden if necessary.
9843 runpath_var=LD_RUN_PATH
9844 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9845 export_dynamic_flag_spec='$wl--export-dynamic'
9846 # ancient GNU ld didn't support --whole-archive et. al.
9847 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9848 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9849 else
9850 whole_archive_flag_spec=
9851 fi
9852 supports_anon_versioning=no
9853 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9854 *GNU\ gold*) supports_anon_versioning=yes ;;
9855 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9856 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9857 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9858 *\ 2.11.*) ;; # other 2.11 versions
9859 *) supports_anon_versioning=yes ;;
9860 esac
9861
9862 # See if GNU ld supports shared libraries.
9863 case $host_os in
9864 aix[3-9]*)
9865 # On AIX/PPC, the GNU linker is very broken
9866 if test ia64 != "$host_cpu"; then
9867 ld_shlibs=no
9868 cat <<_LT_EOF 1>&2
9869
9870 *** Warning: the GNU linker, at least up to release 2.19, is reported
9871 *** to be unable to reliably create shared libraries on AIX.
9872 *** Therefore, libtool is disabling shared libraries support. If you
9873 *** really care for shared libraries, you may want to install binutils
9874 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9875 *** You will then need to restart the configuration process.
9876
9877 _LT_EOF
9878 fi
9879 ;;
9880
9881 amigaos*)
9882 case $host_cpu in
9883 powerpc)
9884 # see comment about AmigaOS4 .so support
9885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9886 archive_expsym_cmds=''
9887 ;;
9888 m68k)
9889 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)'
9890 hardcode_libdir_flag_spec='-L$libdir'
9891 hardcode_minus_L=yes
9892 ;;
9893 esac
9894 ;;
9895
9896 beos*)
9897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9898 allow_undefined_flag=unsupported
9899 # Joseph Beckenbach <[email protected]> says some releases of gcc
9900 # support --undefined. This deserves some investigation. FIXME
9901 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9902 else
9903 ld_shlibs=no
9904 fi
9905 ;;
9906
9907 cygwin* | mingw* | pw32* | cegcc*)
9908 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9909 # as there is no search path for DLLs.
9910 hardcode_libdir_flag_spec='-L$libdir'
9911 export_dynamic_flag_spec='$wl--export-all-symbols'
9912 allow_undefined_flag=unsupported
9913 always_export_symbols=no
9914 enable_shared_with_static_runtimes=yes
9915 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'
9916 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9917
9918 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9920 # If the export-symbols file already is a .def file, use it as
9921 # is; otherwise, prepend EXPORTS...
9922 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9923 cp $export_symbols $output_objdir/$soname.def;
9924 else
9925 echo EXPORTS > $output_objdir/$soname.def;
9926 cat $export_symbols >> $output_objdir/$soname.def;
9927 fi~
9928 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9929 else
9930 ld_shlibs=no
9931 fi
9932 ;;
9933
9934 haiku*)
9935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9936 link_all_deplibs=yes
9937 ;;
9938
9939 os2*)
9940 hardcode_libdir_flag_spec='-L$libdir'
9941 hardcode_minus_L=yes
9942 allow_undefined_flag=unsupported
9943 shrext_cmds=.dll
9944 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9945 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9946 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9947 $ECHO EXPORTS >> $output_objdir/$libname.def~
9948 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9949 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9950 emximp -o $lib $output_objdir/$libname.def'
9951 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9952 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9953 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9954 $ECHO EXPORTS >> $output_objdir/$libname.def~
9955 prefix_cmds="$SED"~
9956 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9957 prefix_cmds="$prefix_cmds -e 1d";
9958 fi~
9959 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9960 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9961 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9962 emximp -o $lib $output_objdir/$libname.def'
9963 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9964 enable_shared_with_static_runtimes=yes
9965 ;;
9966
9967 interix[3-9]*)
9968 hardcode_direct=no
9969 hardcode_shlibpath_var=no
9970 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9971 export_dynamic_flag_spec='$wl-E'
9972 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9973 # Instead, shared libraries are loaded at an image base (0x10000000 by
9974 # default) and relocated if they conflict, which is a slow very memory
9975 # consuming and fragmenting process. To avoid this, we pick a random,
9976 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9977 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9978 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9979 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'
9980 ;;
9981
9982 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9983 tmp_diet=no
9984 if test linux-dietlibc = "$host_os"; then
9985 case $cc_basename in
9986 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9987 esac
9988 fi
9989 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9990 && test no = "$tmp_diet"
9991 then
9992 tmp_addflag=' $pic_flag'
9993 tmp_sharedflag='-shared'
9994 case $cc_basename,$host_cpu in
9995 pgcc*) # Portland Group C compiler
9996 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'
9997 tmp_addflag=' $pic_flag'
9998 ;;
9999 pgf77* | pgf90* | pgf95* | pgfortran*)
10000 # Portland Group f77 and f90 compilers
10001 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'
10002 tmp_addflag=' $pic_flag -Mnomain' ;;
10003 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10004 tmp_addflag=' -i_dynamic' ;;
10005 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10006 tmp_addflag=' -i_dynamic -nofor_main' ;;
10007 ifc* | ifort*) # Intel Fortran compiler
10008 tmp_addflag=' -nofor_main' ;;
10009 lf95*) # Lahey Fortran 8.1
10010 whole_archive_flag_spec=
10011 tmp_sharedflag='--shared' ;;
10012 nagfor*) # NAGFOR 5.3
10013 tmp_sharedflag='-Wl,-shared' ;;
10014 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10015 tmp_sharedflag='-qmkshrobj'
10016 tmp_addflag= ;;
10017 nvcc*) # Cuda Compiler Driver 2.2
10018 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'
10019 compiler_needs_object=yes
10020 ;;
10021 esac
10022 case `$CC -V 2>&1 | sed 5q` in
10023 *Sun\ C*) # Sun C 5.9
10024 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'
10025 compiler_needs_object=yes
10026 tmp_sharedflag='-G' ;;
10027 *Sun\ F*) # Sun Fortran 8.3
10028 tmp_sharedflag='-G' ;;
10029 esac
10030 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10031
10032 if test yes = "$supports_anon_versioning"; then
10033 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10034 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10035 echo "local: *; };" >> $output_objdir/$libname.ver~
10036 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10037 fi
10038
10039 case $cc_basename in
10040 tcc*)
10041 export_dynamic_flag_spec='-rdynamic'
10042 ;;
10043 xlf* | bgf* | bgxlf* | mpixlf*)
10044 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10045 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10046 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10047 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10048 if test yes = "$supports_anon_versioning"; then
10049 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10051 echo "local: *; };" >> $output_objdir/$libname.ver~
10052 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10053 fi
10054 ;;
10055 esac
10056 else
10057 ld_shlibs=no
10058 fi
10059 ;;
10060
10061 netbsd* | netbsdelf*-gnu)
10062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10063 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10064 wlarc=
10065 else
10066 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10067 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10068 fi
10069 ;;
10070
10071 solaris*)
10072 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10073 ld_shlibs=no
10074 cat <<_LT_EOF 1>&2
10075
10076 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10077 *** create shared libraries on Solaris systems. Therefore, libtool
10078 *** is disabling shared libraries support. We urge you to upgrade GNU
10079 *** binutils to release 2.9.1 or newer. Another option is to modify
10080 *** your PATH or compiler configuration so that the native linker is
10081 *** used, and then restart.
10082
10083 _LT_EOF
10084 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10085 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10086 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10087 else
10088 ld_shlibs=no
10089 fi
10090 ;;
10091
10092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10093 case `$LD -v 2>&1` in
10094 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10095 ld_shlibs=no
10096 cat <<_LT_EOF 1>&2
10097
10098 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10099 *** reliably create shared libraries on SCO systems. Therefore, libtool
10100 *** is disabling shared libraries support. We urge you to upgrade GNU
10101 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10102 *** your PATH or compiler configuration so that the native linker is
10103 *** used, and then restart.
10104
10105 _LT_EOF
10106 ;;
10107 *)
10108 # For security reasons, it is highly recommended that you always
10109 # use absolute paths for naming shared libraries, and exclude the
10110 # DT_RUNPATH tag from executables and libraries. But doing so
10111 # requires that you compile everything twice, which is a pain.
10112 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10113 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10115 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10116 else
10117 ld_shlibs=no
10118 fi
10119 ;;
10120 esac
10121 ;;
10122
10123 sunos4*)
10124 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10125 wlarc=
10126 hardcode_direct=yes
10127 hardcode_shlibpath_var=no
10128 ;;
10129
10130 *)
10131 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10132 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10133 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10134 else
10135 ld_shlibs=no
10136 fi
10137 ;;
10138 esac
10139
10140 if test no = "$ld_shlibs"; then
10141 runpath_var=
10142 hardcode_libdir_flag_spec=
10143 export_dynamic_flag_spec=
10144 whole_archive_flag_spec=
10145 fi
10146 else
10147 # PORTME fill in a description of your system's linker (not GNU ld)
10148 case $host_os in
10149 aix3*)
10150 allow_undefined_flag=unsupported
10151 always_export_symbols=yes
10152 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'
10153 # Note: this linker hardcodes the directories in LIBPATH if there
10154 # are no directories specified by -L.
10155 hardcode_minus_L=yes
10156 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10157 # Neither direct hardcoding nor static linking is supported with a
10158 # broken collect2.
10159 hardcode_direct=unsupported
10160 fi
10161 ;;
10162
10163 aix[4-9]*)
10164 if test ia64 = "$host_cpu"; then
10165 # On IA64, the linker does run time linking by default, so we don't
10166 # have to do anything special.
10167 aix_use_runtimelinking=no
10168 exp_sym_flag='-Bexport'
10169 no_entry_flag=
10170 else
10171 # If we're using GNU nm, then we don't want the "-C" option.
10172 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10173 # Without the "-l" option, or with the "-B" option, AIX nm treats
10174 # weak defined symbols like other global defined symbols, whereas
10175 # GNU nm marks them as "W".
10176 # While the 'weak' keyword is ignored in the Export File, we need
10177 # it in the Import File for the 'aix-soname' feature, so we have
10178 # to replace the "-B" option with "-P" for AIX nm.
10179 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10180 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10181 else
10182 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10183 fi
10184 aix_use_runtimelinking=no
10185
10186 # Test if we are trying to use run time linking or normal
10187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10188 # have runtime linking enabled, and use it for executables.
10189 # For shared libraries, we enable/disable runtime linking
10190 # depending on the kind of the shared library created -
10191 # when "with_aix_soname,aix_use_runtimelinking" is:
10192 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10193 # "aix,yes" lib.so shared, rtl:yes, for executables
10194 # lib.a static archive
10195 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10196 # lib.a(lib.so.V) shared, rtl:no, for executables
10197 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10198 # lib.a(lib.so.V) shared, rtl:no
10199 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10200 # lib.a static archive
10201 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10202 for ld_flag in $LDFLAGS; do
10203 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10204 aix_use_runtimelinking=yes
10205 break
10206 fi
10207 done
10208 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10209 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10210 # so we don't have lib.a shared libs to link our executables.
10211 # We have to force runtime linking in this case.
10212 aix_use_runtimelinking=yes
10213 LDFLAGS="$LDFLAGS -Wl,-brtl"
10214 fi
10215 ;;
10216 esac
10217
10218 exp_sym_flag='-bexport'
10219 no_entry_flag='-bnoentry'
10220 fi
10221
10222 # When large executables or shared objects are built, AIX ld can
10223 # have problems creating the table of contents. If linking a library
10224 # or program results in "error TOC overflow" add -mminimal-toc to
10225 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10226 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10227
10228 archive_cmds=''
10229 hardcode_direct=yes
10230 hardcode_direct_absolute=yes
10231 hardcode_libdir_separator=':'
10232 link_all_deplibs=yes
10233 file_list_spec='$wl-f,'
10234 case $with_aix_soname,$aix_use_runtimelinking in
10235 aix,*) ;; # traditional, no import file
10236 svr4,* | *,yes) # use import file
10237 # The Import File defines what to hardcode.
10238 hardcode_direct=no
10239 hardcode_direct_absolute=no
10240 ;;
10241 esac
10242
10243 if test yes = "$GCC"; then
10244 case $host_os in aix4.[012]|aix4.[012].*)
10245 # We only want to do this on AIX 4.2 and lower, the check
10246 # below for broken collect2 doesn't work under 4.3+
10247 collect2name=`$CC -print-prog-name=collect2`
10248 if test -f "$collect2name" &&
10249 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10250 then
10251 # We have reworked collect2
10252 :
10253 else
10254 # We have old collect2
10255 hardcode_direct=unsupported
10256 # It fails to find uninstalled libraries when the uninstalled
10257 # path is not listed in the libpath. Setting hardcode_minus_L
10258 # to unsupported forces relinking
10259 hardcode_minus_L=yes
10260 hardcode_libdir_flag_spec='-L$libdir'
10261 hardcode_libdir_separator=
10262 fi
10263 ;;
10264 esac
10265 shared_flag='-shared'
10266 if test yes = "$aix_use_runtimelinking"; then
10267 shared_flag="$shared_flag "'$wl-G'
10268 fi
10269 # Need to ensure runtime linking is disabled for the traditional
10270 # shared library, or the linker may eventually find shared libraries
10271 # /with/ Import File - we do not want to mix them.
10272 shared_flag_aix='-shared'
10273 shared_flag_svr4='-shared $wl-G'
10274 else
10275 # not using gcc
10276 if test ia64 = "$host_cpu"; then
10277 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10278 # chokes on -Wl,-G. The following line is correct:
10279 shared_flag='-G'
10280 else
10281 if test yes = "$aix_use_runtimelinking"; then
10282 shared_flag='$wl-G'
10283 else
10284 shared_flag='$wl-bM:SRE'
10285 fi
10286 shared_flag_aix='$wl-bM:SRE'
10287 shared_flag_svr4='$wl-G'
10288 fi
10289 fi
10290
10291 export_dynamic_flag_spec='$wl-bexpall'
10292 # It seems that -bexpall does not export symbols beginning with
10293 # underscore (_), so it is better to generate a list of symbols to export.
10294 always_export_symbols=yes
10295 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10296 # Warning - without using the other runtime loading flags (-brtl),
10297 # -berok will link without error, but may produce a broken library.
10298 allow_undefined_flag='-berok'
10299 # Determine the default libpath from the value encoded in an
10300 # empty executable.
10301 if test set = "${lt_cv_aix_libpath+set}"; then
10302 aix_libpath=$lt_cv_aix_libpath
10303 else
10304 if ${lt_cv_aix_libpath_+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309
10310 int
10311 main ()
10312 {
10313
10314 ;
10315 return 0;
10316 }
10317 _ACEOF
10318 if ac_fn_c_try_link "$LINENO"; then :
10319
10320 lt_aix_libpath_sed='
10321 /Import File Strings/,/^$/ {
10322 /^0/ {
10323 s/^0 *\([^ ]*\) *$/\1/
10324 p
10325 }
10326 }'
10327 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10328 # Check for a 64-bit object if we didn't find anything.
10329 if test -z "$lt_cv_aix_libpath_"; then
10330 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10331 fi
10332 fi
10333 rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10335 if test -z "$lt_cv_aix_libpath_"; then
10336 lt_cv_aix_libpath_=/usr/lib:/lib
10337 fi
10338
10339 fi
10340
10341 aix_libpath=$lt_cv_aix_libpath_
10342 fi
10343
10344 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10345 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10346 else
10347 if test ia64 = "$host_cpu"; then
10348 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10349 allow_undefined_flag="-z nodefs"
10350 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"
10351 else
10352 # Determine the default libpath from the value encoded in an
10353 # empty executable.
10354 if test set = "${lt_cv_aix_libpath+set}"; then
10355 aix_libpath=$lt_cv_aix_libpath
10356 else
10357 if ${lt_cv_aix_libpath_+:} false; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10362
10363 int
10364 main ()
10365 {
10366
10367 ;
10368 return 0;
10369 }
10370 _ACEOF
10371 if ac_fn_c_try_link "$LINENO"; then :
10372
10373 lt_aix_libpath_sed='
10374 /Import File Strings/,/^$/ {
10375 /^0/ {
10376 s/^0 *\([^ ]*\) *$/\1/
10377 p
10378 }
10379 }'
10380 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10381 # Check for a 64-bit object if we didn't find anything.
10382 if test -z "$lt_cv_aix_libpath_"; then
10383 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10384 fi
10385 fi
10386 rm -f core conftest.err conftest.$ac_objext \
10387 conftest$ac_exeext conftest.$ac_ext
10388 if test -z "$lt_cv_aix_libpath_"; then
10389 lt_cv_aix_libpath_=/usr/lib:/lib
10390 fi
10391
10392 fi
10393
10394 aix_libpath=$lt_cv_aix_libpath_
10395 fi
10396
10397 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10398 # Warning - without using the other run time loading flags,
10399 # -berok will link without error, but may produce a broken library.
10400 no_undefined_flag=' $wl-bernotok'
10401 allow_undefined_flag=' $wl-berok'
10402 if test yes = "$with_gnu_ld"; then
10403 # We only use this code for GNU lds that support --whole-archive.
10404 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10405 else
10406 # Exported symbols can be pulled into shared objects from archives
10407 whole_archive_flag_spec='$convenience'
10408 fi
10409 archive_cmds_need_lc=yes
10410 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10411 # -brtl affects multiple linker settings, -berok does not and is overridden later
10412 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10413 if test svr4 != "$with_aix_soname"; then
10414 # This is similar to how AIX traditionally builds its shared libraries.
10415 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10416 fi
10417 if test aix != "$with_aix_soname"; then
10418 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10419 else
10420 # used by -dlpreopen to get the symbols
10421 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10422 fi
10423 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10424 fi
10425 fi
10426 ;;
10427
10428 amigaos*)
10429 case $host_cpu in
10430 powerpc)
10431 # see comment about AmigaOS4 .so support
10432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10433 archive_expsym_cmds=''
10434 ;;
10435 m68k)
10436 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)'
10437 hardcode_libdir_flag_spec='-L$libdir'
10438 hardcode_minus_L=yes
10439 ;;
10440 esac
10441 ;;
10442
10443 bsdi[45]*)
10444 export_dynamic_flag_spec=-rdynamic
10445 ;;
10446
10447 cygwin* | mingw* | pw32* | cegcc*)
10448 # When not using gcc, we currently assume that we are using
10449 # Microsoft Visual C++.
10450 # hardcode_libdir_flag_spec is actually meaningless, as there is
10451 # no search path for DLLs.
10452 case $cc_basename in
10453 cl*)
10454 # Native MSVC
10455 hardcode_libdir_flag_spec=' '
10456 allow_undefined_flag=unsupported
10457 always_export_symbols=yes
10458 file_list_spec='@'
10459 # Tell ltmain to make .lib files, not .a files.
10460 libext=lib
10461 # Tell ltmain to make .dll files, not .so files.
10462 shrext_cmds=.dll
10463 # FIXME: Setting linknames here is a bad hack.
10464 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10465 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10466 cp "$export_symbols" "$output_objdir/$soname.def";
10467 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10468 else
10469 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10470 fi~
10471 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10472 linknames='
10473 # The linker will not automatically build a static lib if we build a DLL.
10474 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10475 enable_shared_with_static_runtimes=yes
10476 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10478 # Don't use ranlib
10479 old_postinstall_cmds='chmod 644 $oldlib'
10480 postlink_cmds='lt_outputfile="@OUTPUT@"~
10481 lt_tool_outputfile="@TOOL_OUTPUT@"~
10482 case $lt_outputfile in
10483 *.exe|*.EXE) ;;
10484 *)
10485 lt_outputfile=$lt_outputfile.exe
10486 lt_tool_outputfile=$lt_tool_outputfile.exe
10487 ;;
10488 esac~
10489 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10490 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10491 $RM "$lt_outputfile.manifest";
10492 fi'
10493 ;;
10494 *)
10495 # Assume MSVC wrapper
10496 hardcode_libdir_flag_spec=' '
10497 allow_undefined_flag=unsupported
10498 # Tell ltmain to make .lib files, not .a files.
10499 libext=lib
10500 # Tell ltmain to make .dll files, not .so files.
10501 shrext_cmds=.dll
10502 # FIXME: Setting linknames here is a bad hack.
10503 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10504 # The linker will automatically build a .lib file if we build a DLL.
10505 old_archive_from_new_cmds='true'
10506 # FIXME: Should let the user specify the lib program.
10507 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10508 enable_shared_with_static_runtimes=yes
10509 ;;
10510 esac
10511 ;;
10512
10513 darwin* | rhapsody*)
10514
10515
10516 archive_cmds_need_lc=no
10517 hardcode_direct=no
10518 hardcode_automatic=yes
10519 hardcode_shlibpath_var=unsupported
10520 if test yes = "$lt_cv_ld_force_load"; then
10521 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\"`'
10522
10523 else
10524 whole_archive_flag_spec=''
10525 fi
10526 link_all_deplibs=yes
10527 allow_undefined_flag=$_lt_dar_allow_undefined
10528 case $cc_basename in
10529 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10530 *) _lt_dar_can_shared=$GCC ;;
10531 esac
10532 if test yes = "$_lt_dar_can_shared"; then
10533 output_verbose_link_cmd=func_echo_all
10534 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10535 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10536 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"
10537 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"
10538
10539 else
10540 ld_shlibs=no
10541 fi
10542
10543 ;;
10544
10545 dgux*)
10546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10547 hardcode_libdir_flag_spec='-L$libdir'
10548 hardcode_shlibpath_var=no
10549 ;;
10550
10551 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10552 # support. Future versions do this automatically, but an explicit c++rt0.o
10553 # does not break anything, and helps significantly (at the cost of a little
10554 # extra space).
10555 freebsd2.2*)
10556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10557 hardcode_libdir_flag_spec='-R$libdir'
10558 hardcode_direct=yes
10559 hardcode_shlibpath_var=no
10560 ;;
10561
10562 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10563 freebsd2.*)
10564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_direct=yes
10566 hardcode_minus_L=yes
10567 hardcode_shlibpath_var=no
10568 ;;
10569
10570 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10571 freebsd* | dragonfly*)
10572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10573 hardcode_libdir_flag_spec='-R$libdir'
10574 hardcode_direct=yes
10575 hardcode_shlibpath_var=no
10576 ;;
10577
10578 hpux9*)
10579 if test yes = "$GCC"; then
10580 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10581 else
10582 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10583 fi
10584 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10585 hardcode_libdir_separator=:
10586 hardcode_direct=yes
10587
10588 # hardcode_minus_L: Not really in the search PATH,
10589 # but as the default location of the library.
10590 hardcode_minus_L=yes
10591 export_dynamic_flag_spec='$wl-E'
10592 ;;
10593
10594 hpux10*)
10595 if test yes,no = "$GCC,$with_gnu_ld"; then
10596 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10597 else
10598 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10599 fi
10600 if test no = "$with_gnu_ld"; then
10601 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10602 hardcode_libdir_separator=:
10603 hardcode_direct=yes
10604 hardcode_direct_absolute=yes
10605 export_dynamic_flag_spec='$wl-E'
10606 # hardcode_minus_L: Not really in the search PATH,
10607 # but as the default location of the library.
10608 hardcode_minus_L=yes
10609 fi
10610 ;;
10611
10612 hpux11*)
10613 if test yes,no = "$GCC,$with_gnu_ld"; then
10614 case $host_cpu in
10615 hppa*64*)
10616 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 ;;
10618 ia64*)
10619 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10620 ;;
10621 *)
10622 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10623 ;;
10624 esac
10625 else
10626 case $host_cpu in
10627 hppa*64*)
10628 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10629 ;;
10630 ia64*)
10631 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10632 ;;
10633 *)
10634
10635 # Older versions of the 11.00 compiler do not understand -b yet
10636 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10638 $as_echo_n "checking if $CC understands -b... " >&6; }
10639 if ${lt_cv_prog_compiler__b+:} false; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 lt_cv_prog_compiler__b=no
10643 save_LDFLAGS=$LDFLAGS
10644 LDFLAGS="$LDFLAGS -b"
10645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10647 # The linker can only warn and ignore the option if not recognized
10648 # So say no if there are warnings
10649 if test -s conftest.err; then
10650 # Append any errors to the config.log.
10651 cat conftest.err 1>&5
10652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10654 if diff conftest.exp conftest.er2 >/dev/null; then
10655 lt_cv_prog_compiler__b=yes
10656 fi
10657 else
10658 lt_cv_prog_compiler__b=yes
10659 fi
10660 fi
10661 $RM -r conftest*
10662 LDFLAGS=$save_LDFLAGS
10663
10664 fi
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10666 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10667
10668 if test yes = "$lt_cv_prog_compiler__b"; then
10669 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10670 else
10671 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10672 fi
10673
10674 ;;
10675 esac
10676 fi
10677 if test no = "$with_gnu_ld"; then
10678 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10679 hardcode_libdir_separator=:
10680
10681 case $host_cpu in
10682 hppa*64*|ia64*)
10683 hardcode_direct=no
10684 hardcode_shlibpath_var=no
10685 ;;
10686 *)
10687 hardcode_direct=yes
10688 hardcode_direct_absolute=yes
10689 export_dynamic_flag_spec='$wl-E'
10690
10691 # hardcode_minus_L: Not really in the search PATH,
10692 # but as the default location of the library.
10693 hardcode_minus_L=yes
10694 ;;
10695 esac
10696 fi
10697 ;;
10698
10699 irix5* | irix6* | nonstopux*)
10700 if test yes = "$GCC"; then
10701 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'
10702 # Try to use the -exported_symbol ld option, if it does not
10703 # work, assume that -exports_file does not work either and
10704 # implicitly export all symbols.
10705 # This should be the same for all languages, so no per-tag cache variable.
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10707 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10708 if ${lt_cv_irix_exported_symbol+:} false; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 save_LDFLAGS=$LDFLAGS
10712 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715 int foo (void) { return 0; }
10716 _ACEOF
10717 if ac_fn_c_try_link "$LINENO"; then :
10718 lt_cv_irix_exported_symbol=yes
10719 else
10720 lt_cv_irix_exported_symbol=no
10721 fi
10722 rm -f core conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10724 LDFLAGS=$save_LDFLAGS
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10727 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10728 if test yes = "$lt_cv_irix_exported_symbol"; then
10729 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'
10730 fi
10731 link_all_deplibs=no
10732 else
10733 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'
10734 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'
10735 fi
10736 archive_cmds_need_lc='no'
10737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10738 hardcode_libdir_separator=:
10739 inherit_rpath=yes
10740 link_all_deplibs=yes
10741 ;;
10742
10743 linux*)
10744 case $cc_basename in
10745 tcc*)
10746 # Fabrice Bellard et al's Tiny C Compiler
10747 ld_shlibs=yes
10748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10749 ;;
10750 esac
10751 ;;
10752
10753 netbsd* | netbsdelf*-gnu)
10754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10756 else
10757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10758 fi
10759 hardcode_libdir_flag_spec='-R$libdir'
10760 hardcode_direct=yes
10761 hardcode_shlibpath_var=no
10762 ;;
10763
10764 newsos6)
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_direct=yes
10767 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10768 hardcode_libdir_separator=:
10769 hardcode_shlibpath_var=no
10770 ;;
10771
10772 *nto* | *qnx*)
10773 ;;
10774
10775 openbsd* | bitrig*)
10776 if test -f /usr/libexec/ld.so; then
10777 hardcode_direct=yes
10778 hardcode_shlibpath_var=no
10779 hardcode_direct_absolute=yes
10780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10782 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10783 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10784 export_dynamic_flag_spec='$wl-E'
10785 else
10786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10787 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10788 fi
10789 else
10790 ld_shlibs=no
10791 fi
10792 ;;
10793
10794 os2*)
10795 hardcode_libdir_flag_spec='-L$libdir'
10796 hardcode_minus_L=yes
10797 allow_undefined_flag=unsupported
10798 shrext_cmds=.dll
10799 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10800 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10801 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10802 $ECHO EXPORTS >> $output_objdir/$libname.def~
10803 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10804 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10805 emximp -o $lib $output_objdir/$libname.def'
10806 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10807 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10808 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10809 $ECHO EXPORTS >> $output_objdir/$libname.def~
10810 prefix_cmds="$SED"~
10811 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10812 prefix_cmds="$prefix_cmds -e 1d";
10813 fi~
10814 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10815 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10816 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10817 emximp -o $lib $output_objdir/$libname.def'
10818 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10819 enable_shared_with_static_runtimes=yes
10820 ;;
10821
10822 osf3*)
10823 if test yes = "$GCC"; then
10824 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10825 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'
10826 else
10827 allow_undefined_flag=' -expect_unresolved \*'
10828 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'
10829 fi
10830 archive_cmds_need_lc='no'
10831 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10832 hardcode_libdir_separator=:
10833 ;;
10834
10835 osf4* | osf5*) # as osf3* with the addition of -msym flag
10836 if test yes = "$GCC"; then
10837 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10838 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'
10839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10840 else
10841 allow_undefined_flag=' -expect_unresolved \*'
10842 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'
10843 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~
10844 $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'
10845
10846 # Both c and cxx compiler support -rpath directly
10847 hardcode_libdir_flag_spec='-rpath $libdir'
10848 fi
10849 archive_cmds_need_lc='no'
10850 hardcode_libdir_separator=:
10851 ;;
10852
10853 solaris*)
10854 no_undefined_flag=' -z defs'
10855 if test yes = "$GCC"; then
10856 wlarc='$wl'
10857 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10859 $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'
10860 else
10861 case `$CC -V 2>&1` in
10862 *"Compilers 5.0"*)
10863 wlarc=''
10864 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10866 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10867 ;;
10868 *)
10869 wlarc='$wl'
10870 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10871 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10872 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10873 ;;
10874 esac
10875 fi
10876 hardcode_libdir_flag_spec='-R$libdir'
10877 hardcode_shlibpath_var=no
10878 case $host_os in
10879 solaris2.[0-5] | solaris2.[0-5].*) ;;
10880 *)
10881 # The compiler driver will combine and reorder linker options,
10882 # but understands '-z linker_flag'. GCC discards it without '$wl',
10883 # but is careful enough not to reorder.
10884 # Supported since Solaris 2.6 (maybe 2.5.1?)
10885 if test yes = "$GCC"; then
10886 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10887 else
10888 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10889 fi
10890 ;;
10891 esac
10892 link_all_deplibs=yes
10893 ;;
10894
10895 sunos4*)
10896 if test sequent = "$host_vendor"; then
10897 # Use $CC to link under sequent, because it throws in some extra .o
10898 # files that make .init and .fini sections work.
10899 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10900 else
10901 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10902 fi
10903 hardcode_libdir_flag_spec='-L$libdir'
10904 hardcode_direct=yes
10905 hardcode_minus_L=yes
10906 hardcode_shlibpath_var=no
10907 ;;
10908
10909 sysv4)
10910 case $host_vendor in
10911 sni)
10912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913 hardcode_direct=yes # is this really true???
10914 ;;
10915 siemens)
10916 ## LD is ld it makes a PLAMLIB
10917 ## CC just makes a GrossModule.
10918 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10919 reload_cmds='$CC -r -o $output$reload_objs'
10920 hardcode_direct=no
10921 ;;
10922 motorola)
10923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10924 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10925 ;;
10926 esac
10927 runpath_var='LD_RUN_PATH'
10928 hardcode_shlibpath_var=no
10929 ;;
10930
10931 sysv4.3*)
10932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933 hardcode_shlibpath_var=no
10934 export_dynamic_flag_spec='-Bexport'
10935 ;;
10936
10937 sysv4*MP*)
10938 if test -d /usr/nec; then
10939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10940 hardcode_shlibpath_var=no
10941 runpath_var=LD_RUN_PATH
10942 hardcode_runpath_var=yes
10943 ld_shlibs=yes
10944 fi
10945 ;;
10946
10947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10948 no_undefined_flag='$wl-z,text'
10949 archive_cmds_need_lc=no
10950 hardcode_shlibpath_var=no
10951 runpath_var='LD_RUN_PATH'
10952
10953 if test yes = "$GCC"; then
10954 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 else
10957 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 fi
10960 ;;
10961
10962 sysv5* | sco3.2v5* | sco5v6*)
10963 # Note: We CANNOT use -z defs as we might desire, because we do not
10964 # link with -lc, and that would cause any symbols used from libc to
10965 # always be unresolved, which means just about no library would
10966 # ever link correctly. If we're not using GNU ld we use -z text
10967 # though, which does catch some bad symbols but isn't as heavy-handed
10968 # as -z defs.
10969 no_undefined_flag='$wl-z,text'
10970 allow_undefined_flag='$wl-z,nodefs'
10971 archive_cmds_need_lc=no
10972 hardcode_shlibpath_var=no
10973 hardcode_libdir_flag_spec='$wl-R,$libdir'
10974 hardcode_libdir_separator=':'
10975 link_all_deplibs=yes
10976 export_dynamic_flag_spec='$wl-Bexport'
10977 runpath_var='LD_RUN_PATH'
10978
10979 if test yes = "$GCC"; then
10980 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10981 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 else
10983 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10984 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10985 fi
10986 ;;
10987
10988 uts4*)
10989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_libdir_flag_spec='-L$libdir'
10991 hardcode_shlibpath_var=no
10992 ;;
10993
10994 *)
10995 ld_shlibs=no
10996 ;;
10997 esac
10998
10999 if test sni = "$host_vendor"; then
11000 case $host in
11001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11002 export_dynamic_flag_spec='$wl-Blargedynsym'
11003 ;;
11004 esac
11005 fi
11006 fi
11007
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11009 $as_echo "$ld_shlibs" >&6; }
11010 test no = "$ld_shlibs" && can_build_shared=no
11011
11012 with_gnu_ld=$with_gnu_ld
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028 #
11029 # Do we need to explicitly link libc?
11030 #
11031 case "x$archive_cmds_need_lc" in
11032 x|xyes)
11033 # Assume -lc should be added
11034 archive_cmds_need_lc=yes
11035
11036 if test yes,yes = "$GCC,$enable_shared"; then
11037 case $archive_cmds in
11038 *'~'*)
11039 # FIXME: we may have to deal with multi-command sequences.
11040 ;;
11041 '$CC '*)
11042 # Test whether the compiler implicitly links with -lc since on some
11043 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11044 # to ld, don't add -lc before -lgcc.
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11046 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11047 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 $RM conftest*
11051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11052
11053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11054 (eval $ac_compile) 2>&5
11055 ac_status=$?
11056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11057 test $ac_status = 0; } 2>conftest.err; then
11058 soname=conftest
11059 lib=conftest
11060 libobjs=conftest.$ac_objext
11061 deplibs=
11062 wl=$lt_prog_compiler_wl
11063 pic_flag=$lt_prog_compiler_pic
11064 compiler_flags=-v
11065 linker_flags=-v
11066 verstring=
11067 output_objdir=.
11068 libname=conftest
11069 lt_save_allow_undefined_flag=$allow_undefined_flag
11070 allow_undefined_flag=
11071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11072 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11073 ac_status=$?
11074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11075 test $ac_status = 0; }
11076 then
11077 lt_cv_archive_cmds_need_lc=no
11078 else
11079 lt_cv_archive_cmds_need_lc=yes
11080 fi
11081 allow_undefined_flag=$lt_save_allow_undefined_flag
11082 else
11083 cat conftest.err 1>&5
11084 fi
11085 $RM conftest*
11086
11087 fi
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11089 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11090 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11091 ;;
11092 esac
11093 fi
11094 ;;
11095 esac
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11249 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11250
11251 if test yes = "$GCC"; then
11252 case $host_os in
11253 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11254 *) lt_awk_arg='/^libraries:/' ;;
11255 esac
11256 case $host_os in
11257 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11258 *) lt_sed_strip_eq='s|=/|/|g' ;;
11259 esac
11260 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11261 case $lt_search_path_spec in
11262 *\;*)
11263 # if the path contains ";" then we assume it to be the separator
11264 # otherwise default to the standard path separator (i.e. ":") - it is
11265 # assumed that no part of a normal pathname contains ";" but that should
11266 # okay in the real world where ";" in dirpaths is itself problematic.
11267 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11268 ;;
11269 *)
11270 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11271 ;;
11272 esac
11273 # Ok, now we have the path, separated by spaces, we can step through it
11274 # and add multilib dir if necessary...
11275 lt_tmp_lt_search_path_spec=
11276 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11277 # ...but if some path component already ends with the multilib dir we assume
11278 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11279 case "$lt_multi_os_dir; $lt_search_path_spec " in
11280 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11281 lt_multi_os_dir=
11282 ;;
11283 esac
11284 for lt_sys_path in $lt_search_path_spec; do
11285 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11286 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11287 elif test -n "$lt_multi_os_dir"; then
11288 test -d "$lt_sys_path" && \
11289 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11290 fi
11291 done
11292 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11293 BEGIN {RS = " "; FS = "/|\n";} {
11294 lt_foo = "";
11295 lt_count = 0;
11296 for (lt_i = NF; lt_i > 0; lt_i--) {
11297 if ($lt_i != "" && $lt_i != ".") {
11298 if ($lt_i == "..") {
11299 lt_count++;
11300 } else {
11301 if (lt_count == 0) {
11302 lt_foo = "/" $lt_i lt_foo;
11303 } else {
11304 lt_count--;
11305 }
11306 }
11307 }
11308 }
11309 if (lt_foo != "") { lt_freq[lt_foo]++; }
11310 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11311 }'`
11312 # AWK program above erroneously prepends '/' to C:/dos/paths
11313 # for these hosts.
11314 case $host_os in
11315 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11316 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11317 esac
11318 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11319 else
11320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11321 fi
11322 library_names_spec=
11323 libname_spec='lib$name'
11324 soname_spec=
11325 shrext_cmds=.so
11326 postinstall_cmds=
11327 postuninstall_cmds=
11328 finish_cmds=
11329 finish_eval=
11330 shlibpath_var=
11331 shlibpath_overrides_runpath=unknown
11332 version_type=none
11333 dynamic_linker="$host_os ld.so"
11334 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11335 need_lib_prefix=unknown
11336 hardcode_into_libs=no
11337
11338 # when you set need_version to no, make sure it does not cause -set_version
11339 # flags to be left without arguments
11340 need_version=unknown
11341
11342
11343
11344 case $host_os in
11345 aix3*)
11346 version_type=linux # correct to gnu/linux during the next big refactor
11347 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11348 shlibpath_var=LIBPATH
11349
11350 # AIX 3 has no versioning support, so we append a major version to the name.
11351 soname_spec='$libname$release$shared_ext$major'
11352 ;;
11353
11354 aix[4-9]*)
11355 version_type=linux # correct to gnu/linux during the next big refactor
11356 need_lib_prefix=no
11357 need_version=no
11358 hardcode_into_libs=yes
11359 if test ia64 = "$host_cpu"; then
11360 # AIX 5 supports IA64
11361 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 else
11364 # With GCC up to 2.95.x, collect2 would create an import file
11365 # for dependence libraries. The import file would start with
11366 # the line '#! .'. This would cause the generated library to
11367 # depend on '.', always an invalid library. This was fixed in
11368 # development snapshots of GCC prior to 3.0.
11369 case $host_os in
11370 aix4 | aix4.[01] | aix4.[01].*)
11371 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11372 echo ' yes '
11373 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11374 :
11375 else
11376 can_build_shared=no
11377 fi
11378 ;;
11379 esac
11380 # Using Import Files as archive members, it is possible to support
11381 # filename-based versioning of shared library archives on AIX. While
11382 # this would work for both with and without runtime linking, it will
11383 # prevent static linking of such archives. So we do filename-based
11384 # shared library versioning with .so extension only, which is used
11385 # when both runtime linking and shared linking is enabled.
11386 # Unfortunately, runtime linking may impact performance, so we do
11387 # not want this to be the default eventually. Also, we use the
11388 # versioned .so libs for executables only if there is the -brtl
11389 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11390 # To allow for filename-based versioning support, we need to create
11391 # libNAME.so.V as an archive file, containing:
11392 # *) an Import File, referring to the versioned filename of the
11393 # archive as well as the shared archive member, telling the
11394 # bitwidth (32 or 64) of that shared object, and providing the
11395 # list of exported symbols of that shared object, eventually
11396 # decorated with the 'weak' keyword
11397 # *) the shared object with the F_LOADONLY flag set, to really avoid
11398 # it being seen by the linker.
11399 # At run time we better use the real file rather than another symlink,
11400 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11401
11402 case $with_aix_soname,$aix_use_runtimelinking in
11403 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11404 # soname into executable. Probably we can add versioning support to
11405 # collect2, so additional links can be useful in future.
11406 aix,yes) # traditional libtool
11407 dynamic_linker='AIX unversionable lib.so'
11408 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11409 # instead of lib<name>.a to let people know that these are not
11410 # typical AIX shared libraries.
11411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11412 ;;
11413 aix,no) # traditional AIX only
11414 dynamic_linker='AIX lib.a(lib.so.V)'
11415 # We preserve .a as extension for shared libraries through AIX4.2
11416 # and later when we are not doing run time linking.
11417 library_names_spec='$libname$release.a $libname.a'
11418 soname_spec='$libname$release$shared_ext$major'
11419 ;;
11420 svr4,*) # full svr4 only
11421 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11422 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11423 # We do not specify a path in Import Files, so LIBPATH fires.
11424 shlibpath_overrides_runpath=yes
11425 ;;
11426 *,yes) # both, prefer svr4
11427 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11428 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11429 # unpreferred sharedlib libNAME.a needs extra handling
11430 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11431 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11432 # We do not specify a path in Import Files, so LIBPATH fires.
11433 shlibpath_overrides_runpath=yes
11434 ;;
11435 *,no) # both, prefer aix
11436 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11437 library_names_spec='$libname$release.a $libname.a'
11438 soname_spec='$libname$release$shared_ext$major'
11439 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11440 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11441 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11442 ;;
11443 esac
11444 shlibpath_var=LIBPATH
11445 fi
11446 ;;
11447
11448 amigaos*)
11449 case $host_cpu in
11450 powerpc)
11451 # Since July 2007 AmigaOS4 officially supports .so libraries.
11452 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11454 ;;
11455 m68k)
11456 library_names_spec='$libname.ixlibrary $libname.a'
11457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11458 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11459 ;;
11460 esac
11461 ;;
11462
11463 beos*)
11464 library_names_spec='$libname$shared_ext'
11465 dynamic_linker="$host_os ld.so"
11466 shlibpath_var=LIBRARY_PATH
11467 ;;
11468
11469 bsdi[45]*)
11470 version_type=linux # correct to gnu/linux during the next big refactor
11471 need_version=no
11472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11473 soname_spec='$libname$release$shared_ext$major'
11474 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11477 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11478 # the default ld.so.conf also contains /usr/contrib/lib and
11479 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11480 # libtool to hard-code these into programs
11481 ;;
11482
11483 cygwin* | mingw* | pw32* | cegcc*)
11484 version_type=windows
11485 shrext_cmds=.dll
11486 need_version=no
11487 need_lib_prefix=no
11488
11489 case $GCC,$cc_basename in
11490 yes,*)
11491 # gcc
11492 library_names_spec='$libname.dll.a'
11493 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11494 postinstall_cmds='base_file=`basename \$file`~
11495 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11496 dldir=$destdir/`dirname \$dlpath`~
11497 test -d \$dldir || mkdir -p \$dldir~
11498 $install_prog $dir/$dlname \$dldir/$dlname~
11499 chmod a+x \$dldir/$dlname~
11500 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11501 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11502 fi'
11503 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11504 dlpath=$dir/\$dldll~
11505 $RM \$dlpath'
11506 shlibpath_overrides_runpath=yes
11507
11508 case $host_os in
11509 cygwin*)
11510 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11511 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11512
11513 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11514 ;;
11515 mingw* | cegcc*)
11516 # MinGW DLLs use traditional 'lib' prefix
11517 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11518 ;;
11519 pw32*)
11520 # pw32 DLLs use 'pw' prefix rather than 'lib'
11521 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11522 ;;
11523 esac
11524 dynamic_linker='Win32 ld.exe'
11525 ;;
11526
11527 *,cl*)
11528 # Native MSVC
11529 libname_spec='$name'
11530 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11531 library_names_spec='$libname.dll.lib'
11532
11533 case $build_os in
11534 mingw*)
11535 sys_lib_search_path_spec=
11536 lt_save_ifs=$IFS
11537 IFS=';'
11538 for lt_path in $LIB
11539 do
11540 IFS=$lt_save_ifs
11541 # Let DOS variable expansion print the short 8.3 style file name.
11542 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11543 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11544 done
11545 IFS=$lt_save_ifs
11546 # Convert to MSYS style.
11547 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11548 ;;
11549 cygwin*)
11550 # Convert to unix form, then to dos form, then back to unix form
11551 # but this time dos style (no spaces!) so that the unix form looks
11552 # like /cygdrive/c/PROGRA~1:/cygdr...
11553 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11554 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11555 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11556 ;;
11557 *)
11558 sys_lib_search_path_spec=$LIB
11559 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11560 # It is most probably a Windows format PATH.
11561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11562 else
11563 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11564 fi
11565 # FIXME: find the short name or the path components, as spaces are
11566 # common. (e.g. "Program Files" -> "PROGRA~1")
11567 ;;
11568 esac
11569
11570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11571 postinstall_cmds='base_file=`basename \$file`~
11572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11573 dldir=$destdir/`dirname \$dlpath`~
11574 test -d \$dldir || mkdir -p \$dldir~
11575 $install_prog $dir/$dlname \$dldir/$dlname'
11576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11577 dlpath=$dir/\$dldll~
11578 $RM \$dlpath'
11579 shlibpath_overrides_runpath=yes
11580 dynamic_linker='Win32 link.exe'
11581 ;;
11582
11583 *)
11584 # Assume MSVC wrapper
11585 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11586 dynamic_linker='Win32 ld.exe'
11587 ;;
11588 esac
11589 # FIXME: first we should search . and the directory the executable is in
11590 shlibpath_var=PATH
11591 ;;
11592
11593 darwin* | rhapsody*)
11594 dynamic_linker="$host_os dyld"
11595 version_type=darwin
11596 need_lib_prefix=no
11597 need_version=no
11598 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11599 soname_spec='$libname$release$major$shared_ext'
11600 shlibpath_overrides_runpath=yes
11601 shlibpath_var=DYLD_LIBRARY_PATH
11602 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11603
11604 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11605 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11606 ;;
11607
11608 dgux*)
11609 version_type=linux # correct to gnu/linux during the next big refactor
11610 need_lib_prefix=no
11611 need_version=no
11612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11613 soname_spec='$libname$release$shared_ext$major'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 ;;
11616
11617 freebsd* | dragonfly*)
11618 # DragonFly does not have aout. When/if they implement a new
11619 # versioning mechanism, adjust this.
11620 if test -x /usr/bin/objformat; then
11621 objformat=`/usr/bin/objformat`
11622 else
11623 case $host_os in
11624 freebsd[23].*) objformat=aout ;;
11625 *) objformat=elf ;;
11626 esac
11627 fi
11628 version_type=freebsd-$objformat
11629 case $version_type in
11630 freebsd-elf*)
11631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11632 soname_spec='$libname$release$shared_ext$major'
11633 need_version=no
11634 need_lib_prefix=no
11635 ;;
11636 freebsd-*)
11637 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11638 need_version=yes
11639 ;;
11640 esac
11641 shlibpath_var=LD_LIBRARY_PATH
11642 case $host_os in
11643 freebsd2.*)
11644 shlibpath_overrides_runpath=yes
11645 ;;
11646 freebsd3.[01]* | freebsdelf3.[01]*)
11647 shlibpath_overrides_runpath=yes
11648 hardcode_into_libs=yes
11649 ;;
11650 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11651 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11652 shlibpath_overrides_runpath=no
11653 hardcode_into_libs=yes
11654 ;;
11655 *) # from 4.6 on, and DragonFly
11656 shlibpath_overrides_runpath=yes
11657 hardcode_into_libs=yes
11658 ;;
11659 esac
11660 ;;
11661
11662 haiku*)
11663 version_type=linux # correct to gnu/linux during the next big refactor
11664 need_lib_prefix=no
11665 need_version=no
11666 dynamic_linker="$host_os runtime_loader"
11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11668 soname_spec='$libname$release$shared_ext$major'
11669 shlibpath_var=LIBRARY_PATH
11670 shlibpath_overrides_runpath=no
11671 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11672 hardcode_into_libs=yes
11673 ;;
11674
11675 hpux9* | hpux10* | hpux11*)
11676 # Give a soname corresponding to the major version so that dld.sl refuses to
11677 # link against other versions.
11678 version_type=sunos
11679 need_lib_prefix=no
11680 need_version=no
11681 case $host_cpu in
11682 ia64*)
11683 shrext_cmds='.so'
11684 hardcode_into_libs=yes
11685 dynamic_linker="$host_os dld.so"
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11689 soname_spec='$libname$release$shared_ext$major'
11690 if test 32 = "$HPUX_IA64_MODE"; then
11691 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11692 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11693 else
11694 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11695 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11696 fi
11697 ;;
11698 hppa*64*)
11699 shrext_cmds='.sl'
11700 hardcode_into_libs=yes
11701 dynamic_linker="$host_os dld.sl"
11702 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11705 soname_spec='$libname$release$shared_ext$major'
11706 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11708 ;;
11709 *)
11710 shrext_cmds='.sl'
11711 dynamic_linker="$host_os dld.sl"
11712 shlibpath_var=SHLIB_PATH
11713 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11715 soname_spec='$libname$release$shared_ext$major'
11716 ;;
11717 esac
11718 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11719 postinstall_cmds='chmod 555 $lib'
11720 # or fails outright, so override atomically:
11721 install_override_mode=555
11722 ;;
11723
11724 interix[3-9]*)
11725 version_type=linux # correct to gnu/linux during the next big refactor
11726 need_lib_prefix=no
11727 need_version=no
11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11729 soname_spec='$libname$release$shared_ext$major'
11730 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 shlibpath_overrides_runpath=no
11733 hardcode_into_libs=yes
11734 ;;
11735
11736 irix5* | irix6* | nonstopux*)
11737 case $host_os in
11738 nonstopux*) version_type=nonstopux ;;
11739 *)
11740 if test yes = "$lt_cv_prog_gnu_ld"; then
11741 version_type=linux # correct to gnu/linux during the next big refactor
11742 else
11743 version_type=irix
11744 fi ;;
11745 esac
11746 need_lib_prefix=no
11747 need_version=no
11748 soname_spec='$libname$release$shared_ext$major'
11749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11750 case $host_os in
11751 irix5* | nonstopux*)
11752 libsuff= shlibsuff=
11753 ;;
11754 *)
11755 case $LD in # libtool.m4 will add one of these switches to LD
11756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11757 libsuff= shlibsuff= libmagic=32-bit;;
11758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11759 libsuff=32 shlibsuff=N32 libmagic=N32;;
11760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11761 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11762 *) libsuff= shlibsuff= libmagic=never-match;;
11763 esac
11764 ;;
11765 esac
11766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11767 shlibpath_overrides_runpath=no
11768 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11769 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11770 hardcode_into_libs=yes
11771 ;;
11772
11773 # No shared lib support for Linux oldld, aout, or coff.
11774 linux*oldld* | linux*aout* | linux*coff*)
11775 dynamic_linker=no
11776 ;;
11777
11778 linux*android*)
11779 version_type=none # Android doesn't support versioned libraries.
11780 need_lib_prefix=no
11781 need_version=no
11782 library_names_spec='$libname$release$shared_ext'
11783 soname_spec='$libname$release$shared_ext'
11784 finish_cmds=
11785 shlibpath_var=LD_LIBRARY_PATH
11786 shlibpath_overrides_runpath=yes
11787
11788 # This implies no fast_install, which is unacceptable.
11789 # Some rework will be needed to allow for fast_install
11790 # before this can be enabled.
11791 hardcode_into_libs=yes
11792
11793 dynamic_linker='Android linker'
11794 # Don't embed -rpath directories since the linker doesn't support them.
11795 hardcode_libdir_flag_spec='-L$libdir'
11796 ;;
11797
11798 # This must be glibc/ELF.
11799 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11800 version_type=linux # correct to gnu/linux during the next big refactor
11801 need_lib_prefix=no
11802 need_version=no
11803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11804 soname_spec='$libname$release$shared_ext$major'
11805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 shlibpath_overrides_runpath=no
11808
11809 # Some binutils ld are patched to set DT_RUNPATH
11810 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812 else
11813 lt_cv_shlibpath_overrides_runpath=no
11814 save_LDFLAGS=$LDFLAGS
11815 save_libdir=$libdir
11816 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11817 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820
11821 int
11822 main ()
11823 {
11824
11825 ;
11826 return 0;
11827 }
11828 _ACEOF
11829 if ac_fn_c_try_link "$LINENO"; then :
11830 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11831 lt_cv_shlibpath_overrides_runpath=yes
11832 fi
11833 fi
11834 rm -f core conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11836 LDFLAGS=$save_LDFLAGS
11837 libdir=$save_libdir
11838
11839 fi
11840
11841 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11842
11843 # This implies no fast_install, which is unacceptable.
11844 # Some rework will be needed to allow for fast_install
11845 # before this can be enabled.
11846 hardcode_into_libs=yes
11847
11848 # Ideally, we could use ldconfig to report *all* directores which are
11849 # searched for libraries, however this is still not possible. Aside from not
11850 # being certain /sbin/ldconfig is available, command
11851 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11852 # even though it is searched at run-time. Try to do the best guess by
11853 # appending ld.so.conf contents (and includes) to the search path.
11854 if test -f /etc/ld.so.conf; then
11855 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' ' '`
11856 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11857 fi
11858
11859 # We used to test for /lib/ld.so.1 and disable shared libraries on
11860 # powerpc, because MkLinux only supported shared libraries with the
11861 # GNU dynamic linker. Since this was broken with cross compilers,
11862 # most powerpc-linux boxes support dynamic linking these days and
11863 # people can always --disable-shared, the test was removed, and we
11864 # assume the GNU/Linux dynamic linker is in use.
11865 dynamic_linker='GNU/Linux ld.so'
11866 ;;
11867
11868 netbsdelf*-gnu)
11869 version_type=linux
11870 need_lib_prefix=no
11871 need_version=no
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=no
11876 hardcode_into_libs=yes
11877 dynamic_linker='NetBSD ld.elf_so'
11878 ;;
11879
11880 netbsd*)
11881 version_type=sunos
11882 need_lib_prefix=no
11883 need_version=no
11884 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11887 dynamic_linker='NetBSD (a.out) ld.so'
11888 else
11889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11890 soname_spec='$libname$release$shared_ext$major'
11891 dynamic_linker='NetBSD ld.elf_so'
11892 fi
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=yes
11895 hardcode_into_libs=yes
11896 ;;
11897
11898 newsos6)
11899 version_type=linux # correct to gnu/linux during the next big refactor
11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 shlibpath_overrides_runpath=yes
11903 ;;
11904
11905 *nto* | *qnx*)
11906 version_type=qnx
11907 need_lib_prefix=no
11908 need_version=no
11909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11910 soname_spec='$libname$release$shared_ext$major'
11911 shlibpath_var=LD_LIBRARY_PATH
11912 shlibpath_overrides_runpath=no
11913 hardcode_into_libs=yes
11914 dynamic_linker='ldqnx.so'
11915 ;;
11916
11917 openbsd* | bitrig*)
11918 version_type=sunos
11919 sys_lib_dlsearch_path_spec=/usr/lib
11920 need_lib_prefix=no
11921 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11922 need_version=no
11923 else
11924 need_version=yes
11925 fi
11926 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 shlibpath_overrides_runpath=yes
11930 ;;
11931
11932 os2*)
11933 libname_spec='$name'
11934 version_type=windows
11935 shrext_cmds=.dll
11936 need_version=no
11937 need_lib_prefix=no
11938 # OS/2 can only load a DLL with a base name of 8 characters or less.
11939 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11940 v=$($ECHO $release$versuffix | tr -d .-);
11941 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11942 $ECHO $n$v`$shared_ext'
11943 library_names_spec='${libname}_dll.$libext'
11944 dynamic_linker='OS/2 ld.exe'
11945 shlibpath_var=BEGINLIBPATH
11946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11948 postinstall_cmds='base_file=`basename \$file`~
11949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11950 dldir=$destdir/`dirname \$dlpath`~
11951 test -d \$dldir || mkdir -p \$dldir~
11952 $install_prog $dir/$dlname \$dldir/$dlname~
11953 chmod a+x \$dldir/$dlname~
11954 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11955 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11956 fi'
11957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11958 dlpath=$dir/\$dldll~
11959 $RM \$dlpath'
11960 ;;
11961
11962 osf3* | osf4* | osf5*)
11963 version_type=osf
11964 need_lib_prefix=no
11965 need_version=no
11966 soname_spec='$libname$release$shared_ext$major'
11967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11968 shlibpath_var=LD_LIBRARY_PATH
11969 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11971 ;;
11972
11973 rdos*)
11974 dynamic_linker=no
11975 ;;
11976
11977 solaris*)
11978 version_type=linux # correct to gnu/linux during the next big refactor
11979 need_lib_prefix=no
11980 need_version=no
11981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11982 soname_spec='$libname$release$shared_ext$major'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 hardcode_into_libs=yes
11986 # ldd complains unless libraries are executable
11987 postinstall_cmds='chmod +x $lib'
11988 ;;
11989
11990 sunos4*)
11991 version_type=sunos
11992 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11993 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11994 shlibpath_var=LD_LIBRARY_PATH
11995 shlibpath_overrides_runpath=yes
11996 if test yes = "$with_gnu_ld"; then
11997 need_lib_prefix=no
11998 fi
11999 need_version=yes
12000 ;;
12001
12002 sysv4 | sysv4.3*)
12003 version_type=linux # correct to gnu/linux during the next big refactor
12004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12005 soname_spec='$libname$release$shared_ext$major'
12006 shlibpath_var=LD_LIBRARY_PATH
12007 case $host_vendor in
12008 sni)
12009 shlibpath_overrides_runpath=no
12010 need_lib_prefix=no
12011 runpath_var=LD_RUN_PATH
12012 ;;
12013 siemens)
12014 need_lib_prefix=no
12015 ;;
12016 motorola)
12017 need_lib_prefix=no
12018 need_version=no
12019 shlibpath_overrides_runpath=no
12020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12021 ;;
12022 esac
12023 ;;
12024
12025 sysv4*MP*)
12026 if test -d /usr/nec; then
12027 version_type=linux # correct to gnu/linux during the next big refactor
12028 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12029 soname_spec='$libname$shared_ext.$major'
12030 shlibpath_var=LD_LIBRARY_PATH
12031 fi
12032 ;;
12033
12034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12035 version_type=sco
12036 need_lib_prefix=no
12037 need_version=no
12038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12039 soname_spec='$libname$release$shared_ext$major'
12040 shlibpath_var=LD_LIBRARY_PATH
12041 shlibpath_overrides_runpath=yes
12042 hardcode_into_libs=yes
12043 if test yes = "$with_gnu_ld"; then
12044 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12045 else
12046 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12047 case $host_os in
12048 sco3.2v5*)
12049 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12050 ;;
12051 esac
12052 fi
12053 sys_lib_dlsearch_path_spec='/usr/lib'
12054 ;;
12055
12056 tpf*)
12057 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12058 version_type=linux # correct to gnu/linux during the next big refactor
12059 need_lib_prefix=no
12060 need_version=no
12061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12062 shlibpath_var=LD_LIBRARY_PATH
12063 shlibpath_overrides_runpath=no
12064 hardcode_into_libs=yes
12065 ;;
12066
12067 uts4*)
12068 version_type=linux # correct to gnu/linux during the next big refactor
12069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12070 soname_spec='$libname$release$shared_ext$major'
12071 shlibpath_var=LD_LIBRARY_PATH
12072 ;;
12073
12074 *)
12075 dynamic_linker=no
12076 ;;
12077 esac
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12079 $as_echo "$dynamic_linker" >&6; }
12080 test no = "$dynamic_linker" && can_build_shared=no
12081
12082 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12083 if test yes = "$GCC"; then
12084 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12085 fi
12086
12087 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12088 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12089 fi
12090
12091 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12092 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12093 fi
12094
12095 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12096 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12097
12098 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12099 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12100
12101 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12102 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12201 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12202 hardcode_action=
12203 if test -n "$hardcode_libdir_flag_spec" ||
12204 test -n "$runpath_var" ||
12205 test yes = "$hardcode_automatic"; then
12206
12207 # We can hardcode non-existent directories.
12208 if test no != "$hardcode_direct" &&
12209 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12210 # have to relink, otherwise we might link with an installed library
12211 # when we should be linking with a yet-to-be-installed one
12212 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12213 test no != "$hardcode_minus_L"; then
12214 # Linking always hardcodes the temporary library directory.
12215 hardcode_action=relink
12216 else
12217 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12218 hardcode_action=immediate
12219 fi
12220 else
12221 # We cannot hardcode anything, or else we can only hardcode existing
12222 # directories.
12223 hardcode_action=unsupported
12224 fi
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12226 $as_echo "$hardcode_action" >&6; }
12227
12228 if test relink = "$hardcode_action" ||
12229 test yes = "$inherit_rpath"; then
12230 # Fast installation is not supported
12231 enable_fast_install=no
12232 elif test yes = "$shlibpath_overrides_runpath" ||
12233 test no = "$enable_shared"; then
12234 # Fast installation is not necessary
12235 enable_fast_install=needless
12236 fi
12237
12238
12239
12240
12241
12242
12243 if test yes != "$enable_dlopen"; then
12244 enable_dlopen=unknown
12245 enable_dlopen_self=unknown
12246 enable_dlopen_self_static=unknown
12247 else
12248 lt_cv_dlopen=no
12249 lt_cv_dlopen_libs=
12250
12251 case $host_os in
12252 beos*)
12253 lt_cv_dlopen=load_add_on
12254 lt_cv_dlopen_libs=
12255 lt_cv_dlopen_self=yes
12256 ;;
12257
12258 mingw* | pw32* | cegcc*)
12259 lt_cv_dlopen=LoadLibrary
12260 lt_cv_dlopen_libs=
12261 ;;
12262
12263 cygwin*)
12264 lt_cv_dlopen=dlopen
12265 lt_cv_dlopen_libs=
12266 ;;
12267
12268 darwin*)
12269 # if libdl is installed we need to link against it
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12271 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12272 if ${ac_cv_lib_dl_dlopen+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-ldl $LIBS"
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12279
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283 #ifdef __cplusplus
12284 extern "C"
12285 #endif
12286 char dlopen ();
12287 int
12288 main ()
12289 {
12290 return dlopen ();
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_lib_dl_dlopen=yes
12297 else
12298 ac_cv_lib_dl_dlopen=no
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12305 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12306 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12307 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12308 else
12309
12310 lt_cv_dlopen=dyld
12311 lt_cv_dlopen_libs=
12312 lt_cv_dlopen_self=yes
12313
12314 fi
12315
12316 ;;
12317
12318 tpf*)
12319 # Don't try to run any link tests for TPF. We know it's impossible
12320 # because TPF is a cross-compiler, and we know how we open DSOs.
12321 lt_cv_dlopen=dlopen
12322 lt_cv_dlopen_libs=
12323 lt_cv_dlopen_self=no
12324 ;;
12325
12326 *)
12327 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12328 if test "x$ac_cv_func_shl_load" = xyes; then :
12329 lt_cv_dlopen=shl_load
12330 else
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12332 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12333 if ${ac_cv_lib_dld_shl_load+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-ldld $LIBS"
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 char shl_load ();
12348 int
12349 main ()
12350 {
12351 return shl_load ();
12352 ;
12353 return 0;
12354 }
12355 _ACEOF
12356 if ac_fn_c_try_link "$LINENO"; then :
12357 ac_cv_lib_dld_shl_load=yes
12358 else
12359 ac_cv_lib_dld_shl_load=no
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12366 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12367 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12368 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12369 else
12370 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12371 if test "x$ac_cv_func_dlopen" = xyes; then :
12372 lt_cv_dlopen=dlopen
12373 else
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12375 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12376 if ${ac_cv_lib_dl_dlopen+:} false; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 ac_check_lib_save_LIBS=$LIBS
12380 LIBS="-ldl $LIBS"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12387 #ifdef __cplusplus
12388 extern "C"
12389 #endif
12390 char dlopen ();
12391 int
12392 main ()
12393 {
12394 return dlopen ();
12395 ;
12396 return 0;
12397 }
12398 _ACEOF
12399 if ac_fn_c_try_link "$LINENO"; then :
12400 ac_cv_lib_dl_dlopen=yes
12401 else
12402 ac_cv_lib_dl_dlopen=no
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
12406 LIBS=$ac_check_lib_save_LIBS
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12409 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12410 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12411 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12414 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12415 if ${ac_cv_lib_svld_dlopen+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 ac_check_lib_save_LIBS=$LIBS
12419 LIBS="-lsvld $LIBS"
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422
12423 /* Override any GCC internal prototype to avoid an error.
12424 Use char because int might match the return type of a GCC
12425 builtin and then its argument prototype would still apply. */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 char dlopen ();
12430 int
12431 main ()
12432 {
12433 return dlopen ();
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439 ac_cv_lib_svld_dlopen=yes
12440 else
12441 ac_cv_lib_svld_dlopen=no
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12448 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12449 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12450 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12453 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12454 if ${ac_cv_lib_dld_dld_link+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-ldld $LIBS"
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461
12462 /* Override any GCC internal prototype to avoid an error.
12463 Use char because int might match the return type of a GCC
12464 builtin and then its argument prototype would still apply. */
12465 #ifdef __cplusplus
12466 extern "C"
12467 #endif
12468 char dld_link ();
12469 int
12470 main ()
12471 {
12472 return dld_link ();
12473 ;
12474 return 0;
12475 }
12476 _ACEOF
12477 if ac_fn_c_try_link "$LINENO"; then :
12478 ac_cv_lib_dld_dld_link=yes
12479 else
12480 ac_cv_lib_dld_dld_link=no
12481 fi
12482 rm -f core conftest.err conftest.$ac_objext \
12483 conftest$ac_exeext conftest.$ac_ext
12484 LIBS=$ac_check_lib_save_LIBS
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12487 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12488 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12489 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12490 fi
12491
12492
12493 fi
12494
12495
12496 fi
12497
12498
12499 fi
12500
12501
12502 fi
12503
12504
12505 fi
12506
12507 ;;
12508 esac
12509
12510 if test no = "$lt_cv_dlopen"; then
12511 enable_dlopen=no
12512 else
12513 enable_dlopen=yes
12514 fi
12515
12516 case $lt_cv_dlopen in
12517 dlopen)
12518 save_CPPFLAGS=$CPPFLAGS
12519 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12520
12521 save_LDFLAGS=$LDFLAGS
12522 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12523
12524 save_LIBS=$LIBS
12525 LIBS="$lt_cv_dlopen_libs $LIBS"
12526
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12528 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12529 if ${lt_cv_dlopen_self+:} false; then :
12530 $as_echo_n "(cached) " >&6
12531 else
12532 if test yes = "$cross_compiling"; then :
12533 lt_cv_dlopen_self=cross
12534 else
12535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12536 lt_status=$lt_dlunknown
12537 cat > conftest.$ac_ext <<_LT_EOF
12538 #line $LINENO "configure"
12539 #include "confdefs.h"
12540
12541 #if HAVE_DLFCN_H
12542 #include <dlfcn.h>
12543 #endif
12544
12545 #include <stdio.h>
12546
12547 #ifdef RTLD_GLOBAL
12548 # define LT_DLGLOBAL RTLD_GLOBAL
12549 #else
12550 # ifdef DL_GLOBAL
12551 # define LT_DLGLOBAL DL_GLOBAL
12552 # else
12553 # define LT_DLGLOBAL 0
12554 # endif
12555 #endif
12556
12557 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12558 find out it does not work in some platform. */
12559 #ifndef LT_DLLAZY_OR_NOW
12560 # ifdef RTLD_LAZY
12561 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12562 # else
12563 # ifdef DL_LAZY
12564 # define LT_DLLAZY_OR_NOW DL_LAZY
12565 # else
12566 # ifdef RTLD_NOW
12567 # define LT_DLLAZY_OR_NOW RTLD_NOW
12568 # else
12569 # ifdef DL_NOW
12570 # define LT_DLLAZY_OR_NOW DL_NOW
12571 # else
12572 # define LT_DLLAZY_OR_NOW 0
12573 # endif
12574 # endif
12575 # endif
12576 # endif
12577 #endif
12578
12579 /* When -fvisibility=hidden is used, assume the code has been annotated
12580 correspondingly for the symbols needed. */
12581 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12582 int fnord () __attribute__((visibility("default")));
12583 #endif
12584
12585 int fnord () { return 42; }
12586 int main ()
12587 {
12588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12589 int status = $lt_dlunknown;
12590
12591 if (self)
12592 {
12593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12594 else
12595 {
12596 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12597 else puts (dlerror ());
12598 }
12599 /* dlclose (self); */
12600 }
12601 else
12602 puts (dlerror ());
12603
12604 return status;
12605 }
12606 _LT_EOF
12607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12608 (eval $ac_link) 2>&5
12609 ac_status=$?
12610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12611 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12612 (./conftest; exit; ) >&5 2>/dev/null
12613 lt_status=$?
12614 case x$lt_status in
12615 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12616 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12617 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12618 esac
12619 else :
12620 # compilation failed
12621 lt_cv_dlopen_self=no
12622 fi
12623 fi
12624 rm -fr conftest*
12625
12626
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12629 $as_echo "$lt_cv_dlopen_self" >&6; }
12630
12631 if test yes = "$lt_cv_dlopen_self"; then
12632 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12634 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12635 if ${lt_cv_dlopen_self_static+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 if test yes = "$cross_compiling"; then :
12639 lt_cv_dlopen_self_static=cross
12640 else
12641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12642 lt_status=$lt_dlunknown
12643 cat > conftest.$ac_ext <<_LT_EOF
12644 #line $LINENO "configure"
12645 #include "confdefs.h"
12646
12647 #if HAVE_DLFCN_H
12648 #include <dlfcn.h>
12649 #endif
12650
12651 #include <stdio.h>
12652
12653 #ifdef RTLD_GLOBAL
12654 # define LT_DLGLOBAL RTLD_GLOBAL
12655 #else
12656 # ifdef DL_GLOBAL
12657 # define LT_DLGLOBAL DL_GLOBAL
12658 # else
12659 # define LT_DLGLOBAL 0
12660 # endif
12661 #endif
12662
12663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12664 find out it does not work in some platform. */
12665 #ifndef LT_DLLAZY_OR_NOW
12666 # ifdef RTLD_LAZY
12667 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12668 # else
12669 # ifdef DL_LAZY
12670 # define LT_DLLAZY_OR_NOW DL_LAZY
12671 # else
12672 # ifdef RTLD_NOW
12673 # define LT_DLLAZY_OR_NOW RTLD_NOW
12674 # else
12675 # ifdef DL_NOW
12676 # define LT_DLLAZY_OR_NOW DL_NOW
12677 # else
12678 # define LT_DLLAZY_OR_NOW 0
12679 # endif
12680 # endif
12681 # endif
12682 # endif
12683 #endif
12684
12685 /* When -fvisibility=hidden is used, assume the code has been annotated
12686 correspondingly for the symbols needed. */
12687 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12688 int fnord () __attribute__((visibility("default")));
12689 #endif
12690
12691 int fnord () { return 42; }
12692 int main ()
12693 {
12694 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12695 int status = $lt_dlunknown;
12696
12697 if (self)
12698 {
12699 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12700 else
12701 {
12702 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12703 else puts (dlerror ());
12704 }
12705 /* dlclose (self); */
12706 }
12707 else
12708 puts (dlerror ());
12709
12710 return status;
12711 }
12712 _LT_EOF
12713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12714 (eval $ac_link) 2>&5
12715 ac_status=$?
12716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12717 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12718 (./conftest; exit; ) >&5 2>/dev/null
12719 lt_status=$?
12720 case x$lt_status in
12721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12723 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12724 esac
12725 else :
12726 # compilation failed
12727 lt_cv_dlopen_self_static=no
12728 fi
12729 fi
12730 rm -fr conftest*
12731
12732
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12735 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12736 fi
12737
12738 CPPFLAGS=$save_CPPFLAGS
12739 LDFLAGS=$save_LDFLAGS
12740 LIBS=$save_LIBS
12741 ;;
12742 esac
12743
12744 case $lt_cv_dlopen_self in
12745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12746 *) enable_dlopen_self=unknown ;;
12747 esac
12748
12749 case $lt_cv_dlopen_self_static in
12750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12751 *) enable_dlopen_self_static=unknown ;;
12752 esac
12753 fi
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771 striplib=
12772 old_striplib=
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12774 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12775 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12776 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12777 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12779 $as_echo "yes" >&6; }
12780 else
12781 # FIXME - insert some real tests, host_os isn't really good enough
12782 case $host_os in
12783 darwin*)
12784 if test -n "$STRIP"; then
12785 striplib="$STRIP -x"
12786 old_striplib="$STRIP -S"
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12788 $as_echo "yes" >&6; }
12789 else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12792 fi
12793 ;;
12794 *)
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12797 ;;
12798 esac
12799 fi
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812 # Report what library types will actually be built
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12814 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12816 $as_echo "$can_build_shared" >&6; }
12817
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12819 $as_echo_n "checking whether to build shared libraries... " >&6; }
12820 test no = "$can_build_shared" && enable_shared=no
12821
12822 # On AIX, shared libraries and static libraries use the same namespace, and
12823 # are all built from PIC.
12824 case $host_os in
12825 aix3*)
12826 test yes = "$enable_shared" && enable_static=no
12827 if test -n "$RANLIB"; then
12828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12829 postinstall_cmds='$RANLIB $lib'
12830 fi
12831 ;;
12832
12833 aix[4-9]*)
12834 if test ia64 != "$host_cpu"; then
12835 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12836 yes,aix,yes) ;; # shared object as lib.so file only
12837 yes,svr4,*) ;; # shared object as lib.so archive member only
12838 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12839 esac
12840 fi
12841 ;;
12842 esac
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12844 $as_echo "$enable_shared" >&6; }
12845
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12847 $as_echo_n "checking whether to build static libraries... " >&6; }
12848 # Make sure either enable_shared or enable_static is yes.
12849 test yes = "$enable_shared" || enable_static=yes
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12851 $as_echo "$enable_static" >&6; }
12852
12853
12854
12855
12856 fi
12857 ac_ext=c
12858 ac_cpp='$CPP $CPPFLAGS'
12859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12862
12863 CC=$lt_save_CC
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879 ac_config_commands="$ac_config_commands libtool"
12880
12881
12882
12883
12884 # Only expand once:
12885
12886
12887
12888 case "$host" in
12889 *-*-linux* | *-*-uclinux*) ;;
12890 *) as_fn_error $? "Linux only, dude!" "$LINENO" 5;;
12891 esac
12892
12893
12894
12895
12896 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile doxygen.cfg include/libnfnetlink/Makefile utils/Makefile libnfnetlink.pc"
12897
12898 cat >confcache <<\_ACEOF
12899 # This file is a shell script that caches the results of configure
12900 # tests run on this system so they can be shared between configure
12901 # scripts and configure runs, see configure's option --config-cache.
12902 # It is not useful on other systems. If it contains results you don't
12903 # want to keep, you may remove or edit it.
12904 #
12905 # config.status only pays attention to the cache file if you give it
12906 # the --recheck option to rerun configure.
12907 #
12908 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12909 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12910 # following values.
12911
12912 _ACEOF
12913
12914 # The following way of writing the cache mishandles newlines in values,
12915 # but we know of no workaround that is simple, portable, and efficient.
12916 # So, we kill variables containing newlines.
12917 # Ultrix sh set writes to stderr and can't be redirected directly,
12918 # and sets the high bit in the cache file unless we assign to the vars.
12919 (
12920 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12921 eval ac_val=\$$ac_var
12922 case $ac_val in #(
12923 *${as_nl}*)
12924 case $ac_var in #(
12925 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12926 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12927 esac
12928 case $ac_var in #(
12929 _ | IFS | as_nl) ;; #(
12930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12931 *) { eval $ac_var=; unset $ac_var;} ;;
12932 esac ;;
12933 esac
12934 done
12935
12936 (set) 2>&1 |
12937 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12938 *${as_nl}ac_space=\ *)
12939 # `set' does not quote correctly, so add quotes: double-quote
12940 # substitution turns \\\\ into \\, and sed turns \\ into \.
12941 sed -n \
12942 "s/'/'\\\\''/g;
12943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12944 ;; #(
12945 *)
12946 # `set' quotes correctly as required by POSIX, so do not add quotes.
12947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12948 ;;
12949 esac |
12950 sort
12951 ) |
12952 sed '
12953 /^ac_cv_env_/b end
12954 t clear
12955 :clear
12956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12957 t end
12958 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12959 :end' >>confcache
12960 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12961 if test -w "$cache_file"; then
12962 if test "x$cache_file" != "x/dev/null"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12964 $as_echo "$as_me: updating cache $cache_file" >&6;}
12965 if test ! -f "$cache_file" || test -h "$cache_file"; then
12966 cat confcache >"$cache_file"
12967 else
12968 case $cache_file in #(
12969 */* | ?:*)
12970 mv -f confcache "$cache_file"$$ &&
12971 mv -f "$cache_file"$$ "$cache_file" ;; #(
12972 *)
12973 mv -f confcache "$cache_file" ;;
12974 esac
12975 fi
12976 fi
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12979 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12980 fi
12981 fi
12982 rm -f confcache
12983
12984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12985 # Let make expand exec_prefix.
12986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12987
12988 # Transform confdefs.h into DEFS.
12989 # Protect against shell expansion while executing Makefile rules.
12990 # Protect against Makefile macro expansion.
12991 #
12992 # If the first sed substitution is executed (which looks for macros that
12993 # take arguments), then branch to the quote section. Otherwise,
12994 # look for a macro that doesn't take arguments.
12995 ac_script='
12996 :mline
12997 /\\$/{
12998 N
12999 s,\\\n,,
13000 b mline
13001 }
13002 t clear
13003 :clear
13004 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13005 t quote
13006 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13007 t quote
13008 b any
13009 :quote
13010 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13011 s/\[/\\&/g
13012 s/\]/\\&/g
13013 s/\$/$$/g
13014 H
13015 :any
13016 ${
13017 g
13018 s/^\n//
13019 s/\n/ /g
13020 p
13021 }
13022 '
13023 DEFS=`sed -n "$ac_script" confdefs.h`
13024
13025
13026 ac_libobjs=
13027 ac_ltlibobjs=
13028 U=
13029 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13030 # 1. Remove the extension, and $U if already installed.
13031 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13032 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13033 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13034 # will be set to the directory where LIBOBJS objects are built.
13035 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13036 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13037 done
13038 LIBOBJS=$ac_libobjs
13039
13040 LTLIBOBJS=$ac_ltlibobjs
13041
13042
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13044 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13045 if test -n "$am_sleep_pid"; then
13046 # Hide warnings about reused PIDs.
13047 wait $am_sleep_pid 2>/dev/null
13048 fi
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13050 $as_echo "done" >&6; }
13051 if test -n "$EXEEXT"; then
13052 am__EXEEXT_TRUE=
13053 am__EXEEXT_FALSE='#'
13054 else
13055 am__EXEEXT_TRUE='#'
13056 am__EXEEXT_FALSE=
13057 fi
13058
13059 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13060 as_fn_error $? "conditional \"AMDEP\" was never defined.
13061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13062 fi
13063 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13064 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13066 fi
13067 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13068 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13070 fi
13071
13072 : "${CONFIG_STATUS=./config.status}"
13073 ac_write_fail=0
13074 ac_clean_files_save=$ac_clean_files
13075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13077 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13078 as_write_fail=0
13079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13080 #! $SHELL
13081 # Generated by $as_me.
13082 # Run this file to recreate the current configuration.
13083 # Compiler output produced by configure, useful for debugging
13084 # configure, is in config.log if it exists.
13085
13086 debug=false
13087 ac_cs_recheck=false
13088 ac_cs_silent=false
13089
13090 SHELL=\${CONFIG_SHELL-$SHELL}
13091 export SHELL
13092 _ASEOF
13093 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13094 ## -------------------- ##
13095 ## M4sh Initialization. ##
13096 ## -------------------- ##
13097
13098 # Be more Bourne compatible
13099 DUALCASE=1; export DUALCASE # for MKS sh
13100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13101 emulate sh
13102 NULLCMD=:
13103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13104 # is contrary to our usage. Disable this feature.
13105 alias -g '${1+"$@"}'='"$@"'
13106 setopt NO_GLOB_SUBST
13107 else
13108 case `(set -o) 2>/dev/null` in #(
13109 *posix*) :
13110 set -o posix ;; #(
13111 *) :
13112 ;;
13113 esac
13114 fi
13115
13116
13117 as_nl='
13118 '
13119 export as_nl
13120 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13121 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13124 # Prefer a ksh shell builtin over an external printf program on Solaris,
13125 # but without wasting forks for bash or zsh.
13126 if test -z "$BASH_VERSION$ZSH_VERSION" \
13127 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13128 as_echo='print -r --'
13129 as_echo_n='print -rn --'
13130 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13131 as_echo='printf %s\n'
13132 as_echo_n='printf %s'
13133 else
13134 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13135 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13136 as_echo_n='/usr/ucb/echo -n'
13137 else
13138 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13139 as_echo_n_body='eval
13140 arg=$1;
13141 case $arg in #(
13142 *"$as_nl"*)
13143 expr "X$arg" : "X\\(.*\\)$as_nl";
13144 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13145 esac;
13146 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13147 '
13148 export as_echo_n_body
13149 as_echo_n='sh -c $as_echo_n_body as_echo'
13150 fi
13151 export as_echo_body
13152 as_echo='sh -c $as_echo_body as_echo'
13153 fi
13154
13155 # The user is always right.
13156 if test "${PATH_SEPARATOR+set}" != set; then
13157 PATH_SEPARATOR=:
13158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13160 PATH_SEPARATOR=';'
13161 }
13162 fi
13163
13164
13165 # IFS
13166 # We need space, tab and new line, in precisely that order. Quoting is
13167 # there to prevent editors from complaining about space-tab.
13168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13169 # splitting by setting IFS to empty value.)
13170 IFS=" "" $as_nl"
13171
13172 # Find who we are. Look in the path if we contain no directory separator.
13173 as_myself=
13174 case $0 in #((
13175 *[\\/]* ) as_myself=$0 ;;
13176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13178 do
13179 IFS=$as_save_IFS
13180 test -z "$as_dir" && as_dir=.
13181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13182 done
13183 IFS=$as_save_IFS
13184
13185 ;;
13186 esac
13187 # We did not find ourselves, most probably we were run as `sh COMMAND'
13188 # in which case we are not to be found in the path.
13189 if test "x$as_myself" = x; then
13190 as_myself=$0
13191 fi
13192 if test ! -f "$as_myself"; then
13193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13194 exit 1
13195 fi
13196
13197 # Unset variables that we do not need and which cause bugs (e.g. in
13198 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13199 # suppresses any "Segmentation fault" message there. '((' could
13200 # trigger a bug in pdksh 5.2.14.
13201 for as_var in BASH_ENV ENV MAIL MAILPATH
13202 do eval test x\${$as_var+set} = xset \
13203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13204 done
13205 PS1='$ '
13206 PS2='> '
13207 PS4='+ '
13208
13209 # NLS nuisances.
13210 LC_ALL=C
13211 export LC_ALL
13212 LANGUAGE=C
13213 export LANGUAGE
13214
13215 # CDPATH.
13216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13217
13218
13219 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13220 # ----------------------------------------
13221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13223 # script with STATUS, using 1 if that was 0.
13224 as_fn_error ()
13225 {
13226 as_status=$1; test $as_status -eq 0 && as_status=1
13227 if test "$4"; then
13228 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13230 fi
13231 $as_echo "$as_me: error: $2" >&2
13232 as_fn_exit $as_status
13233 } # as_fn_error
13234
13235
13236 # as_fn_set_status STATUS
13237 # -----------------------
13238 # Set $? to STATUS, without forking.
13239 as_fn_set_status ()
13240 {
13241 return $1
13242 } # as_fn_set_status
13243
13244 # as_fn_exit STATUS
13245 # -----------------
13246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13247 as_fn_exit ()
13248 {
13249 set +e
13250 as_fn_set_status $1
13251 exit $1
13252 } # as_fn_exit
13253
13254 # as_fn_unset VAR
13255 # ---------------
13256 # Portably unset VAR.
13257 as_fn_unset ()
13258 {
13259 { eval $1=; unset $1;}
13260 }
13261 as_unset=as_fn_unset
13262 # as_fn_append VAR VALUE
13263 # ----------------------
13264 # Append the text in VALUE to the end of the definition contained in VAR. Take
13265 # advantage of any shell optimizations that allow amortized linear growth over
13266 # repeated appends, instead of the typical quadratic growth present in naive
13267 # implementations.
13268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13269 eval 'as_fn_append ()
13270 {
13271 eval $1+=\$2
13272 }'
13273 else
13274 as_fn_append ()
13275 {
13276 eval $1=\$$1\$2
13277 }
13278 fi # as_fn_append
13279
13280 # as_fn_arith ARG...
13281 # ------------------
13282 # Perform arithmetic evaluation on the ARGs, and store the result in the
13283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13284 # must be portable across $(()) and expr.
13285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13286 eval 'as_fn_arith ()
13287 {
13288 as_val=$(( $* ))
13289 }'
13290 else
13291 as_fn_arith ()
13292 {
13293 as_val=`expr "$@" || test $? -eq 1`
13294 }
13295 fi # as_fn_arith
13296
13297
13298 if expr a : '\(a\)' >/dev/null 2>&1 &&
13299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13300 as_expr=expr
13301 else
13302 as_expr=false
13303 fi
13304
13305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13306 as_basename=basename
13307 else
13308 as_basename=false
13309 fi
13310
13311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13312 as_dirname=dirname
13313 else
13314 as_dirname=false
13315 fi
13316
13317 as_me=`$as_basename -- "$0" ||
13318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13319 X"$0" : 'X\(//\)$' \| \
13320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13321 $as_echo X/"$0" |
13322 sed '/^.*\/\([^/][^/]*\)\/*$/{
13323 s//\1/
13324 q
13325 }
13326 /^X\/\(\/\/\)$/{
13327 s//\1/
13328 q
13329 }
13330 /^X\/\(\/\).*/{
13331 s//\1/
13332 q
13333 }
13334 s/.*/./; q'`
13335
13336 # Avoid depending upon Character Ranges.
13337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13340 as_cr_digits='0123456789'
13341 as_cr_alnum=$as_cr_Letters$as_cr_digits
13342
13343 ECHO_C= ECHO_N= ECHO_T=
13344 case `echo -n x` in #(((((
13345 -n*)
13346 case `echo 'xy\c'` in
13347 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13348 xy) ECHO_C='\c';;
13349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13350 ECHO_T=' ';;
13351 esac;;
13352 *)
13353 ECHO_N='-n';;
13354 esac
13355
13356 rm -f conf$$ conf$$.exe conf$$.file
13357 if test -d conf$$.dir; then
13358 rm -f conf$$.dir/conf$$.file
13359 else
13360 rm -f conf$$.dir
13361 mkdir conf$$.dir 2>/dev/null
13362 fi
13363 if (echo >conf$$.file) 2>/dev/null; then
13364 if ln -s conf$$.file conf$$ 2>/dev/null; then
13365 as_ln_s='ln -s'
13366 # ... but there are two gotchas:
13367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13369 # In both cases, we have to default to `cp -pR'.
13370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13371 as_ln_s='cp -pR'
13372 elif ln conf$$.file conf$$ 2>/dev/null; then
13373 as_ln_s=ln
13374 else
13375 as_ln_s='cp -pR'
13376 fi
13377 else
13378 as_ln_s='cp -pR'
13379 fi
13380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13381 rmdir conf$$.dir 2>/dev/null
13382
13383
13384 # as_fn_mkdir_p
13385 # -------------
13386 # Create "$as_dir" as a directory, including parents if necessary.
13387 as_fn_mkdir_p ()
13388 {
13389
13390 case $as_dir in #(
13391 -*) as_dir=./$as_dir;;
13392 esac
13393 test -d "$as_dir" || eval $as_mkdir_p || {
13394 as_dirs=
13395 while :; do
13396 case $as_dir in #(
13397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13398 *) as_qdir=$as_dir;;
13399 esac
13400 as_dirs="'$as_qdir' $as_dirs"
13401 as_dir=`$as_dirname -- "$as_dir" ||
13402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13403 X"$as_dir" : 'X\(//\)[^/]' \| \
13404 X"$as_dir" : 'X\(//\)$' \| \
13405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13406 $as_echo X"$as_dir" |
13407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13408 s//\1/
13409 q
13410 }
13411 /^X\(\/\/\)[^/].*/{
13412 s//\1/
13413 q
13414 }
13415 /^X\(\/\/\)$/{
13416 s//\1/
13417 q
13418 }
13419 /^X\(\/\).*/{
13420 s//\1/
13421 q
13422 }
13423 s/.*/./; q'`
13424 test -d "$as_dir" && break
13425 done
13426 test -z "$as_dirs" || eval "mkdir $as_dirs"
13427 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13428
13429
13430 } # as_fn_mkdir_p
13431 if mkdir -p . 2>/dev/null; then
13432 as_mkdir_p='mkdir -p "$as_dir"'
13433 else
13434 test -d ./-p && rmdir ./-p
13435 as_mkdir_p=false
13436 fi
13437
13438
13439 # as_fn_executable_p FILE
13440 # -----------------------
13441 # Test if FILE is an executable regular file.
13442 as_fn_executable_p ()
13443 {
13444 test -f "$1" && test -x "$1"
13445 } # as_fn_executable_p
13446 as_test_x='test -x'
13447 as_executable_p=as_fn_executable_p
13448
13449 # Sed expression to map a string onto a valid CPP name.
13450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13451
13452 # Sed expression to map a string onto a valid variable name.
13453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13454
13455
13456 exec 6>&1
13457 ## ----------------------------------- ##
13458 ## Main body of $CONFIG_STATUS script. ##
13459 ## ----------------------------------- ##
13460 _ASEOF
13461 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13462
13463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13464 # Save the log message, to keep $0 and so on meaningful, and to
13465 # report actual input values of CONFIG_FILES etc. instead of their
13466 # values after options handling.
13467 ac_log="
13468 This file was extended by libnfnetlink $as_me 1.0.2, which was
13469 generated by GNU Autoconf 2.69. Invocation command line was
13470
13471 CONFIG_FILES = $CONFIG_FILES
13472 CONFIG_HEADERS = $CONFIG_HEADERS
13473 CONFIG_LINKS = $CONFIG_LINKS
13474 CONFIG_COMMANDS = $CONFIG_COMMANDS
13475 $ $0 $@
13476
13477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13478 "
13479
13480 _ACEOF
13481
13482 case $ac_config_files in *"
13483 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13484 esac
13485
13486
13487
13488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489 # Files that config.status was made for.
13490 config_files="$ac_config_files"
13491 config_commands="$ac_config_commands"
13492
13493 _ACEOF
13494
13495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13496 ac_cs_usage="\
13497 \`$as_me' instantiates files and other configuration actions
13498 from templates according to the current configuration. Unless the files
13499 and actions are specified as TAGs, all are instantiated by default.
13500
13501 Usage: $0 [OPTION]... [TAG]...
13502
13503 -h, --help print this help, then exit
13504 -V, --version print version number and configuration settings, then exit
13505 --config print configuration, then exit
13506 -q, --quiet, --silent
13507 do not print progress messages
13508 -d, --debug don't remove temporary files
13509 --recheck update $as_me by reconfiguring in the same conditions
13510 --file=FILE[:TEMPLATE]
13511 instantiate the configuration file FILE
13512
13513 Configuration files:
13514 $config_files
13515
13516 Configuration commands:
13517 $config_commands
13518
13519 Report bugs to the package provider."
13520
13521 _ACEOF
13522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13523 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13524 ac_cs_version="\\
13525 libnfnetlink config.status 1.0.2
13526 configured by $0, generated by GNU Autoconf 2.69,
13527 with options \\"\$ac_cs_config\\"
13528
13529 Copyright (C) 2012 Free Software Foundation, Inc.
13530 This config.status script is free software; the Free Software Foundation
13531 gives unlimited permission to copy, distribute and modify it."
13532
13533 ac_pwd='$ac_pwd'
13534 srcdir='$srcdir'
13535 INSTALL='$INSTALL'
13536 MKDIR_P='$MKDIR_P'
13537 AWK='$AWK'
13538 test -n "\$AWK" || AWK=awk
13539 _ACEOF
13540
13541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13542 # The default lists apply if the user does not specify any file.
13543 ac_need_defaults=:
13544 while test $# != 0
13545 do
13546 case $1 in
13547 --*=?*)
13548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13550 ac_shift=:
13551 ;;
13552 --*=)
13553 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13554 ac_optarg=
13555 ac_shift=:
13556 ;;
13557 *)
13558 ac_option=$1
13559 ac_optarg=$2
13560 ac_shift=shift
13561 ;;
13562 esac
13563
13564 case $ac_option in
13565 # Handling of the options.
13566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13567 ac_cs_recheck=: ;;
13568 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13569 $as_echo "$ac_cs_version"; exit ;;
13570 --config | --confi | --conf | --con | --co | --c )
13571 $as_echo "$ac_cs_config"; exit ;;
13572 --debug | --debu | --deb | --de | --d | -d )
13573 debug=: ;;
13574 --file | --fil | --fi | --f )
13575 $ac_shift
13576 case $ac_optarg in
13577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13578 '') as_fn_error $? "missing file argument" ;;
13579 esac
13580 as_fn_append CONFIG_FILES " '$ac_optarg'"
13581 ac_need_defaults=false;;
13582 --he | --h | --help | --hel | -h )
13583 $as_echo "$ac_cs_usage"; exit ;;
13584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13586 ac_cs_silent=: ;;
13587
13588 # This is an error.
13589 -*) as_fn_error $? "unrecognized option: \`$1'
13590 Try \`$0 --help' for more information." ;;
13591
13592 *) as_fn_append ac_config_targets " $1"
13593 ac_need_defaults=false ;;
13594
13595 esac
13596 shift
13597 done
13598
13599 ac_configure_extra_args=
13600
13601 if $ac_cs_silent; then
13602 exec 6>/dev/null
13603 ac_configure_extra_args="$ac_configure_extra_args --silent"
13604 fi
13605
13606 _ACEOF
13607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13608 if \$ac_cs_recheck; then
13609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13610 shift
13611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13612 CONFIG_SHELL='$SHELL'
13613 export CONFIG_SHELL
13614 exec "\$@"
13615 fi
13616
13617 _ACEOF
13618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13619 exec 5>>config.log
13620 {
13621 echo
13622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13623 ## Running $as_me. ##
13624 _ASBOX
13625 $as_echo "$ac_log"
13626 } >&5
13627
13628 _ACEOF
13629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13630 #
13631 # INIT-COMMANDS
13632 #
13633 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13634
13635
13636 # The HP-UX ksh and POSIX shell print the target directory to stdout
13637 # if CDPATH is set.
13638 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13639
13640 sed_quote_subst='$sed_quote_subst'
13641 double_quote_subst='$double_quote_subst'
13642 delay_variable_subst='$delay_variable_subst'
13643 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13644 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13645 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13646 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13647 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13648 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13649 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13650 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13651 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13652 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13653 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13654 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13655 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13656 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13657 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13658 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13659 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13660 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13661 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13662 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13663 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13664 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13665 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13666 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13667 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13668 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13669 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13670 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13671 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13672 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13673 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13674 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13675 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13676 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13677 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13678 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13679 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13680 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13681 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13682 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13683 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13684 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13685 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13686 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13687 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13688 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13689 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13690 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13691 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13692 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13693 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13694 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13695 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13696 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13697 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13698 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13699 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13700 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13701 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"`'
13702 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13703 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13704 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13705 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13706 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13707 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13708 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13709 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13710 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13711 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13712 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13713 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13714 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13715 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13716 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13717 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13718 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13719 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13720 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13721 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13722 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13723 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13724 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13725 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13726 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13727 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13728 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13729 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13730 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13731 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13732 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13733 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13734 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13735 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13736 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13737 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13738 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13739 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13740 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13741 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13742 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13743 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13744 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13745 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13746 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13747 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13748 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13749 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13750 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13751 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13752 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13753 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13754 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13755 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13756 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13757 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13758 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13759 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13760 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13761 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13762 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13763 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13764 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13765 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13766 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13767 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13768 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13769 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13770 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13771 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13772 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13773 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13774 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13775 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13776 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13777 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13778
13779 LTCC='$LTCC'
13780 LTCFLAGS='$LTCFLAGS'
13781 compiler='$compiler_DEFAULT'
13782
13783 # A function that is used when there is no print builtin or printf.
13784 func_fallback_echo ()
13785 {
13786 eval 'cat <<_LTECHO_EOF
13787 \$1
13788 _LTECHO_EOF'
13789 }
13790
13791 # Quote evaled strings.
13792 for var in SHELL \
13793 ECHO \
13794 PATH_SEPARATOR \
13795 SED \
13796 GREP \
13797 EGREP \
13798 FGREP \
13799 LD \
13800 NM \
13801 LN_S \
13802 lt_SP2NL \
13803 lt_NL2SP \
13804 reload_flag \
13805 OBJDUMP \
13806 deplibs_check_method \
13807 file_magic_cmd \
13808 file_magic_glob \
13809 want_nocaseglob \
13810 DLLTOOL \
13811 sharedlib_from_linklib_cmd \
13812 AR \
13813 AR_FLAGS \
13814 archiver_list_spec \
13815 STRIP \
13816 RANLIB \
13817 CC \
13818 CFLAGS \
13819 compiler \
13820 lt_cv_sys_global_symbol_pipe \
13821 lt_cv_sys_global_symbol_to_cdecl \
13822 lt_cv_sys_global_symbol_to_import \
13823 lt_cv_sys_global_symbol_to_c_name_address \
13824 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13825 lt_cv_nm_interface \
13826 nm_file_list_spec \
13827 lt_cv_truncate_bin \
13828 lt_prog_compiler_no_builtin_flag \
13829 lt_prog_compiler_pic \
13830 lt_prog_compiler_wl \
13831 lt_prog_compiler_static \
13832 lt_cv_prog_compiler_c_o \
13833 need_locks \
13834 MANIFEST_TOOL \
13835 DSYMUTIL \
13836 NMEDIT \
13837 LIPO \
13838 OTOOL \
13839 OTOOL64 \
13840 shrext_cmds \
13841 export_dynamic_flag_spec \
13842 whole_archive_flag_spec \
13843 compiler_needs_object \
13844 with_gnu_ld \
13845 allow_undefined_flag \
13846 no_undefined_flag \
13847 hardcode_libdir_flag_spec \
13848 hardcode_libdir_separator \
13849 exclude_expsyms \
13850 include_expsyms \
13851 file_list_spec \
13852 variables_saved_for_relink \
13853 libname_spec \
13854 library_names_spec \
13855 soname_spec \
13856 install_override_mode \
13857 finish_eval \
13858 old_striplib \
13859 striplib; do
13860 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13861 *[\\\\\\\`\\"\\\$]*)
13862 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13863 ;;
13864 *)
13865 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13866 ;;
13867 esac
13868 done
13869
13870 # Double-quote double-evaled strings.
13871 for var in reload_cmds \
13872 old_postinstall_cmds \
13873 old_postuninstall_cmds \
13874 old_archive_cmds \
13875 extract_expsyms_cmds \
13876 old_archive_from_new_cmds \
13877 old_archive_from_expsyms_cmds \
13878 archive_cmds \
13879 archive_expsym_cmds \
13880 module_cmds \
13881 module_expsym_cmds \
13882 export_symbols_cmds \
13883 prelink_cmds \
13884 postlink_cmds \
13885 postinstall_cmds \
13886 postuninstall_cmds \
13887 finish_cmds \
13888 sys_lib_search_path_spec \
13889 configure_time_dlsearch_path \
13890 configure_time_lt_sys_library_path; do
13891 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13892 *[\\\\\\\`\\"\\\$]*)
13893 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13894 ;;
13895 *)
13896 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13897 ;;
13898 esac
13899 done
13900
13901 ac_aux_dir='$ac_aux_dir'
13902
13903 # See if we are running on zsh, and set the options that allow our
13904 # commands through without removal of \ escapes INIT.
13905 if test -n "\${ZSH_VERSION+set}"; then
13906 setopt NO_GLOB_SUBST
13907 fi
13908
13909
13910 PACKAGE='$PACKAGE'
13911 VERSION='$VERSION'
13912 RM='$RM'
13913 ofile='$ofile'
13914
13915
13916
13917
13918 _ACEOF
13919
13920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13921
13922 # Handling of arguments.
13923 for ac_config_target in $ac_config_targets
13924 do
13925 case $ac_config_target in
13926 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13927 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13928 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13929 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13930 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13931 "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
13932 "include/libnfnetlink/Makefile") CONFIG_FILES="$CONFIG_FILES include/libnfnetlink/Makefile" ;;
13933 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
13934 "libnfnetlink.pc") CONFIG_FILES="$CONFIG_FILES libnfnetlink.pc" ;;
13935
13936 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13937 esac
13938 done
13939
13940
13941 # If the user did not use the arguments to specify the items to instantiate,
13942 # then the envvar interface is used. Set only those that are not.
13943 # We use the long form for the default assignment because of an extremely
13944 # bizarre bug on SunOS 4.1.3.
13945 if $ac_need_defaults; then
13946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13947 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13948 fi
13949
13950 # Have a temporary directory for convenience. Make it in the build tree
13951 # simply because there is no reason against having it here, and in addition,
13952 # creating and moving files from /tmp can sometimes cause problems.
13953 # Hook for its removal unless debugging.
13954 # Note that there is a small window in which the directory will not be cleaned:
13955 # after its creation but before its name has been assigned to `$tmp'.
13956 $debug ||
13957 {
13958 tmp= ac_tmp=
13959 trap 'exit_status=$?
13960 : "${ac_tmp:=$tmp}"
13961 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13962 ' 0
13963 trap 'as_fn_exit 1' 1 2 13 15
13964 }
13965 # Create a (secure) tmp directory for tmp files.
13966
13967 {
13968 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13969 test -d "$tmp"
13970 } ||
13971 {
13972 tmp=./conf$$-$RANDOM
13973 (umask 077 && mkdir "$tmp")
13974 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13975 ac_tmp=$tmp
13976
13977 # Set up the scripts for CONFIG_FILES section.
13978 # No need to generate them if there are no CONFIG_FILES.
13979 # This happens for instance with `./config.status config.h'.
13980 if test -n "$CONFIG_FILES"; then
13981
13982
13983 ac_cr=`echo X | tr X '\015'`
13984 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13985 # But we know of no other shell where ac_cr would be empty at this
13986 # point, so we can use a bashism as a fallback.
13987 if test "x$ac_cr" = x; then
13988 eval ac_cr=\$\'\\r\'
13989 fi
13990 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13992 ac_cs_awk_cr='\\r'
13993 else
13994 ac_cs_awk_cr=$ac_cr
13995 fi
13996
13997 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13998 _ACEOF
13999
14000
14001 {
14002 echo "cat >conf$$subs.awk <<_ACEOF" &&
14003 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14004 echo "_ACEOF"
14005 } >conf$$subs.sh ||
14006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14007 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14008 ac_delim='%!_!# '
14009 for ac_last_try in false false false false false :; do
14010 . ./conf$$subs.sh ||
14011 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14012
14013 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14014 if test $ac_delim_n = $ac_delim_num; then
14015 break
14016 elif $ac_last_try; then
14017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14018 else
14019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14020 fi
14021 done
14022 rm -f conf$$subs.sh
14023
14024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14025 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14026 _ACEOF
14027 sed -n '
14028 h
14029 s/^/S["/; s/!.*/"]=/
14030 p
14031 g
14032 s/^[^!]*!//
14033 :repl
14034 t repl
14035 s/'"$ac_delim"'$//
14036 t delim
14037 :nl
14038 h
14039 s/\(.\{148\}\)..*/\1/
14040 t more1
14041 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14042 p
14043 n
14044 b repl
14045 :more1
14046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14047 p
14048 g
14049 s/.\{148\}//
14050 t nl
14051 :delim
14052 h
14053 s/\(.\{148\}\)..*/\1/
14054 t more2
14055 s/["\\]/\\&/g; s/^/"/; s/$/"/
14056 p
14057 b
14058 :more2
14059 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14060 p
14061 g
14062 s/.\{148\}//
14063 t delim
14064 ' <conf$$subs.awk | sed '
14065 /^[^""]/{
14066 N
14067 s/\n//
14068 }
14069 ' >>$CONFIG_STATUS || ac_write_fail=1
14070 rm -f conf$$subs.awk
14071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14072 _ACAWK
14073 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14074 for (key in S) S_is_set[key] = 1
14075 FS = ""
14076
14077 }
14078 {
14079 line = $ 0
14080 nfields = split(line, field, "@")
14081 substed = 0
14082 len = length(field[1])
14083 for (i = 2; i < nfields; i++) {
14084 key = field[i]
14085 keylen = length(key)
14086 if (S_is_set[key]) {
14087 value = S[key]
14088 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14089 len += length(value) + length(field[++i])
14090 substed = 1
14091 } else
14092 len += 1 + keylen
14093 }
14094
14095 print line
14096 }
14097
14098 _ACAWK
14099 _ACEOF
14100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14101 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14102 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14103 else
14104 cat
14105 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14106 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14107 _ACEOF
14108
14109 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14110 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14111 # trailing colons and then remove the whole line if VPATH becomes empty
14112 # (actually we leave an empty line to preserve line numbers).
14113 if test "x$srcdir" = x.; then
14114 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14115 h
14116 s///
14117 s/^/:/
14118 s/[ ]*$/:/
14119 s/:\$(srcdir):/:/g
14120 s/:\${srcdir}:/:/g
14121 s/:@srcdir@:/:/g
14122 s/^:*//
14123 s/:*$//
14124 x
14125 s/\(=[ ]*\).*/\1/
14126 G
14127 s/\n//
14128 s/^[^=]*=[ ]*$//
14129 }'
14130 fi
14131
14132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14133 fi # test -n "$CONFIG_FILES"
14134
14135
14136 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14137 shift
14138 for ac_tag
14139 do
14140 case $ac_tag in
14141 :[FHLC]) ac_mode=$ac_tag; continue;;
14142 esac
14143 case $ac_mode$ac_tag in
14144 :[FHL]*:*);;
14145 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14146 :[FH]-) ac_tag=-:-;;
14147 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14148 esac
14149 ac_save_IFS=$IFS
14150 IFS=:
14151 set x $ac_tag
14152 IFS=$ac_save_IFS
14153 shift
14154 ac_file=$1
14155 shift
14156
14157 case $ac_mode in
14158 :L) ac_source=$1;;
14159 :[FH])
14160 ac_file_inputs=
14161 for ac_f
14162 do
14163 case $ac_f in
14164 -) ac_f="$ac_tmp/stdin";;
14165 *) # Look for the file first in the build tree, then in the source tree
14166 # (if the path is not absolute). The absolute path cannot be DOS-style,
14167 # because $ac_f cannot contain `:'.
14168 test -f "$ac_f" ||
14169 case $ac_f in
14170 [\\/$]*) false;;
14171 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14172 esac ||
14173 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14174 esac
14175 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14176 as_fn_append ac_file_inputs " '$ac_f'"
14177 done
14178
14179 # Let's still pretend it is `configure' which instantiates (i.e., don't
14180 # use $as_me), people would be surprised to read:
14181 # /* config.h. Generated by config.status. */
14182 configure_input='Generated from '`
14183 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14184 `' by configure.'
14185 if test x"$ac_file" != x-; then
14186 configure_input="$ac_file. $configure_input"
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14188 $as_echo "$as_me: creating $ac_file" >&6;}
14189 fi
14190 # Neutralize special characters interpreted by sed in replacement strings.
14191 case $configure_input in #(
14192 *\&* | *\|* | *\\* )
14193 ac_sed_conf_input=`$as_echo "$configure_input" |
14194 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14195 *) ac_sed_conf_input=$configure_input;;
14196 esac
14197
14198 case $ac_tag in
14199 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14201 esac
14202 ;;
14203 esac
14204
14205 ac_dir=`$as_dirname -- "$ac_file" ||
14206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14207 X"$ac_file" : 'X\(//\)[^/]' \| \
14208 X"$ac_file" : 'X\(//\)$' \| \
14209 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14210 $as_echo X"$ac_file" |
14211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14212 s//\1/
14213 q
14214 }
14215 /^X\(\/\/\)[^/].*/{
14216 s//\1/
14217 q
14218 }
14219 /^X\(\/\/\)$/{
14220 s//\1/
14221 q
14222 }
14223 /^X\(\/\).*/{
14224 s//\1/
14225 q
14226 }
14227 s/.*/./; q'`
14228 as_dir="$ac_dir"; as_fn_mkdir_p
14229 ac_builddir=.
14230
14231 case "$ac_dir" in
14232 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14233 *)
14234 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14235 # A ".." for each directory in $ac_dir_suffix.
14236 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14237 case $ac_top_builddir_sub in
14238 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14239 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14240 esac ;;
14241 esac
14242 ac_abs_top_builddir=$ac_pwd
14243 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14244 # for backward compatibility:
14245 ac_top_builddir=$ac_top_build_prefix
14246
14247 case $srcdir in
14248 .) # We are building in place.
14249 ac_srcdir=.
14250 ac_top_srcdir=$ac_top_builddir_sub
14251 ac_abs_top_srcdir=$ac_pwd ;;
14252 [\\/]* | ?:[\\/]* ) # Absolute name.
14253 ac_srcdir=$srcdir$ac_dir_suffix;
14254 ac_top_srcdir=$srcdir
14255 ac_abs_top_srcdir=$srcdir ;;
14256 *) # Relative name.
14257 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14258 ac_top_srcdir=$ac_top_build_prefix$srcdir
14259 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14260 esac
14261 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14262
14263
14264 case $ac_mode in
14265 :F)
14266 #
14267 # CONFIG_FILE
14268 #
14269
14270 case $INSTALL in
14271 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14272 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14273 esac
14274 ac_MKDIR_P=$MKDIR_P
14275 case $MKDIR_P in
14276 [\\/$]* | ?:[\\/]* ) ;;
14277 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14278 esac
14279 _ACEOF
14280
14281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14282 # If the template does not know about datarootdir, expand it.
14283 # FIXME: This hack should be removed a few years after 2.60.
14284 ac_datarootdir_hack=; ac_datarootdir_seen=
14285 ac_sed_dataroot='
14286 /datarootdir/ {
14287 p
14288 q
14289 }
14290 /@datadir@/p
14291 /@docdir@/p
14292 /@infodir@/p
14293 /@localedir@/p
14294 /@mandir@/p'
14295 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14296 *datarootdir*) ac_datarootdir_seen=yes;;
14297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14299 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14300 _ACEOF
14301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14302 ac_datarootdir_hack='
14303 s&@datadir@&$datadir&g
14304 s&@docdir@&$docdir&g
14305 s&@infodir@&$infodir&g
14306 s&@localedir@&$localedir&g
14307 s&@mandir@&$mandir&g
14308 s&\\\${datarootdir}&$datarootdir&g' ;;
14309 esac
14310 _ACEOF
14311
14312 # Neutralize VPATH when `$srcdir' = `.'.
14313 # Shell code in configure.ac might set extrasub.
14314 # FIXME: do we really want to maintain this feature?
14315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14316 ac_sed_extra="$ac_vpsub
14317 $extrasub
14318 _ACEOF
14319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14320 :t
14321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14322 s|@configure_input@|$ac_sed_conf_input|;t t
14323 s&@top_builddir@&$ac_top_builddir_sub&;t t
14324 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14325 s&@srcdir@&$ac_srcdir&;t t
14326 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14327 s&@top_srcdir@&$ac_top_srcdir&;t t
14328 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14329 s&@builddir@&$ac_builddir&;t t
14330 s&@abs_builddir@&$ac_abs_builddir&;t t
14331 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14332 s&@INSTALL@&$ac_INSTALL&;t t
14333 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14334 $ac_datarootdir_hack
14335 "
14336 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14337 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14338
14339 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14340 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14341 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14342 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14344 which seems to be undefined. Please make sure it is defined" >&5
14345 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14346 which seems to be undefined. Please make sure it is defined" >&2;}
14347
14348 rm -f "$ac_tmp/stdin"
14349 case $ac_file in
14350 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14351 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14352 esac \
14353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14354 ;;
14355
14356
14357 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14358 $as_echo "$as_me: executing $ac_file commands" >&6;}
14359 ;;
14360 esac
14361
14362
14363 case $ac_file$ac_mode in
14364 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14365 # Older Autoconf quotes --file arguments for eval, but not when files
14366 # are listed without --file. Let's play safe and only enable the eval
14367 # if we detect the quoting.
14368 # TODO: see whether this extra hack can be removed once we start
14369 # requiring Autoconf 2.70 or later.
14370 case $CONFIG_FILES in #(
14371 *\'*) :
14372 eval set x "$CONFIG_FILES" ;; #(
14373 *) :
14374 set x $CONFIG_FILES ;; #(
14375 *) :
14376 ;;
14377 esac
14378 shift
14379 # Used to flag and report bootstrapping failures.
14380 am_rc=0
14381 for am_mf
14382 do
14383 # Strip MF so we end up with the name of the file.
14384 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14385 # Check whether this is an Automake generated Makefile which includes
14386 # dependency-tracking related rules and includes.
14387 # Grep'ing the whole file directly is not great: AIX grep has a line
14388 # limit of 2048, but all sed's we know have understand at least 4000.
14389 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14390 || continue
14391 am_dirpart=`$as_dirname -- "$am_mf" ||
14392 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14393 X"$am_mf" : 'X\(//\)[^/]' \| \
14394 X"$am_mf" : 'X\(//\)$' \| \
14395 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14396 $as_echo X"$am_mf" |
14397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14398 s//\1/
14399 q
14400 }
14401 /^X\(\/\/\)[^/].*/{
14402 s//\1/
14403 q
14404 }
14405 /^X\(\/\/\)$/{
14406 s//\1/
14407 q
14408 }
14409 /^X\(\/\).*/{
14410 s//\1/
14411 q
14412 }
14413 s/.*/./; q'`
14414 am_filepart=`$as_basename -- "$am_mf" ||
14415 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14416 X"$am_mf" : 'X\(//\)$' \| \
14417 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14418 $as_echo X/"$am_mf" |
14419 sed '/^.*\/\([^/][^/]*\)\/*$/{
14420 s//\1/
14421 q
14422 }
14423 /^X\/\(\/\/\)$/{
14424 s//\1/
14425 q
14426 }
14427 /^X\/\(\/\).*/{
14428 s//\1/
14429 q
14430 }
14431 s/.*/./; q'`
14432 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14433 && sed -e '/# am--include-marker/d' "$am_filepart" \
14434 | $MAKE -f - am--depfiles" >&5
14435 (cd "$am_dirpart" \
14436 && sed -e '/# am--include-marker/d' "$am_filepart" \
14437 | $MAKE -f - am--depfiles) >&5 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } || am_rc=$?
14441 done
14442 if test $am_rc -ne 0; then
14443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14445 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14446 for automatic dependency tracking. If GNU make was not used, consider
14447 re-running the configure script with MAKE=\"gmake\" (or whatever is
14448 necessary). You can also try re-running configure with the
14449 '--disable-dependency-tracking' option to at least be able to build
14450 the package (albeit without support for automatic dependency tracking).
14451 See \`config.log' for more details" "$LINENO" 5; }
14452 fi
14453 { am_dirpart=; unset am_dirpart;}
14454 { am_filepart=; unset am_filepart;}
14455 { am_mf=; unset am_mf;}
14456 { am_rc=; unset am_rc;}
14457 rm -f conftest-deps.mk
14458 }
14459 ;;
14460 "libtool":C)
14461
14462 # See if we are running on zsh, and set the options that allow our
14463 # commands through without removal of \ escapes.
14464 if test -n "${ZSH_VERSION+set}"; then
14465 setopt NO_GLOB_SUBST
14466 fi
14467
14468 cfgfile=${ofile}T
14469 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14470 $RM "$cfgfile"
14471
14472 cat <<_LT_EOF >> "$cfgfile"
14473 #! $SHELL
14474 # Generated automatically by $as_me ($PACKAGE) $VERSION
14475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14476
14477 # Provide generalized library-building support services.
14478 # Written by Gordon Matzigkeit, 1996
14479
14480 # Copyright (C) 2014 Free Software Foundation, Inc.
14481 # This is free software; see the source for copying conditions. There is NO
14482 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14483
14484 # GNU Libtool is free software; you can redistribute it and/or modify
14485 # it under the terms of the GNU General Public License as published by
14486 # the Free Software Foundation; either version 2 of of the License, or
14487 # (at your option) any later version.
14488 #
14489 # As a special exception to the GNU General Public License, if you
14490 # distribute this file as part of a program or library that is built
14491 # using GNU Libtool, you may include this file under the same
14492 # distribution terms that you use for the rest of that program.
14493 #
14494 # GNU Libtool is distributed in the hope that it will be useful, but
14495 # WITHOUT ANY WARRANTY; without even the implied warranty of
14496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14497 # GNU General Public License for more details.
14498 #
14499 # You should have received a copy of the GNU General Public License
14500 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14501
14502
14503 # The names of the tagged configurations supported by this script.
14504 available_tags=''
14505
14506 # Configured defaults for sys_lib_dlsearch_path munging.
14507 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14508
14509 # ### BEGIN LIBTOOL CONFIG
14510
14511 # Whether or not to build static libraries.
14512 build_old_libs=$enable_static
14513
14514 # Which release of libtool.m4 was used?
14515 macro_version=$macro_version
14516 macro_revision=$macro_revision
14517
14518 # Whether or not to build shared libraries.
14519 build_libtool_libs=$enable_shared
14520
14521 # What type of objects to build.
14522 pic_mode=$pic_mode
14523
14524 # Whether or not to optimize for fast installation.
14525 fast_install=$enable_fast_install
14526
14527 # Shared archive member basename,for filename based shared library versioning on AIX.
14528 shared_archive_member_spec=$shared_archive_member_spec
14529
14530 # Shell to use when invoking shell scripts.
14531 SHELL=$lt_SHELL
14532
14533 # An echo program that protects backslashes.
14534 ECHO=$lt_ECHO
14535
14536 # The PATH separator for the build system.
14537 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14538
14539 # The host system.
14540 host_alias=$host_alias
14541 host=$host
14542 host_os=$host_os
14543
14544 # The build system.
14545 build_alias=$build_alias
14546 build=$build
14547 build_os=$build_os
14548
14549 # A sed program that does not truncate output.
14550 SED=$lt_SED
14551
14552 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14553 Xsed="\$SED -e 1s/^X//"
14554
14555 # A grep program that handles long lines.
14556 GREP=$lt_GREP
14557
14558 # An ERE matcher.
14559 EGREP=$lt_EGREP
14560
14561 # A literal string matcher.
14562 FGREP=$lt_FGREP
14563
14564 # A BSD- or MS-compatible name lister.
14565 NM=$lt_NM
14566
14567 # Whether we need soft or hard links.
14568 LN_S=$lt_LN_S
14569
14570 # What is the maximum length of a command?
14571 max_cmd_len=$max_cmd_len
14572
14573 # Object file suffix (normally "o").
14574 objext=$ac_objext
14575
14576 # Executable file suffix (normally "").
14577 exeext=$exeext
14578
14579 # whether the shell understands "unset".
14580 lt_unset=$lt_unset
14581
14582 # turn spaces into newlines.
14583 SP2NL=$lt_lt_SP2NL
14584
14585 # turn newlines into spaces.
14586 NL2SP=$lt_lt_NL2SP
14587
14588 # convert \$build file names to \$host format.
14589 to_host_file_cmd=$lt_cv_to_host_file_cmd
14590
14591 # convert \$build files to toolchain format.
14592 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14593
14594 # An object symbol dumper.
14595 OBJDUMP=$lt_OBJDUMP
14596
14597 # Method to check whether dependent libraries are shared objects.
14598 deplibs_check_method=$lt_deplibs_check_method
14599
14600 # Command to use when deplibs_check_method = "file_magic".
14601 file_magic_cmd=$lt_file_magic_cmd
14602
14603 # How to find potential files when deplibs_check_method = "file_magic".
14604 file_magic_glob=$lt_file_magic_glob
14605
14606 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14607 want_nocaseglob=$lt_want_nocaseglob
14608
14609 # DLL creation program.
14610 DLLTOOL=$lt_DLLTOOL
14611
14612 # Command to associate shared and link libraries.
14613 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14614
14615 # The archiver.
14616 AR=$lt_AR
14617
14618 # Flags to create an archive.
14619 AR_FLAGS=$lt_AR_FLAGS
14620
14621 # How to feed a file listing to the archiver.
14622 archiver_list_spec=$lt_archiver_list_spec
14623
14624 # A symbol stripping program.
14625 STRIP=$lt_STRIP
14626
14627 # Commands used to install an old-style archive.
14628 RANLIB=$lt_RANLIB
14629 old_postinstall_cmds=$lt_old_postinstall_cmds
14630 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14631
14632 # Whether to use a lock for old archive extraction.
14633 lock_old_archive_extraction=$lock_old_archive_extraction
14634
14635 # A C compiler.
14636 LTCC=$lt_CC
14637
14638 # LTCC compiler flags.
14639 LTCFLAGS=$lt_CFLAGS
14640
14641 # Take the output of nm and produce a listing of raw symbols and C names.
14642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14643
14644 # Transform the output of nm in a proper C declaration.
14645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14646
14647 # Transform the output of nm into a list of symbols to manually relocate.
14648 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14649
14650 # Transform the output of nm in a C name address pair.
14651 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14652
14653 # Transform the output of nm in a C name address pair when lib prefix is needed.
14654 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14655
14656 # The name lister interface.
14657 nm_interface=$lt_lt_cv_nm_interface
14658
14659 # Specify filename containing input files for \$NM.
14660 nm_file_list_spec=$lt_nm_file_list_spec
14661
14662 # The root where to search for dependent libraries,and where our libraries should be installed.
14663 lt_sysroot=$lt_sysroot
14664
14665 # Command to truncate a binary pipe.
14666 lt_truncate_bin=$lt_lt_cv_truncate_bin
14667
14668 # The name of the directory that contains temporary libtool files.
14669 objdir=$objdir
14670
14671 # Used to examine libraries when file_magic_cmd begins with "file".
14672 MAGIC_CMD=$MAGIC_CMD
14673
14674 # Must we lock files when doing compilation?
14675 need_locks=$lt_need_locks
14676
14677 # Manifest tool.
14678 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14679
14680 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14681 DSYMUTIL=$lt_DSYMUTIL
14682
14683 # Tool to change global to local symbols on Mac OS X.
14684 NMEDIT=$lt_NMEDIT
14685
14686 # Tool to manipulate fat objects and archives on Mac OS X.
14687 LIPO=$lt_LIPO
14688
14689 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14690 OTOOL=$lt_OTOOL
14691
14692 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14693 OTOOL64=$lt_OTOOL64
14694
14695 # Old archive suffix (normally "a").
14696 libext=$libext
14697
14698 # Shared library suffix (normally ".so").
14699 shrext_cmds=$lt_shrext_cmds
14700
14701 # The commands to extract the exported symbol list from a shared archive.
14702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14703
14704 # Variables whose values should be saved in libtool wrapper scripts and
14705 # restored at link time.
14706 variables_saved_for_relink=$lt_variables_saved_for_relink
14707
14708 # Do we need the "lib" prefix for modules?
14709 need_lib_prefix=$need_lib_prefix
14710
14711 # Do we need a version for libraries?
14712 need_version=$need_version
14713
14714 # Library versioning type.
14715 version_type=$version_type
14716
14717 # Shared library runtime path variable.
14718 runpath_var=$runpath_var
14719
14720 # Shared library path variable.
14721 shlibpath_var=$shlibpath_var
14722
14723 # Is shlibpath searched before the hard-coded library search path?
14724 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14725
14726 # Format of library name prefix.
14727 libname_spec=$lt_libname_spec
14728
14729 # List of archive names. First name is the real one, the rest are links.
14730 # The last name is the one that the linker finds with -lNAME
14731 library_names_spec=$lt_library_names_spec
14732
14733 # The coded name of the library, if different from the real name.
14734 soname_spec=$lt_soname_spec
14735
14736 # Permission mode override for installation of shared libraries.
14737 install_override_mode=$lt_install_override_mode
14738
14739 # Command to use after installation of a shared archive.
14740 postinstall_cmds=$lt_postinstall_cmds
14741
14742 # Command to use after uninstallation of a shared archive.
14743 postuninstall_cmds=$lt_postuninstall_cmds
14744
14745 # Commands used to finish a libtool library installation in a directory.
14746 finish_cmds=$lt_finish_cmds
14747
14748 # As "finish_cmds", except a single script fragment to be evaled but
14749 # not shown.
14750 finish_eval=$lt_finish_eval
14751
14752 # Whether we should hardcode library paths into libraries.
14753 hardcode_into_libs=$hardcode_into_libs
14754
14755 # Compile-time system search path for libraries.
14756 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14757
14758 # Detected run-time system search path for libraries.
14759 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14760
14761 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14762 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14763
14764 # Whether dlopen is supported.
14765 dlopen_support=$enable_dlopen
14766
14767 # Whether dlopen of programs is supported.
14768 dlopen_self=$enable_dlopen_self
14769
14770 # Whether dlopen of statically linked programs is supported.
14771 dlopen_self_static=$enable_dlopen_self_static
14772
14773 # Commands to strip libraries.
14774 old_striplib=$lt_old_striplib
14775 striplib=$lt_striplib
14776
14777
14778 # The linker used to build libraries.
14779 LD=$lt_LD
14780
14781 # How to create reloadable object files.
14782 reload_flag=$lt_reload_flag
14783 reload_cmds=$lt_reload_cmds
14784
14785 # Commands used to build an old-style archive.
14786 old_archive_cmds=$lt_old_archive_cmds
14787
14788 # A language specific compiler.
14789 CC=$lt_compiler
14790
14791 # Is the compiler the GNU compiler?
14792 with_gcc=$GCC
14793
14794 # Compiler flag to turn off builtin functions.
14795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14796
14797 # Additional compiler flags for building library objects.
14798 pic_flag=$lt_lt_prog_compiler_pic
14799
14800 # How to pass a linker flag through the compiler.
14801 wl=$lt_lt_prog_compiler_wl
14802
14803 # Compiler flag to prevent dynamic linking.
14804 link_static_flag=$lt_lt_prog_compiler_static
14805
14806 # Does compiler simultaneously support -c and -o options?
14807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14808
14809 # Whether or not to add -lc for building shared libraries.
14810 build_libtool_need_lc=$archive_cmds_need_lc
14811
14812 # Whether or not to disallow shared libs when runtime libs are static.
14813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14814
14815 # Compiler flag to allow reflexive dlopens.
14816 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14817
14818 # Compiler flag to generate shared objects directly from archives.
14819 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14820
14821 # Whether the compiler copes with passing no objects directly.
14822 compiler_needs_object=$lt_compiler_needs_object
14823
14824 # Create an old-style archive from a shared archive.
14825 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14826
14827 # Create a temporary old-style archive to link instead of a shared archive.
14828 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14829
14830 # Commands used to build a shared archive.
14831 archive_cmds=$lt_archive_cmds
14832 archive_expsym_cmds=$lt_archive_expsym_cmds
14833
14834 # Commands used to build a loadable module if different from building
14835 # a shared archive.
14836 module_cmds=$lt_module_cmds
14837 module_expsym_cmds=$lt_module_expsym_cmds
14838
14839 # Whether we are building with GNU ld or not.
14840 with_gnu_ld=$lt_with_gnu_ld
14841
14842 # Flag that allows shared libraries with undefined symbols to be built.
14843 allow_undefined_flag=$lt_allow_undefined_flag
14844
14845 # Flag that enforces no undefined symbols.
14846 no_undefined_flag=$lt_no_undefined_flag
14847
14848 # Flag to hardcode \$libdir into a binary during linking.
14849 # This must work even if \$libdir does not exist
14850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14851
14852 # Whether we need a single "-rpath" flag with a separated argument.
14853 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14854
14855 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14856 # DIR into the resulting binary.
14857 hardcode_direct=$hardcode_direct
14858
14859 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14860 # DIR into the resulting binary and the resulting library dependency is
14861 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14862 # library is relocated.
14863 hardcode_direct_absolute=$hardcode_direct_absolute
14864
14865 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14866 # into the resulting binary.
14867 hardcode_minus_L=$hardcode_minus_L
14868
14869 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14870 # into the resulting binary.
14871 hardcode_shlibpath_var=$hardcode_shlibpath_var
14872
14873 # Set to "yes" if building a shared library automatically hardcodes DIR
14874 # into the library and all subsequent libraries and executables linked
14875 # against it.
14876 hardcode_automatic=$hardcode_automatic
14877
14878 # Set to yes if linker adds runtime paths of dependent libraries
14879 # to runtime path list.
14880 inherit_rpath=$inherit_rpath
14881
14882 # Whether libtool must link a program against all its dependency libraries.
14883 link_all_deplibs=$link_all_deplibs
14884
14885 # Set to "yes" if exported symbols are required.
14886 always_export_symbols=$always_export_symbols
14887
14888 # The commands to list exported symbols.
14889 export_symbols_cmds=$lt_export_symbols_cmds
14890
14891 # Symbols that should not be listed in the preloaded symbols.
14892 exclude_expsyms=$lt_exclude_expsyms
14893
14894 # Symbols that must always be exported.
14895 include_expsyms=$lt_include_expsyms
14896
14897 # Commands necessary for linking programs (against libraries) with templates.
14898 prelink_cmds=$lt_prelink_cmds
14899
14900 # Commands necessary for finishing linking programs.
14901 postlink_cmds=$lt_postlink_cmds
14902
14903 # Specify filename containing input files.
14904 file_list_spec=$lt_file_list_spec
14905
14906 # How to hardcode a shared library path into an executable.
14907 hardcode_action=$hardcode_action
14908
14909 # ### END LIBTOOL CONFIG
14910
14911 _LT_EOF
14912
14913 cat <<'_LT_EOF' >> "$cfgfile"
14914
14915 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14916
14917 # func_munge_path_list VARIABLE PATH
14918 # -----------------------------------
14919 # VARIABLE is name of variable containing _space_ separated list of
14920 # directories to be munged by the contents of PATH, which is string
14921 # having a format:
14922 # "DIR[:DIR]:"
14923 # string "DIR[ DIR]" will be prepended to VARIABLE
14924 # ":DIR[:DIR]"
14925 # string "DIR[ DIR]" will be appended to VARIABLE
14926 # "DIRP[:DIRP]::[DIRA:]DIRA"
14927 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14928 # "DIRA[ DIRA]" will be appended to VARIABLE
14929 # "DIR[:DIR]"
14930 # VARIABLE will be replaced by "DIR[ DIR]"
14931 func_munge_path_list ()
14932 {
14933 case x$2 in
14934 x)
14935 ;;
14936 *:)
14937 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14938 ;;
14939 x:*)
14940 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14941 ;;
14942 *::*)
14943 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14944 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14945 ;;
14946 *)
14947 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14948 ;;
14949 esac
14950 }
14951
14952
14953 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14954 func_cc_basename ()
14955 {
14956 for cc_temp in $*""; do
14957 case $cc_temp in
14958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14960 \-*) ;;
14961 *) break;;
14962 esac
14963 done
14964 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14965 }
14966
14967
14968 # ### END FUNCTIONS SHARED WITH CONFIGURE
14969
14970 _LT_EOF
14971
14972 case $host_os in
14973 aix3*)
14974 cat <<\_LT_EOF >> "$cfgfile"
14975 # AIX sometimes has problems with the GCC collect2 program. For some
14976 # reason, if we set the COLLECT_NAMES environment variable, the problems
14977 # vanish in a puff of smoke.
14978 if test set != "${COLLECT_NAMES+set}"; then
14979 COLLECT_NAMES=
14980 export COLLECT_NAMES
14981 fi
14982 _LT_EOF
14983 ;;
14984 esac
14985
14986
14987 ltmain=$ac_aux_dir/ltmain.sh
14988
14989
14990 # We use sed instead of cat because bash on DJGPP gets confused if
14991 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14992 # text mode, it properly converts lines to CR/LF. This bash problem
14993 # is reportedly fixed, but why not run on old versions too?
14994 sed '$q' "$ltmain" >> "$cfgfile" \
14995 || (rm -f "$cfgfile"; exit 1)
14996
14997 mv -f "$cfgfile" "$ofile" ||
14998 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14999 chmod +x "$ofile"
15000
15001 ;;
15002
15003 esac
15004 done # for ac_tag
15005
15006
15007 as_fn_exit 0
15008 _ACEOF
15009 ac_clean_files=$ac_clean_files_save
15010
15011 test $ac_write_fail = 0 ||
15012 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15013
15014
15015 # configure is writing to config.log, and then calls config.status.
15016 # config.status does its own redirection, appending to config.log.
15017 # Unfortunately, on DOS this fails, as config.log is still kept open
15018 # by configure, so config.status won't be able to write to it; its
15019 # output is simply discarded. So we exec the FD to /dev/null,
15020 # effectively closing config.log, so it can be properly (re)opened and
15021 # appended to by config.status. When coming back to configure, we
15022 # need to make the FD available again.
15023 if test "$no_create" != yes; then
15024 ac_cs_success=:
15025 ac_config_status_args=
15026 test "$silent" = yes &&
15027 ac_config_status_args="$ac_config_status_args --quiet"
15028 exec 5>/dev/null
15029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15030 exec 5>>config.log
15031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15032 # would make configure fail if this is the last instruction.
15033 $ac_cs_success || as_fn_exit 1
15034 fi
15035 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15037 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15038 fi
15039