]> iEval git - linux-seccomp.git/blame - libseccomp/configure
Add version to the list of functions
[linux-seccomp.git] / libseccomp / configure
CommitLineData
8befd5cc
MG
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libseccomp 2.3.1.
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
79fi
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
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
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
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
242fi; }
243IFS=$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.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $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
265exit 255
266fi
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 bug-autoconf@gnu.org 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
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_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.
313as_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.
323as_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.
371as_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.
381if (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 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # 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.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # 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.
416as_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
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_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.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_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
508ECHO_C= ECHO_N= ECHO_T=
509case `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';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (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
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_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.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 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.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libseccomp'
589PACKAGE_TARNAME='libseccomp'
590PACKAGE_VERSION='2.3.1'
591PACKAGE_STRING='libseccomp 2.3.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_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
631ac_header_list=
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636COVERITY_FALSE
637COVERITY_TRUE
638have_coverity
639ENABLE_PYTHON_FALSE
640ENABLE_PYTHON_TRUE
641have_cython
642VERSION_MICRO
643VERSION_MINOR
644VERSION_MAJOR
645AM_LDFLAGS
646AM_CFLAGS
647AM_CPPFLAGS
648CPP
649LT_SYS_LIBRARY_PATH
650OTOOL64
651OTOOL
652LIPO
653NMEDIT
654DSYMUTIL
655MANIFEST_TOOL
656RANLIB
657DLLTOOL
658OBJDUMP
659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665EGREP
666GREP
667SED
668host_os
669host_vendor
670host_cpu
671host
672build_os
673build_vendor
674build_cpu
675build
676LIBTOOL
677ac_ct_AR
678AR
679am__fastdepCC_FALSE
680am__fastdepCC_TRUE
681CCDEPMODE
682am__nodep
683AMDEPBACKSLASH
684AMDEP_FALSE
685AMDEP_TRUE
686am__quote
687am__include
688DEPDIR
689OBJEXT
690EXEEXT
691ac_ct_CC
692CPPFLAGS
693LDFLAGS
694CFLAGS
695CC
696AM_BACKSLASH
697AM_DEFAULT_VERBOSITY
698AM_DEFAULT_V
699AM_V
700am__untar
701am__tar
702AMTAR
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_silent_rules
765enable_dependency_tracking
766enable_shared
767with_pic
768enable_static
769enable_fast_install
770with_aix_soname
771with_gnu_ld
772with_sysroot
773enable_libtool_lock
774enable_python
775'
776 ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784LT_SYS_LIBRARY_PATH
785CPP'
786
787
788# Initialize some variables set by options.
789ac_init_help=
790ac_init_version=false
791ac_unrecognized_opts=
792ac_unrecognized_sep=
793# The variables have the same names as the options, with
794# dashes changed to underlines.
795cache_file=/dev/null
796exec_prefix=NONE
797no_create=
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
806verbose=
807x_includes=NONE
808x_libraries=NONE
809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
815# (The list follows the same order as the GNU Coding Standards.)
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
835
836ac_prev=
837ac_dashdash=
838for ac_option
839do
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
845 fi
846
847 case $ac_option in
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *=) ac_optarg= ;;
850 *) ac_optarg=yes ;;
851 esac
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
863
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
878
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
883
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
916
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926"enable_$ac_useropt"
927"*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130"with_$ac_useropt"
1131"*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1136
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146"with_$ac_useropt"
1147"*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172Try \`$0 --help' for more information"
1173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1199fi
1200
1201if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1207fi
1208
1209# Check all directory arguments for consistency.
1210for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1214do
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1290 fi
1291else
1292 ac_srcdir_defaulted=no
1293fi
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326\`configure' configures libseccomp 2.3.1 to adapt to many kinds of systems.
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1346Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libseccomp]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379_ACEOF
1380
1381 cat <<\_ACEOF
1382
1383Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391_ACEOF
1392fi
1393
1394if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of libseccomp 2.3.1:";;
1397 esac
1398 cat <<\_ACEOF
1399
1400Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-silent-rules less verbose build output (undo: "make V=1")
1405 --disable-silent-rules verbose build output (undo: "make V=0")
1406 --enable-dependency-tracking
1407 do not reject slow dependency extractors
1408 --disable-dependency-tracking
1409 speeds up one-time build
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --disable-libtool-lock avoid locking (might break parallel builds)
1415 --enable-python build the python bindings, requires cython
1416
1417Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1421 both]
1422 --with-aix-soname=aix|svr4|both
1423 shared library versioning (aka "SONAME") variant to
1424 provide on AIX, [default=aix].
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1427 compiler's sysroot if not specified).
1428
1429Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 LT_SYS_LIBRARY_PATH
1438 User-defined run-time library search path.
1439 CPP C preprocessor
1440
1441Use these variables to override the choices made by `configure' or to help
1442it to find libraries and programs with nonstandard names/locations.
1443
1444Report bugs to the package provider.
1445_ACEOF
1446ac_status=$?
1447fi
1448
1449if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1456
1457case "$ac_dir" in
1458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459*)
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467esac
1468ac_abs_top_builddir=$ac_pwd
1469ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470# for backward compatibility:
1471ac_top_builddir=$ac_top_build_prefix
1472
1473case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486esac
1487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1502fi
1503
1504test -n "$ac_init_help" && exit $ac_status
1505if $ac_init_version; then
1506 cat <<\_ACEOF
1507libseccomp configure 2.3.1
1508generated by GNU Autoconf 2.69
1509
1510Copyright (C) 2012 Free Software Foundation, Inc.
1511This configure script is free software; the Free Software Foundation
1512gives unlimited permission to copy, distribute and modify it.
1513_ACEOF
1514 exit
1515fi
1516
1517## ------------------------ ##
1518## Autoconf initialization. ##
1519## ------------------------ ##
1520
1521# ac_fn_c_try_compile LINENO
1522# --------------------------
1523# Try to compile conftest.$ac_ext, and return whether this succeeded.
1524ac_fn_c_try_compile ()
1525{
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548else
1549 $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553fi
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557} # ac_fn_c_try_compile
1558
1559# ac_fn_c_try_link LINENO
1560# -----------------------
1561# Try to link conftest.$ac_ext, and return whether this succeeded.
1562ac_fn_c_try_link ()
1563{
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest$ac_exeext
1566 if { { ac_try="$ac_link"
1567case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570esac
1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572$as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest$ac_exeext && {
1585 test "$cross_compiling" = yes ||
1586 test -x conftest$ac_exeext
1587 }; then :
1588 ac_retval=0
1589else
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594fi
1595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597 # interfere with the next link command; also delete a directory that is
1598 # left behind by Apple's compiler. We do this before executing the actions.
1599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603} # ac_fn_c_try_link
1604
1605# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606# -------------------------------------------------------
1607# Tests whether HEADER exists and can be compiled using the include files in
1608# INCLUDES, setting the cache variable VAR accordingly.
1609ac_fn_c_check_header_compile ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613$as_echo_n "checking for $2... " >&6; }
1614if eval \${$3+:} false; then :
1615 $as_echo_n "(cached) " >&6
1616else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618/* end confdefs.h. */
1619$4
1620#include <$2>
1621_ACEOF
1622if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624else
1625 eval "$3=no"
1626fi
1627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628fi
1629eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631$as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634} # ac_fn_c_check_header_compile
1635
1636# ac_fn_c_try_cpp LINENO
1637# ----------------------
1638# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639ac_fn_c_try_cpp ()
1640{
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } > conftest.i && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662else
1663 $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671} # ac_fn_c_try_cpp
1672
1673# ac_fn_c_try_run LINENO
1674# ----------------------
1675# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676# that executables *can* be run.
1677ac_fn_c_try_run ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=$ac_status
1708fi
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_run
1714
1715# ac_fn_c_check_func LINENO FUNC VAR
1716# ----------------------------------
1717# Tests whether FUNC exists, setting the cache variable VAR accordingly
1718ac_fn_c_check_func ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722$as_echo_n "checking for $2... " >&6; }
1723if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727/* end confdefs.h. */
1728/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1730#define $2 innocuous_$2
1731
1732/* System header to define __stub macros and hopefully few prototypes,
1733 which can conflict with char $2 (); below.
1734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1735 <limits.h> exists even on freestanding compilers. */
1736
1737#ifdef __STDC__
1738# include <limits.h>
1739#else
1740# include <assert.h>
1741#endif
1742
1743#undef $2
1744
1745/* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1748#ifdef __cplusplus
1749extern "C"
1750#endif
1751char $2 ();
1752/* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755#if defined __stub_$2 || defined __stub___$2
1756choke me
1757#endif
1758
1759int
1760main ()
1761{
1762return $2 ();
1763 ;
1764 return 0;
1765}
1766_ACEOF
1767if ac_fn_c_try_link "$LINENO"; then :
1768 eval "$3=yes"
1769else
1770 eval "$3=no"
1771fi
1772rm -f core conftest.err conftest.$ac_objext \
1773 conftest$ac_exeext conftest.$ac_ext
1774fi
1775eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780} # ac_fn_c_check_func
1781cat >config.log <<_ACEOF
1782This file contains any messages produced by compilers while
1783running configure, to aid debugging if configure makes a mistake.
1784
1785It was created by libseccomp $as_me 2.3.1, which was
1786generated by GNU Autoconf 2.69. Invocation command line was
1787
1788 $ $0 $@
1789
1790_ACEOF
1791exec 5>>config.log
1792{
1793cat <<_ASUNAME
1794## --------- ##
1795## Platform. ##
1796## --------- ##
1797
1798hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1799uname -m = `(uname -m) 2>/dev/null || echo unknown`
1800uname -r = `(uname -r) 2>/dev/null || echo unknown`
1801uname -s = `(uname -s) 2>/dev/null || echo unknown`
1802uname -v = `(uname -v) 2>/dev/null || echo unknown`
1803
1804/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1805/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1806
1807/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1808/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1809/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1810/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1811/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1812/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1813/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1814
1815_ASUNAME
1816
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 $as_echo "PATH: $as_dir"
1823 done
1824IFS=$as_save_IFS
1825
1826} >&5
1827
1828cat >&5 <<_ACEOF
1829
1830
1831## ----------- ##
1832## Core tests. ##
1833## ----------- ##
1834
1835_ACEOF
1836
1837
1838# Keep a trace of the command line.
1839# Strip out --no-create and --no-recursion so they do not pile up.
1840# Strip out --silent because we don't want to record it for future runs.
1841# Also quote any args containing shell meta-characters.
1842# Make two passes to allow for proper duplicate-argument suppression.
1843ac_configure_args=
1844ac_configure_args0=
1845ac_configure_args1=
1846ac_must_keep_next=false
1847for ac_pass in 1 2
1848do
1849 for ac_arg
1850 do
1851 case $ac_arg in
1852 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1854 | -silent | --silent | --silen | --sile | --sil)
1855 continue ;;
1856 *\'*)
1857 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 esac
1859 case $ac_pass in
1860 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1861 2)
1862 as_fn_append ac_configure_args1 " '$ac_arg'"
1863 if test $ac_must_keep_next = true; then
1864 ac_must_keep_next=false # Got value, back to normal.
1865 else
1866 case $ac_arg in
1867 *=* | --config-cache | -C | -disable-* | --disable-* \
1868 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1869 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1870 | -with-* | --with-* | -without-* | --without-* | --x)
1871 case "$ac_configure_args0 " in
1872 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1873 esac
1874 ;;
1875 -* ) ac_must_keep_next=true ;;
1876 esac
1877 fi
1878 as_fn_append ac_configure_args " '$ac_arg'"
1879 ;;
1880 esac
1881 done
1882done
1883{ ac_configure_args0=; unset ac_configure_args0;}
1884{ ac_configure_args1=; unset ac_configure_args1;}
1885
1886# When interrupted or exit'd, cleanup temporary files, and complete
1887# config.log. We remove comments because anyway the quotes in there
1888# would cause problems or look ugly.
1889# WARNING: Use '\'' to represent an apostrophe within the trap.
1890# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1891trap 'exit_status=$?
1892 # Save into config.log some information that might help in debugging.
1893 {
1894 echo
1895
1896 $as_echo "## ---------------- ##
1897## Cache variables. ##
1898## ---------------- ##"
1899 echo
1900 # The following way of writing the cache mishandles newlines in values,
1901(
1902 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1903 eval ac_val=\$$ac_var
1904 case $ac_val in #(
1905 *${as_nl}*)
1906 case $ac_var in #(
1907 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1908$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1909 esac
1910 case $ac_var in #(
1911 _ | IFS | as_nl) ;; #(
1912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1913 *) { eval $ac_var=; unset $ac_var;} ;;
1914 esac ;;
1915 esac
1916 done
1917 (set) 2>&1 |
1918 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1919 *${as_nl}ac_space=\ *)
1920 sed -n \
1921 "s/'\''/'\''\\\\'\'''\''/g;
1922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1923 ;; #(
1924 *)
1925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1926 ;;
1927 esac |
1928 sort
1929)
1930 echo
1931
1932 $as_echo "## ----------------- ##
1933## Output variables. ##
1934## ----------------- ##"
1935 echo
1936 for ac_var in $ac_subst_vars
1937 do
1938 eval ac_val=\$$ac_var
1939 case $ac_val in
1940 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1941 esac
1942 $as_echo "$ac_var='\''$ac_val'\''"
1943 done | sort
1944 echo
1945
1946 if test -n "$ac_subst_files"; then
1947 $as_echo "## ------------------- ##
1948## File substitutions. ##
1949## ------------------- ##"
1950 echo
1951 for ac_var in $ac_subst_files
1952 do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in
1955 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1956 esac
1957 $as_echo "$ac_var='\''$ac_val'\''"
1958 done | sort
1959 echo
1960 fi
1961
1962 if test -s confdefs.h; then
1963 $as_echo "## ----------- ##
1964## confdefs.h. ##
1965## ----------- ##"
1966 echo
1967 cat confdefs.h
1968 echo
1969 fi
1970 test "$ac_signal" != 0 &&
1971 $as_echo "$as_me: caught signal $ac_signal"
1972 $as_echo "$as_me: exit $exit_status"
1973 } >&5
1974 rm -f core *.core core.conftest.* &&
1975 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1976 exit $exit_status
1977' 0
1978for ac_signal in 1 2 13 15; do
1979 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1980done
1981ac_signal=0
1982
1983# confdefs.h avoids OS command line length limits that DEFS can exceed.
1984rm -f -r conftest* confdefs.h
1985
1986$as_echo "/* confdefs.h */" > confdefs.h
1987
1988# Predefined preprocessor variables.
1989
1990cat >>confdefs.h <<_ACEOF
1991#define PACKAGE_NAME "$PACKAGE_NAME"
1992_ACEOF
1993
1994cat >>confdefs.h <<_ACEOF
1995#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1996_ACEOF
1997
1998cat >>confdefs.h <<_ACEOF
1999#define PACKAGE_VERSION "$PACKAGE_VERSION"
2000_ACEOF
2001
2002cat >>confdefs.h <<_ACEOF
2003#define PACKAGE_STRING "$PACKAGE_STRING"
2004_ACEOF
2005
2006cat >>confdefs.h <<_ACEOF
2007#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2008_ACEOF
2009
2010cat >>confdefs.h <<_ACEOF
2011#define PACKAGE_URL "$PACKAGE_URL"
2012_ACEOF
2013
2014
2015# Let the site file select an alternate cache file if it wants to.
2016# Prefer an explicitly selected file to automatically selected ones.
2017ac_site_file1=NONE
2018ac_site_file2=NONE
2019if test -n "$CONFIG_SITE"; then
2020 # We do not want a PATH search for config.site.
2021 case $CONFIG_SITE in #((
2022 -*) ac_site_file1=./$CONFIG_SITE;;
2023 */*) ac_site_file1=$CONFIG_SITE;;
2024 *) ac_site_file1=./$CONFIG_SITE;;
2025 esac
2026elif test "x$prefix" != xNONE; then
2027 ac_site_file1=$prefix/share/config.site
2028 ac_site_file2=$prefix/etc/config.site
2029else
2030 ac_site_file1=$ac_default_prefix/share/config.site
2031 ac_site_file2=$ac_default_prefix/etc/config.site
2032fi
2033for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2034do
2035 test "x$ac_site_file" = xNONE && continue
2036 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2038$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2039 sed 's/^/| /' "$ac_site_file" >&5
2040 . "$ac_site_file" \
2041 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043as_fn_error $? "failed to load site script $ac_site_file
2044See \`config.log' for more details" "$LINENO" 5; }
2045 fi
2046done
2047
2048if test -r "$cache_file"; then
2049 # Some versions of bash will fail to source /dev/null (special files
2050 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2051 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2053$as_echo "$as_me: loading cache $cache_file" >&6;}
2054 case $cache_file in
2055 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2056 *) . "./$cache_file";;
2057 esac
2058 fi
2059else
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2061$as_echo "$as_me: creating cache $cache_file" >&6;}
2062 >$cache_file
2063fi
2064
2065as_fn_append ac_header_list " linux/seccomp.h"
2066# Check that the precious variables saved in the cache have kept the same
2067# value.
2068ac_cache_corrupted=false
2069for ac_var in $ac_precious_vars; do
2070 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2071 eval ac_new_set=\$ac_env_${ac_var}_set
2072 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2073 eval ac_new_val=\$ac_env_${ac_var}_value
2074 case $ac_old_set,$ac_new_set in
2075 set,)
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2077$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2078 ac_cache_corrupted=: ;;
2079 ,set)
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2081$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2082 ac_cache_corrupted=: ;;
2083 ,);;
2084 *)
2085 if test "x$ac_old_val" != "x$ac_new_val"; then
2086 # differences in whitespace do not lead to failure.
2087 ac_old_val_w=`echo x $ac_old_val`
2088 ac_new_val_w=`echo x $ac_new_val`
2089 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2091$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2092 ac_cache_corrupted=:
2093 else
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2095$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2096 eval $ac_var=\$ac_old_val
2097 fi
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2099$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2101$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2102 fi;;
2103 esac
2104 # Pass precious variables to config.status.
2105 if test "$ac_new_set" = set; then
2106 case $ac_new_val in
2107 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2108 *) ac_arg=$ac_var=$ac_new_val ;;
2109 esac
2110 case " $ac_configure_args " in
2111 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2112 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2113 esac
2114 fi
2115done
2116if $ac_cache_corrupted; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2120$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2121 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2122fi
2123## -------------------- ##
2124## Main body of script. ##
2125## -------------------- ##
2126
2127ac_ext=c
2128ac_cpp='$CPP $CPPFLAGS'
2129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132
2133
2134
2135ac_aux_dir=
2136for ac_dir in build-aux "$srcdir"/build-aux; do
2137 if test -f "$ac_dir/install-sh"; then
2138 ac_aux_dir=$ac_dir
2139 ac_install_sh="$ac_aux_dir/install-sh -c"
2140 break
2141 elif test -f "$ac_dir/install.sh"; then
2142 ac_aux_dir=$ac_dir
2143 ac_install_sh="$ac_aux_dir/install.sh -c"
2144 break
2145 elif test -f "$ac_dir/shtool"; then
2146 ac_aux_dir=$ac_dir
2147 ac_install_sh="$ac_aux_dir/shtool install -c"
2148 break
2149 fi
2150done
2151if test -z "$ac_aux_dir"; then
2152 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2153fi
2154
2155# These three variables are undocumented and unsupported,
2156# and are intended to be withdrawn in a future Autoconf release.
2157# They can cause serious problems if a builder's source tree is in a directory
2158# whose full name contains unusual characters.
2159ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2160ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2161ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2162
2163
2164ac_config_headers="$ac_config_headers configure.h"
2165
2166
2167
2168
2169am__api_version='1.14'
2170
2171# Find a good install program. We prefer a C program (faster),
2172# so one script is as good as another. But avoid the broken or
2173# incompatible versions:
2174# SysV /etc/install, /usr/sbin/install
2175# SunOS /usr/etc/install
2176# IRIX /sbin/install
2177# AIX /bin/install
2178# AmigaOS /C/install, which installs bootblocks on floppy discs
2179# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2180# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2181# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2182# OS/2's system install, which has a completely different semantic
2183# ./install, which can be erroneously created by make from ./install.sh.
2184# Reject install programs that cannot install multiple files.
2185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2186$as_echo_n "checking for a BSD-compatible install... " >&6; }
2187if test -z "$INSTALL"; then
2188if ${ac_cv_path_install+:} false; then :
2189 $as_echo_n "(cached) " >&6
2190else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192for as_dir in $PATH
2193do
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 # Account for people who put trailing slashes in PATH elements.
2197case $as_dir/ in #((
2198 ./ | .// | /[cC]/* | \
2199 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2200 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2201 /usr/ucb/* ) ;;
2202 *)
2203 # OSF1 and SCO ODT 3.0 have their own names for install.
2204 # Don't use installbsd from OSF since it installs stuff as root
2205 # by default.
2206 for ac_prog in ginstall scoinst install; do
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2209 if test $ac_prog = install &&
2210 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2211 # AIX install. It has an incompatible calling convention.
2212 :
2213 elif test $ac_prog = install &&
2214 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215 # program-specific install script used by HP pwplus--don't use.
2216 :
2217 else
2218 rm -rf conftest.one conftest.two conftest.dir
2219 echo one > conftest.one
2220 echo two > conftest.two
2221 mkdir conftest.dir
2222 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2223 test -s conftest.one && test -s conftest.two &&
2224 test -s conftest.dir/conftest.one &&
2225 test -s conftest.dir/conftest.two
2226 then
2227 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2228 break 3
2229 fi
2230 fi
2231 fi
2232 done
2233 done
2234 ;;
2235esac
2236
2237 done
2238IFS=$as_save_IFS
2239
2240rm -rf conftest.one conftest.two conftest.dir
2241
2242fi
2243 if test "${ac_cv_path_install+set}" = set; then
2244 INSTALL=$ac_cv_path_install
2245 else
2246 # As a last resort, use the slow shell script. Don't cache a
2247 # value for INSTALL within a source directory, because that will
2248 # break other packages using the cache if that directory is
2249 # removed, or if the value is a relative name.
2250 INSTALL=$ac_install_sh
2251 fi
2252fi
2253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2254$as_echo "$INSTALL" >&6; }
2255
2256# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2257# It thinks the first close brace ends the variable substitution.
2258test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2259
2260test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2261
2262test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2263
2264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2265$as_echo_n "checking whether build environment is sane... " >&6; }
2266# Reject unsafe characters in $srcdir or the absolute working directory
2267# name. Accept space and tab only in the latter.
2268am_lf='
2269'
2270case `pwd` in
2271 *[\\\"\#\$\&\'\`$am_lf]*)
2272 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2273esac
2274case $srcdir in
2275 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2276 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2277esac
2278
2279# Do 'set' in a subshell so we don't clobber the current shell's
2280# arguments. Must try -L first in case configure is actually a
2281# symlink; some systems play weird games with the mod time of symlinks
2282# (eg FreeBSD returns the mod time of the symlink's containing
2283# directory).
2284if (
2285 am_has_slept=no
2286 for am_try in 1 2; do
2287 echo "timestamp, slept: $am_has_slept" > conftest.file
2288 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2289 if test "$*" = "X"; then
2290 # -L didn't work.
2291 set X `ls -t "$srcdir/configure" conftest.file`
2292 fi
2293 if test "$*" != "X $srcdir/configure conftest.file" \
2294 && test "$*" != "X conftest.file $srcdir/configure"; then
2295
2296 # If neither matched, then we have a broken ls. This can happen
2297 # if, for instance, CONFIG_SHELL is bash and it inherits a
2298 # broken ls alias from the environment. This has actually
2299 # happened. Such a system could not be considered "sane".
2300 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2301 alias in your environment" "$LINENO" 5
2302 fi
2303 if test "$2" = conftest.file || test $am_try -eq 2; then
2304 break
2305 fi
2306 # Just in case.
2307 sleep 1
2308 am_has_slept=yes
2309 done
2310 test "$2" = conftest.file
2311 )
2312then
2313 # Ok.
2314 :
2315else
2316 as_fn_error $? "newly created file is older than distributed files!
2317Check your system clock" "$LINENO" 5
2318fi
2319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2320$as_echo "yes" >&6; }
2321# If we didn't sleep, we still need to ensure time stamps of config.status and
2322# generated files are strictly newer.
2323am_sleep_pid=
2324if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2325 ( sleep 1 ) &
2326 am_sleep_pid=$!
2327fi
2328
2329rm -f conftest.file
2330
2331test "$program_prefix" != NONE &&
2332 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333# Use a double $ so make ignores it.
2334test "$program_suffix" != NONE &&
2335 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336# Double any \ or $.
2337# By default was `s,x,x', remove it if useless.
2338ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2339program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2340
2341# expand $ac_aux_dir to an absolute path
2342am_aux_dir=`cd $ac_aux_dir && pwd`
2343
2344if test x"${MISSING+set}" != xset; then
2345 case $am_aux_dir in
2346 *\ * | *\ *)
2347 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2348 *)
2349 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2350 esac
2351fi
2352# Use eval to expand $SHELL
2353if eval "$MISSING --is-lightweight"; then
2354 am_missing_run="$MISSING "
2355else
2356 am_missing_run=
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2358$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2359fi
2360
2361if test x"${install_sh}" != xset; then
2362 case $am_aux_dir in
2363 *\ * | *\ *)
2364 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2365 *)
2366 install_sh="\${SHELL} $am_aux_dir/install-sh"
2367 esac
2368fi
2369
2370# Installed binaries are usually stripped using 'strip' when the user
2371# run "make install-strip". However 'strip' might not be the right
2372# tool to use in cross-compilation environments, therefore Automake
2373# will honor the 'STRIP' environment variable to overrule this program.
2374if test "$cross_compiling" != no; then
2375 if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2377set dummy ${ac_tool_prefix}strip; ac_word=$2
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379$as_echo_n "checking for $ac_word... " >&6; }
2380if ${ac_cv_prog_STRIP+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382else
2383 if test -n "$STRIP"; then
2384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397done
2398 done
2399IFS=$as_save_IFS
2400
2401fi
2402fi
2403STRIP=$ac_cv_prog_STRIP
2404if test -n "$STRIP"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2406$as_echo "$STRIP" >&6; }
2407else
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409$as_echo "no" >&6; }
2410fi
2411
2412
2413fi
2414if test -z "$ac_cv_prog_STRIP"; then
2415 ac_ct_STRIP=$STRIP
2416 # Extract the first word of "strip", so it can be a program name with args.
2417set dummy strip; ac_word=$2
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419$as_echo_n "checking for $ac_word... " >&6; }
2420if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422else
2423 if test -n "$ac_ct_STRIP"; then
2424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_ac_ct_STRIP="strip"
2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437done
2438 done
2439IFS=$as_save_IFS
2440
2441fi
2442fi
2443ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2444if test -n "$ac_ct_STRIP"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2446$as_echo "$ac_ct_STRIP" >&6; }
2447else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449$as_echo "no" >&6; }
2450fi
2451
2452 if test "x$ac_ct_STRIP" = x; then
2453 STRIP=":"
2454 else
2455 case $cross_compiling:$ac_tool_warned in
2456yes:)
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459ac_tool_warned=yes ;;
2460esac
2461 STRIP=$ac_ct_STRIP
2462 fi
2463else
2464 STRIP="$ac_cv_prog_STRIP"
2465fi
2466
2467fi
2468INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2469
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2471$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2472if test -z "$MKDIR_P"; then
2473 if ${ac_cv_path_mkdir+:} false; then :
2474 $as_echo_n "(cached) " >&6
2475else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2478do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_prog in mkdir gmkdir; do
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2484 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2485 'mkdir (GNU coreutils) '* | \
2486 'mkdir (coreutils) '* | \
2487 'mkdir (fileutils) '4.1*)
2488 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2489 break 3;;
2490 esac
2491 done
2492 done
2493 done
2494IFS=$as_save_IFS
2495
2496fi
2497
2498 test -d ./--version && rmdir ./--version
2499 if test "${ac_cv_path_mkdir+set}" = set; then
2500 MKDIR_P="$ac_cv_path_mkdir -p"
2501 else
2502 # As a last resort, use the slow shell script. Don't cache a
2503 # value for MKDIR_P within a source directory, because that will
2504 # break other packages using the cache if that directory is
2505 # removed, or if the value is a relative name.
2506 MKDIR_P="$ac_install_sh -d"
2507 fi
2508fi
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2510$as_echo "$MKDIR_P" >&6; }
2511
2512for ac_prog in gawk mawk nawk awk
2513do
2514 # Extract the first word of "$ac_prog", so it can be a program name with args.
2515set dummy $ac_prog; ac_word=$2
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517$as_echo_n "checking for $ac_word... " >&6; }
2518if ${ac_cv_prog_AWK+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520else
2521 if test -n "$AWK"; then
2522 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_AWK="$ac_prog"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535done
2536 done
2537IFS=$as_save_IFS
2538
2539fi
2540fi
2541AWK=$ac_cv_prog_AWK
2542if test -n "$AWK"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2544$as_echo "$AWK" >&6; }
2545else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547$as_echo "no" >&6; }
2548fi
2549
2550
2551 test -n "$AWK" && break
2552done
2553
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2555$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2556set x ${MAKE-make}
2557ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2558if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560else
2561 cat >conftest.make <<\_ACEOF
2562SHELL = /bin/sh
2563all:
2564 @echo '@@@%%%=$(MAKE)=@@@%%%'
2565_ACEOF
2566# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2567case `${MAKE-make} -f conftest.make 2>/dev/null` in
2568 *@@@%%%=?*=@@@%%%*)
2569 eval ac_cv_prog_make_${ac_make}_set=yes;;
2570 *)
2571 eval ac_cv_prog_make_${ac_make}_set=no;;
2572esac
2573rm -f conftest.make
2574fi
2575if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2577$as_echo "yes" >&6; }
2578 SET_MAKE=
2579else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581$as_echo "no" >&6; }
2582 SET_MAKE="MAKE=${MAKE-make}"
2583fi
2584
2585rm -rf .tst 2>/dev/null
2586mkdir .tst 2>/dev/null
2587if test -d .tst; then
2588 am__leading_dot=.
2589else
2590 am__leading_dot=_
2591fi
2592rmdir .tst 2>/dev/null
2593
2594# Check whether --enable-silent-rules was given.
2595if test "${enable_silent_rules+set}" = set; then :
2596 enableval=$enable_silent_rules;
2597fi
2598
2599case $enable_silent_rules in # (((
2600 yes) AM_DEFAULT_VERBOSITY=0;;
2601 no) AM_DEFAULT_VERBOSITY=1;;
2602 *) AM_DEFAULT_VERBOSITY=1;;
2603esac
2604am_make=${MAKE-make}
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2606$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2607if ${am_cv_make_support_nested_variables+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609else
2610 if $as_echo 'TRUE=$(BAR$(V))
2611BAR0=false
2612BAR1=true
2613V=1
2614am__doit:
2615 @$(TRUE)
2616.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2617 am_cv_make_support_nested_variables=yes
2618else
2619 am_cv_make_support_nested_variables=no
2620fi
2621fi
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2623$as_echo "$am_cv_make_support_nested_variables" >&6; }
2624if test $am_cv_make_support_nested_variables = yes; then
2625 AM_V='$(V)'
2626 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2627else
2628 AM_V=$AM_DEFAULT_VERBOSITY
2629 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2630fi
2631AM_BACKSLASH='\'
2632
2633if test "`cd $srcdir && pwd`" != "`pwd`"; then
2634 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2635 # is not polluted with repeated "-I."
2636 am__isrc=' -I$(srcdir)'
2637 # test to see if srcdir already configured
2638 if test -f $srcdir/config.status; then
2639 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2640 fi
2641fi
2642
2643# test whether we have cygpath
2644if test -z "$CYGPATH_W"; then
2645 if (cygpath --version) >/dev/null 2>/dev/null; then
2646 CYGPATH_W='cygpath -w'
2647 else
2648 CYGPATH_W=echo
2649 fi
2650fi
2651
2652
2653# Define the identity of the package.
2654 PACKAGE='libseccomp'
2655 VERSION='2.3.1'
2656
2657
2658cat >>confdefs.h <<_ACEOF
2659#define PACKAGE "$PACKAGE"
2660_ACEOF
2661
2662
2663cat >>confdefs.h <<_ACEOF
2664#define VERSION "$VERSION"
2665_ACEOF
2666
2667# Some tools Automake needs.
2668
2669ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2670
2671
2672AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2673
2674
2675AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2676
2677
2678AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2679
2680
2681MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2682
2683# For better backward compatibility. To be removed once Automake 1.9.x
2684# dies out for good. For more background, see:
2685# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2686# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2687mkdir_p='$(MKDIR_P)'
2688
2689# We need awk for the "check" target. The system "awk" is bad on
2690# some platforms.
2691# Always define AMTAR for backward compatibility. Yes, it's still used
2692# in the wild :-( We should find a proper way to deprecate it ...
2693AMTAR='$${TAR-tar}'
2694
2695
2696# We'll loop over all known methods to create a tar archive until one works.
2697_am_tools='gnutar pax cpio none'
2698
2699
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2702$as_echo_n "checking how to create a pax tar archive... " >&6; }
2703
2704 # Go ahead even if we have the value already cached. We do so because we
2705 # need to set the values for the 'am__tar' and 'am__untar' variables.
2706 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2707
2708 for _am_tool in $_am_tools; do
2709 case $_am_tool in
2710 gnutar)
2711 for _am_tar in tar gnutar gtar; do
2712 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2713 ($_am_tar --version) >&5 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } && break
2717 done
2718 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2719 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2720 am__untar="$_am_tar -xf -"
2721 ;;
2722 plaintar)
2723 # Must skip GNU tar: if it does not support --format= it doesn't create
2724 # ustar tarball either.
2725 (tar --version) >/dev/null 2>&1 && continue
2726 am__tar='tar chf - "$$tardir"'
2727 am__tar_='tar chf - "$tardir"'
2728 am__untar='tar xf -'
2729 ;;
2730 pax)
2731 am__tar='pax -L -x pax -w "$$tardir"'
2732 am__tar_='pax -L -x pax -w "$tardir"'
2733 am__untar='pax -r'
2734 ;;
2735 cpio)
2736 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2737 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2738 am__untar='cpio -i -H pax -d'
2739 ;;
2740 none)
2741 am__tar=false
2742 am__tar_=false
2743 am__untar=false
2744 ;;
2745 esac
2746
2747 # If the value was cached, stop now. We just wanted to have am__tar
2748 # and am__untar set.
2749 test -n "${am_cv_prog_tar_pax}" && break
2750
2751 # tar/untar a dummy directory, and stop if the command works.
2752 rm -rf conftest.dir
2753 mkdir conftest.dir
2754 echo GrepMe > conftest.dir/file
2755 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2756 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
2760 rm -rf conftest.dir
2761 if test -s conftest.tar; then
2762 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2763 ($am__untar <conftest.tar) >&5 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2767 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2768 (cat conftest.dir/file) >&5 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }
2772 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2773 fi
2774 done
2775 rm -rf conftest.dir
2776
2777 if ${am_cv_prog_tar_pax+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779else
2780 am_cv_prog_tar_pax=$_am_tool
2781fi
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2784$as_echo "$am_cv_prog_tar_pax" >&6; }
2785
2786
2787
2788
2789
2790
2791# POSIX will say in a future version that running "rm -f" with no argument
2792# is OK; and we want to be able to make that assumption in our Makefile
2793# recipes. So use an aggressive probe to check that the usage we want is
2794# actually supported "in the wild" to an acceptable degree.
2795# See automake bug#10828.
2796# To make any issue more visible, cause the running configure to be aborted
2797# by default if the 'rm' program in use doesn't match our expectations; the
2798# user can still override this though.
2799if rm -f && rm -fr && rm -rf; then : OK; else
2800 cat >&2 <<'END'
2801Oops!
2802
2803Your 'rm' program seems unable to run without file operands specified
2804on the command line, even when the '-f' option is present. This is contrary
2805to the behaviour of most rm programs out there, and not conforming with
2806the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2807
2808Please tell bug-automake@gnu.org about your system, including the value
2809of your $PATH and any error possibly output before this message. This
2810can help us improve future automake versions.
2811
2812END
2813 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2814 echo 'Configuration will proceed anyway, since you have set the' >&2
2815 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2816 echo >&2
2817 else
2818 cat >&2 <<'END'
2819Aborting the configuration process, to ensure you take notice of the issue.
2820
2821You can download and install GNU coreutils to get an 'rm' implementation
2822that behaves properly: <http://www.gnu.org/software/coreutils/>.
2823
2824If you want to complete the configuration process using your problematic
2825'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2826to "yes", and re-run configure.
2827
2828END
2829 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2830 fi
2831fi
2832
2833ac_ext=c
2834ac_cpp='$CPP $CPPFLAGS'
2835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842$as_echo_n "checking for $ac_word... " >&6; }
2843if ${ac_cv_prog_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845else
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860done
2861 done
2862IFS=$as_save_IFS
2863
2864fi
2865fi
2866CC=$ac_cv_prog_CC
2867if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869$as_echo "$CC" >&6; }
2870else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872$as_echo "no" >&6; }
2873fi
2874
2875
2876fi
2877if test -z "$ac_cv_prog_CC"; then
2878 ac_ct_CC=$CC
2879 # Extract the first word of "gcc", so it can be a program name with args.
2880set dummy gcc; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885else
2886 if test -n "$ac_ct_CC"; then
2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_ac_ct_CC="gcc"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900done
2901 done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907if test -n "$ac_ct_CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909$as_echo "$ac_ct_CC" >&6; }
2910else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915 if test "x$ac_ct_CC" = x; then
2916 CC=""
2917 else
2918 case $cross_compiling:$ac_tool_warned in
2919yes:)
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922ac_tool_warned=yes ;;
2923esac
2924 CC=$ac_ct_CC
2925 fi
2926else
2927 CC="$ac_cv_prog_CC"
2928fi
2929
2930if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933set dummy ${ac_tool_prefix}cc; ac_word=$2
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935$as_echo_n "checking for $ac_word... " >&6; }
2936if ${ac_cv_prog_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938else
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2941else
2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_CC="${ac_tool_prefix}cc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953done
2954 done
2955IFS=$as_save_IFS
2956
2957fi
2958fi
2959CC=$ac_cv_prog_CC
2960if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962$as_echo "$CC" >&6; }
2963else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
2966fi
2967
2968
2969 fi
2970fi
2971if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973set dummy cc; ac_word=$2
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975$as_echo_n "checking for $ac_word... " >&6; }
2976if ${ac_cv_prog_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2978else
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2981else
2982 ac_prog_rejected=no
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2992 continue
2993 fi
2994 ac_cv_prog_CC="cc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998done
2999 done
3000IFS=$as_save_IFS
3001
3002if test $ac_prog_rejected = yes; then
3003 # We found a bogon in the path, so make sure we never use it.
3004 set dummy $ac_cv_prog_CC
3005 shift
3006 if test $# != 0; then
3007 # We chose a different compiler from the bogus one.
3008 # However, it has the same basename, so the bogon will be chosen
3009 # first if we set CC to just the basename; use the full file name.
3010 shift
3011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012 fi
3013fi
3014fi
3015fi
3016CC=$ac_cv_prog_CC
3017if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019$as_echo "$CC" >&6; }
3020else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
3023fi
3024
3025
3026fi
3027if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 for ac_prog in cl.exe
3030 do
3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034$as_echo_n "checking for $ac_word... " >&6; }
3035if ${ac_cv_prog_CC+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037else
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3040else
3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3051 fi
3052done
3053 done
3054IFS=$as_save_IFS
3055
3056fi
3057fi
3058CC=$ac_cv_prog_CC
3059if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061$as_echo "$CC" >&6; }
3062else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064$as_echo "no" >&6; }
3065fi
3066
3067
3068 test -n "$CC" && break
3069 done
3070fi
3071if test -z "$CC"; then
3072 ac_ct_CC=$CC
3073 for ac_prog in cl.exe
3074do
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076set dummy $ac_prog; ac_word=$2
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078$as_echo_n "checking for $ac_word... " >&6; }
3079if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081else
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_ac_ct_CC="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096done
3097 done
3098IFS=$as_save_IFS
3099
3100fi
3101fi
3102ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103if test -n "$ac_ct_CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105$as_echo "$ac_ct_CC" >&6; }
3106else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109fi
3110
3111
3112 test -n "$ac_ct_CC" && break
3113done
3114
3115 if test "x$ac_ct_CC" = x; then
3116 CC=""
3117 else
3118 case $cross_compiling:$ac_tool_warned in
3119yes:)
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122ac_tool_warned=yes ;;
3123esac
3124 CC=$ac_ct_CC
3125 fi
3126fi
3127
3128fi
3129
3130
3131test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133as_fn_error $? "no acceptable C compiler found in \$PATH
3134See \`config.log' for more details" "$LINENO" 5; }
3135
3136# Provide some information about the compiler.
3137$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3138set X $ac_compile
3139ac_compiler=$2
3140for ac_option in --version -v -V -qversion; do
3141 { { ac_try="$ac_compiler $ac_option >&5"
3142case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147$as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3149 ac_status=$?
3150 if test -s conftest.err; then
3151 sed '10a\
3152... rest of stderr output deleted ...
3153 10q' conftest.err >conftest.er1
3154 cat conftest.er1 >&5
3155 fi
3156 rm -f conftest.er1 conftest.err
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }
3159done
3160
3161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162/* end confdefs.h. */
3163
3164int
3165main ()
3166{
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172ac_clean_files_save=$ac_clean_files
3173ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3174# Try to create an executable without -o first, disregard a.out.
3175# It will help us diagnose broken compilers, and finding out an intuition
3176# of exeext.
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3178$as_echo_n "checking whether the C compiler works... " >&6; }
3179ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3180
3181# The possible output files:
3182ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3183
3184ac_rmfiles=
3185for ac_file in $ac_files
3186do
3187 case $ac_file in
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3190 esac
3191done
3192rm -f $ac_rmfiles
3193
3194if { { ac_try="$ac_link_default"
3195case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200$as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link_default") 2>&5
3202 ac_status=$?
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; then :
3205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207# in a Makefile. We should not override ac_cv_exeext if it was cached,
3208# so that the user can short-circuit this test for compilers unknown to
3209# Autoconf.
3210for ac_file in $ac_files ''
3211do
3212 test -f "$ac_file" || continue
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3215 ;;
3216 [ab].out )
3217 # We found the default executable, but exeext='' is most
3218 # certainly right.
3219 break;;
3220 *.* )
3221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3222 then :; else
3223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 fi
3225 # We set ac_cv_exeext here because the later test for it is not
3226 # safe: cross compilers may not add the suffix if given an `-o'
3227 # argument, so we may need to know it at that point already.
3228 # Even if this section looks crufty: it has the advantage of
3229 # actually working.
3230 break;;
3231 * )
3232 break;;
3233 esac
3234done
3235test "$ac_cv_exeext" = no && ac_cv_exeext=
3236
3237else
3238 ac_file=''
3239fi
3240if test -z "$ac_file"; then :
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243$as_echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248as_fn_error 77 "C compiler cannot create executables
3249See \`config.log' for more details" "$LINENO" 5; }
3250else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252$as_echo "yes" >&6; }
3253fi
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3255$as_echo_n "checking for C compiler default output file name... " >&6; }
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257$as_echo "$ac_file" >&6; }
3258ac_exeext=$ac_cv_exeext
3259
3260rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3261ac_clean_files=$ac_clean_files_save
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3263$as_echo_n "checking for suffix of executables... " >&6; }
3264if { { ac_try="$ac_link"
3265case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268esac
3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270$as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
3275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3276# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3277# work properly (i.e., refer to `conftest.exe'), while it won't with
3278# `rm'.
3279for ac_file in conftest.exe conftest conftest.*; do
3280 test -f "$ac_file" || continue
3281 case $ac_file in
3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 break;;
3285 * ) break;;
3286 esac
3287done
3288else
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3292See \`config.log' for more details" "$LINENO" 5; }
3293fi
3294rm -f conftest conftest$ac_cv_exeext
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3296$as_echo "$ac_cv_exeext" >&6; }
3297
3298rm -f conftest.$ac_ext
3299EXEEXT=$ac_cv_exeext
3300ac_exeext=$EXEEXT
3301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302/* end confdefs.h. */
3303#include <stdio.h>
3304int
3305main ()
3306{
3307FILE *f = fopen ("conftest.out", "w");
3308 return ferror (f) || fclose (f) != 0;
3309
3310 ;
3311 return 0;
3312}
3313_ACEOF
3314ac_clean_files="$ac_clean_files conftest.out"
3315# Check that the compiler produces executables we can run. If not, either
3316# the compiler is broken, or we cross compile.
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318$as_echo_n "checking whether we are cross compiling... " >&6; }
3319if test "$cross_compiling" != yes; then
3320 { { ac_try="$ac_link"
3321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326$as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link") 2>&5
3328 ac_status=$?
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }
3331 if { ac_try='./conftest$ac_cv_exeext'
3332 { { case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337$as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_try") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; }; then
3342 cross_compiling=no
3343 else
3344 if test "$cross_compiling" = maybe; then
3345 cross_compiling=yes
3346 else
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349as_fn_error $? "cannot run C compiled programs.
3350If you meant to cross compile, use \`--host'.
3351See \`config.log' for more details" "$LINENO" 5; }
3352 fi
3353 fi
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356$as_echo "$cross_compiling" >&6; }
3357
3358rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3359ac_clean_files=$ac_clean_files_save
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3361$as_echo_n "checking for suffix of object files... " >&6; }
3362if ${ac_cv_objext+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h. */
3367
3368int
3369main ()
3370{
3371
3372 ;
3373 return 0;
3374}
3375_ACEOF
3376rm -f conftest.o conftest.obj
3377if { { ac_try="$ac_compile"
3378case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383$as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_compile") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
3388 for ac_file in conftest.o conftest.obj conftest.*; do
3389 test -f "$ac_file" || continue;
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3392 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3393 break;;
3394 esac
3395done
3396else
3397 $as_echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402as_fn_error $? "cannot compute suffix of object files: cannot compile
3403See \`config.log' for more details" "$LINENO" 5; }
3404fi
3405rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3408$as_echo "$ac_cv_objext" >&6; }
3409OBJEXT=$ac_cv_objext
3410ac_objext=$OBJEXT
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3412$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3413if ${ac_cv_c_compiler_gnu+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h. */
3418
3419int
3420main ()
3421{
3422#ifndef __GNUC__
3423 choke me
3424#endif
3425
3426 ;
3427 return 0;
3428}
3429_ACEOF
3430if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_compiler_gnu=yes
3432else
3433 ac_compiler_gnu=no
3434fi
3435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437
3438fi
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3440$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441if test $ac_compiler_gnu = yes; then
3442 GCC=yes
3443else
3444 GCC=
3445fi
3446ac_test_CFLAGS=${CFLAGS+set}
3447ac_save_CFLAGS=$CFLAGS
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449$as_echo_n "checking whether $CC accepts -g... " >&6; }
3450if ${ac_cv_prog_cc_g+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452else
3453 ac_save_c_werror_flag=$ac_c_werror_flag
3454 ac_c_werror_flag=yes
3455 ac_cv_prog_cc_g=no
3456 CFLAGS="-g"
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458/* end confdefs.h. */
3459
3460int
3461main ()
3462{
3463
3464 ;
3465 return 0;
3466}
3467_ACEOF
3468if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_g=yes
3470else
3471 CFLAGS=""
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h. */
3474
3475int
3476main ()
3477{
3478
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483if ac_fn_c_try_compile "$LINENO"; then :
3484
3485else
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h. */
3490
3491int
3492main ()
3493{
3494
3495 ;
3496 return 0;
3497}
3498_ACEOF
3499if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_prog_cc_g=yes
3501fi
3502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503fi
3504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505fi
3506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_c_werror_flag=$ac_save_c_werror_flag
3508fi
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3510$as_echo "$ac_cv_prog_cc_g" >&6; }
3511if test "$ac_test_CFLAGS" = set; then
3512 CFLAGS=$ac_save_CFLAGS
3513elif test $ac_cv_prog_cc_g = yes; then
3514 if test "$GCC" = yes; then
3515 CFLAGS="-g -O2"
3516 else
3517 CFLAGS="-g"
3518 fi
3519else
3520 if test "$GCC" = yes; then
3521 CFLAGS="-O2"
3522 else
3523 CFLAGS=
3524 fi
3525fi
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3527$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528if ${ac_cv_prog_cc_c89+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530else
3531 ac_cv_prog_cc_c89=no
3532ac_save_CC=$CC
3533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h. */
3535#include <stdarg.h>
3536#include <stdio.h>
3537struct stat;
3538/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3539struct buf { int x; };
3540FILE * (*rcsopen) (struct buf *, struct stat *, int);
3541static char *e (p, i)
3542 char **p;
3543 int i;
3544{
3545 return p[i];
3546}
3547static char *f (char * (*g) (char **, int), char **p, ...)
3548{
3549 char *s;
3550 va_list v;
3551 va_start (v,p);
3552 s = g (p, va_arg (v,int));
3553 va_end (v);
3554 return s;
3555}
3556
3557/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3558 function prototypes and stuff, but not '\xHH' hex character constants.
3559 These don't provoke an error unfortunately, instead are silently treated
3560 as 'x'. The following induces an error, until -std is added to get
3561 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3562 array size at least. It's necessary to write '\x00'==0 to get something
3563 that's true only with -std. */
3564int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3565
3566/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3567 inside strings and character constants. */
3568#define FOO(x) 'x'
3569int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3570
3571int test (int i, double x);
3572struct s1 {int (*f) (int a);};
3573struct s2 {int (*f) (double a);};
3574int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3575int argc;
3576char **argv;
3577int
3578main ()
3579{
3580return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3581 ;
3582 return 0;
3583}
3584_ACEOF
3585for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3586 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3587do
3588 CC="$ac_save_CC $ac_arg"
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_prog_cc_c89=$ac_arg
3591fi
3592rm -f core conftest.err conftest.$ac_objext
3593 test "x$ac_cv_prog_cc_c89" != "xno" && break
3594done
3595rm -f conftest.$ac_ext
3596CC=$ac_save_CC
3597
3598fi
3599# AC_CACHE_VAL
3600case "x$ac_cv_prog_cc_c89" in
3601 x)
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3603$as_echo "none needed" >&6; } ;;
3604 xno)
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3606$as_echo "unsupported" >&6; } ;;
3607 *)
3608 CC="$CC $ac_cv_prog_cc_c89"
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3610$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3611esac
3612if test "x$ac_cv_prog_cc_c89" != xno; then :
3613
3614fi
3615
3616ac_ext=c
3617ac_cpp='$CPP $CPPFLAGS'
3618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
3622ac_ext=c
3623ac_cpp='$CPP $CPPFLAGS'
3624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3628$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3629if ${am_cv_prog_cc_c_o+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631else
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h. */
3634
3635int
3636main ()
3637{
3638
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643 # Make sure it works both with $CC and with simple cc.
3644 # Following AC_PROG_CC_C_O, we do the test twice because some
3645 # compilers refuse to overwrite an existing .o file with -o,
3646 # though they will create one.
3647 am_cv_prog_cc_c_o=yes
3648 for am_i in 1 2; do
3649 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3650 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } \
3654 && test -f conftest2.$ac_objext; then
3655 : OK
3656 else
3657 am_cv_prog_cc_c_o=no
3658 break
3659 fi
3660 done
3661 rm -f core conftest*
3662 unset am_i
3663fi
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3665$as_echo "$am_cv_prog_cc_c_o" >&6; }
3666if test "$am_cv_prog_cc_c_o" != yes; then
3667 # Losing compiler, so override with the script.
3668 # FIXME: It is wrong to rewrite CC.
3669 # But if we don't then we get into trouble of one sort or another.
3670 # A longer-term fix would be to have automake use am__CC in this case,
3671 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3672 CC="$am_aux_dir/compile $CC"
3673fi
3674ac_ext=c
3675ac_cpp='$CPP $CPPFLAGS'
3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679
3680DEPDIR="${am__leading_dot}deps"
3681
3682ac_config_commands="$ac_config_commands depfiles"
3683
3684
3685am_make=${MAKE-make}
3686cat > confinc << 'END'
3687am__doit:
3688 @echo this is the am__doit target
3689.PHONY: am__doit
3690END
3691# If we don't find an include directive, just comment out the code.
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3693$as_echo_n "checking for style of include used by $am_make... " >&6; }
3694am__include="#"
3695am__quote=
3696_am_result=none
3697# First try GNU make style include.
3698echo "include confinc" > confmf
3699# Ignore all kinds of additional output from 'make'.
3700case `$am_make -s -f confmf 2> /dev/null` in #(
3701*the\ am__doit\ target*)
3702 am__include=include
3703 am__quote=
3704 _am_result=GNU
3705 ;;
3706esac
3707# Now try BSD make style include.
3708if test "$am__include" = "#"; then
3709 echo '.include "confinc"' > confmf
3710 case `$am_make -s -f confmf 2> /dev/null` in #(
3711 *the\ am__doit\ target*)
3712 am__include=.include
3713 am__quote="\""
3714 _am_result=BSD
3715 ;;
3716 esac
3717fi
3718
3719
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3721$as_echo "$_am_result" >&6; }
3722rm -f confinc confmf
3723
3724# Check whether --enable-dependency-tracking was given.
3725if test "${enable_dependency_tracking+set}" = set; then :
3726 enableval=$enable_dependency_tracking;
3727fi
3728
3729if test "x$enable_dependency_tracking" != xno; then
3730 am_depcomp="$ac_aux_dir/depcomp"
3731 AMDEPBACKSLASH='\'
3732 am__nodep='_no'
3733fi
3734 if test "x$enable_dependency_tracking" != xno; then
3735 AMDEP_TRUE=
3736 AMDEP_FALSE='#'
3737else
3738 AMDEP_TRUE='#'
3739 AMDEP_FALSE=
3740fi
3741
3742
3743
3744depcc="$CC" am_compiler_list=
3745
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3747$as_echo_n "checking dependency style of $depcc... " >&6; }
3748if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750else
3751 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3752 # We make a subdir and do the tests there. Otherwise we can end up
3753 # making bogus files that we don't know about and never remove. For
3754 # instance it was reported that on HP-UX the gcc test will end up
3755 # making a dummy file named 'D' -- because '-MD' means "put the output
3756 # in D".
3757 rm -rf conftest.dir
3758 mkdir conftest.dir
3759 # Copy depcomp to subdir because otherwise we won't find it if we're
3760 # using a relative directory.
3761 cp "$am_depcomp" conftest.dir
3762 cd conftest.dir
3763 # We will build objects and dependencies in a subdirectory because
3764 # it helps to detect inapplicable dependency modes. For instance
3765 # both Tru64's cc and ICC support -MD to output dependencies as a
3766 # side effect of compilation, but ICC will put the dependencies in
3767 # the current directory while Tru64 will put them in the object
3768 # directory.
3769 mkdir sub
3770
3771 am_cv_CC_dependencies_compiler_type=none
3772 if test "$am_compiler_list" = ""; then
3773 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3774 fi
3775 am__universal=false
3776 case " $depcc " in #(
3777 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3778 esac
3779
3780 for depmode in $am_compiler_list; do
3781 # Setup a source with many dependencies, because some compilers
3782 # like to wrap large dependency lists on column 80 (with \), and
3783 # we should not choose a depcomp mode which is confused by this.
3784 #
3785 # We need to recreate these files for each test, as the compiler may
3786 # overwrite some of them when testing with obscure command lines.
3787 # This happens at least with the AIX C compiler.
3788 : > sub/conftest.c
3789 for i in 1 2 3 4 5 6; do
3790 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3791 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3792 # Solaris 10 /bin/sh.
3793 echo '/* dummy */' > sub/conftst$i.h
3794 done
3795 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3796
3797 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3798 # mode. It turns out that the SunPro C++ compiler does not properly
3799 # handle '-M -o', and we need to detect this. Also, some Intel
3800 # versions had trouble with output in subdirs.
3801 am__obj=sub/conftest.${OBJEXT-o}
3802 am__minus_obj="-o $am__obj"
3803 case $depmode in
3804 gcc)
3805 # This depmode causes a compiler race in universal mode.
3806 test "$am__universal" = false || continue
3807 ;;
3808 nosideeffect)
3809 # After this tag, mechanisms are not by side-effect, so they'll
3810 # only be used when explicitly requested.
3811 if test "x$enable_dependency_tracking" = xyes; then
3812 continue
3813 else
3814 break
3815 fi
3816 ;;
3817 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3818 # This compiler won't grok '-c -o', but also, the minuso test has
3819 # not run yet. These depmodes are late enough in the game, and
3820 # so weak that their functioning should not be impacted.
3821 am__obj=conftest.${OBJEXT-o}
3822 am__minus_obj=
3823 ;;
3824 none) break ;;
3825 esac
3826 if depmode=$depmode \
3827 source=sub/conftest.c object=$am__obj \
3828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3829 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3830 >/dev/null 2>conftest.err &&
3831 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3833 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3835 # icc doesn't choke on unknown options, it will just issue warnings
3836 # or remarks (even with -Werror). So we grep stderr for any message
3837 # that says an option was ignored or not supported.
3838 # When given -MP, icc 7.0 and 7.1 complain thusly:
3839 # icc: Command line warning: ignoring option '-M'; no argument required
3840 # The diagnosis changed in icc 8.0:
3841 # icc: Command line remark: option '-MP' not supported
3842 if (grep 'ignoring option' conftest.err ||
3843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3844 am_cv_CC_dependencies_compiler_type=$depmode
3845 break
3846 fi
3847 fi
3848 done
3849
3850 cd ..
3851 rm -rf conftest.dir
3852else
3853 am_cv_CC_dependencies_compiler_type=none
3854fi
3855
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3858$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3859CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3860
3861 if
3862 test "x$enable_dependency_tracking" != xno \
3863 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3864 am__fastdepCC_TRUE=
3865 am__fastdepCC_FALSE='#'
3866else
3867 am__fastdepCC_TRUE='#'
3868 am__fastdepCC_FALSE=
3869fi
3870
3871
3872
3873
3874if test -n "$ac_tool_prefix"; then
3875 for ac_prog in ar lib "link -lib"
3876 do
3877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3878set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880$as_echo_n "checking for $ac_word... " >&6; }
3881if ${ac_cv_prog_AR+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883else
3884 if test -n "$AR"; then
3885 ac_cv_prog_AR="$AR" # Let the user override the test.
3886else
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898done
3899 done
3900IFS=$as_save_IFS
3901
3902fi
3903fi
3904AR=$ac_cv_prog_AR
3905if test -n "$AR"; then
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3907$as_echo "$AR" >&6; }
3908else
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910$as_echo "no" >&6; }
3911fi
3912
3913
3914 test -n "$AR" && break
3915 done
3916fi
3917if test -z "$AR"; then
3918 ac_ct_AR=$AR
3919 for ac_prog in ar lib "link -lib"
3920do
3921 # Extract the first word of "$ac_prog", so it can be a program name with args.
3922set dummy $ac_prog; ac_word=$2
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924$as_echo_n "checking for $ac_word... " >&6; }
3925if ${ac_cv_prog_ac_ct_AR+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927else
3928 if test -n "$ac_ct_AR"; then
3929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3930else
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH
3933do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938 ac_cv_prog_ac_ct_AR="$ac_prog"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3941 fi
3942done
3943 done
3944IFS=$as_save_IFS
3945
3946fi
3947fi
3948ac_ct_AR=$ac_cv_prog_ac_ct_AR
3949if test -n "$ac_ct_AR"; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3951$as_echo "$ac_ct_AR" >&6; }
3952else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954$as_echo "no" >&6; }
3955fi
3956
3957
3958 test -n "$ac_ct_AR" && break
3959done
3960
3961 if test "x$ac_ct_AR" = x; then
3962 AR="false"
3963 else
3964 case $cross_compiling:$ac_tool_warned in
3965yes:)
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968ac_tool_warned=yes ;;
3969esac
3970 AR=$ac_ct_AR
3971 fi
3972fi
3973
3974: ${AR=ar}
3975
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3977$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3978if ${am_cv_ar_interface+:} false; then :
3979 $as_echo_n "(cached) " >&6
3980else
3981 ac_ext=c
3982ac_cpp='$CPP $CPPFLAGS'
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987 am_cv_ar_interface=ar
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989/* end confdefs.h. */
3990int some_variable = 0;
3991_ACEOF
3992if ac_fn_c_try_compile "$LINENO"; then :
3993 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3995 (eval $am_ar_try) 2>&5
3996 ac_status=$?
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 if test "$ac_status" -eq 0; then
4000 am_cv_ar_interface=ar
4001 else
4002 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4004 (eval $am_ar_try) 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }
4008 if test "$ac_status" -eq 0; then
4009 am_cv_ar_interface=lib
4010 else
4011 am_cv_ar_interface=unknown
4012 fi
4013 fi
4014 rm -f conftest.lib libconftest.a
4015
4016fi
4017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4026$as_echo "$am_cv_ar_interface" >&6; }
4027
4028case $am_cv_ar_interface in
4029ar)
4030 ;;
4031lib)
4032 # Microsoft lib, so override with the ar-lib wrapper script.
4033 # FIXME: It is wrong to rewrite AR.
4034 # But if we don't then we get into trouble of one sort or another.
4035 # A longer-term fix would be to have automake use am__AR in this case,
4036 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4037 # similar.
4038 AR="$am_aux_dir/ar-lib $AR"
4039 ;;
4040unknown)
4041 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4042 ;;
4043esac
4044
4045
4046case `pwd` in
4047 *\ * | *\ *)
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4049$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4050esac
4051
4052
4053
4054macro_version='2.4.6'
4055macro_revision='2.4.6'
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069ltmain=$ac_aux_dir/ltmain.sh
4070
4071# Make sure we can run config.sub.
4072$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4073 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4074
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4076$as_echo_n "checking build system type... " >&6; }
4077if ${ac_cv_build+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079else
4080 ac_build_alias=$build_alias
4081test "x$ac_build_alias" = x &&
4082 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4083test "x$ac_build_alias" = x &&
4084 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4085ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4086 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4087
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4090$as_echo "$ac_cv_build" >&6; }
4091case $ac_cv_build in
4092*-*-*) ;;
4093*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4094esac
4095build=$ac_cv_build
4096ac_save_IFS=$IFS; IFS='-'
4097set x $ac_cv_build
4098shift
4099build_cpu=$1
4100build_vendor=$2
4101shift; shift
4102# Remember, the first character of IFS is used to create $*,
4103# except with old shells:
4104build_os=$*
4105IFS=$ac_save_IFS
4106case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4107
4108
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4110$as_echo_n "checking host system type... " >&6; }
4111if ${ac_cv_host+:} false; then :
4112 $as_echo_n "(cached) " >&6
4113else
4114 if test "x$host_alias" = x; then
4115 ac_cv_host=$ac_cv_build
4116else
4117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4118 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4119fi
4120
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4123$as_echo "$ac_cv_host" >&6; }
4124case $ac_cv_host in
4125*-*-*) ;;
4126*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4127esac
4128host=$ac_cv_host
4129ac_save_IFS=$IFS; IFS='-'
4130set x $ac_cv_host
4131shift
4132host_cpu=$1
4133host_vendor=$2
4134shift; shift
4135# Remember, the first character of IFS is used to create $*,
4136# except with old shells:
4137host_os=$*
4138IFS=$ac_save_IFS
4139case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4140
4141
4142# Backslashify metacharacters that are still active within
4143# double-quoted strings.
4144sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4145
4146# Same as above, but do not quote variable references.
4147double_quote_subst='s/\(["`\\]\)/\\\1/g'
4148
4149# Sed substitution to delay expansion of an escaped shell variable in a
4150# double_quote_subst'ed string.
4151delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4152
4153# Sed substitution to delay expansion of an escaped single quote.
4154delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4155
4156# Sed substitution to avoid accidental globbing in evaled expressions
4157no_glob_subst='s/\*/\\\*/g'
4158
4159ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4160ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4161ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4162
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4164$as_echo_n "checking how to print strings... " >&6; }
4165# Test print first, because it will be a builtin if present.
4166if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4167 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4168 ECHO='print -r --'
4169elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4170 ECHO='printf %s\n'
4171else
4172 # Use this function as a fallback that always works.
4173 func_fallback_echo ()
4174 {
4175 eval 'cat <<_LTECHO_EOF
4176$1
4177_LTECHO_EOF'
4178 }
4179 ECHO='func_fallback_echo'
4180fi
4181
4182# func_echo_all arg...
4183# Invoke $ECHO with all args, space-separated.
4184func_echo_all ()
4185{
4186 $ECHO ""
4187}
4188
4189case $ECHO in
4190 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4191$as_echo "printf" >&6; } ;;
4192 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4193$as_echo "print -r" >&6; } ;;
4194 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4195$as_echo "cat" >&6; } ;;
4196esac
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4212$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4213if ${ac_cv_path_SED+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215else
4216 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4217 for ac_i in 1 2 3 4 5 6 7; do
4218 ac_script="$ac_script$as_nl$ac_script"
4219 done
4220 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4221 { ac_script=; unset ac_script;}
4222 if test -z "$SED"; then
4223 ac_path_SED_found=false
4224 # Loop through the user's path and test for each of PROGNAME-LIST
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_prog in sed gsed; do
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4233 as_fn_executable_p "$ac_path_SED" || continue
4234# Check for GNU ac_path_SED and select it if it is found.
4235 # Check for GNU $ac_path_SED
4236case `"$ac_path_SED" --version 2>&1` in
4237*GNU*)
4238 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4239*)
4240 ac_count=0
4241 $as_echo_n 0123456789 >"conftest.in"
4242 while :
4243 do
4244 cat "conftest.in" "conftest.in" >"conftest.tmp"
4245 mv "conftest.tmp" "conftest.in"
4246 cp "conftest.in" "conftest.nl"
4247 $as_echo '' >> "conftest.nl"
4248 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250 as_fn_arith $ac_count + 1 && ac_count=$as_val
4251 if test $ac_count -gt ${ac_path_SED_max-0}; then
4252 # Best one so far, save it but keep looking for a better one
4253 ac_cv_path_SED="$ac_path_SED"
4254 ac_path_SED_max=$ac_count
4255 fi
4256 # 10*(2^10) chars as input seems more than enough
4257 test $ac_count -gt 10 && break
4258 done
4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260esac
4261
4262 $ac_path_SED_found && break 3
4263 done
4264 done
4265 done
4266IFS=$as_save_IFS
4267 if test -z "$ac_cv_path_SED"; then
4268 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4269 fi
4270else
4271 ac_cv_path_SED=$SED
4272fi
4273
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4276$as_echo "$ac_cv_path_SED" >&6; }
4277 SED="$ac_cv_path_SED"
4278 rm -f conftest.sed
4279
4280test -z "$SED" && SED=sed
4281Xsed="$SED -e 1s/^X//"
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4294$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4295if ${ac_cv_path_GREP+:} false; then :
4296 $as_echo_n "(cached) " >&6
4297else
4298 if test -z "$GREP"; then
4299 ac_path_GREP_found=false
4300 # Loop through the user's path and test for each of PROGNAME-LIST
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_prog in grep ggrep; do
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4309 as_fn_executable_p "$ac_path_GREP" || continue
4310# Check for GNU ac_path_GREP and select it if it is found.
4311 # Check for GNU $ac_path_GREP
4312case `"$ac_path_GREP" --version 2>&1` in
4313*GNU*)
4314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4315*)
4316 ac_count=0
4317 $as_echo_n 0123456789 >"conftest.in"
4318 while :
4319 do
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'GREP' >> "conftest.nl"
4324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326 as_fn_arith $ac_count + 1 && ac_count=$as_val
4327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_GREP="$ac_path_GREP"
4330 ac_path_GREP_max=$ac_count
4331 fi
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4334 done
4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336esac
4337
4338 $ac_path_GREP_found && break 3
4339 done
4340 done
4341 done
4342IFS=$as_save_IFS
4343 if test -z "$ac_cv_path_GREP"; then
4344 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345 fi
4346else
4347 ac_cv_path_GREP=$GREP
4348fi
4349
4350fi
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4352$as_echo "$ac_cv_path_GREP" >&6; }
4353 GREP="$ac_cv_path_GREP"
4354
4355
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4357$as_echo_n "checking for egrep... " >&6; }
4358if ${ac_cv_path_EGREP+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360else
4361 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4362 then ac_cv_path_EGREP="$GREP -E"
4363 else
4364 if test -z "$EGREP"; then
4365 ac_path_EGREP_found=false
4366 # Loop through the user's path and test for each of PROGNAME-LIST
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4369do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_prog in egrep; do
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4375 as_fn_executable_p "$ac_path_EGREP" || continue
4376# Check for GNU ac_path_EGREP and select it if it is found.
4377 # Check for GNU $ac_path_EGREP
4378case `"$ac_path_EGREP" --version 2>&1` in
4379*GNU*)
4380 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4381*)
4382 ac_count=0
4383 $as_echo_n 0123456789 >"conftest.in"
4384 while :
4385 do
4386 cat "conftest.in" "conftest.in" >"conftest.tmp"
4387 mv "conftest.tmp" "conftest.in"
4388 cp "conftest.in" "conftest.nl"
4389 $as_echo 'EGREP' >> "conftest.nl"
4390 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4392 as_fn_arith $ac_count + 1 && ac_count=$as_val
4393 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4394 # Best one so far, save it but keep looking for a better one
4395 ac_cv_path_EGREP="$ac_path_EGREP"
4396 ac_path_EGREP_max=$ac_count
4397 fi
4398 # 10*(2^10) chars as input seems more than enough
4399 test $ac_count -gt 10 && break
4400 done
4401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402esac
4403
4404 $ac_path_EGREP_found && break 3
4405 done
4406 done
4407 done
4408IFS=$as_save_IFS
4409 if test -z "$ac_cv_path_EGREP"; then
4410 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4411 fi
4412else
4413 ac_cv_path_EGREP=$EGREP
4414fi
4415
4416 fi
4417fi
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4419$as_echo "$ac_cv_path_EGREP" >&6; }
4420 EGREP="$ac_cv_path_EGREP"
4421
4422
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4424$as_echo_n "checking for fgrep... " >&6; }
4425if ${ac_cv_path_FGREP+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427else
4428 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4429 then ac_cv_path_FGREP="$GREP -F"
4430 else
4431 if test -z "$FGREP"; then
4432 ac_path_FGREP_found=false
4433 # Loop through the user's path and test for each of PROGNAME-LIST
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4436do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_prog in fgrep; do
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4442 as_fn_executable_p "$ac_path_FGREP" || continue
4443# Check for GNU ac_path_FGREP and select it if it is found.
4444 # Check for GNU $ac_path_FGREP
4445case `"$ac_path_FGREP" --version 2>&1` in
4446*GNU*)
4447 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4448*)
4449 ac_count=0
4450 $as_echo_n 0123456789 >"conftest.in"
4451 while :
4452 do
4453 cat "conftest.in" "conftest.in" >"conftest.tmp"
4454 mv "conftest.tmp" "conftest.in"
4455 cp "conftest.in" "conftest.nl"
4456 $as_echo 'FGREP' >> "conftest.nl"
4457 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4459 as_fn_arith $ac_count + 1 && ac_count=$as_val
4460 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4461 # Best one so far, save it but keep looking for a better one
4462 ac_cv_path_FGREP="$ac_path_FGREP"
4463 ac_path_FGREP_max=$ac_count
4464 fi
4465 # 10*(2^10) chars as input seems more than enough
4466 test $ac_count -gt 10 && break
4467 done
4468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4469esac
4470
4471 $ac_path_FGREP_found && break 3
4472 done
4473 done
4474 done
4475IFS=$as_save_IFS
4476 if test -z "$ac_cv_path_FGREP"; then
4477 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4478 fi
4479else
4480 ac_cv_path_FGREP=$FGREP
4481fi
4482
4483 fi
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4486$as_echo "$ac_cv_path_FGREP" >&6; }
4487 FGREP="$ac_cv_path_FGREP"
4488
4489
4490test -z "$GREP" && GREP=grep
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510# Check whether --with-gnu-ld was given.
4511if test "${with_gnu_ld+set}" = set; then :
4512 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4513else
4514 with_gnu_ld=no
4515fi
4516
4517ac_prog=ld
4518if test yes = "$GCC"; then
4519 # Check if gcc -print-prog-name=ld gives a path.
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4521$as_echo_n "checking for ld used by $CC... " >&6; }
4522 case $host in
4523 *-*-mingw*)
4524 # gcc leaves a trailing carriage return, which upsets mingw
4525 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4526 *)
4527 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4528 esac
4529 case $ac_prog in
4530 # Accept absolute paths.
4531 [\\/]* | ?:[\\/]*)
4532 re_direlt='/[^/][^/]*/\.\./'
4533 # Canonicalize the pathname of ld
4534 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4535 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4536 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4537 done
4538 test -z "$LD" && LD=$ac_prog
4539 ;;
4540 "")
4541 # If it fails, then pretend we aren't using GCC.
4542 ac_prog=ld
4543 ;;
4544 *)
4545 # If it is relative, then search for the first ld in PATH.
4546 with_gnu_ld=unknown
4547 ;;
4548 esac
4549elif test yes = "$with_gnu_ld"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4551$as_echo_n "checking for GNU ld... " >&6; }
4552else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4554$as_echo_n "checking for non-GNU ld... " >&6; }
4555fi
4556if ${lt_cv_path_LD+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558else
4559 if test -z "$LD"; then
4560 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4561 for ac_dir in $PATH; do
4562 IFS=$lt_save_ifs
4563 test -z "$ac_dir" && ac_dir=.
4564 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4565 lt_cv_path_LD=$ac_dir/$ac_prog
4566 # Check to see if the program is GNU ld. I'd rather use --version,
4567 # but apparently some variants of GNU ld only accept -v.
4568 # Break only if it was the GNU/non-GNU ld that we prefer.
4569 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4570 *GNU* | *'with BFD'*)
4571 test no != "$with_gnu_ld" && break
4572 ;;
4573 *)
4574 test yes != "$with_gnu_ld" && break
4575 ;;
4576 esac
4577 fi
4578 done
4579 IFS=$lt_save_ifs
4580else
4581 lt_cv_path_LD=$LD # Let the user override the test with a path.
4582fi
4583fi
4584
4585LD=$lt_cv_path_LD
4586if test -n "$LD"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4588$as_echo "$LD" >&6; }
4589else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591$as_echo "no" >&6; }
4592fi
4593test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4595$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4596if ${lt_cv_prog_gnu_ld+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598else
4599 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4600case `$LD -v 2>&1 </dev/null` in
4601*GNU* | *'with BFD'*)
4602 lt_cv_prog_gnu_ld=yes
4603 ;;
4604*)
4605 lt_cv_prog_gnu_ld=no
4606 ;;
4607esac
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4610$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4611with_gnu_ld=$lt_cv_prog_gnu_ld
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4622$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4623if ${lt_cv_path_NM+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625else
4626 if test -n "$NM"; then
4627 # Let the user override the test.
4628 lt_cv_path_NM=$NM
4629else
4630 lt_nm_to_check=${ac_tool_prefix}nm
4631 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4632 lt_nm_to_check="$lt_nm_to_check nm"
4633 fi
4634 for lt_tmp_nm in $lt_nm_to_check; do
4635 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4636 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4637 IFS=$lt_save_ifs
4638 test -z "$ac_dir" && ac_dir=.
4639 tmp_nm=$ac_dir/$lt_tmp_nm
4640 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4641 # Check to see if the nm accepts a BSD-compat flag.
4642 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4643 # nm: unknown option "B" ignored
4644 # Tru64's nm complains that /dev/null is an invalid object file
4645 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4646 case $build_os in
4647 mingw*) lt_bad_file=conftest.nm/nofile ;;
4648 *) lt_bad_file=/dev/null ;;
4649 esac
4650 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4651 *$lt_bad_file* | *'Invalid file or object type'*)
4652 lt_cv_path_NM="$tmp_nm -B"
4653 break 2
4654 ;;
4655 *)
4656 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4657 */dev/null*)
4658 lt_cv_path_NM="$tmp_nm -p"
4659 break 2
4660 ;;
4661 *)
4662 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4663 continue # so that we can try to find one that supports BSD flags
4664 ;;
4665 esac
4666 ;;
4667 esac
4668 fi
4669 done
4670 IFS=$lt_save_ifs
4671 done
4672 : ${lt_cv_path_NM=no}
4673fi
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4676$as_echo "$lt_cv_path_NM" >&6; }
4677if test no != "$lt_cv_path_NM"; then
4678 NM=$lt_cv_path_NM
4679else
4680 # Didn't find any BSD compatible name lister, look for dumpbin.
4681 if test -n "$DUMPBIN"; then :
4682 # Let the user override the test.
4683 else
4684 if test -n "$ac_tool_prefix"; then
4685 for ac_prog in dumpbin "link -dump"
4686 do
4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if ${ac_cv_prog_DUMPBIN+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693else
4694 if test -n "$DUMPBIN"; then
4695 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708done
4709 done
4710IFS=$as_save_IFS
4711
4712fi
4713fi
4714DUMPBIN=$ac_cv_prog_DUMPBIN
4715if test -n "$DUMPBIN"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4717$as_echo "$DUMPBIN" >&6; }
4718else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720$as_echo "no" >&6; }
4721fi
4722
4723
4724 test -n "$DUMPBIN" && break
4725 done
4726fi
4727if test -z "$DUMPBIN"; then
4728 ac_ct_DUMPBIN=$DUMPBIN
4729 for ac_prog in dumpbin "link -dump"
4730do
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732set dummy $ac_prog; ac_word=$2
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734$as_echo_n "checking for $ac_word... " >&6; }
4735if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737else
4738 if test -n "$ac_ct_DUMPBIN"; then
4739 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4740else
4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4751 fi
4752done
4753 done
4754IFS=$as_save_IFS
4755
4756fi
4757fi
4758ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4759if test -n "$ac_ct_DUMPBIN"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4761$as_echo "$ac_ct_DUMPBIN" >&6; }
4762else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764$as_echo "no" >&6; }
4765fi
4766
4767
4768 test -n "$ac_ct_DUMPBIN" && break
4769done
4770
4771 if test "x$ac_ct_DUMPBIN" = x; then
4772 DUMPBIN=":"
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775yes:)
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778ac_tool_warned=yes ;;
4779esac
4780 DUMPBIN=$ac_ct_DUMPBIN
4781 fi
4782fi
4783
4784 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4785 *COFF*)
4786 DUMPBIN="$DUMPBIN -symbols -headers"
4787 ;;
4788 *)
4789 DUMPBIN=:
4790 ;;
4791 esac
4792 fi
4793
4794 if test : != "$DUMPBIN"; then
4795 NM=$DUMPBIN
4796 fi
4797fi
4798test -z "$NM" && NM=nm
4799
4800
4801
4802
4803
4804
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4806$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4807if ${lt_cv_nm_interface+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809else
4810 lt_cv_nm_interface="BSD nm"
4811 echo "int some_variable = 0;" > conftest.$ac_ext
4812 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4813 (eval "$ac_compile" 2>conftest.err)
4814 cat conftest.err >&5
4815 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4816 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4817 cat conftest.err >&5
4818 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4819 cat conftest.out >&5
4820 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4821 lt_cv_nm_interface="MS dumpbin"
4822 fi
4823 rm -f conftest*
4824fi
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4826$as_echo "$lt_cv_nm_interface" >&6; }
4827
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4829$as_echo_n "checking whether ln -s works... " >&6; }
4830LN_S=$as_ln_s
4831if test "$LN_S" = "ln -s"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4833$as_echo "yes" >&6; }
4834else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4836$as_echo "no, using $LN_S" >&6; }
4837fi
4838
4839# find the maximum length of command line arguments
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4841$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4842if ${lt_cv_sys_max_cmd_len+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844else
4845 i=0
4846 teststring=ABCD
4847
4848 case $build_os in
4849 msdosdjgpp*)
4850 # On DJGPP, this test can blow up pretty badly due to problems in libc
4851 # (any single argument exceeding 2000 bytes causes a buffer overrun
4852 # during glob expansion). Even if it were fixed, the result of this
4853 # check would be larger than it should be.
4854 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4855 ;;
4856
4857 gnu*)
4858 # Under GNU Hurd, this test is not required because there is
4859 # no limit to the length of command line arguments.
4860 # Libtool will interpret -1 as no limit whatsoever
4861 lt_cv_sys_max_cmd_len=-1;
4862 ;;
4863
4864 cygwin* | mingw* | cegcc*)
4865 # On Win9x/ME, this test blows up -- it succeeds, but takes
4866 # about 5 minutes as the teststring grows exponentially.
4867 # Worse, since 9x/ME are not pre-emptively multitasking,
4868 # you end up with a "frozen" computer, even though with patience
4869 # the test eventually succeeds (with a max line length of 256k).
4870 # Instead, let's just punt: use the minimum linelength reported by
4871 # all of the supported platforms: 8192 (on NT/2K/XP).
4872 lt_cv_sys_max_cmd_len=8192;
4873 ;;
4874
4875 mint*)
4876 # On MiNT this can take a long time and run out of memory.
4877 lt_cv_sys_max_cmd_len=8192;
4878 ;;
4879
4880 amigaos*)
4881 # On AmigaOS with pdksh, this test takes hours, literally.
4882 # So we just punt and use a minimum line length of 8192.
4883 lt_cv_sys_max_cmd_len=8192;
4884 ;;
4885
4886 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4887 # This has been around since 386BSD, at least. Likely further.
4888 if test -x /sbin/sysctl; then
4889 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4890 elif test -x /usr/sbin/sysctl; then
4891 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4892 else
4893 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4894 fi
4895 # And add a safety zone
4896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4898 ;;
4899
4900 interix*)
4901 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4902 lt_cv_sys_max_cmd_len=196608
4903 ;;
4904
4905 os2*)
4906 # The test takes a long time on OS/2.
4907 lt_cv_sys_max_cmd_len=8192
4908 ;;
4909
4910 osf*)
4911 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4912 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4913 # nice to cause kernel panics so lets avoid the loop below.
4914 # First set a reasonable default.
4915 lt_cv_sys_max_cmd_len=16384
4916 #
4917 if test -x /sbin/sysconfig; then
4918 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4919 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4920 esac
4921 fi
4922 ;;
4923 sco3.2v5*)
4924 lt_cv_sys_max_cmd_len=102400
4925 ;;
4926 sysv5* | sco5v6* | sysv4.2uw2*)
4927 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4928 if test -n "$kargmax"; then
4929 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4930 else
4931 lt_cv_sys_max_cmd_len=32768
4932 fi
4933 ;;
4934 *)
4935 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4936 if test -n "$lt_cv_sys_max_cmd_len" && \
4937 test undefined != "$lt_cv_sys_max_cmd_len"; then
4938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4940 else
4941 # Make teststring a little bigger before we do anything with it.
4942 # a 1K string should be a reasonable start.
4943 for i in 1 2 3 4 5 6 7 8; do
4944 teststring=$teststring$teststring
4945 done
4946 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4947 # If test is not a shell built-in, we'll probably end up computing a
4948 # maximum length that is only half of the actual maximum length, but
4949 # we can't tell.
4950 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4951 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4952 test 17 != "$i" # 1/2 MB should be enough
4953 do
4954 i=`expr $i + 1`
4955 teststring=$teststring$teststring
4956 done
4957 # Only check the string length outside the loop.
4958 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4959 teststring=
4960 # Add a significant safety factor because C++ compilers can tack on
4961 # massive amounts of additional arguments before passing them to the
4962 # linker. It appears as though 1/2 is a usable value.
4963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4964 fi
4965 ;;
4966 esac
4967
4968fi
4969
4970if test -n "$lt_cv_sys_max_cmd_len"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4972$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4973else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4975$as_echo "none" >&6; }
4976fi
4977max_cmd_len=$lt_cv_sys_max_cmd_len
4978
4979
4980
4981
4982
4983
4984: ${CP="cp -f"}
4985: ${MV="mv -f"}
4986: ${RM="rm -f"}
4987
4988if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4989 lt_unset=unset
4990else
4991 lt_unset=false
4992fi
4993
4994
4995
4996
4997
4998# test EBCDIC or ASCII
4999case `echo X|tr X '\101'` in
5000 A) # ASCII based system
5001 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5002 lt_SP2NL='tr \040 \012'
5003 lt_NL2SP='tr \015\012 \040\040'
5004 ;;
5005 *) # EBCDIC based system
5006 lt_SP2NL='tr \100 \n'
5007 lt_NL2SP='tr \r\n \100\100'
5008 ;;
5009esac
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5020$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5021if ${lt_cv_to_host_file_cmd+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023else
5024 case $host in
5025 *-*-mingw* )
5026 case $build in
5027 *-*-mingw* ) # actually msys
5028 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5029 ;;
5030 *-*-cygwin* )
5031 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5032 ;;
5033 * ) # otherwise, assume *nix
5034 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5035 ;;
5036 esac
5037 ;;
5038 *-*-cygwin* )
5039 case $build in
5040 *-*-mingw* ) # actually msys
5041 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5042 ;;
5043 *-*-cygwin* )
5044 lt_cv_to_host_file_cmd=func_convert_file_noop
5045 ;;
5046 * ) # otherwise, assume *nix
5047 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5048 ;;
5049 esac
5050 ;;
5051 * ) # unhandled hosts (and "normal" native builds)
5052 lt_cv_to_host_file_cmd=func_convert_file_noop
5053 ;;
5054esac
5055
5056fi
5057
5058to_host_file_cmd=$lt_cv_to_host_file_cmd
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5060$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5061
5062
5063
5064
5065
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5067$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5068if ${lt_cv_to_tool_file_cmd+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070else
5071 #assume ordinary cross tools, or native build.
5072lt_cv_to_tool_file_cmd=func_convert_file_noop
5073case $host in
5074 *-*-mingw* )
5075 case $build in
5076 *-*-mingw* ) # actually msys
5077 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5078 ;;
5079 esac
5080 ;;
5081esac
5082
5083fi
5084
5085to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5087$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5088
5089
5090
5091
5092
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5094$as_echo_n "checking for $LD option to reload object files... " >&6; }
5095if ${lt_cv_ld_reload_flag+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097else
5098 lt_cv_ld_reload_flag='-r'
5099fi
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5101$as_echo "$lt_cv_ld_reload_flag" >&6; }
5102reload_flag=$lt_cv_ld_reload_flag
5103case $reload_flag in
5104"" | " "*) ;;
5105*) reload_flag=" $reload_flag" ;;
5106esac
5107reload_cmds='$LD$reload_flag -o $output$reload_objs'
5108case $host_os in
5109 cygwin* | mingw* | pw32* | cegcc*)
5110 if test yes != "$GCC"; then
5111 reload_cmds=false
5112 fi
5113 ;;
5114 darwin*)
5115 if test yes = "$GCC"; then
5116 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5117 else
5118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5119 fi
5120 ;;
5121esac
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5133set dummy ${ac_tool_prefix}objdump; ac_word=$2
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if ${ac_cv_prog_OBJDUMP+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138else
5139 if test -n "$OBJDUMP"; then
5140 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153done
5154 done
5155IFS=$as_save_IFS
5156
5157fi
5158fi
5159OBJDUMP=$ac_cv_prog_OBJDUMP
5160if test -n "$OBJDUMP"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5162$as_echo "$OBJDUMP" >&6; }
5163else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
5166fi
5167
5168
5169fi
5170if test -z "$ac_cv_prog_OBJDUMP"; then
5171 ac_ct_OBJDUMP=$OBJDUMP
5172 # Extract the first word of "objdump", so it can be a program name with args.
5173set dummy objdump; ac_word=$2
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
5176if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178else
5179 if test -n "$ac_ct_OBJDUMP"; then
5180 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193done
5194 done
5195IFS=$as_save_IFS
5196
5197fi
5198fi
5199ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5200if test -n "$ac_ct_OBJDUMP"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5202$as_echo "$ac_ct_OBJDUMP" >&6; }
5203else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
5206fi
5207
5208 if test "x$ac_ct_OBJDUMP" = x; then
5209 OBJDUMP="false"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212yes:)
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215ac_tool_warned=yes ;;
5216esac
5217 OBJDUMP=$ac_ct_OBJDUMP
5218 fi
5219else
5220 OBJDUMP="$ac_cv_prog_OBJDUMP"
5221fi
5222
5223test -z "$OBJDUMP" && OBJDUMP=objdump
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5234$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5235if ${lt_cv_deplibs_check_method+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237else
5238 lt_cv_file_magic_cmd='$MAGIC_CMD'
5239lt_cv_file_magic_test_file=
5240lt_cv_deplibs_check_method='unknown'
5241# Need to set the preceding variable on all platforms that support
5242# interlibrary dependencies.
5243# 'none' -- dependencies not supported.
5244# 'unknown' -- same as none, but documents that we really don't know.
5245# 'pass_all' -- all dependencies passed with no checks.
5246# 'test_compile' -- check by making test program.
5247# 'file_magic [[regex]]' -- check by looking for files in library path
5248# that responds to the $file_magic_cmd with a given extended regex.
5249# If you have 'file' or equivalent on your system and you're not sure
5250# whether 'pass_all' will *always* work, you probably want this one.
5251
5252case $host_os in
5253aix[4-9]*)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256
5257beos*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261bsdi[45]*)
5262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5263 lt_cv_file_magic_cmd='/usr/bin/file -L'
5264 lt_cv_file_magic_test_file=/shlib/libc.so
5265 ;;
5266
5267cygwin*)
5268 # func_win32_libid is a shell function defined in ltmain.sh
5269 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5270 lt_cv_file_magic_cmd='func_win32_libid'
5271 ;;
5272
5273mingw* | pw32*)
5274 # Base MSYS/MinGW do not provide the 'file' command needed by
5275 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5276 # unless we find 'file', for example because we are cross-compiling.
5277 if ( file / ) >/dev/null 2>&1; then
5278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5279 lt_cv_file_magic_cmd='func_win32_libid'
5280 else
5281 # Keep this pattern in sync with the one in func_win32_libid.
5282 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5283 lt_cv_file_magic_cmd='$OBJDUMP -f'
5284 fi
5285 ;;
5286
5287cegcc*)
5288 # use the weaker test based on 'objdump'. See mingw*.
5289 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5290 lt_cv_file_magic_cmd='$OBJDUMP -f'
5291 ;;
5292
5293darwin* | rhapsody*)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296
5297freebsd* | dragonfly*)
5298 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5299 case $host_cpu in
5300 i*86 )
5301 # Not sure whether the presence of OpenBSD here was a mistake.
5302 # Let's accept both of them until this is cleared up.
5303 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5304 lt_cv_file_magic_cmd=/usr/bin/file
5305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5306 ;;
5307 esac
5308 else
5309 lt_cv_deplibs_check_method=pass_all
5310 fi
5311 ;;
5312
5313haiku*)
5314 lt_cv_deplibs_check_method=pass_all
5315 ;;
5316
5317hpux10.20* | hpux11*)
5318 lt_cv_file_magic_cmd=/usr/bin/file
5319 case $host_cpu in
5320 ia64*)
5321 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5322 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5323 ;;
5324 hppa*64*)
5325 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]'
5326 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5327 ;;
5328 *)
5329 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5330 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5331 ;;
5332 esac
5333 ;;
5334
5335interix[3-9]*)
5336 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5338 ;;
5339
5340irix5* | irix6* | nonstopux*)
5341 case $LD in
5342 *-32|*"-32 ") libmagic=32-bit;;
5343 *-n32|*"-n32 ") libmagic=N32;;
5344 *-64|*"-64 ") libmagic=64-bit;;
5345 *) libmagic=never-match;;
5346 esac
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349
5350# This must be glibc/ELF.
5351linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5352 lt_cv_deplibs_check_method=pass_all
5353 ;;
5354
5355netbsd*)
5356 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5358 else
5359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5360 fi
5361 ;;
5362
5363newos6*)
5364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5365 lt_cv_file_magic_cmd=/usr/bin/file
5366 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5367 ;;
5368
5369*nto* | *qnx*)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372
5373openbsd* | bitrig*)
5374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5376 else
5377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5378 fi
5379 ;;
5380
5381osf3* | osf4* | osf5*)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384
5385rdos*)
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388
5389solaris*)
5390 lt_cv_deplibs_check_method=pass_all
5391 ;;
5392
5393sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5394 lt_cv_deplibs_check_method=pass_all
5395 ;;
5396
5397sysv4 | sysv4.3*)
5398 case $host_vendor in
5399 motorola)
5400 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]'
5401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5402 ;;
5403 ncr)
5404 lt_cv_deplibs_check_method=pass_all
5405 ;;
5406 sequent)
5407 lt_cv_file_magic_cmd='/bin/file'
5408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5409 ;;
5410 sni)
5411 lt_cv_file_magic_cmd='/bin/file'
5412 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5413 lt_cv_file_magic_test_file=/lib/libc.so
5414 ;;
5415 siemens)
5416 lt_cv_deplibs_check_method=pass_all
5417 ;;
5418 pc)
5419 lt_cv_deplibs_check_method=pass_all
5420 ;;
5421 esac
5422 ;;
5423
5424tpf*)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427os2*)
5428 lt_cv_deplibs_check_method=pass_all
5429 ;;
5430esac
5431
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5434$as_echo "$lt_cv_deplibs_check_method" >&6; }
5435
5436file_magic_glob=
5437want_nocaseglob=no
5438if test "$build" = "$host"; then
5439 case $host_os in
5440 mingw* | pw32*)
5441 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5442 want_nocaseglob=yes
5443 else
5444 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5445 fi
5446 ;;
5447 esac
5448fi
5449
5450file_magic_cmd=$lt_cv_file_magic_cmd
5451deplibs_check_method=$lt_cv_deplibs_check_method
5452test -z "$deplibs_check_method" && deplibs_check_method=unknown
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5477set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479$as_echo_n "checking for $ac_word... " >&6; }
5480if ${ac_cv_prog_DLLTOOL+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482else
5483 if test -n "$DLLTOOL"; then
5484 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497done
5498 done
5499IFS=$as_save_IFS
5500
5501fi
5502fi
5503DLLTOOL=$ac_cv_prog_DLLTOOL
5504if test -n "$DLLTOOL"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5506$as_echo "$DLLTOOL" >&6; }
5507else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509$as_echo "no" >&6; }
5510fi
5511
5512
5513fi
5514if test -z "$ac_cv_prog_DLLTOOL"; then
5515 ac_ct_DLLTOOL=$DLLTOOL
5516 # Extract the first word of "dlltool", so it can be a program name with args.
5517set dummy dlltool; ac_word=$2
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519$as_echo_n "checking for $ac_word... " >&6; }
5520if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522else
5523 if test -n "$ac_ct_DLLTOOL"; then
5524 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5525else
5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527for as_dir in $PATH
5528do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537done
5538 done
5539IFS=$as_save_IFS
5540
5541fi
5542fi
5543ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5544if test -n "$ac_ct_DLLTOOL"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5546$as_echo "$ac_ct_DLLTOOL" >&6; }
5547else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549$as_echo "no" >&6; }
5550fi
5551
5552 if test "x$ac_ct_DLLTOOL" = x; then
5553 DLLTOOL="false"
5554 else
5555 case $cross_compiling:$ac_tool_warned in
5556yes:)
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5559ac_tool_warned=yes ;;
5560esac
5561 DLLTOOL=$ac_ct_DLLTOOL
5562 fi
5563else
5564 DLLTOOL="$ac_cv_prog_DLLTOOL"
5565fi
5566
5567test -z "$DLLTOOL" && DLLTOOL=dlltool
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5579$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5580if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582else
5583 lt_cv_sharedlib_from_linklib_cmd='unknown'
5584
5585case $host_os in
5586cygwin* | mingw* | pw32* | cegcc*)
5587 # two different shell functions defined in ltmain.sh;
5588 # decide which one to use based on capabilities of $DLLTOOL
5589 case `$DLLTOOL --help 2>&1` in
5590 *--identify-strict*)
5591 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5592 ;;
5593 *)
5594 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5595 ;;
5596 esac
5597 ;;
5598*)
5599 # fallback: assume linklib IS sharedlib
5600 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5601 ;;
5602esac
5603
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5606$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5607sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5608test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5609
5610
5611
5612
5613
5614
5615
5616if test -n "$ac_tool_prefix"; then
5617 for ac_prog in ar
5618 do
5619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622$as_echo_n "checking for $ac_word... " >&6; }
5623if ${ac_cv_prog_AR+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625else
5626 if test -n "$AR"; then
5627 ac_cv_prog_AR="$AR" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5639 fi
5640done
5641 done
5642IFS=$as_save_IFS
5643
5644fi
5645fi
5646AR=$ac_cv_prog_AR
5647if test -n "$AR"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5649$as_echo "$AR" >&6; }
5650else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }
5653fi
5654
5655
5656 test -n "$AR" && break
5657 done
5658fi
5659if test -z "$AR"; then
5660 ac_ct_AR=$AR
5661 for ac_prog in ar
5662do
5663 # Extract the first word of "$ac_prog", so it can be a program name with args.
5664set dummy $ac_prog; ac_word=$2
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666$as_echo_n "checking for $ac_word... " >&6; }
5667if ${ac_cv_prog_ac_ct_AR+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669else
5670 if test -n "$ac_ct_AR"; then
5671 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5672else
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_ac_ct_AR="$ac_prog"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684done
5685 done
5686IFS=$as_save_IFS
5687
5688fi
5689fi
5690ac_ct_AR=$ac_cv_prog_ac_ct_AR
5691if test -n "$ac_ct_AR"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5693$as_echo "$ac_ct_AR" >&6; }
5694else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696$as_echo "no" >&6; }
5697fi
5698
5699
5700 test -n "$ac_ct_AR" && break
5701done
5702
5703 if test "x$ac_ct_AR" = x; then
5704 AR="false"
5705 else
5706 case $cross_compiling:$ac_tool_warned in
5707yes:)
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5710ac_tool_warned=yes ;;
5711esac
5712 AR=$ac_ct_AR
5713 fi
5714fi
5715
5716: ${AR=ar}
5717: ${AR_FLAGS=cru}
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5730$as_echo_n "checking for archiver @FILE support... " >&6; }
5731if ${lt_cv_ar_at_file+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733else
5734 lt_cv_ar_at_file=no
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h. */
5737
5738int
5739main ()
5740{
5741
5742 ;
5743 return 0;
5744}
5745_ACEOF
5746if ac_fn_c_try_compile "$LINENO"; then :
5747 echo conftest.$ac_objext > conftest.lst
5748 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5750 (eval $lt_ar_try) 2>&5
5751 ac_status=$?
5752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5753 test $ac_status = 0; }
5754 if test 0 -eq "$ac_status"; then
5755 # Ensure the archiver fails upon bogus file names.
5756 rm -f conftest.$ac_objext libconftest.a
5757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5758 (eval $lt_ar_try) 2>&5
5759 ac_status=$?
5760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761 test $ac_status = 0; }
5762 if test 0 -ne "$ac_status"; then
5763 lt_cv_ar_at_file=@
5764 fi
5765 fi
5766 rm -f conftest.* libconftest.a
5767
5768fi
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770
5771fi
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5773$as_echo "$lt_cv_ar_at_file" >&6; }
5774
5775if test no = "$lt_cv_ar_at_file"; then
5776 archiver_list_spec=
5777else
5778 archiver_list_spec=$lt_cv_ar_at_file
5779fi
5780
5781
5782
5783
5784
5785
5786
5787if test -n "$ac_tool_prefix"; then
5788 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5789set dummy ${ac_tool_prefix}strip; ac_word=$2
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791$as_echo_n "checking for $ac_word... " >&6; }
5792if ${ac_cv_prog_STRIP+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794else
5795 if test -n "$STRIP"; then
5796 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5797else
5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809done
5810 done
5811IFS=$as_save_IFS
5812
5813fi
5814fi
5815STRIP=$ac_cv_prog_STRIP
5816if test -n "$STRIP"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5818$as_echo "$STRIP" >&6; }
5819else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821$as_echo "no" >&6; }
5822fi
5823
5824
5825fi
5826if test -z "$ac_cv_prog_STRIP"; then
5827 ac_ct_STRIP=$STRIP
5828 # Extract the first word of "strip", so it can be a program name with args.
5829set dummy strip; ac_word=$2
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831$as_echo_n "checking for $ac_word... " >&6; }
5832if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834else
5835 if test -n "$ac_ct_STRIP"; then
5836 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5837else
5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_prog_ac_ct_STRIP="strip"
5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5848 fi
5849done
5850 done
5851IFS=$as_save_IFS
5852
5853fi
5854fi
5855ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5856if test -n "$ac_ct_STRIP"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5858$as_echo "$ac_ct_STRIP" >&6; }
5859else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861$as_echo "no" >&6; }
5862fi
5863
5864 if test "x$ac_ct_STRIP" = x; then
5865 STRIP=":"
5866 else
5867 case $cross_compiling:$ac_tool_warned in
5868yes:)
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5871ac_tool_warned=yes ;;
5872esac
5873 STRIP=$ac_ct_STRIP
5874 fi
5875else
5876 STRIP="$ac_cv_prog_STRIP"
5877fi
5878
5879test -z "$STRIP" && STRIP=:
5880
5881
5882
5883
5884
5885
5886if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5888set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890$as_echo_n "checking for $ac_word... " >&6; }
5891if ${ac_cv_prog_RANLIB+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893else
5894 if test -n "$RANLIB"; then
5895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908done
5909 done
5910IFS=$as_save_IFS
5911
5912fi
5913fi
5914RANLIB=$ac_cv_prog_RANLIB
5915if test -n "$RANLIB"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5917$as_echo "$RANLIB" >&6; }
5918else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920$as_echo "no" >&6; }
5921fi
5922
5923
5924fi
5925if test -z "$ac_cv_prog_RANLIB"; then
5926 ac_ct_RANLIB=$RANLIB
5927 # Extract the first word of "ranlib", so it can be a program name with args.
5928set dummy ranlib; ac_word=$2
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930$as_echo_n "checking for $ac_word... " >&6; }
5931if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933else
5934 if test -n "$ac_ct_RANLIB"; then
5935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5936else
5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_ac_ct_RANLIB="ranlib"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948done
5949 done
5950IFS=$as_save_IFS
5951
5952fi
5953fi
5954ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5955if test -n "$ac_ct_RANLIB"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5957$as_echo "$ac_ct_RANLIB" >&6; }
5958else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960$as_echo "no" >&6; }
5961fi
5962
5963 if test "x$ac_ct_RANLIB" = x; then
5964 RANLIB=":"
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967yes:)
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970ac_tool_warned=yes ;;
5971esac
5972 RANLIB=$ac_ct_RANLIB
5973 fi
5974else
5975 RANLIB="$ac_cv_prog_RANLIB"
5976fi
5977
5978test -z "$RANLIB" && RANLIB=:
5979
5980
5981
5982
5983
5984
5985# Determine commands to create old-style static archives.
5986old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5987old_postinstall_cmds='chmod 644 $oldlib'
5988old_postuninstall_cmds=
5989
5990if test -n "$RANLIB"; then
5991 case $host_os in
5992 bitrig* | openbsd*)
5993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5994 ;;
5995 *)
5996 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5997 ;;
5998 esac
5999 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6000fi
6001
6002case $host_os in
6003 darwin*)
6004 lock_old_archive_extraction=yes ;;
6005 *)
6006 lock_old_archive_extraction=no ;;
6007esac
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047# If no C compiler was specified, use CC.
6048LTCC=${LTCC-"$CC"}
6049
6050# If no C compiler flags were specified, use CFLAGS.
6051LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6052
6053# Allow CC to be a program name with arguments.
6054compiler=$CC
6055
6056
6057# Check for command to grab the raw symbol name followed by C symbol from nm.
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6059$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6060if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062else
6063
6064# These are sane defaults that work on at least a few old systems.
6065# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6066
6067# Character class describing NM global symbol codes.
6068symcode='[BCDEGRST]'
6069
6070# Regexp to match symbols that can be accessed directly from C.
6071sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6072
6073# Define system-specific variables.
6074case $host_os in
6075aix*)
6076 symcode='[BCDT]'
6077 ;;
6078cygwin* | mingw* | pw32* | cegcc*)
6079 symcode='[ABCDGISTW]'
6080 ;;
6081hpux*)
6082 if test ia64 = "$host_cpu"; then
6083 symcode='[ABCDEGRST]'
6084 fi
6085 ;;
6086irix* | nonstopux*)
6087 symcode='[BCDEGRST]'
6088 ;;
6089osf*)
6090 symcode='[BCDEGQRST]'
6091 ;;
6092solaris*)
6093 symcode='[BDRT]'
6094 ;;
6095sco3.2v5*)
6096 symcode='[DT]'
6097 ;;
6098sysv4.2uw2*)
6099 symcode='[DT]'
6100 ;;
6101sysv5* | sco5v6* | unixware* | OpenUNIX*)
6102 symcode='[ABDT]'
6103 ;;
6104sysv4)
6105 symcode='[DFNSTU]'
6106 ;;
6107esac
6108
6109# If we're using GNU nm, then use its standard symbol codes.
6110case `$NM -V 2>&1` in
6111*GNU* | *'with BFD'*)
6112 symcode='[ABCDGIRSTW]' ;;
6113esac
6114
6115if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6116 # Gets list of data symbols to import.
6117 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6118 # Adjust the below global symbol transforms to fixup imported variables.
6119 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6120 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6121 lt_c_name_lib_hook="\
6122 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6123 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6124else
6125 # Disable hooks by default.
6126 lt_cv_sys_global_symbol_to_import=
6127 lt_cdecl_hook=
6128 lt_c_name_hook=
6129 lt_c_name_lib_hook=
6130fi
6131
6132# Transform an extracted symbol line into a proper C declaration.
6133# Some systems (esp. on ia64) link data and code symbols differently,
6134# so use this general approach.
6135lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6136$lt_cdecl_hook\
6137" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6138" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6139
6140# Transform an extracted symbol line into symbol name and symbol address
6141lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6142$lt_c_name_hook\
6143" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6144" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6145
6146# Transform an extracted symbol line into symbol name with lib prefix and
6147# symbol address.
6148lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6149$lt_c_name_lib_hook\
6150" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6151" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6152" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6153
6154# Handle CRLF in mingw tool chain
6155opt_cr=
6156case $build_os in
6157mingw*)
6158 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6159 ;;
6160esac
6161
6162# Try without a prefix underscore, then with it.
6163for ac_symprfx in "" "_"; do
6164
6165 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6166 symxfrm="\\1 $ac_symprfx\\2 \\2"
6167
6168 # Write the raw and C identifiers.
6169 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6170 # Fake it for dumpbin and say T for any non-static function,
6171 # D for any global variable and I for any imported variable.
6172 # Also find C++ and __fastcall symbols from MSVC++,
6173 # which start with @ or ?.
6174 lt_cv_sys_global_symbol_pipe="$AWK '"\
6175" {last_section=section; section=\$ 3};"\
6176" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6177" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6178" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6179" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6180" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6181" \$ 0!~/External *\|/{next};"\
6182" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6183" {if(hide[section]) next};"\
6184" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6185" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6186" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6187" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6188" ' prfx=^$ac_symprfx"
6189 else
6190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6191 fi
6192 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6193
6194 # Check to see that the pipe works correctly.
6195 pipe_works=no
6196
6197 rm -f conftest*
6198 cat > conftest.$ac_ext <<_LT_EOF
6199#ifdef __cplusplus
6200extern "C" {
6201#endif
6202char nm_test_var;
6203void nm_test_func(void);
6204void nm_test_func(void){}
6205#ifdef __cplusplus
6206}
6207#endif
6208int main(){nm_test_var='a';nm_test_func();return(0);}
6209_LT_EOF
6210
6211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6212 (eval $ac_compile) 2>&5
6213 ac_status=$?
6214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6215 test $ac_status = 0; }; then
6216 # Now try to grab the symbols.
6217 nlist=conftest.nm
6218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6219 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6220 ac_status=$?
6221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6222 test $ac_status = 0; } && test -s "$nlist"; then
6223 # Try sorting and uniquifying the output.
6224 if sort "$nlist" | uniq > "$nlist"T; then
6225 mv -f "$nlist"T "$nlist"
6226 else
6227 rm -f "$nlist"T
6228 fi
6229
6230 # Make sure that we snagged all the symbols we need.
6231 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6232 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6233 cat <<_LT_EOF > conftest.$ac_ext
6234/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6235#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6236/* DATA imports from DLLs on WIN32 can't be const, because runtime
6237 relocations are performed -- see ld's documentation on pseudo-relocs. */
6238# define LT_DLSYM_CONST
6239#elif defined __osf__
6240/* This system does not cope well with relocations in const data. */
6241# define LT_DLSYM_CONST
6242#else
6243# define LT_DLSYM_CONST const
6244#endif
6245
6246#ifdef __cplusplus
6247extern "C" {
6248#endif
6249
6250_LT_EOF
6251 # Now generate the symbol file.
6252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6253
6254 cat <<_LT_EOF >> conftest.$ac_ext
6255
6256/* The mapping between symbol names and symbols. */
6257LT_DLSYM_CONST struct {
6258 const char *name;
6259 void *address;
6260}
6261lt__PROGRAM__LTX_preloaded_symbols[] =
6262{
6263 { "@PROGRAM@", (void *) 0 },
6264_LT_EOF
6265 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6266 cat <<\_LT_EOF >> conftest.$ac_ext
6267 {0, (void *) 0}
6268};
6269
6270/* This works around a problem in FreeBSD linker */
6271#ifdef FREEBSD_WORKAROUND
6272static const void *lt_preloaded_setup() {
6273 return lt__PROGRAM__LTX_preloaded_symbols;
6274}
6275#endif
6276
6277#ifdef __cplusplus
6278}
6279#endif
6280_LT_EOF
6281 # Now try linking the two files.
6282 mv conftest.$ac_objext conftstm.$ac_objext
6283 lt_globsym_save_LIBS=$LIBS
6284 lt_globsym_save_CFLAGS=$CFLAGS
6285 LIBS=conftstm.$ac_objext
6286 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6288 (eval $ac_link) 2>&5
6289 ac_status=$?
6290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6292 pipe_works=yes
6293 fi
6294 LIBS=$lt_globsym_save_LIBS
6295 CFLAGS=$lt_globsym_save_CFLAGS
6296 else
6297 echo "cannot find nm_test_func in $nlist" >&5
6298 fi
6299 else
6300 echo "cannot find nm_test_var in $nlist" >&5
6301 fi
6302 else
6303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6304 fi
6305 else
6306 echo "$progname: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6308 fi
6309 rm -rf conftest* conftst*
6310
6311 # Do not use the global_symbol_pipe unless it works.
6312 if test yes = "$pipe_works"; then
6313 break
6314 else
6315 lt_cv_sys_global_symbol_pipe=
6316 fi
6317done
6318
6319fi
6320
6321if test -z "$lt_cv_sys_global_symbol_pipe"; then
6322 lt_cv_sys_global_symbol_to_cdecl=
6323fi
6324if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6326$as_echo "failed" >&6; }
6327else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6329$as_echo "ok" >&6; }
6330fi
6331
6332# Response file support.
6333if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6334 nm_file_list_spec='@'
6335elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6336 nm_file_list_spec='@'
6337fi
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6376$as_echo_n "checking for sysroot... " >&6; }
6377
6378# Check whether --with-sysroot was given.
6379if test "${with_sysroot+set}" = set; then :
6380 withval=$with_sysroot;
6381else
6382 with_sysroot=no
6383fi
6384
6385
6386lt_sysroot=
6387case $with_sysroot in #(
6388 yes)
6389 if test yes = "$GCC"; then
6390 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6391 fi
6392 ;; #(
6393 /*)
6394 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6395 ;; #(
6396 no|'')
6397 ;; #(
6398 *)
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6400$as_echo "$with_sysroot" >&6; }
6401 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6402 ;;
6403esac
6404
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6406$as_echo "${lt_sysroot:-no}" >&6; }
6407
6408
6409
6410
6411
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6413$as_echo_n "checking for a working dd... " >&6; }
6414if ${ac_cv_path_lt_DD+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416else
6417 printf 0123456789abcdef0123456789abcdef >conftest.i
6418cat conftest.i conftest.i >conftest2.i
6419: ${lt_DD:=$DD}
6420if test -z "$lt_DD"; then
6421 ac_path_lt_DD_found=false
6422 # Loop through the user's path and test for each of PROGNAME-LIST
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_prog in dd; do
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6431 as_fn_executable_p "$ac_path_lt_DD" || continue
6432if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6433 cmp -s conftest.i conftest.out \
6434 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6435fi
6436 $ac_path_lt_DD_found && break 3
6437 done
6438 done
6439 done
6440IFS=$as_save_IFS
6441 if test -z "$ac_cv_path_lt_DD"; then
6442 :
6443 fi
6444else
6445 ac_cv_path_lt_DD=$lt_DD
6446fi
6447
6448rm -f conftest.i conftest2.i conftest.out
6449fi
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6451$as_echo "$ac_cv_path_lt_DD" >&6; }
6452
6453
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6455$as_echo_n "checking how to truncate binary pipes... " >&6; }
6456if ${lt_cv_truncate_bin+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458else
6459 printf 0123456789abcdef0123456789abcdef >conftest.i
6460cat conftest.i conftest.i >conftest2.i
6461lt_cv_truncate_bin=
6462if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6463 cmp -s conftest.i conftest.out \
6464 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6465fi
6466rm -f conftest.i conftest2.i conftest.out
6467test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6470$as_echo "$lt_cv_truncate_bin" >&6; }
6471
6472
6473
6474
6475
6476
6477
6478# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6479func_cc_basename ()
6480{
6481 for cc_temp in $*""; do
6482 case $cc_temp in
6483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6485 \-*) ;;
6486 *) break;;
6487 esac
6488 done
6489 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6490}
6491
6492# Check whether --enable-libtool-lock was given.
6493if test "${enable_libtool_lock+set}" = set; then :
6494 enableval=$enable_libtool_lock;
6495fi
6496
6497test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6498
6499# Some flags need to be propagated to the compiler or linker for good
6500# libtool support.
6501case $host in
6502ia64-*-hpux*)
6503 # Find out what ABI is being produced by ac_compile, and set mode
6504 # options accordingly.
6505 echo 'int i;' > conftest.$ac_ext
6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6507 (eval $ac_compile) 2>&5
6508 ac_status=$?
6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510 test $ac_status = 0; }; then
6511 case `/usr/bin/file conftest.$ac_objext` in
6512 *ELF-32*)
6513 HPUX_IA64_MODE=32
6514 ;;
6515 *ELF-64*)
6516 HPUX_IA64_MODE=64
6517 ;;
6518 esac
6519 fi
6520 rm -rf conftest*
6521 ;;
6522*-*-irix6*)
6523 # Find out what ABI is being produced by ac_compile, and set linker
6524 # options accordingly.
6525 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6527 (eval $ac_compile) 2>&5
6528 ac_status=$?
6529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530 test $ac_status = 0; }; then
6531 if test yes = "$lt_cv_prog_gnu_ld"; then
6532 case `/usr/bin/file conftest.$ac_objext` in
6533 *32-bit*)
6534 LD="${LD-ld} -melf32bsmip"
6535 ;;
6536 *N32*)
6537 LD="${LD-ld} -melf32bmipn32"
6538 ;;
6539 *64-bit*)
6540 LD="${LD-ld} -melf64bmip"
6541 ;;
6542 esac
6543 else
6544 case `/usr/bin/file conftest.$ac_objext` in
6545 *32-bit*)
6546 LD="${LD-ld} -32"
6547 ;;
6548 *N32*)
6549 LD="${LD-ld} -n32"
6550 ;;
6551 *64-bit*)
6552 LD="${LD-ld} -64"
6553 ;;
6554 esac
6555 fi
6556 fi
6557 rm -rf conftest*
6558 ;;
6559
6560mips64*-*linux*)
6561 # Find out what ABI is being produced by ac_compile, and set linker
6562 # options accordingly.
6563 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6565 (eval $ac_compile) 2>&5
6566 ac_status=$?
6567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6568 test $ac_status = 0; }; then
6569 emul=elf
6570 case `/usr/bin/file conftest.$ac_objext` in
6571 *32-bit*)
6572 emul="${emul}32"
6573 ;;
6574 *64-bit*)
6575 emul="${emul}64"
6576 ;;
6577 esac
6578 case `/usr/bin/file conftest.$ac_objext` in
6579 *MSB*)
6580 emul="${emul}btsmip"
6581 ;;
6582 *LSB*)
6583 emul="${emul}ltsmip"
6584 ;;
6585 esac
6586 case `/usr/bin/file conftest.$ac_objext` in
6587 *N32*)
6588 emul="${emul}n32"
6589 ;;
6590 esac
6591 LD="${LD-ld} -m $emul"
6592 fi
6593 rm -rf conftest*
6594 ;;
6595
6596x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6597s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6598 # Find out what ABI is being produced by ac_compile, and set linker
6599 # options accordingly. Note that the listed cases only cover the
6600 # situations where additional linker options are needed (such as when
6601 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6602 # vice versa); the common cases where no linker options are needed do
6603 # not appear in the list.
6604 echo 'int i;' > conftest.$ac_ext
6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6606 (eval $ac_compile) 2>&5
6607 ac_status=$?
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }; then
6610 case `/usr/bin/file conftest.o` in
6611 *32-bit*)
6612 case $host in
6613 x86_64-*kfreebsd*-gnu)
6614 LD="${LD-ld} -m elf_i386_fbsd"
6615 ;;
6616 x86_64-*linux*)
6617 case `/usr/bin/file conftest.o` in
6618 *x86-64*)
6619 LD="${LD-ld} -m elf32_x86_64"
6620 ;;
6621 *)
6622 LD="${LD-ld} -m elf_i386"
6623 ;;
6624 esac
6625 ;;
6626 powerpc64le-*linux*)
6627 LD="${LD-ld} -m elf32lppclinux"
6628 ;;
6629 powerpc64-*linux*)
6630 LD="${LD-ld} -m elf32ppclinux"
6631 ;;
6632 s390x-*linux*)
6633 LD="${LD-ld} -m elf_s390"
6634 ;;
6635 sparc64-*linux*)
6636 LD="${LD-ld} -m elf32_sparc"
6637 ;;
6638 esac
6639 ;;
6640 *64-bit*)
6641 case $host in
6642 x86_64-*kfreebsd*-gnu)
6643 LD="${LD-ld} -m elf_x86_64_fbsd"
6644 ;;
6645 x86_64-*linux*)
6646 LD="${LD-ld} -m elf_x86_64"
6647 ;;
6648 powerpcle-*linux*)
6649 LD="${LD-ld} -m elf64lppc"
6650 ;;
6651 powerpc-*linux*)
6652 LD="${LD-ld} -m elf64ppc"
6653 ;;
6654 s390*-*linux*|s390*-*tpf*)
6655 LD="${LD-ld} -m elf64_s390"
6656 ;;
6657 sparc*-*linux*)
6658 LD="${LD-ld} -m elf64_sparc"
6659 ;;
6660 esac
6661 ;;
6662 esac
6663 fi
6664 rm -rf conftest*
6665 ;;
6666
6667*-*-sco3.2v5*)
6668 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6669 SAVE_CFLAGS=$CFLAGS
6670 CFLAGS="$CFLAGS -belf"
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6672$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6673if ${lt_cv_cc_needs_belf+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675else
6676 ac_ext=c
6677ac_cpp='$CPP $CPPFLAGS'
6678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h. */
6684
6685int
6686main ()
6687{
6688
6689 ;
6690 return 0;
6691}
6692_ACEOF
6693if ac_fn_c_try_link "$LINENO"; then :
6694 lt_cv_cc_needs_belf=yes
6695else
6696 lt_cv_cc_needs_belf=no
6697fi
6698rm -f core conftest.err conftest.$ac_objext \
6699 conftest$ac_exeext conftest.$ac_ext
6700 ac_ext=c
6701ac_cpp='$CPP $CPPFLAGS'
6702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704ac_compiler_gnu=$ac_cv_c_compiler_gnu
6705
6706fi
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6708$as_echo "$lt_cv_cc_needs_belf" >&6; }
6709 if test yes != "$lt_cv_cc_needs_belf"; then
6710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6711 CFLAGS=$SAVE_CFLAGS
6712 fi
6713 ;;
6714*-*solaris*)
6715 # Find out what ABI is being produced by ac_compile, and set linker
6716 # options accordingly.
6717 echo 'int i;' > conftest.$ac_ext
6718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6719 (eval $ac_compile) 2>&5
6720 ac_status=$?
6721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722 test $ac_status = 0; }; then
6723 case `/usr/bin/file conftest.o` in
6724 *64-bit*)
6725 case $lt_cv_prog_gnu_ld in
6726 yes*)
6727 case $host in
6728 i?86-*-solaris*|x86_64-*-solaris*)
6729 LD="${LD-ld} -m elf_x86_64"
6730 ;;
6731 sparc*-*-solaris*)
6732 LD="${LD-ld} -m elf64_sparc"
6733 ;;
6734 esac
6735 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6736 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6737 LD=${LD-ld}_sol2
6738 fi
6739 ;;
6740 *)
6741 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6742 LD="${LD-ld} -64"
6743 fi
6744 ;;
6745 esac
6746 ;;
6747 esac
6748 fi
6749 rm -rf conftest*
6750 ;;
6751esac
6752
6753need_locks=$enable_libtool_lock
6754
6755if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6757set dummy ${ac_tool_prefix}mt; ac_word=$2
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762else
6763 if test -n "$MANIFEST_TOOL"; then
6764 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777done
6778 done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6784if test -n "$MANIFEST_TOOL"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6786$as_echo "$MANIFEST_TOOL" >&6; }
6787else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6790fi
6791
6792
6793fi
6794if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6795 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6796 # Extract the first word of "mt", so it can be a program name with args.
6797set dummy mt; ac_word=$2
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
6800if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802else
6803 if test -n "$ac_ct_MANIFEST_TOOL"; then
6804 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817done
6818 done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
6823ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6824if test -n "$ac_ct_MANIFEST_TOOL"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6826$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6827else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830fi
6831
6832 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6833 MANIFEST_TOOL=":"
6834 else
6835 case $cross_compiling:$ac_tool_warned in
6836yes:)
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839ac_tool_warned=yes ;;
6840esac
6841 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6842 fi
6843else
6844 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6845fi
6846
6847test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6849$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6850if ${lt_cv_path_mainfest_tool+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852else
6853 lt_cv_path_mainfest_tool=no
6854 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6855 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6856 cat conftest.err >&5
6857 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6858 lt_cv_path_mainfest_tool=yes
6859 fi
6860 rm -f conftest*
6861fi
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6863$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6864if test yes != "$lt_cv_path_mainfest_tool"; then
6865 MANIFEST_TOOL=:
6866fi
6867
6868
6869
6870
6871
6872
6873 case $host_os in
6874 rhapsody* | darwin*)
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6877set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879$as_echo_n "checking for $ac_word... " >&6; }
6880if ${ac_cv_prog_DSYMUTIL+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882else
6883 if test -n "$DSYMUTIL"; then
6884 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6885else
6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897done
6898 done
6899IFS=$as_save_IFS
6900
6901fi
6902fi
6903DSYMUTIL=$ac_cv_prog_DSYMUTIL
6904if test -n "$DSYMUTIL"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6906$as_echo "$DSYMUTIL" >&6; }
6907else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909$as_echo "no" >&6; }
6910fi
6911
6912
6913fi
6914if test -z "$ac_cv_prog_DSYMUTIL"; then
6915 ac_ct_DSYMUTIL=$DSYMUTIL
6916 # Extract the first word of "dsymutil", so it can be a program name with args.
6917set dummy dsymutil; ac_word=$2
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919$as_echo_n "checking for $ac_word... " >&6; }
6920if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6921 $as_echo_n "(cached) " >&6
6922else
6923 if test -n "$ac_ct_DSYMUTIL"; then
6924 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6925else
6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937done
6938 done
6939IFS=$as_save_IFS
6940
6941fi
6942fi
6943ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6944if test -n "$ac_ct_DSYMUTIL"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6946$as_echo "$ac_ct_DSYMUTIL" >&6; }
6947else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950fi
6951
6952 if test "x$ac_ct_DSYMUTIL" = x; then
6953 DSYMUTIL=":"
6954 else
6955 case $cross_compiling:$ac_tool_warned in
6956yes:)
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959ac_tool_warned=yes ;;
6960esac
6961 DSYMUTIL=$ac_ct_DSYMUTIL
6962 fi
6963else
6964 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6965fi
6966
6967 if test -n "$ac_tool_prefix"; then
6968 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6969set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971$as_echo_n "checking for $ac_word... " >&6; }
6972if ${ac_cv_prog_NMEDIT+:} false; then :
6973 $as_echo_n "(cached) " >&6
6974else
6975 if test -n "$NMEDIT"; then
6976 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6985 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989done
6990 done
6991IFS=$as_save_IFS
6992
6993fi
6994fi
6995NMEDIT=$ac_cv_prog_NMEDIT
6996if test -n "$NMEDIT"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6998$as_echo "$NMEDIT" >&6; }
6999else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001$as_echo "no" >&6; }
7002fi
7003
7004
7005fi
7006if test -z "$ac_cv_prog_NMEDIT"; then
7007 ac_ct_NMEDIT=$NMEDIT
7008 # Extract the first word of "nmedit", so it can be a program name with args.
7009set dummy nmedit; ac_word=$2
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011$as_echo_n "checking for $ac_word... " >&6; }
7012if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7013 $as_echo_n "(cached) " >&6
7014else
7015 if test -n "$ac_ct_NMEDIT"; then
7016 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7025 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030 done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7036if test -n "$ac_ct_NMEDIT"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7038$as_echo "$ac_ct_NMEDIT" >&6; }
7039else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041$as_echo "no" >&6; }
7042fi
7043
7044 if test "x$ac_ct_NMEDIT" = x; then
7045 NMEDIT=":"
7046 else
7047 case $cross_compiling:$ac_tool_warned in
7048yes:)
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051ac_tool_warned=yes ;;
7052esac
7053 NMEDIT=$ac_ct_NMEDIT
7054 fi
7055else
7056 NMEDIT="$ac_cv_prog_NMEDIT"
7057fi
7058
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7061set dummy ${ac_tool_prefix}lipo; ac_word=$2
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063$as_echo_n "checking for $ac_word... " >&6; }
7064if ${ac_cv_prog_LIPO+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066else
7067 if test -n "$LIPO"; then
7068 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081done
7082 done
7083IFS=$as_save_IFS
7084
7085fi
7086fi
7087LIPO=$ac_cv_prog_LIPO
7088if test -n "$LIPO"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7090$as_echo "$LIPO" >&6; }
7091else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093$as_echo "no" >&6; }
7094fi
7095
7096
7097fi
7098if test -z "$ac_cv_prog_LIPO"; then
7099 ac_ct_LIPO=$LIPO
7100 # Extract the first word of "lipo", so it can be a program name with args.
7101set dummy lipo; ac_word=$2
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103$as_echo_n "checking for $ac_word... " >&6; }
7104if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106else
7107 if test -n "$ac_ct_LIPO"; then
7108 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_ac_ct_LIPO="lipo"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7120 fi
7121done
7122 done
7123IFS=$as_save_IFS
7124
7125fi
7126fi
7127ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7128if test -n "$ac_ct_LIPO"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7130$as_echo "$ac_ct_LIPO" >&6; }
7131else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133$as_echo "no" >&6; }
7134fi
7135
7136 if test "x$ac_ct_LIPO" = x; then
7137 LIPO=":"
7138 else
7139 case $cross_compiling:$ac_tool_warned in
7140yes:)
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143ac_tool_warned=yes ;;
7144esac
7145 LIPO=$ac_ct_LIPO
7146 fi
7147else
7148 LIPO="$ac_cv_prog_LIPO"
7149fi
7150
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7153set dummy ${ac_tool_prefix}otool; ac_word=$2
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155$as_echo_n "checking for $ac_word... " >&6; }
7156if ${ac_cv_prog_OTOOL+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158else
7159 if test -n "$OTOOL"; then
7160 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7161else
7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163for as_dir in $PATH
7164do
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 break 2
7172 fi
7173done
7174 done
7175IFS=$as_save_IFS
7176
7177fi
7178fi
7179OTOOL=$ac_cv_prog_OTOOL
7180if test -n "$OTOOL"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7182$as_echo "$OTOOL" >&6; }
7183else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
7186fi
7187
7188
7189fi
7190if test -z "$ac_cv_prog_OTOOL"; then
7191 ac_ct_OTOOL=$OTOOL
7192 # Extract the first word of "otool", so it can be a program name with args.
7193set dummy otool; ac_word=$2
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195$as_echo_n "checking for $ac_word... " >&6; }
7196if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198else
7199 if test -n "$ac_ct_OTOOL"; then
7200 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_ac_ct_OTOOL="otool"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213done
7214 done
7215IFS=$as_save_IFS
7216
7217fi
7218fi
7219ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7220if test -n "$ac_ct_OTOOL"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7222$as_echo "$ac_ct_OTOOL" >&6; }
7223else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225$as_echo "no" >&6; }
7226fi
7227
7228 if test "x$ac_ct_OTOOL" = x; then
7229 OTOOL=":"
7230 else
7231 case $cross_compiling:$ac_tool_warned in
7232yes:)
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235ac_tool_warned=yes ;;
7236esac
7237 OTOOL=$ac_ct_OTOOL
7238 fi
7239else
7240 OTOOL="$ac_cv_prog_OTOOL"
7241fi
7242
7243 if test -n "$ac_tool_prefix"; then
7244 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7245set dummy ${ac_tool_prefix}otool64; ac_word=$2
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247$as_echo_n "checking for $ac_word... " >&6; }
7248if ${ac_cv_prog_OTOOL64+:} false; then :
7249 $as_echo_n "(cached) " >&6
7250else
7251 if test -n "$OTOOL64"; then
7252 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7264 fi
7265done
7266 done
7267IFS=$as_save_IFS
7268
7269fi
7270fi
7271OTOOL64=$ac_cv_prog_OTOOL64
7272if test -n "$OTOOL64"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7274$as_echo "$OTOOL64" >&6; }
7275else
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277$as_echo "no" >&6; }
7278fi
7279
7280
7281fi
7282if test -z "$ac_cv_prog_OTOOL64"; then
7283 ac_ct_OTOOL64=$OTOOL64
7284 # Extract the first word of "otool64", so it can be a program name with args.
7285set dummy otool64; ac_word=$2
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287$as_echo_n "checking for $ac_word... " >&6; }
7288if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7289 $as_echo_n "(cached) " >&6
7290else
7291 if test -n "$ac_ct_OTOOL64"; then
7292 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7293else
7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301 ac_cv_prog_ac_ct_OTOOL64="otool64"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7304 fi
7305done
7306 done
7307IFS=$as_save_IFS
7308
7309fi
7310fi
7311ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7312if test -n "$ac_ct_OTOOL64"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7314$as_echo "$ac_ct_OTOOL64" >&6; }
7315else
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317$as_echo "no" >&6; }
7318fi
7319
7320 if test "x$ac_ct_OTOOL64" = x; then
7321 OTOOL64=":"
7322 else
7323 case $cross_compiling:$ac_tool_warned in
7324yes:)
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7327ac_tool_warned=yes ;;
7328esac
7329 OTOOL64=$ac_ct_OTOOL64
7330 fi
7331else
7332 OTOOL64="$ac_cv_prog_OTOOL64"
7333fi
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7362$as_echo_n "checking for -single_module linker flag... " >&6; }
7363if ${lt_cv_apple_cc_single_mod+:} false; then :
7364 $as_echo_n "(cached) " >&6
7365else
7366 lt_cv_apple_cc_single_mod=no
7367 if test -z "$LT_MULTI_MODULE"; then
7368 # By default we will add the -single_module flag. You can override
7369 # by either setting the environment variable LT_MULTI_MODULE
7370 # non-empty at configure time, or by adding -multi_module to the
7371 # link flags.
7372 rm -rf libconftest.dylib*
7373 echo "int foo(void){return 1;}" > conftest.c
7374 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7375-dynamiclib -Wl,-single_module conftest.c" >&5
7376 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7377 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7378 _lt_result=$?
7379 # If there is a non-empty error log, and "single_module"
7380 # appears in it, assume the flag caused a linker warning
7381 if test -s conftest.err && $GREP single_module conftest.err; then
7382 cat conftest.err >&5
7383 # Otherwise, if the output was created with a 0 exit code from
7384 # the compiler, it worked.
7385 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7386 lt_cv_apple_cc_single_mod=yes
7387 else
7388 cat conftest.err >&5
7389 fi
7390 rm -rf libconftest.dylib*
7391 rm -f conftest.*
7392 fi
7393fi
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7395$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7396
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7398$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7399if ${lt_cv_ld_exported_symbols_list+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401else
7402 lt_cv_ld_exported_symbols_list=no
7403 save_LDFLAGS=$LDFLAGS
7404 echo "_main" > conftest.sym
7405 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407/* end confdefs.h. */
7408
7409int
7410main ()
7411{
7412
7413 ;
7414 return 0;
7415}
7416_ACEOF
7417if ac_fn_c_try_link "$LINENO"; then :
7418 lt_cv_ld_exported_symbols_list=yes
7419else
7420 lt_cv_ld_exported_symbols_list=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7424 LDFLAGS=$save_LDFLAGS
7425
7426fi
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7428$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7429
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7431$as_echo_n "checking for -force_load linker flag... " >&6; }
7432if ${lt_cv_ld_force_load+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434else
7435 lt_cv_ld_force_load=no
7436 cat > conftest.c << _LT_EOF
7437int forced_loaded() { return 2;}
7438_LT_EOF
7439 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7440 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7441 echo "$AR cru libconftest.a conftest.o" >&5
7442 $AR cru libconftest.a conftest.o 2>&5
7443 echo "$RANLIB libconftest.a" >&5
7444 $RANLIB libconftest.a 2>&5
7445 cat > conftest.c << _LT_EOF
7446int main() { return 0;}
7447_LT_EOF
7448 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7449 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7450 _lt_result=$?
7451 if test -s conftest.err && $GREP force_load conftest.err; then
7452 cat conftest.err >&5
7453 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7454 lt_cv_ld_force_load=yes
7455 else
7456 cat conftest.err >&5
7457 fi
7458 rm -f conftest.err libconftest.a conftest conftest.c
7459 rm -rf conftest.dSYM
7460
7461fi
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7463$as_echo "$lt_cv_ld_force_load" >&6; }
7464 case $host_os in
7465 rhapsody* | darwin1.[012])
7466 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7467 darwin1.*)
7468 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7469 darwin*) # darwin 5.x on
7470 # if running on 10.5 or later, the deployment target defaults
7471 # to the OS version, if on x86, and 10.4, the deployment
7472 # target defaults to 10.4. Don't you love it?
7473 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7474 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7475 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7476 10.[012][,.]*)
7477 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7478 10.*)
7479 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7480 esac
7481 ;;
7482 esac
7483 if test yes = "$lt_cv_apple_cc_single_mod"; then
7484 _lt_dar_single_mod='$single_module'
7485 fi
7486 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7487 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7488 else
7489 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7490 fi
7491 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7492 _lt_dsymutil='~$DSYMUTIL $lib || :'
7493 else
7494 _lt_dsymutil=
7495 fi
7496 ;;
7497 esac
7498
7499# func_munge_path_list VARIABLE PATH
7500# -----------------------------------
7501# VARIABLE is name of variable containing _space_ separated list of
7502# directories to be munged by the contents of PATH, which is string
7503# having a format:
7504# "DIR[:DIR]:"
7505# string "DIR[ DIR]" will be prepended to VARIABLE
7506# ":DIR[:DIR]"
7507# string "DIR[ DIR]" will be appended to VARIABLE
7508# "DIRP[:DIRP]::[DIRA:]DIRA"
7509# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7510# "DIRA[ DIRA]" will be appended to VARIABLE
7511# "DIR[:DIR]"
7512# VARIABLE will be replaced by "DIR[ DIR]"
7513func_munge_path_list ()
7514{
7515 case x$2 in
7516 x)
7517 ;;
7518 *:)
7519 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7520 ;;
7521 x:*)
7522 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7523 ;;
7524 *::*)
7525 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7526 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7527 ;;
7528 *)
7529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7530 ;;
7531 esac
7532}
7533
7534ac_ext=c
7535ac_cpp='$CPP $CPPFLAGS'
7536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7538ac_compiler_gnu=$ac_cv_c_compiler_gnu
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7540$as_echo_n "checking how to run the C preprocessor... " >&6; }
7541# On Suns, sometimes $CPP names a directory.
7542if test -n "$CPP" && test -d "$CPP"; then
7543 CPP=
7544fi
7545if test -z "$CPP"; then
7546 if ${ac_cv_prog_CPP+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548else
7549 # Double quotes because CPP needs to be expanded
7550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7551 do
7552 ac_preproc_ok=false
7553for ac_c_preproc_warn_flag in '' yes
7554do
7555 # Use a header file that comes with gcc, so configuring glibc
7556 # with a fresh cross-compiler works.
7557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7558 # <limits.h> exists even on freestanding compilers.
7559 # On the NeXT, cc -E runs the code through the compiler's parser,
7560 # not just through cpp. "Syntax error" is here to catch this case.
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562/* end confdefs.h. */
7563#ifdef __STDC__
7564# include <limits.h>
7565#else
7566# include <assert.h>
7567#endif
7568 Syntax error
7569_ACEOF
7570if ac_fn_c_try_cpp "$LINENO"; then :
7571
7572else
7573 # Broken: fails on valid input.
7574continue
7575fi
7576rm -f conftest.err conftest.i conftest.$ac_ext
7577
7578 # OK, works on sane cases. Now check whether nonexistent headers
7579 # can be detected and how.
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h. */
7582#include <ac_nonexistent.h>
7583_ACEOF
7584if ac_fn_c_try_cpp "$LINENO"; then :
7585 # Broken: success on invalid input.
7586continue
7587else
7588 # Passes both tests.
7589ac_preproc_ok=:
7590break
7591fi
7592rm -f conftest.err conftest.i conftest.$ac_ext
7593
7594done
7595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7596rm -f conftest.i conftest.err conftest.$ac_ext
7597if $ac_preproc_ok; then :
7598 break
7599fi
7600
7601 done
7602 ac_cv_prog_CPP=$CPP
7603
7604fi
7605 CPP=$ac_cv_prog_CPP
7606else
7607 ac_cv_prog_CPP=$CPP
7608fi
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7610$as_echo "$CPP" >&6; }
7611ac_preproc_ok=false
7612for ac_c_preproc_warn_flag in '' yes
7613do
7614 # Use a header file that comes with gcc, so configuring glibc
7615 # with a fresh cross-compiler works.
7616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7617 # <limits.h> exists even on freestanding compilers.
7618 # On the NeXT, cc -E runs the code through the compiler's parser,
7619 # not just through cpp. "Syntax error" is here to catch this case.
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621/* end confdefs.h. */
7622#ifdef __STDC__
7623# include <limits.h>
7624#else
7625# include <assert.h>
7626#endif
7627 Syntax error
7628_ACEOF
7629if ac_fn_c_try_cpp "$LINENO"; then :
7630
7631else
7632 # Broken: fails on valid input.
7633continue
7634fi
7635rm -f conftest.err conftest.i conftest.$ac_ext
7636
7637 # OK, works on sane cases. Now check whether nonexistent headers
7638 # can be detected and how.
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640/* end confdefs.h. */
7641#include <ac_nonexistent.h>
7642_ACEOF
7643if ac_fn_c_try_cpp "$LINENO"; then :
7644 # Broken: success on invalid input.
7645continue
7646else
7647 # Passes both tests.
7648ac_preproc_ok=:
7649break
7650fi
7651rm -f conftest.err conftest.i conftest.$ac_ext
7652
7653done
7654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7655rm -f conftest.i conftest.err conftest.$ac_ext
7656if $ac_preproc_ok; then :
7657
7658else
7659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7661as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7662See \`config.log' for more details" "$LINENO" 5; }
7663fi
7664
7665ac_ext=c
7666ac_cpp='$CPP $CPPFLAGS'
7667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670
7671
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7673$as_echo_n "checking for ANSI C header files... " >&6; }
7674if ${ac_cv_header_stdc+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676else
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h. */
7679#include <stdlib.h>
7680#include <stdarg.h>
7681#include <string.h>
7682#include <float.h>
7683
7684int
7685main ()
7686{
7687
7688 ;
7689 return 0;
7690}
7691_ACEOF
7692if ac_fn_c_try_compile "$LINENO"; then :
7693 ac_cv_header_stdc=yes
7694else
7695 ac_cv_header_stdc=no
7696fi
7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698
7699if test $ac_cv_header_stdc = yes; then
7700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702/* end confdefs.h. */
7703#include <string.h>
7704
7705_ACEOF
7706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7707 $EGREP "memchr" >/dev/null 2>&1; then :
7708
7709else
7710 ac_cv_header_stdc=no
7711fi
7712rm -f conftest*
7713
7714fi
7715
7716if test $ac_cv_header_stdc = yes; then
7717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h. */
7720#include <stdlib.h>
7721
7722_ACEOF
7723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7724 $EGREP "free" >/dev/null 2>&1; then :
7725
7726else
7727 ac_cv_header_stdc=no
7728fi
7729rm -f conftest*
7730
7731fi
7732
7733if test $ac_cv_header_stdc = yes; then
7734 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7735 if test "$cross_compiling" = yes; then :
7736 :
7737else
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739/* end confdefs.h. */
7740#include <ctype.h>
7741#include <stdlib.h>
7742#if ((' ' & 0x0FF) == 0x020)
7743# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7744# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7745#else
7746# define ISLOWER(c) \
7747 (('a' <= (c) && (c) <= 'i') \
7748 || ('j' <= (c) && (c) <= 'r') \
7749 || ('s' <= (c) && (c) <= 'z'))
7750# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7751#endif
7752
7753#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7754int
7755main ()
7756{
7757 int i;
7758 for (i = 0; i < 256; i++)
7759 if (XOR (islower (i), ISLOWER (i))
7760 || toupper (i) != TOUPPER (i))
7761 return 2;
7762 return 0;
7763}
7764_ACEOF
7765if ac_fn_c_try_run "$LINENO"; then :
7766
7767else
7768 ac_cv_header_stdc=no
7769fi
7770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7771 conftest.$ac_objext conftest.beam conftest.$ac_ext
7772fi
7773
7774fi
7775fi
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7777$as_echo "$ac_cv_header_stdc" >&6; }
7778if test $ac_cv_header_stdc = yes; then
7779
7780$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7781
7782fi
7783
7784# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7785for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7786 inttypes.h stdint.h unistd.h
7787do :
7788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7789ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7790"
7791if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7792 cat >>confdefs.h <<_ACEOF
7793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7794_ACEOF
7795
7796fi
7797
7798done
7799
7800
7801for ac_header in dlfcn.h
7802do :
7803 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7804"
7805if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7806 cat >>confdefs.h <<_ACEOF
7807#define HAVE_DLFCN_H 1
7808_ACEOF
7809
7810fi
7811
7812done
7813
7814
7815
7816
7817
7818# Set options
7819# Check whether --enable-shared was given.
7820if test "${enable_shared+set}" = set; then :
7821 enableval=$enable_shared; p=${PACKAGE-default}
7822 case $enableval in
7823 yes) enable_shared=yes ;;
7824 no) enable_shared=no ;;
7825 *)
7826 enable_shared=no
7827 # Look at the argument we got. We use all the common list separators.
7828 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7829 for pkg in $enableval; do
7830 IFS=$lt_save_ifs
7831 if test "X$pkg" = "X$p"; then
7832 enable_shared=yes
7833 fi
7834 done
7835 IFS=$lt_save_ifs
7836 ;;
7837 esac
7838else
7839 enable_shared=yes
7840fi
7841
7842
7843
7844
7845
7846
7847
7848
7849# Check whether --with-pic was given.
7850if test "${with_pic+set}" = set; then :
7851 withval=$with_pic; lt_p=${PACKAGE-default}
7852 case $withval in
7853 yes|no) pic_mode=$withval ;;
7854 *)
7855 pic_mode=default
7856 # Look at the argument we got. We use all the common list separators.
7857 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7858 for lt_pkg in $withval; do
7859 IFS=$lt_save_ifs
7860 if test "X$lt_pkg" = "X$lt_p"; then
7861 pic_mode=yes
7862 fi
7863 done
7864 IFS=$lt_save_ifs
7865 ;;
7866 esac
7867else
7868 pic_mode=yes
7869fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879 enable_dlopen=no
7880
7881
7882 enable_win32_dll=no
7883
7884
7885
7886 # Check whether --enable-static was given.
7887if test "${enable_static+set}" = set; then :
7888 enableval=$enable_static; p=${PACKAGE-default}
7889 case $enableval in
7890 yes) enable_static=yes ;;
7891 no) enable_static=no ;;
7892 *)
7893 enable_static=no
7894 # Look at the argument we got. We use all the common list separators.
7895 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7896 for pkg in $enableval; do
7897 IFS=$lt_save_ifs
7898 if test "X$pkg" = "X$p"; then
7899 enable_static=yes
7900 fi
7901 done
7902 IFS=$lt_save_ifs
7903 ;;
7904 esac
7905else
7906 enable_static=yes
7907fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918 # Check whether --enable-fast-install was given.
7919if test "${enable_fast_install+set}" = set; then :
7920 enableval=$enable_fast_install; p=${PACKAGE-default}
7921 case $enableval in
7922 yes) enable_fast_install=yes ;;
7923 no) enable_fast_install=no ;;
7924 *)
7925 enable_fast_install=no
7926 # Look at the argument we got. We use all the common list separators.
7927 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7928 for pkg in $enableval; do
7929 IFS=$lt_save_ifs
7930 if test "X$pkg" = "X$p"; then
7931 enable_fast_install=yes
7932 fi
7933 done
7934 IFS=$lt_save_ifs
7935 ;;
7936 esac
7937else
7938 enable_fast_install=yes
7939fi
7940
7941
7942
7943
7944
7945
7946
7947
7948 shared_archive_member_spec=
7949case $host,$enable_shared in
7950power*-*-aix[5-9]*,yes)
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7952$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7953
7954# Check whether --with-aix-soname was given.
7955if test "${with_aix_soname+set}" = set; then :
7956 withval=$with_aix_soname; case $withval in
7957 aix|svr4|both)
7958 ;;
7959 *)
7960 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7961 ;;
7962 esac
7963 lt_cv_with_aix_soname=$with_aix_soname
7964else
7965 if ${lt_cv_with_aix_soname+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967else
7968 lt_cv_with_aix_soname=aix
7969fi
7970
7971 with_aix_soname=$lt_cv_with_aix_soname
7972fi
7973
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7975$as_echo "$with_aix_soname" >&6; }
7976 if test aix != "$with_aix_soname"; then
7977 # For the AIX way of multilib, we name the shared archive member
7978 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7979 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7980 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7981 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7982 if test 64 = "${OBJECT_MODE-32}"; then
7983 shared_archive_member_spec=shr_64
7984 else
7985 shared_archive_member_spec=shr
7986 fi
7987 fi
7988 ;;
7989*)
7990 with_aix_soname=aix
7991 ;;
7992esac
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003# This can be used to rebuild libtool when needed
8004LIBTOOL_DEPS=$ltmain
8005
8006# Always use our own libtool.
8007LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038test -z "$LN_S" && LN_S="ln -s"
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053if test -n "${ZSH_VERSION+set}"; then
8054 setopt NO_GLOB_SUBST
8055fi
8056
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8058$as_echo_n "checking for objdir... " >&6; }
8059if ${lt_cv_objdir+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061else
8062 rm -f .libs 2>/dev/null
8063mkdir .libs 2>/dev/null
8064if test -d .libs; then
8065 lt_cv_objdir=.libs
8066else
8067 # MS-DOS does not allow filenames that begin with a dot.
8068 lt_cv_objdir=_libs
8069fi
8070rmdir .libs 2>/dev/null
8071fi
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8073$as_echo "$lt_cv_objdir" >&6; }
8074objdir=$lt_cv_objdir
8075
8076
8077
8078
8079
8080cat >>confdefs.h <<_ACEOF
8081#define LT_OBJDIR "$lt_cv_objdir/"
8082_ACEOF
8083
8084
8085
8086
8087case $host_os in
8088aix3*)
8089 # AIX sometimes has problems with the GCC collect2 program. For some
8090 # reason, if we set the COLLECT_NAMES environment variable, the problems
8091 # vanish in a puff of smoke.
8092 if test set != "${COLLECT_NAMES+set}"; then
8093 COLLECT_NAMES=
8094 export COLLECT_NAMES
8095 fi
8096 ;;
8097esac
8098
8099# Global variables:
8100ofile=libtool
8101can_build_shared=yes
8102
8103# All known linkers require a '.a' archive for static linking (except MSVC,
8104# which needs '.lib').
8105libext=a
8106
8107with_gnu_ld=$lt_cv_prog_gnu_ld
8108
8109old_CC=$CC
8110old_CFLAGS=$CFLAGS
8111
8112# Set sane defaults for various variables
8113test -z "$CC" && CC=cc
8114test -z "$LTCC" && LTCC=$CC
8115test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8116test -z "$LD" && LD=ld
8117test -z "$ac_objext" && ac_objext=o
8118
8119func_cc_basename $compiler
8120cc_basename=$func_cc_basename_result
8121
8122
8123# Only perform the check for file, if the check method requires it
8124test -z "$MAGIC_CMD" && MAGIC_CMD=file
8125case $deplibs_check_method in
8126file_magic*)
8127 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8129$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8130if ${lt_cv_path_MAGIC_CMD+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132else
8133 case $MAGIC_CMD in
8134[\\/*] | ?:[\\/]*)
8135 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8136 ;;
8137*)
8138 lt_save_MAGIC_CMD=$MAGIC_CMD
8139 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8140 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8141 for ac_dir in $ac_dummy; do
8142 IFS=$lt_save_ifs
8143 test -z "$ac_dir" && ac_dir=.
8144 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8145 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8146 if test -n "$file_magic_test_file"; then
8147 case $deplibs_check_method in
8148 "file_magic "*)
8149 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8150 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8152 $EGREP "$file_magic_regex" > /dev/null; then
8153 :
8154 else
8155 cat <<_LT_EOF 1>&2
8156
8157*** Warning: the command libtool uses to detect shared libraries,
8158*** $file_magic_cmd, produces output that libtool cannot recognize.
8159*** The result is that libtool may fail to recognize shared libraries
8160*** as such. This will affect the creation of libtool libraries that
8161*** depend on shared libraries, but programs linked with such libtool
8162*** libraries will work regardless of this problem. Nevertheless, you
8163*** may want to report the problem to your system manager and/or to
8164*** bug-libtool@gnu.org
8165
8166_LT_EOF
8167 fi ;;
8168 esac
8169 fi
8170 break
8171 fi
8172 done
8173 IFS=$lt_save_ifs
8174 MAGIC_CMD=$lt_save_MAGIC_CMD
8175 ;;
8176esac
8177fi
8178
8179MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8180if test -n "$MAGIC_CMD"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8182$as_echo "$MAGIC_CMD" >&6; }
8183else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185$as_echo "no" >&6; }
8186fi
8187
8188
8189
8190
8191
8192if test -z "$lt_cv_path_MAGIC_CMD"; then
8193 if test -n "$ac_tool_prefix"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8195$as_echo_n "checking for file... " >&6; }
8196if ${lt_cv_path_MAGIC_CMD+:} false; then :
8197 $as_echo_n "(cached) " >&6
8198else
8199 case $MAGIC_CMD in
8200[\\/*] | ?:[\\/]*)
8201 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8202 ;;
8203*)
8204 lt_save_MAGIC_CMD=$MAGIC_CMD
8205 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8206 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8207 for ac_dir in $ac_dummy; do
8208 IFS=$lt_save_ifs
8209 test -z "$ac_dir" && ac_dir=.
8210 if test -f "$ac_dir/file"; then
8211 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8212 if test -n "$file_magic_test_file"; then
8213 case $deplibs_check_method in
8214 "file_magic "*)
8215 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8216 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8218 $EGREP "$file_magic_regex" > /dev/null; then
8219 :
8220 else
8221 cat <<_LT_EOF 1>&2
8222
8223*** Warning: the command libtool uses to detect shared libraries,
8224*** $file_magic_cmd, produces output that libtool cannot recognize.
8225*** The result is that libtool may fail to recognize shared libraries
8226*** as such. This will affect the creation of libtool libraries that
8227*** depend on shared libraries, but programs linked with such libtool
8228*** libraries will work regardless of this problem. Nevertheless, you
8229*** may want to report the problem to your system manager and/or to
8230*** bug-libtool@gnu.org
8231
8232_LT_EOF
8233 fi ;;
8234 esac
8235 fi
8236 break
8237 fi
8238 done
8239 IFS=$lt_save_ifs
8240 MAGIC_CMD=$lt_save_MAGIC_CMD
8241 ;;
8242esac
8243fi
8244
8245MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8246if test -n "$MAGIC_CMD"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8248$as_echo "$MAGIC_CMD" >&6; }
8249else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251$as_echo "no" >&6; }
8252fi
8253
8254
8255 else
8256 MAGIC_CMD=:
8257 fi
8258fi
8259
8260 fi
8261 ;;
8262esac
8263
8264# Use C for the default configuration in the libtool script
8265
8266lt_save_CC=$CC
8267ac_ext=c
8268ac_cpp='$CPP $CPPFLAGS'
8269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8271ac_compiler_gnu=$ac_cv_c_compiler_gnu
8272
8273
8274# Source file extension for C test sources.
8275ac_ext=c
8276
8277# Object file extension for compiled C test sources.
8278objext=o
8279objext=$objext
8280
8281# Code to be used in simple compile tests
8282lt_simple_compile_test_code="int some_variable = 0;"
8283
8284# Code to be used in simple link tests
8285lt_simple_link_test_code='int main(){return(0);}'
8286
8287
8288
8289
8290
8291
8292
8293# If no C compiler was specified, use CC.
8294LTCC=${LTCC-"$CC"}
8295
8296# If no C compiler flags were specified, use CFLAGS.
8297LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8298
8299# Allow CC to be a program name with arguments.
8300compiler=$CC
8301
8302# Save the default compiler, since it gets overwritten when the other
8303# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8304compiler_DEFAULT=$CC
8305
8306# save warnings/boilerplate of simple test code
8307ac_outfile=conftest.$ac_objext
8308echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8309eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8310_lt_compiler_boilerplate=`cat conftest.err`
8311$RM conftest*
8312
8313ac_outfile=conftest.$ac_objext
8314echo "$lt_simple_link_test_code" >conftest.$ac_ext
8315eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8316_lt_linker_boilerplate=`cat conftest.err`
8317$RM -r conftest*
8318
8319
8320## CAVEAT EMPTOR:
8321## There is no encapsulation within the following macros, do not change
8322## the running order or otherwise move them around unless you know exactly
8323## what you are doing...
8324if test -n "$compiler"; then
8325
8326lt_prog_compiler_no_builtin_flag=
8327
8328if test yes = "$GCC"; then
8329 case $cc_basename in
8330 nvcc*)
8331 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8332 *)
8333 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8334 esac
8335
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8337$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8338if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340else
8341 lt_cv_prog_compiler_rtti_exceptions=no
8342 ac_outfile=conftest.$ac_objext
8343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8344 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8345 # Insert the option either (1) after the last *FLAGS variable, or
8346 # (2) before a word containing "conftest.", or (3) at the end.
8347 # Note that $ac_compile itself does not contain backslashes and begins
8348 # with a dollar sign (not a hyphen), so the echo should work correctly.
8349 # The option is referenced via a variable to avoid confusing sed.
8350 lt_compile=`echo "$ac_compile" | $SED \
8351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8353 -e 's:$: $lt_compiler_flag:'`
8354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8355 (eval "$lt_compile" 2>conftest.err)
8356 ac_status=$?
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 if (exit $ac_status) && test -s "$ac_outfile"; then
8360 # The compiler can only warn and ignore the option if not recognized
8361 # So say no if there are warnings other than the usual output.
8362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8365 lt_cv_prog_compiler_rtti_exceptions=yes
8366 fi
8367 fi
8368 $RM conftest*
8369
8370fi
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8372$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8373
8374if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8375 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8376else
8377 :
8378fi
8379
8380fi
8381
8382
8383
8384
8385
8386
8387 lt_prog_compiler_wl=
8388lt_prog_compiler_pic=
8389lt_prog_compiler_static=
8390
8391
8392 if test yes = "$GCC"; then
8393 lt_prog_compiler_wl='-Wl,'
8394 lt_prog_compiler_static='-static'
8395
8396 case $host_os in
8397 aix*)
8398 # All AIX code is PIC.
8399 if test ia64 = "$host_cpu"; then
8400 # AIX 5 now supports IA64 processor
8401 lt_prog_compiler_static='-Bstatic'
8402 fi
8403 lt_prog_compiler_pic='-fPIC'
8404 ;;
8405
8406 amigaos*)
8407 case $host_cpu in
8408 powerpc)
8409 # see comment about AmigaOS4 .so support
8410 lt_prog_compiler_pic='-fPIC'
8411 ;;
8412 m68k)
8413 # FIXME: we need at least 68020 code to build shared libraries, but
8414 # adding the '-m68020' flag to GCC prevents building anything better,
8415 # like '-m68040'.
8416 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8417 ;;
8418 esac
8419 ;;
8420
8421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8422 # PIC is the default for these OSes.
8423 ;;
8424
8425 mingw* | cygwin* | pw32* | os2* | cegcc*)
8426 # This hack is so that the source file can tell whether it is being
8427 # built for inclusion in a dll (and should export symbols for example).
8428 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8429 # (--disable-auto-import) libraries
8430 lt_prog_compiler_pic='-DDLL_EXPORT'
8431 case $host_os in
8432 os2*)
8433 lt_prog_compiler_static='$wl-static'
8434 ;;
8435 esac
8436 ;;
8437
8438 darwin* | rhapsody*)
8439 # PIC is the default on this platform
8440 # Common symbols not allowed in MH_DYLIB files
8441 lt_prog_compiler_pic='-fno-common'
8442 ;;
8443
8444 haiku*)
8445 # PIC is the default for Haiku.
8446 # The "-static" flag exists, but is broken.
8447 lt_prog_compiler_static=
8448 ;;
8449
8450 hpux*)
8451 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8452 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8453 # sets the default TLS model and affects inlining.
8454 case $host_cpu in
8455 hppa*64*)
8456 # +Z the default
8457 ;;
8458 *)
8459 lt_prog_compiler_pic='-fPIC'
8460 ;;
8461 esac
8462 ;;
8463
8464 interix[3-9]*)
8465 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8466 # Instead, we relocate shared libraries at runtime.
8467 ;;
8468
8469 msdosdjgpp*)
8470 # Just because we use GCC doesn't mean we suddenly get shared libraries
8471 # on systems that don't support them.
8472 lt_prog_compiler_can_build_shared=no
8473 enable_shared=no
8474 ;;
8475
8476 *nto* | *qnx*)
8477 # QNX uses GNU C++, but need to define -shared option too, otherwise
8478 # it will coredump.
8479 lt_prog_compiler_pic='-fPIC -shared'
8480 ;;
8481
8482 sysv4*MP*)
8483 if test -d /usr/nec; then
8484 lt_prog_compiler_pic=-Kconform_pic
8485 fi
8486 ;;
8487
8488 *)
8489 lt_prog_compiler_pic='-fPIC'
8490 ;;
8491 esac
8492
8493 case $cc_basename in
8494 nvcc*) # Cuda Compiler Driver 2.2
8495 lt_prog_compiler_wl='-Xlinker '
8496 if test -n "$lt_prog_compiler_pic"; then
8497 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8498 fi
8499 ;;
8500 esac
8501 else
8502 # PORTME Check for flag to pass linker flags through the system compiler.
8503 case $host_os in
8504 aix*)
8505 lt_prog_compiler_wl='-Wl,'
8506 if test ia64 = "$host_cpu"; then
8507 # AIX 5 now supports IA64 processor
8508 lt_prog_compiler_static='-Bstatic'
8509 else
8510 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8511 fi
8512 ;;
8513
8514 darwin* | rhapsody*)
8515 # PIC is the default on this platform
8516 # Common symbols not allowed in MH_DYLIB files
8517 lt_prog_compiler_pic='-fno-common'
8518 case $cc_basename in
8519 nagfor*)
8520 # NAG Fortran compiler
8521 lt_prog_compiler_wl='-Wl,-Wl,,'
8522 lt_prog_compiler_pic='-PIC'
8523 lt_prog_compiler_static='-Bstatic'
8524 ;;
8525 esac
8526 ;;
8527
8528 mingw* | cygwin* | pw32* | os2* | cegcc*)
8529 # This hack is so that the source file can tell whether it is being
8530 # built for inclusion in a dll (and should export symbols for example).
8531 lt_prog_compiler_pic='-DDLL_EXPORT'
8532 case $host_os in
8533 os2*)
8534 lt_prog_compiler_static='$wl-static'
8535 ;;
8536 esac
8537 ;;
8538
8539 hpux9* | hpux10* | hpux11*)
8540 lt_prog_compiler_wl='-Wl,'
8541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8542 # not for PA HP-UX.
8543 case $host_cpu in
8544 hppa*64*|ia64*)
8545 # +Z the default
8546 ;;
8547 *)
8548 lt_prog_compiler_pic='+Z'
8549 ;;
8550 esac
8551 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8552 lt_prog_compiler_static='$wl-a ${wl}archive'
8553 ;;
8554
8555 irix5* | irix6* | nonstopux*)
8556 lt_prog_compiler_wl='-Wl,'
8557 # PIC (with -KPIC) is the default.
8558 lt_prog_compiler_static='-non_shared'
8559 ;;
8560
8561 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8562 case $cc_basename in
8563 # old Intel for x86_64, which still supported -KPIC.
8564 ecc*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_pic='-KPIC'
8567 lt_prog_compiler_static='-static'
8568 ;;
8569 # icc used to be incompatible with GCC.
8570 # ICC 10 doesn't accept -KPIC any more.
8571 icc* | ifort*)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='-fPIC'
8574 lt_prog_compiler_static='-static'
8575 ;;
8576 # Lahey Fortran 8.1.
8577 lf95*)
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_pic='--shared'
8580 lt_prog_compiler_static='--static'
8581 ;;
8582 nagfor*)
8583 # NAG Fortran compiler
8584 lt_prog_compiler_wl='-Wl,-Wl,,'
8585 lt_prog_compiler_pic='-PIC'
8586 lt_prog_compiler_static='-Bstatic'
8587 ;;
8588 tcc*)
8589 # Fabrice Bellard et al's Tiny C Compiler
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-fPIC'
8592 lt_prog_compiler_static='-static'
8593 ;;
8594 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8595 # Portland Group compilers (*not* the Pentium gcc compiler,
8596 # which looks to be a dead project)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='-fpic'
8599 lt_prog_compiler_static='-Bstatic'
8600 ;;
8601 ccc*)
8602 lt_prog_compiler_wl='-Wl,'
8603 # All Alpha code is PIC.
8604 lt_prog_compiler_static='-non_shared'
8605 ;;
8606 xl* | bgxl* | bgf* | mpixl*)
8607 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8608 lt_prog_compiler_wl='-Wl,'
8609 lt_prog_compiler_pic='-qpic'
8610 lt_prog_compiler_static='-qstaticlink'
8611 ;;
8612 *)
8613 case `$CC -V 2>&1 | sed 5q` in
8614 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8615 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8616 lt_prog_compiler_pic='-KPIC'
8617 lt_prog_compiler_static='-Bstatic'
8618 lt_prog_compiler_wl=''
8619 ;;
8620 *Sun\ F* | *Sun*Fortran*)
8621 lt_prog_compiler_pic='-KPIC'
8622 lt_prog_compiler_static='-Bstatic'
8623 lt_prog_compiler_wl='-Qoption ld '
8624 ;;
8625 *Sun\ C*)
8626 # Sun C 5.9
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8629 lt_prog_compiler_wl='-Wl,'
8630 ;;
8631 *Intel*\ [CF]*Compiler*)
8632 lt_prog_compiler_wl='-Wl,'
8633 lt_prog_compiler_pic='-fPIC'
8634 lt_prog_compiler_static='-static'
8635 ;;
8636 *Portland\ Group*)
8637 lt_prog_compiler_wl='-Wl,'
8638 lt_prog_compiler_pic='-fpic'
8639 lt_prog_compiler_static='-Bstatic'
8640 ;;
8641 esac
8642 ;;
8643 esac
8644 ;;
8645
8646 newsos6)
8647 lt_prog_compiler_pic='-KPIC'
8648 lt_prog_compiler_static='-Bstatic'
8649 ;;
8650
8651 *nto* | *qnx*)
8652 # QNX uses GNU C++, but need to define -shared option too, otherwise
8653 # it will coredump.
8654 lt_prog_compiler_pic='-fPIC -shared'
8655 ;;
8656
8657 osf3* | osf4* | osf5*)
8658 lt_prog_compiler_wl='-Wl,'
8659 # All OSF/1 code is PIC.
8660 lt_prog_compiler_static='-non_shared'
8661 ;;
8662
8663 rdos*)
8664 lt_prog_compiler_static='-non_shared'
8665 ;;
8666
8667 solaris*)
8668 lt_prog_compiler_pic='-KPIC'
8669 lt_prog_compiler_static='-Bstatic'
8670 case $cc_basename in
8671 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8672 lt_prog_compiler_wl='-Qoption ld ';;
8673 *)
8674 lt_prog_compiler_wl='-Wl,';;
8675 esac
8676 ;;
8677
8678 sunos4*)
8679 lt_prog_compiler_wl='-Qoption ld '
8680 lt_prog_compiler_pic='-PIC'
8681 lt_prog_compiler_static='-Bstatic'
8682 ;;
8683
8684 sysv4 | sysv4.2uw2* | sysv4.3*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-KPIC'
8687 lt_prog_compiler_static='-Bstatic'
8688 ;;
8689
8690 sysv4*MP*)
8691 if test -d /usr/nec; then
8692 lt_prog_compiler_pic='-Kconform_pic'
8693 lt_prog_compiler_static='-Bstatic'
8694 fi
8695 ;;
8696
8697 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-KPIC'
8700 lt_prog_compiler_static='-Bstatic'
8701 ;;
8702
8703 unicos*)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_can_build_shared=no
8706 ;;
8707
8708 uts4*)
8709 lt_prog_compiler_pic='-pic'
8710 lt_prog_compiler_static='-Bstatic'
8711 ;;
8712
8713 *)
8714 lt_prog_compiler_can_build_shared=no
8715 ;;
8716 esac
8717 fi
8718
8719case $host_os in
8720 # For platforms that do not support PIC, -DPIC is meaningless:
8721 *djgpp*)
8722 lt_prog_compiler_pic=
8723 ;;
8724 *)
8725 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8726 ;;
8727esac
8728
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8730$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8731if ${lt_cv_prog_compiler_pic+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733else
8734 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8735fi
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8737$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8738lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8739
8740#
8741# Check to make sure the PIC flag actually works.
8742#
8743if test -n "$lt_prog_compiler_pic"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8745$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8746if ${lt_cv_prog_compiler_pic_works+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748else
8749 lt_cv_prog_compiler_pic_works=no
8750 ac_outfile=conftest.$ac_objext
8751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8752 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8753 # Insert the option either (1) after the last *FLAGS variable, or
8754 # (2) before a word containing "conftest.", or (3) at the end.
8755 # Note that $ac_compile itself does not contain backslashes and begins
8756 # with a dollar sign (not a hyphen), so the echo should work correctly.
8757 # The option is referenced via a variable to avoid confusing sed.
8758 lt_compile=`echo "$ac_compile" | $SED \
8759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8761 -e 's:$: $lt_compiler_flag:'`
8762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8763 (eval "$lt_compile" 2>conftest.err)
8764 ac_status=$?
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 if (exit $ac_status) && test -s "$ac_outfile"; then
8768 # The compiler can only warn and ignore the option if not recognized
8769 # So say no if there are warnings other than the usual output.
8770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8772 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8773 lt_cv_prog_compiler_pic_works=yes
8774 fi
8775 fi
8776 $RM conftest*
8777
8778fi
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8780$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8781
8782if test yes = "$lt_cv_prog_compiler_pic_works"; then
8783 case $lt_prog_compiler_pic in
8784 "" | " "*) ;;
8785 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8786 esac
8787else
8788 lt_prog_compiler_pic=
8789 lt_prog_compiler_can_build_shared=no
8790fi
8791
8792fi
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804#
8805# Check to make sure the static flag actually works.
8806#
8807wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8809$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8810if ${lt_cv_prog_compiler_static_works+:} false; then :
8811 $as_echo_n "(cached) " >&6
8812else
8813 lt_cv_prog_compiler_static_works=no
8814 save_LDFLAGS=$LDFLAGS
8815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8818 # The linker can only warn and ignore the option if not recognized
8819 # So say no if there are warnings
8820 if test -s conftest.err; then
8821 # Append any errors to the config.log.
8822 cat conftest.err 1>&5
8823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8825 if diff conftest.exp conftest.er2 >/dev/null; then
8826 lt_cv_prog_compiler_static_works=yes
8827 fi
8828 else
8829 lt_cv_prog_compiler_static_works=yes
8830 fi
8831 fi
8832 $RM -r conftest*
8833 LDFLAGS=$save_LDFLAGS
8834
8835fi
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8837$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8838
8839if test yes = "$lt_cv_prog_compiler_static_works"; then
8840 :
8841else
8842 lt_prog_compiler_static=
8843fi
8844
8845
8846
8847
8848
8849
8850
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8852$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8853if ${lt_cv_prog_compiler_c_o+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855else
8856 lt_cv_prog_compiler_c_o=no
8857 $RM -r conftest 2>/dev/null
8858 mkdir conftest
8859 cd conftest
8860 mkdir out
8861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8862
8863 lt_compiler_flag="-o out/conftest2.$ac_objext"
8864 # Insert the option either (1) after the last *FLAGS variable, or
8865 # (2) before a word containing "conftest.", or (3) at the end.
8866 # Note that $ac_compile itself does not contain backslashes and begins
8867 # with a dollar sign (not a hyphen), so the echo should work correctly.
8868 lt_compile=`echo "$ac_compile" | $SED \
8869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8871 -e 's:$: $lt_compiler_flag:'`
8872 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8873 (eval "$lt_compile" 2>out/conftest.err)
8874 ac_status=$?
8875 cat out/conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8878 then
8879 # The compiler can only warn and ignore the option if not recognized
8880 # So say no if there are warnings
8881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8884 lt_cv_prog_compiler_c_o=yes
8885 fi
8886 fi
8887 chmod u+w . 2>&5
8888 $RM conftest*
8889 # SGI C++ compiler will create directory out/ii_files/ for
8890 # template instantiation
8891 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8892 $RM out/* && rmdir out
8893 cd ..
8894 $RM -r conftest
8895 $RM conftest*
8896
8897fi
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8899$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8900
8901
8902
8903
8904
8905
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8907$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8908if ${lt_cv_prog_compiler_c_o+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910else
8911 lt_cv_prog_compiler_c_o=no
8912 $RM -r conftest 2>/dev/null
8913 mkdir conftest
8914 cd conftest
8915 mkdir out
8916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8917
8918 lt_compiler_flag="-o out/conftest2.$ac_objext"
8919 # Insert the option either (1) after the last *FLAGS variable, or
8920 # (2) before a word containing "conftest.", or (3) at the end.
8921 # Note that $ac_compile itself does not contain backslashes and begins
8922 # with a dollar sign (not a hyphen), so the echo should work correctly.
8923 lt_compile=`echo "$ac_compile" | $SED \
8924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8926 -e 's:$: $lt_compiler_flag:'`
8927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8928 (eval "$lt_compile" 2>out/conftest.err)
8929 ac_status=$?
8930 cat out/conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8933 then
8934 # The compiler can only warn and ignore the option if not recognized
8935 # So say no if there are warnings
8936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8937 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8938 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8939 lt_cv_prog_compiler_c_o=yes
8940 fi
8941 fi
8942 chmod u+w . 2>&5
8943 $RM conftest*
8944 # SGI C++ compiler will create directory out/ii_files/ for
8945 # template instantiation
8946 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8947 $RM out/* && rmdir out
8948 cd ..
8949 $RM -r conftest
8950 $RM conftest*
8951
8952fi
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8954$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8955
8956
8957
8958
8959hard_links=nottested
8960if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8961 # do not overwrite the value of need_locks provided by the user
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8963$as_echo_n "checking if we can lock with hard links... " >&6; }
8964 hard_links=yes
8965 $RM conftest*
8966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8967 touch conftest.a
8968 ln conftest.a conftest.b 2>&5 || hard_links=no
8969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8971$as_echo "$hard_links" >&6; }
8972 if test no = "$hard_links"; then
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8974$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8975 need_locks=warn
8976 fi
8977else
8978 need_locks=no
8979fi
8980
8981
8982
8983
8984
8985
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8987$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8988
8989 runpath_var=
8990 allow_undefined_flag=
8991 always_export_symbols=no
8992 archive_cmds=
8993 archive_expsym_cmds=
8994 compiler_needs_object=no
8995 enable_shared_with_static_runtimes=no
8996 export_dynamic_flag_spec=
8997 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8998 hardcode_automatic=no
8999 hardcode_direct=no
9000 hardcode_direct_absolute=no
9001 hardcode_libdir_flag_spec=
9002 hardcode_libdir_separator=
9003 hardcode_minus_L=no
9004 hardcode_shlibpath_var=unsupported
9005 inherit_rpath=no
9006 link_all_deplibs=unknown
9007 module_cmds=
9008 module_expsym_cmds=
9009 old_archive_from_new_cmds=
9010 old_archive_from_expsyms_cmds=
9011 thread_safe_flag_spec=
9012 whole_archive_flag_spec=
9013 # include_expsyms should be a list of space-separated symbols to be *always*
9014 # included in the symbol list
9015 include_expsyms=
9016 # exclude_expsyms can be an extended regexp of symbols to exclude
9017 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9018 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9019 # as well as any symbol that contains 'd'.
9020 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9021 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9022 # platforms (ab)use it in PIC code, but their linkers get confused if
9023 # the symbol is explicitly referenced. Since portable code cannot
9024 # rely on this symbol name, it's probably fine to never include it in
9025 # preloaded symbol tables.
9026 # Exclude shared library initialization/finalization symbols.
9027 extract_expsyms_cmds=
9028
9029 case $host_os in
9030 cygwin* | mingw* | pw32* | cegcc*)
9031 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9032 # When not using gcc, we currently assume that we are using
9033 # Microsoft Visual C++.
9034 if test yes != "$GCC"; then
9035 with_gnu_ld=no
9036 fi
9037 ;;
9038 interix*)
9039 # we just hope/assume this is gcc and not c89 (= MSVC++)
9040 with_gnu_ld=yes
9041 ;;
9042 openbsd* | bitrig*)
9043 with_gnu_ld=no
9044 ;;
9045 esac
9046
9047 ld_shlibs=yes
9048
9049 # On some targets, GNU ld is compatible enough with the native linker
9050 # that we're better off using the native interface for both.
9051 lt_use_gnu_ld_interface=no
9052 if test yes = "$with_gnu_ld"; then
9053 case $host_os in
9054 aix*)
9055 # The AIX port of GNU ld has always aspired to compatibility
9056 # with the native linker. However, as the warning in the GNU ld
9057 # block says, versions before 2.19.5* couldn't really create working
9058 # shared libraries, regardless of the interface used.
9059 case `$LD -v 2>&1` in
9060 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9061 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9062 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9063 *)
9064 lt_use_gnu_ld_interface=yes
9065 ;;
9066 esac
9067 ;;
9068 *)
9069 lt_use_gnu_ld_interface=yes
9070 ;;
9071 esac
9072 fi
9073
9074 if test yes = "$lt_use_gnu_ld_interface"; then
9075 # If archive_cmds runs LD, not CC, wlarc should be empty
9076 wlarc='$wl'
9077
9078 # Set some defaults for GNU ld with shared library support. These
9079 # are reset later if shared libraries are not supported. Putting them
9080 # here allows them to be overridden if necessary.
9081 runpath_var=LD_RUN_PATH
9082 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9083 export_dynamic_flag_spec='$wl--export-dynamic'
9084 # ancient GNU ld didn't support --whole-archive et. al.
9085 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9086 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9087 else
9088 whole_archive_flag_spec=
9089 fi
9090 supports_anon_versioning=no
9091 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9092 *GNU\ gold*) supports_anon_versioning=yes ;;
9093 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9094 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9095 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9096 *\ 2.11.*) ;; # other 2.11 versions
9097 *) supports_anon_versioning=yes ;;
9098 esac
9099
9100 # See if GNU ld supports shared libraries.
9101 case $host_os in
9102 aix[3-9]*)
9103 # On AIX/PPC, the GNU linker is very broken
9104 if test ia64 != "$host_cpu"; then
9105 ld_shlibs=no
9106 cat <<_LT_EOF 1>&2
9107
9108*** Warning: the GNU linker, at least up to release 2.19, is reported
9109*** to be unable to reliably create shared libraries on AIX.
9110*** Therefore, libtool is disabling shared libraries support. If you
9111*** really care for shared libraries, you may want to install binutils
9112*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9113*** You will then need to restart the configuration process.
9114
9115_LT_EOF
9116 fi
9117 ;;
9118
9119 amigaos*)
9120 case $host_cpu in
9121 powerpc)
9122 # see comment about AmigaOS4 .so support
9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9124 archive_expsym_cmds=''
9125 ;;
9126 m68k)
9127 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)'
9128 hardcode_libdir_flag_spec='-L$libdir'
9129 hardcode_minus_L=yes
9130 ;;
9131 esac
9132 ;;
9133
9134 beos*)
9135 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9136 allow_undefined_flag=unsupported
9137 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9138 # support --undefined. This deserves some investigation. FIXME
9139 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9140 else
9141 ld_shlibs=no
9142 fi
9143 ;;
9144
9145 cygwin* | mingw* | pw32* | cegcc*)
9146 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9147 # as there is no search path for DLLs.
9148 hardcode_libdir_flag_spec='-L$libdir'
9149 export_dynamic_flag_spec='$wl--export-all-symbols'
9150 allow_undefined_flag=unsupported
9151 always_export_symbols=no
9152 enable_shared_with_static_runtimes=yes
9153 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'
9154 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9155
9156 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9158 # If the export-symbols file already is a .def file, use it as
9159 # is; otherwise, prepend EXPORTS...
9160 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9161 cp $export_symbols $output_objdir/$soname.def;
9162 else
9163 echo EXPORTS > $output_objdir/$soname.def;
9164 cat $export_symbols >> $output_objdir/$soname.def;
9165 fi~
9166 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9167 else
9168 ld_shlibs=no
9169 fi
9170 ;;
9171
9172 haiku*)
9173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9174 link_all_deplibs=yes
9175 ;;
9176
9177 os2*)
9178 hardcode_libdir_flag_spec='-L$libdir'
9179 hardcode_minus_L=yes
9180 allow_undefined_flag=unsupported
9181 shrext_cmds=.dll
9182 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9183 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9184 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9185 $ECHO EXPORTS >> $output_objdir/$libname.def~
9186 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9187 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9188 emximp -o $lib $output_objdir/$libname.def'
9189 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9190 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9191 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9192 $ECHO EXPORTS >> $output_objdir/$libname.def~
9193 prefix_cmds="$SED"~
9194 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9195 prefix_cmds="$prefix_cmds -e 1d";
9196 fi~
9197 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9198 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9199 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9200 emximp -o $lib $output_objdir/$libname.def'
9201 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9202 enable_shared_with_static_runtimes=yes
9203 ;;
9204
9205 interix[3-9]*)
9206 hardcode_direct=no
9207 hardcode_shlibpath_var=no
9208 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9209 export_dynamic_flag_spec='$wl-E'
9210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9211 # Instead, shared libraries are loaded at an image base (0x10000000 by
9212 # default) and relocated if they conflict, which is a slow very memory
9213 # consuming and fragmenting process. To avoid this, we pick a random,
9214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9215 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9217 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'
9218 ;;
9219
9220 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9221 tmp_diet=no
9222 if test linux-dietlibc = "$host_os"; then
9223 case $cc_basename in
9224 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9225 esac
9226 fi
9227 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9228 && test no = "$tmp_diet"
9229 then
9230 tmp_addflag=' $pic_flag'
9231 tmp_sharedflag='-shared'
9232 case $cc_basename,$host_cpu in
9233 pgcc*) # Portland Group C compiler
9234 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'
9235 tmp_addflag=' $pic_flag'
9236 ;;
9237 pgf77* | pgf90* | pgf95* | pgfortran*)
9238 # Portland Group f77 and f90 compilers
9239 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'
9240 tmp_addflag=' $pic_flag -Mnomain' ;;
9241 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9242 tmp_addflag=' -i_dynamic' ;;
9243 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9244 tmp_addflag=' -i_dynamic -nofor_main' ;;
9245 ifc* | ifort*) # Intel Fortran compiler
9246 tmp_addflag=' -nofor_main' ;;
9247 lf95*) # Lahey Fortran 8.1
9248 whole_archive_flag_spec=
9249 tmp_sharedflag='--shared' ;;
9250 nagfor*) # NAGFOR 5.3
9251 tmp_sharedflag='-Wl,-shared' ;;
9252 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9253 tmp_sharedflag='-qmkshrobj'
9254 tmp_addflag= ;;
9255 nvcc*) # Cuda Compiler Driver 2.2
9256 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'
9257 compiler_needs_object=yes
9258 ;;
9259 esac
9260 case `$CC -V 2>&1 | sed 5q` in
9261 *Sun\ C*) # Sun C 5.9
9262 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'
9263 compiler_needs_object=yes
9264 tmp_sharedflag='-G' ;;
9265 *Sun\ F*) # Sun Fortran 8.3
9266 tmp_sharedflag='-G' ;;
9267 esac
9268 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9269
9270 if test yes = "$supports_anon_versioning"; then
9271 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9272 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9273 echo "local: *; };" >> $output_objdir/$libname.ver~
9274 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9275 fi
9276
9277 case $cc_basename in
9278 tcc*)
9279 export_dynamic_flag_spec='-rdynamic'
9280 ;;
9281 xlf* | bgf* | bgxlf* | mpixlf*)
9282 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9283 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9284 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9285 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9286 if test yes = "$supports_anon_versioning"; then
9287 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9288 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9289 echo "local: *; };" >> $output_objdir/$libname.ver~
9290 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9291 fi
9292 ;;
9293 esac
9294 else
9295 ld_shlibs=no
9296 fi
9297 ;;
9298
9299 netbsd*)
9300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9301 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9302 wlarc=
9303 else
9304 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9305 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9306 fi
9307 ;;
9308
9309 solaris*)
9310 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9311 ld_shlibs=no
9312 cat <<_LT_EOF 1>&2
9313
9314*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9315*** create shared libraries on Solaris systems. Therefore, libtool
9316*** is disabling shared libraries support. We urge you to upgrade GNU
9317*** binutils to release 2.9.1 or newer. Another option is to modify
9318*** your PATH or compiler configuration so that the native linker is
9319*** used, and then restart.
9320
9321_LT_EOF
9322 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9325 else
9326 ld_shlibs=no
9327 fi
9328 ;;
9329
9330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9331 case `$LD -v 2>&1` in
9332 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9333 ld_shlibs=no
9334 cat <<_LT_EOF 1>&2
9335
9336*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9337*** reliably create shared libraries on SCO systems. Therefore, libtool
9338*** is disabling shared libraries support. We urge you to upgrade GNU
9339*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9340*** your PATH or compiler configuration so that the native linker is
9341*** used, and then restart.
9342
9343_LT_EOF
9344 ;;
9345 *)
9346 # For security reasons, it is highly recommended that you always
9347 # use absolute paths for naming shared libraries, and exclude the
9348 # DT_RUNPATH tag from executables and libraries. But doing so
9349 # requires that you compile everything twice, which is a pain.
9350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9351 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9354 else
9355 ld_shlibs=no
9356 fi
9357 ;;
9358 esac
9359 ;;
9360
9361 sunos4*)
9362 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9363 wlarc=
9364 hardcode_direct=yes
9365 hardcode_shlibpath_var=no
9366 ;;
9367
9368 *)
9369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9371 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9372 else
9373 ld_shlibs=no
9374 fi
9375 ;;
9376 esac
9377
9378 if test no = "$ld_shlibs"; then
9379 runpath_var=
9380 hardcode_libdir_flag_spec=
9381 export_dynamic_flag_spec=
9382 whole_archive_flag_spec=
9383 fi
9384 else
9385 # PORTME fill in a description of your system's linker (not GNU ld)
9386 case $host_os in
9387 aix3*)
9388 allow_undefined_flag=unsupported
9389 always_export_symbols=yes
9390 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'
9391 # Note: this linker hardcodes the directories in LIBPATH if there
9392 # are no directories specified by -L.
9393 hardcode_minus_L=yes
9394 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9395 # Neither direct hardcoding nor static linking is supported with a
9396 # broken collect2.
9397 hardcode_direct=unsupported
9398 fi
9399 ;;
9400
9401 aix[4-9]*)
9402 if test ia64 = "$host_cpu"; then
9403 # On IA64, the linker does run time linking by default, so we don't
9404 # have to do anything special.
9405 aix_use_runtimelinking=no
9406 exp_sym_flag='-Bexport'
9407 no_entry_flag=
9408 else
9409 # If we're using GNU nm, then we don't want the "-C" option.
9410 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9411 # Without the "-l" option, or with the "-B" option, AIX nm treats
9412 # weak defined symbols like other global defined symbols, whereas
9413 # GNU nm marks them as "W".
9414 # While the 'weak' keyword is ignored in the Export File, we need
9415 # it in the Import File for the 'aix-soname' feature, so we have
9416 # to replace the "-B" option with "-P" for AIX nm.
9417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9418 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'
9419 else
9420 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'
9421 fi
9422 aix_use_runtimelinking=no
9423
9424 # Test if we are trying to use run time linking or normal
9425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9426 # have runtime linking enabled, and use it for executables.
9427 # For shared libraries, we enable/disable runtime linking
9428 # depending on the kind of the shared library created -
9429 # when "with_aix_soname,aix_use_runtimelinking" is:
9430 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9431 # "aix,yes" lib.so shared, rtl:yes, for executables
9432 # lib.a static archive
9433 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9434 # lib.a(lib.so.V) shared, rtl:no, for executables
9435 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9436 # lib.a(lib.so.V) shared, rtl:no
9437 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9438 # lib.a static archive
9439 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9440 for ld_flag in $LDFLAGS; do
9441 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9442 aix_use_runtimelinking=yes
9443 break
9444 fi
9445 done
9446 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9447 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9448 # so we don't have lib.a shared libs to link our executables.
9449 # We have to force runtime linking in this case.
9450 aix_use_runtimelinking=yes
9451 LDFLAGS="$LDFLAGS -Wl,-brtl"
9452 fi
9453 ;;
9454 esac
9455
9456 exp_sym_flag='-bexport'
9457 no_entry_flag='-bnoentry'
9458 fi
9459
9460 # When large executables or shared objects are built, AIX ld can
9461 # have problems creating the table of contents. If linking a library
9462 # or program results in "error TOC overflow" add -mminimal-toc to
9463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9465
9466 archive_cmds=''
9467 hardcode_direct=yes
9468 hardcode_direct_absolute=yes
9469 hardcode_libdir_separator=':'
9470 link_all_deplibs=yes
9471 file_list_spec='$wl-f,'
9472 case $with_aix_soname,$aix_use_runtimelinking in
9473 aix,*) ;; # traditional, no import file
9474 svr4,* | *,yes) # use import file
9475 # The Import File defines what to hardcode.
9476 hardcode_direct=no
9477 hardcode_direct_absolute=no
9478 ;;
9479 esac
9480
9481 if test yes = "$GCC"; then
9482 case $host_os in aix4.[012]|aix4.[012].*)
9483 # We only want to do this on AIX 4.2 and lower, the check
9484 # below for broken collect2 doesn't work under 4.3+
9485 collect2name=`$CC -print-prog-name=collect2`
9486 if test -f "$collect2name" &&
9487 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9488 then
9489 # We have reworked collect2
9490 :
9491 else
9492 # We have old collect2
9493 hardcode_direct=unsupported
9494 # It fails to find uninstalled libraries when the uninstalled
9495 # path is not listed in the libpath. Setting hardcode_minus_L
9496 # to unsupported forces relinking
9497 hardcode_minus_L=yes
9498 hardcode_libdir_flag_spec='-L$libdir'
9499 hardcode_libdir_separator=
9500 fi
9501 ;;
9502 esac
9503 shared_flag='-shared'
9504 if test yes = "$aix_use_runtimelinking"; then
9505 shared_flag="$shared_flag "'$wl-G'
9506 fi
9507 # Need to ensure runtime linking is disabled for the traditional
9508 # shared library, or the linker may eventually find shared libraries
9509 # /with/ Import File - we do not want to mix them.
9510 shared_flag_aix='-shared'
9511 shared_flag_svr4='-shared $wl-G'
9512 else
9513 # not using gcc
9514 if test ia64 = "$host_cpu"; then
9515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9516 # chokes on -Wl,-G. The following line is correct:
9517 shared_flag='-G'
9518 else
9519 if test yes = "$aix_use_runtimelinking"; then
9520 shared_flag='$wl-G'
9521 else
9522 shared_flag='$wl-bM:SRE'
9523 fi
9524 shared_flag_aix='$wl-bM:SRE'
9525 shared_flag_svr4='$wl-G'
9526 fi
9527 fi
9528
9529 export_dynamic_flag_spec='$wl-bexpall'
9530 # It seems that -bexpall does not export symbols beginning with
9531 # underscore (_), so it is better to generate a list of symbols to export.
9532 always_export_symbols=yes
9533 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9534 # Warning - without using the other runtime loading flags (-brtl),
9535 # -berok will link without error, but may produce a broken library.
9536 allow_undefined_flag='-berok'
9537 # Determine the default libpath from the value encoded in an
9538 # empty executable.
9539 if test set = "${lt_cv_aix_libpath+set}"; then
9540 aix_libpath=$lt_cv_aix_libpath
9541else
9542 if ${lt_cv_aix_libpath_+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544else
9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546/* end confdefs.h. */
9547
9548int
9549main ()
9550{
9551
9552 ;
9553 return 0;
9554}
9555_ACEOF
9556if ac_fn_c_try_link "$LINENO"; then :
9557
9558 lt_aix_libpath_sed='
9559 /Import File Strings/,/^$/ {
9560 /^0/ {
9561 s/^0 *\([^ ]*\) *$/\1/
9562 p
9563 }
9564 }'
9565 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9566 # Check for a 64-bit object if we didn't find anything.
9567 if test -z "$lt_cv_aix_libpath_"; then
9568 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9569 fi
9570fi
9571rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 if test -z "$lt_cv_aix_libpath_"; then
9574 lt_cv_aix_libpath_=/usr/lib:/lib
9575 fi
9576
9577fi
9578
9579 aix_libpath=$lt_cv_aix_libpath_
9580fi
9581
9582 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9583 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
9584 else
9585 if test ia64 = "$host_cpu"; then
9586 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9587 allow_undefined_flag="-z nodefs"
9588 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"
9589 else
9590 # Determine the default libpath from the value encoded in an
9591 # empty executable.
9592 if test set = "${lt_cv_aix_libpath+set}"; then
9593 aix_libpath=$lt_cv_aix_libpath
9594else
9595 if ${lt_cv_aix_libpath_+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597else
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599/* end confdefs.h. */
9600
9601int
9602main ()
9603{
9604
9605 ;
9606 return 0;
9607}
9608_ACEOF
9609if ac_fn_c_try_link "$LINENO"; then :
9610
9611 lt_aix_libpath_sed='
9612 /Import File Strings/,/^$/ {
9613 /^0/ {
9614 s/^0 *\([^ ]*\) *$/\1/
9615 p
9616 }
9617 }'
9618 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619 # Check for a 64-bit object if we didn't find anything.
9620 if test -z "$lt_cv_aix_libpath_"; then
9621 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622 fi
9623fi
9624rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9626 if test -z "$lt_cv_aix_libpath_"; then
9627 lt_cv_aix_libpath_=/usr/lib:/lib
9628 fi
9629
9630fi
9631
9632 aix_libpath=$lt_cv_aix_libpath_
9633fi
9634
9635 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9636 # Warning - without using the other run time loading flags,
9637 # -berok will link without error, but may produce a broken library.
9638 no_undefined_flag=' $wl-bernotok'
9639 allow_undefined_flag=' $wl-berok'
9640 if test yes = "$with_gnu_ld"; then
9641 # We only use this code for GNU lds that support --whole-archive.
9642 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9643 else
9644 # Exported symbols can be pulled into shared objects from archives
9645 whole_archive_flag_spec='$convenience'
9646 fi
9647 archive_cmds_need_lc=yes
9648 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9649 # -brtl affects multiple linker settings, -berok does not and is overridden later
9650 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9651 if test svr4 != "$with_aix_soname"; then
9652 # This is similar to how AIX traditionally builds its shared libraries.
9653 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'
9654 fi
9655 if test aix != "$with_aix_soname"; then
9656 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'
9657 else
9658 # used by -dlpreopen to get the symbols
9659 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9660 fi
9661 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9662 fi
9663 fi
9664 ;;
9665
9666 amigaos*)
9667 case $host_cpu in
9668 powerpc)
9669 # see comment about AmigaOS4 .so support
9670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9671 archive_expsym_cmds=''
9672 ;;
9673 m68k)
9674 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)'
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_minus_L=yes
9677 ;;
9678 esac
9679 ;;
9680
9681 bsdi[45]*)
9682 export_dynamic_flag_spec=-rdynamic
9683 ;;
9684
9685 cygwin* | mingw* | pw32* | cegcc*)
9686 # When not using gcc, we currently assume that we are using
9687 # Microsoft Visual C++.
9688 # hardcode_libdir_flag_spec is actually meaningless, as there is
9689 # no search path for DLLs.
9690 case $cc_basename in
9691 cl*)
9692 # Native MSVC
9693 hardcode_libdir_flag_spec=' '
9694 allow_undefined_flag=unsupported
9695 always_export_symbols=yes
9696 file_list_spec='@'
9697 # Tell ltmain to make .lib files, not .a files.
9698 libext=lib
9699 # Tell ltmain to make .dll files, not .so files.
9700 shrext_cmds=.dll
9701 # FIXME: Setting linknames here is a bad hack.
9702 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9703 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9704 cp "$export_symbols" "$output_objdir/$soname.def";
9705 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9706 else
9707 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9708 fi~
9709 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9710 linknames='
9711 # The linker will not automatically build a static lib if we build a DLL.
9712 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9713 enable_shared_with_static_runtimes=yes
9714 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9715 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9716 # Don't use ranlib
9717 old_postinstall_cmds='chmod 644 $oldlib'
9718 postlink_cmds='lt_outputfile="@OUTPUT@"~
9719 lt_tool_outputfile="@TOOL_OUTPUT@"~
9720 case $lt_outputfile in
9721 *.exe|*.EXE) ;;
9722 *)
9723 lt_outputfile=$lt_outputfile.exe
9724 lt_tool_outputfile=$lt_tool_outputfile.exe
9725 ;;
9726 esac~
9727 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9728 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9729 $RM "$lt_outputfile.manifest";
9730 fi'
9731 ;;
9732 *)
9733 # Assume MSVC wrapper
9734 hardcode_libdir_flag_spec=' '
9735 allow_undefined_flag=unsupported
9736 # Tell ltmain to make .lib files, not .a files.
9737 libext=lib
9738 # Tell ltmain to make .dll files, not .so files.
9739 shrext_cmds=.dll
9740 # FIXME: Setting linknames here is a bad hack.
9741 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9742 # The linker will automatically build a .lib file if we build a DLL.
9743 old_archive_from_new_cmds='true'
9744 # FIXME: Should let the user specify the lib program.
9745 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9746 enable_shared_with_static_runtimes=yes
9747 ;;
9748 esac
9749 ;;
9750
9751 darwin* | rhapsody*)
9752
9753
9754 archive_cmds_need_lc=no
9755 hardcode_direct=no
9756 hardcode_automatic=yes
9757 hardcode_shlibpath_var=unsupported
9758 if test yes = "$lt_cv_ld_force_load"; then
9759 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\"`'
9760
9761 else
9762 whole_archive_flag_spec=''
9763 fi
9764 link_all_deplibs=yes
9765 allow_undefined_flag=$_lt_dar_allow_undefined
9766 case $cc_basename in
9767 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9768 *) _lt_dar_can_shared=$GCC ;;
9769 esac
9770 if test yes = "$_lt_dar_can_shared"; then
9771 output_verbose_link_cmd=func_echo_all
9772 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9773 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9774 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"
9775 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"
9776
9777 else
9778 ld_shlibs=no
9779 fi
9780
9781 ;;
9782
9783 dgux*)
9784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785 hardcode_libdir_flag_spec='-L$libdir'
9786 hardcode_shlibpath_var=no
9787 ;;
9788
9789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9790 # support. Future versions do this automatically, but an explicit c++rt0.o
9791 # does not break anything, and helps significantly (at the cost of a little
9792 # extra space).
9793 freebsd2.2*)
9794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9795 hardcode_libdir_flag_spec='-R$libdir'
9796 hardcode_direct=yes
9797 hardcode_shlibpath_var=no
9798 ;;
9799
9800 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9801 freebsd2.*)
9802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9803 hardcode_direct=yes
9804 hardcode_minus_L=yes
9805 hardcode_shlibpath_var=no
9806 ;;
9807
9808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9809 freebsd* | dragonfly*)
9810 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9811 hardcode_libdir_flag_spec='-R$libdir'
9812 hardcode_direct=yes
9813 hardcode_shlibpath_var=no
9814 ;;
9815
9816 hpux9*)
9817 if test yes = "$GCC"; then
9818 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'
9819 else
9820 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'
9821 fi
9822 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9823 hardcode_libdir_separator=:
9824 hardcode_direct=yes
9825
9826 # hardcode_minus_L: Not really in the search PATH,
9827 # but as the default location of the library.
9828 hardcode_minus_L=yes
9829 export_dynamic_flag_spec='$wl-E'
9830 ;;
9831
9832 hpux10*)
9833 if test yes,no = "$GCC,$with_gnu_ld"; then
9834 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9835 else
9836 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9837 fi
9838 if test no = "$with_gnu_ld"; then
9839 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9840 hardcode_libdir_separator=:
9841 hardcode_direct=yes
9842 hardcode_direct_absolute=yes
9843 export_dynamic_flag_spec='$wl-E'
9844 # hardcode_minus_L: Not really in the search PATH,
9845 # but as the default location of the library.
9846 hardcode_minus_L=yes
9847 fi
9848 ;;
9849
9850 hpux11*)
9851 if test yes,no = "$GCC,$with_gnu_ld"; then
9852 case $host_cpu in
9853 hppa*64*)
9854 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9855 ;;
9856 ia64*)
9857 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9858 ;;
9859 *)
9860 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9861 ;;
9862 esac
9863 else
9864 case $host_cpu in
9865 hppa*64*)
9866 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9867 ;;
9868 ia64*)
9869 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9870 ;;
9871 *)
9872
9873 # Older versions of the 11.00 compiler do not understand -b yet
9874 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9876$as_echo_n "checking if $CC understands -b... " >&6; }
9877if ${lt_cv_prog_compiler__b+:} false; then :
9878 $as_echo_n "(cached) " >&6
9879else
9880 lt_cv_prog_compiler__b=no
9881 save_LDFLAGS=$LDFLAGS
9882 LDFLAGS="$LDFLAGS -b"
9883 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9884 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9885 # The linker can only warn and ignore the option if not recognized
9886 # So say no if there are warnings
9887 if test -s conftest.err; then
9888 # Append any errors to the config.log.
9889 cat conftest.err 1>&5
9890 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9892 if diff conftest.exp conftest.er2 >/dev/null; then
9893 lt_cv_prog_compiler__b=yes
9894 fi
9895 else
9896 lt_cv_prog_compiler__b=yes
9897 fi
9898 fi
9899 $RM -r conftest*
9900 LDFLAGS=$save_LDFLAGS
9901
9902fi
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9904$as_echo "$lt_cv_prog_compiler__b" >&6; }
9905
9906if test yes = "$lt_cv_prog_compiler__b"; then
9907 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9908else
9909 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9910fi
9911
9912 ;;
9913 esac
9914 fi
9915 if test no = "$with_gnu_ld"; then
9916 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9917 hardcode_libdir_separator=:
9918
9919 case $host_cpu in
9920 hppa*64*|ia64*)
9921 hardcode_direct=no
9922 hardcode_shlibpath_var=no
9923 ;;
9924 *)
9925 hardcode_direct=yes
9926 hardcode_direct_absolute=yes
9927 export_dynamic_flag_spec='$wl-E'
9928
9929 # hardcode_minus_L: Not really in the search PATH,
9930 # but as the default location of the library.
9931 hardcode_minus_L=yes
9932 ;;
9933 esac
9934 fi
9935 ;;
9936
9937 irix5* | irix6* | nonstopux*)
9938 if test yes = "$GCC"; then
9939 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'
9940 # Try to use the -exported_symbol ld option, if it does not
9941 # work, assume that -exports_file does not work either and
9942 # implicitly export all symbols.
9943 # This should be the same for all languages, so no per-tag cache variable.
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9945$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9946if ${lt_cv_irix_exported_symbol+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948else
9949 save_LDFLAGS=$LDFLAGS
9950 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952/* end confdefs.h. */
9953int foo (void) { return 0; }
9954_ACEOF
9955if ac_fn_c_try_link "$LINENO"; then :
9956 lt_cv_irix_exported_symbol=yes
9957else
9958 lt_cv_irix_exported_symbol=no
9959fi
9960rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 LDFLAGS=$save_LDFLAGS
9963fi
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9965$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9966 if test yes = "$lt_cv_irix_exported_symbol"; then
9967 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'
9968 fi
9969 else
9970 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'
9971 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'
9972 fi
9973 archive_cmds_need_lc='no'
9974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9975 hardcode_libdir_separator=:
9976 inherit_rpath=yes
9977 link_all_deplibs=yes
9978 ;;
9979
9980 linux*)
9981 case $cc_basename in
9982 tcc*)
9983 # Fabrice Bellard et al's Tiny C Compiler
9984 ld_shlibs=yes
9985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986 ;;
9987 esac
9988 ;;
9989
9990 netbsd*)
9991 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9993 else
9994 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9995 fi
9996 hardcode_libdir_flag_spec='-R$libdir'
9997 hardcode_direct=yes
9998 hardcode_shlibpath_var=no
9999 ;;
10000
10001 newsos6)
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_direct=yes
10004 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10005 hardcode_libdir_separator=:
10006 hardcode_shlibpath_var=no
10007 ;;
10008
10009 *nto* | *qnx*)
10010 ;;
10011
10012 openbsd* | bitrig*)
10013 if test -f /usr/libexec/ld.so; then
10014 hardcode_direct=yes
10015 hardcode_shlibpath_var=no
10016 hardcode_direct_absolute=yes
10017 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10018 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10020 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10021 export_dynamic_flag_spec='$wl-E'
10022 else
10023 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10024 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10025 fi
10026 else
10027 ld_shlibs=no
10028 fi
10029 ;;
10030
10031 os2*)
10032 hardcode_libdir_flag_spec='-L$libdir'
10033 hardcode_minus_L=yes
10034 allow_undefined_flag=unsupported
10035 shrext_cmds=.dll
10036 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10037 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10038 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10039 $ECHO EXPORTS >> $output_objdir/$libname.def~
10040 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10042 emximp -o $lib $output_objdir/$libname.def'
10043 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10044 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10045 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10046 $ECHO EXPORTS >> $output_objdir/$libname.def~
10047 prefix_cmds="$SED"~
10048 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10049 prefix_cmds="$prefix_cmds -e 1d";
10050 fi~
10051 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10052 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10053 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10054 emximp -o $lib $output_objdir/$libname.def'
10055 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10056 enable_shared_with_static_runtimes=yes
10057 ;;
10058
10059 osf3*)
10060 if test yes = "$GCC"; then
10061 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10062 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'
10063 else
10064 allow_undefined_flag=' -expect_unresolved \*'
10065 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'
10066 fi
10067 archive_cmds_need_lc='no'
10068 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10069 hardcode_libdir_separator=:
10070 ;;
10071
10072 osf4* | osf5*) # as osf3* with the addition of -msym flag
10073 if test yes = "$GCC"; then
10074 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10075 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'
10076 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10077 else
10078 allow_undefined_flag=' -expect_unresolved \*'
10079 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'
10080 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~
10081 $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'
10082
10083 # Both c and cxx compiler support -rpath directly
10084 hardcode_libdir_flag_spec='-rpath $libdir'
10085 fi
10086 archive_cmds_need_lc='no'
10087 hardcode_libdir_separator=:
10088 ;;
10089
10090 solaris*)
10091 no_undefined_flag=' -z defs'
10092 if test yes = "$GCC"; then
10093 wlarc='$wl'
10094 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10096 $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'
10097 else
10098 case `$CC -V 2>&1` in
10099 *"Compilers 5.0"*)
10100 wlarc=''
10101 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10103 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10104 ;;
10105 *)
10106 wlarc='$wl'
10107 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10110 ;;
10111 esac
10112 fi
10113 hardcode_libdir_flag_spec='-R$libdir'
10114 hardcode_shlibpath_var=no
10115 case $host_os in
10116 solaris2.[0-5] | solaris2.[0-5].*) ;;
10117 *)
10118 # The compiler driver will combine and reorder linker options,
10119 # but understands '-z linker_flag'. GCC discards it without '$wl',
10120 # but is careful enough not to reorder.
10121 # Supported since Solaris 2.6 (maybe 2.5.1?)
10122 if test yes = "$GCC"; then
10123 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10124 else
10125 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10126 fi
10127 ;;
10128 esac
10129 link_all_deplibs=yes
10130 ;;
10131
10132 sunos4*)
10133 if test sequent = "$host_vendor"; then
10134 # Use $CC to link under sequent, because it throws in some extra .o
10135 # files that make .init and .fini sections work.
10136 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10137 else
10138 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10139 fi
10140 hardcode_libdir_flag_spec='-L$libdir'
10141 hardcode_direct=yes
10142 hardcode_minus_L=yes
10143 hardcode_shlibpath_var=no
10144 ;;
10145
10146 sysv4)
10147 case $host_vendor in
10148 sni)
10149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_direct=yes # is this really true???
10151 ;;
10152 siemens)
10153 ## LD is ld it makes a PLAMLIB
10154 ## CC just makes a GrossModule.
10155 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10156 reload_cmds='$CC -r -o $output$reload_objs'
10157 hardcode_direct=no
10158 ;;
10159 motorola)
10160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10162 ;;
10163 esac
10164 runpath_var='LD_RUN_PATH'
10165 hardcode_shlibpath_var=no
10166 ;;
10167
10168 sysv4.3*)
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_shlibpath_var=no
10171 export_dynamic_flag_spec='-Bexport'
10172 ;;
10173
10174 sysv4*MP*)
10175 if test -d /usr/nec; then
10176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_shlibpath_var=no
10178 runpath_var=LD_RUN_PATH
10179 hardcode_runpath_var=yes
10180 ld_shlibs=yes
10181 fi
10182 ;;
10183
10184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10185 no_undefined_flag='$wl-z,text'
10186 archive_cmds_need_lc=no
10187 hardcode_shlibpath_var=no
10188 runpath_var='LD_RUN_PATH'
10189
10190 if test yes = "$GCC"; then
10191 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 else
10194 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 fi
10197 ;;
10198
10199 sysv5* | sco3.2v5* | sco5v6*)
10200 # Note: We CANNOT use -z defs as we might desire, because we do not
10201 # link with -lc, and that would cause any symbols used from libc to
10202 # always be unresolved, which means just about no library would
10203 # ever link correctly. If we're not using GNU ld we use -z text
10204 # though, which does catch some bad symbols but isn't as heavy-handed
10205 # as -z defs.
10206 no_undefined_flag='$wl-z,text'
10207 allow_undefined_flag='$wl-z,nodefs'
10208 archive_cmds_need_lc=no
10209 hardcode_shlibpath_var=no
10210 hardcode_libdir_flag_spec='$wl-R,$libdir'
10211 hardcode_libdir_separator=':'
10212 link_all_deplibs=yes
10213 export_dynamic_flag_spec='$wl-Bexport'
10214 runpath_var='LD_RUN_PATH'
10215
10216 if test yes = "$GCC"; then
10217 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219 else
10220 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 fi
10223 ;;
10224
10225 uts4*)
10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 hardcode_libdir_flag_spec='-L$libdir'
10228 hardcode_shlibpath_var=no
10229 ;;
10230
10231 *)
10232 ld_shlibs=no
10233 ;;
10234 esac
10235
10236 if test sni = "$host_vendor"; then
10237 case $host in
10238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10239 export_dynamic_flag_spec='$wl-Blargedynsym'
10240 ;;
10241 esac
10242 fi
10243 fi
10244
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10246$as_echo "$ld_shlibs" >&6; }
10247test no = "$ld_shlibs" && can_build_shared=no
10248
10249with_gnu_ld=$with_gnu_ld
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265#
10266# Do we need to explicitly link libc?
10267#
10268case "x$archive_cmds_need_lc" in
10269x|xyes)
10270 # Assume -lc should be added
10271 archive_cmds_need_lc=yes
10272
10273 if test yes,yes = "$GCC,$enable_shared"; then
10274 case $archive_cmds in
10275 *'~'*)
10276 # FIXME: we may have to deal with multi-command sequences.
10277 ;;
10278 '$CC '*)
10279 # Test whether the compiler implicitly links with -lc since on some
10280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10281 # to ld, don't add -lc before -lgcc.
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10283$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10284if ${lt_cv_archive_cmds_need_lc+:} false; then :
10285 $as_echo_n "(cached) " >&6
10286else
10287 $RM conftest*
10288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10289
10290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10291 (eval $ac_compile) 2>&5
10292 ac_status=$?
10293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294 test $ac_status = 0; } 2>conftest.err; then
10295 soname=conftest
10296 lib=conftest
10297 libobjs=conftest.$ac_objext
10298 deplibs=
10299 wl=$lt_prog_compiler_wl
10300 pic_flag=$lt_prog_compiler_pic
10301 compiler_flags=-v
10302 linker_flags=-v
10303 verstring=
10304 output_objdir=.
10305 libname=conftest
10306 lt_save_allow_undefined_flag=$allow_undefined_flag
10307 allow_undefined_flag=
10308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10309 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10310 ac_status=$?
10311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10312 test $ac_status = 0; }
10313 then
10314 lt_cv_archive_cmds_need_lc=no
10315 else
10316 lt_cv_archive_cmds_need_lc=yes
10317 fi
10318 allow_undefined_flag=$lt_save_allow_undefined_flag
10319 else
10320 cat conftest.err 1>&5
10321 fi
10322 $RM conftest*
10323
10324fi
10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10326$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10327 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10328 ;;
10329 esac
10330 fi
10331 ;;
10332esac
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10486$as_echo_n "checking dynamic linker characteristics... " >&6; }
10487
10488if test yes = "$GCC"; then
10489 case $host_os in
10490 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10491 *) lt_awk_arg='/^libraries:/' ;;
10492 esac
10493 case $host_os in
10494 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10495 *) lt_sed_strip_eq='s|=/|/|g' ;;
10496 esac
10497 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10498 case $lt_search_path_spec in
10499 *\;*)
10500 # if the path contains ";" then we assume it to be the separator
10501 # otherwise default to the standard path separator (i.e. ":") - it is
10502 # assumed that no part of a normal pathname contains ";" but that should
10503 # okay in the real world where ";" in dirpaths is itself problematic.
10504 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10505 ;;
10506 *)
10507 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10508 ;;
10509 esac
10510 # Ok, now we have the path, separated by spaces, we can step through it
10511 # and add multilib dir if necessary...
10512 lt_tmp_lt_search_path_spec=
10513 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10514 # ...but if some path component already ends with the multilib dir we assume
10515 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10516 case "$lt_multi_os_dir; $lt_search_path_spec " in
10517 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10518 lt_multi_os_dir=
10519 ;;
10520 esac
10521 for lt_sys_path in $lt_search_path_spec; do
10522 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10523 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10524 elif test -n "$lt_multi_os_dir"; then
10525 test -d "$lt_sys_path" && \
10526 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10527 fi
10528 done
10529 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10530BEGIN {RS = " "; FS = "/|\n";} {
10531 lt_foo = "";
10532 lt_count = 0;
10533 for (lt_i = NF; lt_i > 0; lt_i--) {
10534 if ($lt_i != "" && $lt_i != ".") {
10535 if ($lt_i == "..") {
10536 lt_count++;
10537 } else {
10538 if (lt_count == 0) {
10539 lt_foo = "/" $lt_i lt_foo;
10540 } else {
10541 lt_count--;
10542 }
10543 }
10544 }
10545 }
10546 if (lt_foo != "") { lt_freq[lt_foo]++; }
10547 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10548}'`
10549 # AWK program above erroneously prepends '/' to C:/dos/paths
10550 # for these hosts.
10551 case $host_os in
10552 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10553 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10554 esac
10555 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10556else
10557 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10558fi
10559library_names_spec=
10560libname_spec='lib$name'
10561soname_spec=
10562shrext_cmds=.so
10563postinstall_cmds=
10564postuninstall_cmds=
10565finish_cmds=
10566finish_eval=
10567shlibpath_var=
10568shlibpath_overrides_runpath=unknown
10569version_type=none
10570dynamic_linker="$host_os ld.so"
10571sys_lib_dlsearch_path_spec="/lib /usr/lib"
10572need_lib_prefix=unknown
10573hardcode_into_libs=no
10574
10575# when you set need_version to no, make sure it does not cause -set_version
10576# flags to be left without arguments
10577need_version=unknown
10578
10579
10580
10581case $host_os in
10582aix3*)
10583 version_type=linux # correct to gnu/linux during the next big refactor
10584 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10585 shlibpath_var=LIBPATH
10586
10587 # AIX 3 has no versioning support, so we append a major version to the name.
10588 soname_spec='$libname$release$shared_ext$major'
10589 ;;
10590
10591aix[4-9]*)
10592 version_type=linux # correct to gnu/linux during the next big refactor
10593 need_lib_prefix=no
10594 need_version=no
10595 hardcode_into_libs=yes
10596 if test ia64 = "$host_cpu"; then
10597 # AIX 5 supports IA64
10598 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 else
10601 # With GCC up to 2.95.x, collect2 would create an import file
10602 # for dependence libraries. The import file would start with
10603 # the line '#! .'. This would cause the generated library to
10604 # depend on '.', always an invalid library. This was fixed in
10605 # development snapshots of GCC prior to 3.0.
10606 case $host_os in
10607 aix4 | aix4.[01] | aix4.[01].*)
10608 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10609 echo ' yes '
10610 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10611 :
10612 else
10613 can_build_shared=no
10614 fi
10615 ;;
10616 esac
10617 # Using Import Files as archive members, it is possible to support
10618 # filename-based versioning of shared library archives on AIX. While
10619 # this would work for both with and without runtime linking, it will
10620 # prevent static linking of such archives. So we do filename-based
10621 # shared library versioning with .so extension only, which is used
10622 # when both runtime linking and shared linking is enabled.
10623 # Unfortunately, runtime linking may impact performance, so we do
10624 # not want this to be the default eventually. Also, we use the
10625 # versioned .so libs for executables only if there is the -brtl
10626 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10627 # To allow for filename-based versioning support, we need to create
10628 # libNAME.so.V as an archive file, containing:
10629 # *) an Import File, referring to the versioned filename of the
10630 # archive as well as the shared archive member, telling the
10631 # bitwidth (32 or 64) of that shared object, and providing the
10632 # list of exported symbols of that shared object, eventually
10633 # decorated with the 'weak' keyword
10634 # *) the shared object with the F_LOADONLY flag set, to really avoid
10635 # it being seen by the linker.
10636 # At run time we better use the real file rather than another symlink,
10637 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10638
10639 case $with_aix_soname,$aix_use_runtimelinking in
10640 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10641 # soname into executable. Probably we can add versioning support to
10642 # collect2, so additional links can be useful in future.
10643 aix,yes) # traditional libtool
10644 dynamic_linker='AIX unversionable lib.so'
10645 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10646 # instead of lib<name>.a to let people know that these are not
10647 # typical AIX shared libraries.
10648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10649 ;;
10650 aix,no) # traditional AIX only
10651 dynamic_linker='AIX lib.a(lib.so.V)'
10652 # We preserve .a as extension for shared libraries through AIX4.2
10653 # and later when we are not doing run time linking.
10654 library_names_spec='$libname$release.a $libname.a'
10655 soname_spec='$libname$release$shared_ext$major'
10656 ;;
10657 svr4,*) # full svr4 only
10658 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10659 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10660 # We do not specify a path in Import Files, so LIBPATH fires.
10661 shlibpath_overrides_runpath=yes
10662 ;;
10663 *,yes) # both, prefer svr4
10664 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10665 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10666 # unpreferred sharedlib libNAME.a needs extra handling
10667 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"'
10668 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"'
10669 # We do not specify a path in Import Files, so LIBPATH fires.
10670 shlibpath_overrides_runpath=yes
10671 ;;
10672 *,no) # both, prefer aix
10673 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10674 library_names_spec='$libname$release.a $libname.a'
10675 soname_spec='$libname$release$shared_ext$major'
10676 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10677 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)'
10678 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"'
10679 ;;
10680 esac
10681 shlibpath_var=LIBPATH
10682 fi
10683 ;;
10684
10685amigaos*)
10686 case $host_cpu in
10687 powerpc)
10688 # Since July 2007 AmigaOS4 officially supports .so libraries.
10689 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10691 ;;
10692 m68k)
10693 library_names_spec='$libname.ixlibrary $libname.a'
10694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10695 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'
10696 ;;
10697 esac
10698 ;;
10699
10700beos*)
10701 library_names_spec='$libname$shared_ext'
10702 dynamic_linker="$host_os ld.so"
10703 shlibpath_var=LIBRARY_PATH
10704 ;;
10705
10706bsdi[45]*)
10707 version_type=linux # correct to gnu/linux during the next big refactor
10708 need_version=no
10709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10710 soname_spec='$libname$release$shared_ext$major'
10711 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10714 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10715 # the default ld.so.conf also contains /usr/contrib/lib and
10716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10717 # libtool to hard-code these into programs
10718 ;;
10719
10720cygwin* | mingw* | pw32* | cegcc*)
10721 version_type=windows
10722 shrext_cmds=.dll
10723 need_version=no
10724 need_lib_prefix=no
10725
10726 case $GCC,$cc_basename in
10727 yes,*)
10728 # gcc
10729 library_names_spec='$libname.dll.a'
10730 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10731 postinstall_cmds='base_file=`basename \$file`~
10732 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10733 dldir=$destdir/`dirname \$dlpath`~
10734 test -d \$dldir || mkdir -p \$dldir~
10735 $install_prog $dir/$dlname \$dldir/$dlname~
10736 chmod a+x \$dldir/$dlname~
10737 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10738 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10739 fi'
10740 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10741 dlpath=$dir/\$dldll~
10742 $RM \$dlpath'
10743 shlibpath_overrides_runpath=yes
10744
10745 case $host_os in
10746 cygwin*)
10747 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10748 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10749
10750 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10751 ;;
10752 mingw* | cegcc*)
10753 # MinGW DLLs use traditional 'lib' prefix
10754 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10755 ;;
10756 pw32*)
10757 # pw32 DLLs use 'pw' prefix rather than 'lib'
10758 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10759 ;;
10760 esac
10761 dynamic_linker='Win32 ld.exe'
10762 ;;
10763
10764 *,cl*)
10765 # Native MSVC
10766 libname_spec='$name'
10767 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10768 library_names_spec='$libname.dll.lib'
10769
10770 case $build_os in
10771 mingw*)
10772 sys_lib_search_path_spec=
10773 lt_save_ifs=$IFS
10774 IFS=';'
10775 for lt_path in $LIB
10776 do
10777 IFS=$lt_save_ifs
10778 # Let DOS variable expansion print the short 8.3 style file name.
10779 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10780 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10781 done
10782 IFS=$lt_save_ifs
10783 # Convert to MSYS style.
10784 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10785 ;;
10786 cygwin*)
10787 # Convert to unix form, then to dos form, then back to unix form
10788 # but this time dos style (no spaces!) so that the unix form looks
10789 # like /cygdrive/c/PROGRA~1:/cygdr...
10790 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10791 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10792 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10793 ;;
10794 *)
10795 sys_lib_search_path_spec=$LIB
10796 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10797 # It is most probably a Windows format PATH.
10798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10799 else
10800 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10801 fi
10802 # FIXME: find the short name or the path components, as spaces are
10803 # common. (e.g. "Program Files" -> "PROGRA~1")
10804 ;;
10805 esac
10806
10807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10808 postinstall_cmds='base_file=`basename \$file`~
10809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10810 dldir=$destdir/`dirname \$dlpath`~
10811 test -d \$dldir || mkdir -p \$dldir~
10812 $install_prog $dir/$dlname \$dldir/$dlname'
10813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10814 dlpath=$dir/\$dldll~
10815 $RM \$dlpath'
10816 shlibpath_overrides_runpath=yes
10817 dynamic_linker='Win32 link.exe'
10818 ;;
10819
10820 *)
10821 # Assume MSVC wrapper
10822 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10823 dynamic_linker='Win32 ld.exe'
10824 ;;
10825 esac
10826 # FIXME: first we should search . and the directory the executable is in
10827 shlibpath_var=PATH
10828 ;;
10829
10830darwin* | rhapsody*)
10831 dynamic_linker="$host_os dyld"
10832 version_type=darwin
10833 need_lib_prefix=no
10834 need_version=no
10835 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10836 soname_spec='$libname$release$major$shared_ext'
10837 shlibpath_overrides_runpath=yes
10838 shlibpath_var=DYLD_LIBRARY_PATH
10839 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10840
10841 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10843 ;;
10844
10845dgux*)
10846 version_type=linux # correct to gnu/linux during the next big refactor
10847 need_lib_prefix=no
10848 need_version=no
10849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10850 soname_spec='$libname$release$shared_ext$major'
10851 shlibpath_var=LD_LIBRARY_PATH
10852 ;;
10853
10854freebsd* | dragonfly*)
10855 # DragonFly does not have aout. When/if they implement a new
10856 # versioning mechanism, adjust this.
10857 if test -x /usr/bin/objformat; then
10858 objformat=`/usr/bin/objformat`
10859 else
10860 case $host_os in
10861 freebsd[23].*) objformat=aout ;;
10862 *) objformat=elf ;;
10863 esac
10864 fi
10865 # Handle Gentoo/FreeBSD as it was Linux
10866 case $host_vendor in
10867 gentoo)
10868 version_type=linux ;;
10869 *)
10870 version_type=freebsd-$objformat ;;
10871 esac
10872
10873 case $version_type in
10874 freebsd-elf*)
10875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10876 soname_spec='$libname$release$shared_ext$major'
10877 need_version=no
10878 need_lib_prefix=no
10879 ;;
10880 freebsd-*)
10881 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10882 need_version=yes
10883 ;;
10884 linux)
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 need_lib_prefix=no
10888 need_version=no
10889 ;;
10890 esac
10891 shlibpath_var=LD_LIBRARY_PATH
10892 case $host_os in
10893 freebsd2.*)
10894 shlibpath_overrides_runpath=yes
10895 ;;
10896 freebsd3.[01]* | freebsdelf3.[01]*)
10897 shlibpath_overrides_runpath=yes
10898 hardcode_into_libs=yes
10899 ;;
10900 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10901 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10902 shlibpath_overrides_runpath=no
10903 hardcode_into_libs=yes
10904 ;;
10905 *) # from 4.6 on, and DragonFly
10906 shlibpath_overrides_runpath=yes
10907 hardcode_into_libs=yes
10908 ;;
10909 esac
10910 ;;
10911
10912haiku*)
10913 version_type=linux # correct to gnu/linux during the next big refactor
10914 need_lib_prefix=no
10915 need_version=no
10916 dynamic_linker="$host_os runtime_loader"
10917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10918 soname_spec='$libname$release$shared_ext$major'
10919 shlibpath_var=LIBRARY_PATH
10920 shlibpath_overrides_runpath=no
10921 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10922 hardcode_into_libs=yes
10923 ;;
10924
10925hpux9* | hpux10* | hpux11*)
10926 # Give a soname corresponding to the major version so that dld.sl refuses to
10927 # link against other versions.
10928 version_type=sunos
10929 need_lib_prefix=no
10930 need_version=no
10931 case $host_cpu in
10932 ia64*)
10933 shrext_cmds='.so'
10934 hardcode_into_libs=yes
10935 dynamic_linker="$host_os dld.so"
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10939 soname_spec='$libname$release$shared_ext$major'
10940 if test 32 = "$HPUX_IA64_MODE"; then
10941 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10942 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10943 else
10944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10945 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10946 fi
10947 ;;
10948 hppa*64*)
10949 shrext_cmds='.sl'
10950 hardcode_into_libs=yes
10951 dynamic_linker="$host_os dld.sl"
10952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10955 soname_spec='$libname$release$shared_ext$major'
10956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10958 ;;
10959 *)
10960 shrext_cmds='.sl'
10961 dynamic_linker="$host_os dld.sl"
10962 shlibpath_var=SHLIB_PATH
10963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10965 soname_spec='$libname$release$shared_ext$major'
10966 ;;
10967 esac
10968 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10969 postinstall_cmds='chmod 555 $lib'
10970 # or fails outright, so override atomically:
10971 install_override_mode=555
10972 ;;
10973
10974interix[3-9]*)
10975 version_type=linux # correct to gnu/linux during the next big refactor
10976 need_lib_prefix=no
10977 need_version=no
10978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10979 soname_spec='$libname$release$shared_ext$major'
10980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=no
10983 hardcode_into_libs=yes
10984 ;;
10985
10986irix5* | irix6* | nonstopux*)
10987 case $host_os in
10988 nonstopux*) version_type=nonstopux ;;
10989 *)
10990 if test yes = "$lt_cv_prog_gnu_ld"; then
10991 version_type=linux # correct to gnu/linux during the next big refactor
10992 else
10993 version_type=irix
10994 fi ;;
10995 esac
10996 need_lib_prefix=no
10997 need_version=no
10998 soname_spec='$libname$release$shared_ext$major'
10999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11000 case $host_os in
11001 irix5* | nonstopux*)
11002 libsuff= shlibsuff=
11003 ;;
11004 *)
11005 case $LD in # libtool.m4 will add one of these switches to LD
11006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11007 libsuff= shlibsuff= libmagic=32-bit;;
11008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11009 libsuff=32 shlibsuff=N32 libmagic=N32;;
11010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11012 *) libsuff= shlibsuff= libmagic=never-match;;
11013 esac
11014 ;;
11015 esac
11016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11017 shlibpath_overrides_runpath=no
11018 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11019 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11020 hardcode_into_libs=yes
11021 ;;
11022
11023# No shared lib support for Linux oldld, aout, or coff.
11024linux*oldld* | linux*aout* | linux*coff*)
11025 dynamic_linker=no
11026 ;;
11027
11028linux*android*)
11029 version_type=none # Android doesn't support versioned libraries.
11030 need_lib_prefix=no
11031 need_version=no
11032 library_names_spec='$libname$release$shared_ext'
11033 soname_spec='$libname$release$shared_ext'
11034 finish_cmds=
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11037
11038 # This implies no fast_install, which is unacceptable.
11039 # Some rework will be needed to allow for fast_install
11040 # before this can be enabled.
11041 hardcode_into_libs=yes
11042
11043 dynamic_linker='Android linker'
11044 # Don't embed -rpath directories since the linker doesn't support them.
11045 hardcode_libdir_flag_spec='-L$libdir'
11046 ;;
11047
11048# This must be glibc/ELF.
11049linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11050 version_type=linux # correct to gnu/linux during the next big refactor
11051 need_lib_prefix=no
11052 need_version=no
11053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11054 soname_spec='$libname$release$shared_ext$major'
11055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=no
11058
11059 # Some binutils ld are patched to set DT_RUNPATH
11060 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062else
11063 lt_cv_shlibpath_overrides_runpath=no
11064 save_LDFLAGS=$LDFLAGS
11065 save_libdir=$libdir
11066 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11067 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069/* end confdefs.h. */
11070
11071int
11072main ()
11073{
11074
11075 ;
11076 return 0;
11077}
11078_ACEOF
11079if ac_fn_c_try_link "$LINENO"; then :
11080 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11081 lt_cv_shlibpath_overrides_runpath=yes
11082fi
11083fi
11084rm -f core conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086 LDFLAGS=$save_LDFLAGS
11087 libdir=$save_libdir
11088
11089fi
11090
11091 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11092
11093 # This implies no fast_install, which is unacceptable.
11094 # Some rework will be needed to allow for fast_install
11095 # before this can be enabled.
11096 hardcode_into_libs=yes
11097
11098 # Ideally, we could use ldconfig to report *all* directores which are
11099 # searched for libraries, however this is still not possible. Aside from not
11100 # being certain /sbin/ldconfig is available, command
11101 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11102 # even though it is searched at run-time. Try to do the best guess by
11103 # appending ld.so.conf contents (and includes) to the search path.
11104 if test -f /etc/ld.so.conf; then
11105 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' ' '`
11106 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11107 fi
11108
11109 # We used to test for /lib/ld.so.1 and disable shared libraries on
11110 # powerpc, because MkLinux only supported shared libraries with the
11111 # GNU dynamic linker. Since this was broken with cross compilers,
11112 # most powerpc-linux boxes support dynamic linking these days and
11113 # people can always --disable-shared, the test was removed, and we
11114 # assume the GNU/Linux dynamic linker is in use.
11115 dynamic_linker='GNU/Linux ld.so'
11116 ;;
11117
11118netbsd*)
11119 version_type=sunos
11120 need_lib_prefix=no
11121 need_version=no
11122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11125 dynamic_linker='NetBSD (a.out) ld.so'
11126 else
11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11128 soname_spec='$libname$release$shared_ext$major'
11129 dynamic_linker='NetBSD ld.elf_so'
11130 fi
11131 shlibpath_var=LD_LIBRARY_PATH
11132 shlibpath_overrides_runpath=yes
11133 hardcode_into_libs=yes
11134 ;;
11135
11136newsos6)
11137 version_type=linux # correct to gnu/linux during the next big refactor
11138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=yes
11141 ;;
11142
11143*nto* | *qnx*)
11144 version_type=qnx
11145 need_lib_prefix=no
11146 need_version=no
11147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11148 soname_spec='$libname$release$shared_ext$major'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 shlibpath_overrides_runpath=no
11151 hardcode_into_libs=yes
11152 dynamic_linker='ldqnx.so'
11153 ;;
11154
11155openbsd* | bitrig*)
11156 version_type=sunos
11157 sys_lib_dlsearch_path_spec=/usr/lib
11158 need_lib_prefix=no
11159 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11160 need_version=no
11161 else
11162 need_version=yes
11163 fi
11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
11168 ;;
11169
11170os2*)
11171 libname_spec='$name'
11172 version_type=windows
11173 shrext_cmds=.dll
11174 need_version=no
11175 need_lib_prefix=no
11176 # OS/2 can only load a DLL with a base name of 8 characters or less.
11177 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11178 v=$($ECHO $release$versuffix | tr -d .-);
11179 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11180 $ECHO $n$v`$shared_ext'
11181 library_names_spec='${libname}_dll.$libext'
11182 dynamic_linker='OS/2 ld.exe'
11183 shlibpath_var=BEGINLIBPATH
11184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11186 postinstall_cmds='base_file=`basename \$file`~
11187 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11188 dldir=$destdir/`dirname \$dlpath`~
11189 test -d \$dldir || mkdir -p \$dldir~
11190 $install_prog $dir/$dlname \$dldir/$dlname~
11191 chmod a+x \$dldir/$dlname~
11192 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11193 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11194 fi'
11195 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11196 dlpath=$dir/\$dldll~
11197 $RM \$dlpath'
11198 ;;
11199
11200osf3* | osf4* | osf5*)
11201 version_type=osf
11202 need_lib_prefix=no
11203 need_version=no
11204 soname_spec='$libname$release$shared_ext$major'
11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11209 ;;
11210
11211rdos*)
11212 dynamic_linker=no
11213 ;;
11214
11215solaris*)
11216 version_type=linux # correct to gnu/linux during the next big refactor
11217 need_lib_prefix=no
11218 need_version=no
11219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220 soname_spec='$libname$release$shared_ext$major'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 shlibpath_overrides_runpath=yes
11223 hardcode_into_libs=yes
11224 # ldd complains unless libraries are executable
11225 postinstall_cmds='chmod +x $lib'
11226 ;;
11227
11228sunos4*)
11229 version_type=sunos
11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11232 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
11234 if test yes = "$with_gnu_ld"; then
11235 need_lib_prefix=no
11236 fi
11237 need_version=yes
11238 ;;
11239
11240sysv4 | sysv4.3*)
11241 version_type=linux # correct to gnu/linux during the next big refactor
11242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11243 soname_spec='$libname$release$shared_ext$major'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 case $host_vendor in
11246 sni)
11247 shlibpath_overrides_runpath=no
11248 need_lib_prefix=no
11249 runpath_var=LD_RUN_PATH
11250 ;;
11251 siemens)
11252 need_lib_prefix=no
11253 ;;
11254 motorola)
11255 need_lib_prefix=no
11256 need_version=no
11257 shlibpath_overrides_runpath=no
11258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11259 ;;
11260 esac
11261 ;;
11262
11263sysv4*MP*)
11264 if test -d /usr/nec; then
11265 version_type=linux # correct to gnu/linux during the next big refactor
11266 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11267 soname_spec='$libname$shared_ext.$major'
11268 shlibpath_var=LD_LIBRARY_PATH
11269 fi
11270 ;;
11271
11272sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11273 version_type=sco
11274 need_lib_prefix=no
11275 need_version=no
11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11277 soname_spec='$libname$release$shared_ext$major'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 shlibpath_overrides_runpath=yes
11280 hardcode_into_libs=yes
11281 if test yes = "$with_gnu_ld"; then
11282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11283 else
11284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11285 case $host_os in
11286 sco3.2v5*)
11287 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11288 ;;
11289 esac
11290 fi
11291 sys_lib_dlsearch_path_spec='/usr/lib'
11292 ;;
11293
11294tpf*)
11295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11296 version_type=linux # correct to gnu/linux during the next big refactor
11297 need_lib_prefix=no
11298 need_version=no
11299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11300 shlibpath_var=LD_LIBRARY_PATH
11301 shlibpath_overrides_runpath=no
11302 hardcode_into_libs=yes
11303 ;;
11304
11305uts4*)
11306 version_type=linux # correct to gnu/linux during the next big refactor
11307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11308 soname_spec='$libname$release$shared_ext$major'
11309 shlibpath_var=LD_LIBRARY_PATH
11310 ;;
11311
11312*)
11313 dynamic_linker=no
11314 ;;
11315esac
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11317$as_echo "$dynamic_linker" >&6; }
11318test no = "$dynamic_linker" && can_build_shared=no
11319
11320variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11321if test yes = "$GCC"; then
11322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11323fi
11324
11325if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11326 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11327fi
11328
11329if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11330 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11331fi
11332
11333# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11334configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11335
11336# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11337func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11338
11339# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11340configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11439$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11440hardcode_action=
11441if test -n "$hardcode_libdir_flag_spec" ||
11442 test -n "$runpath_var" ||
11443 test yes = "$hardcode_automatic"; then
11444
11445 # We can hardcode non-existent directories.
11446 if test no != "$hardcode_direct" &&
11447 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11448 # have to relink, otherwise we might link with an installed library
11449 # when we should be linking with a yet-to-be-installed one
11450 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11451 test no != "$hardcode_minus_L"; then
11452 # Linking always hardcodes the temporary library directory.
11453 hardcode_action=relink
11454 else
11455 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11456 hardcode_action=immediate
11457 fi
11458else
11459 # We cannot hardcode anything, or else we can only hardcode existing
11460 # directories.
11461 hardcode_action=unsupported
11462fi
11463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11464$as_echo "$hardcode_action" >&6; }
11465
11466if test relink = "$hardcode_action" ||
11467 test yes = "$inherit_rpath"; then
11468 # Fast installation is not supported
11469 enable_fast_install=no
11470elif test yes = "$shlibpath_overrides_runpath" ||
11471 test no = "$enable_shared"; then
11472 # Fast installation is not necessary
11473 enable_fast_install=needless
11474fi
11475
11476
11477
11478
11479
11480
11481 if test yes != "$enable_dlopen"; then
11482 enable_dlopen=unknown
11483 enable_dlopen_self=unknown
11484 enable_dlopen_self_static=unknown
11485else
11486 lt_cv_dlopen=no
11487 lt_cv_dlopen_libs=
11488
11489 case $host_os in
11490 beos*)
11491 lt_cv_dlopen=load_add_on
11492 lt_cv_dlopen_libs=
11493 lt_cv_dlopen_self=yes
11494 ;;
11495
11496 mingw* | pw32* | cegcc*)
11497 lt_cv_dlopen=LoadLibrary
11498 lt_cv_dlopen_libs=
11499 ;;
11500
11501 cygwin*)
11502 lt_cv_dlopen=dlopen
11503 lt_cv_dlopen_libs=
11504 ;;
11505
11506 darwin*)
11507 # if libdl is installed we need to link against it
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11509$as_echo_n "checking for dlopen in -ldl... " >&6; }
11510if ${ac_cv_lib_dl_dlopen+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512else
11513 ac_check_lib_save_LIBS=$LIBS
11514LIBS="-ldl $LIBS"
11515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516/* end confdefs.h. */
11517
11518/* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521#ifdef __cplusplus
11522extern "C"
11523#endif
11524char dlopen ();
11525int
11526main ()
11527{
11528return dlopen ();
11529 ;
11530 return 0;
11531}
11532_ACEOF
11533if ac_fn_c_try_link "$LINENO"; then :
11534 ac_cv_lib_dl_dlopen=yes
11535else
11536 ac_cv_lib_dl_dlopen=no
11537fi
11538rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540LIBS=$ac_check_lib_save_LIBS
11541fi
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11543$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11544if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11545 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11546else
11547
11548 lt_cv_dlopen=dyld
11549 lt_cv_dlopen_libs=
11550 lt_cv_dlopen_self=yes
11551
11552fi
11553
11554 ;;
11555
11556 tpf*)
11557 # Don't try to run any link tests for TPF. We know it's impossible
11558 # because TPF is a cross-compiler, and we know how we open DSOs.
11559 lt_cv_dlopen=dlopen
11560 lt_cv_dlopen_libs=
11561 lt_cv_dlopen_self=no
11562 ;;
11563
11564 *)
11565 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11566if test "x$ac_cv_func_shl_load" = xyes; then :
11567 lt_cv_dlopen=shl_load
11568else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11570$as_echo_n "checking for shl_load in -ldld... " >&6; }
11571if ${ac_cv_lib_dld_shl_load+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573else
11574 ac_check_lib_save_LIBS=$LIBS
11575LIBS="-ldld $LIBS"
11576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577/* end confdefs.h. */
11578
11579/* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11582#ifdef __cplusplus
11583extern "C"
11584#endif
11585char shl_load ();
11586int
11587main ()
11588{
11589return shl_load ();
11590 ;
11591 return 0;
11592}
11593_ACEOF
11594if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_dld_shl_load=yes
11596else
11597 ac_cv_lib_dld_shl_load=no
11598fi
11599rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601LIBS=$ac_check_lib_save_LIBS
11602fi
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11604$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11605if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11606 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11607else
11608 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11609if test "x$ac_cv_func_dlopen" = xyes; then :
11610 lt_cv_dlopen=dlopen
11611else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11613$as_echo_n "checking for dlopen in -ldl... " >&6; }
11614if ${ac_cv_lib_dl_dlopen+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616else
11617 ac_check_lib_save_LIBS=$LIBS
11618LIBS="-ldl $LIBS"
11619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620/* end confdefs.h. */
11621
11622/* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11625#ifdef __cplusplus
11626extern "C"
11627#endif
11628char dlopen ();
11629int
11630main ()
11631{
11632return dlopen ();
11633 ;
11634 return 0;
11635}
11636_ACEOF
11637if ac_fn_c_try_link "$LINENO"; then :
11638 ac_cv_lib_dl_dlopen=yes
11639else
11640 ac_cv_lib_dl_dlopen=no
11641fi
11642rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644LIBS=$ac_check_lib_save_LIBS
11645fi
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11647$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11648if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11649 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11650else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11652$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11653if ${ac_cv_lib_svld_dlopen+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655else
11656 ac_check_lib_save_LIBS=$LIBS
11657LIBS="-lsvld $LIBS"
11658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659/* end confdefs.h. */
11660
11661/* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11664#ifdef __cplusplus
11665extern "C"
11666#endif
11667char dlopen ();
11668int
11669main ()
11670{
11671return dlopen ();
11672 ;
11673 return 0;
11674}
11675_ACEOF
11676if ac_fn_c_try_link "$LINENO"; then :
11677 ac_cv_lib_svld_dlopen=yes
11678else
11679 ac_cv_lib_svld_dlopen=no
11680fi
11681rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683LIBS=$ac_check_lib_save_LIBS
11684fi
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11686$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11687if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11688 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11689else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11691$as_echo_n "checking for dld_link in -ldld... " >&6; }
11692if ${ac_cv_lib_dld_dld_link+:} false; then :
11693 $as_echo_n "(cached) " >&6
11694else
11695 ac_check_lib_save_LIBS=$LIBS
11696LIBS="-ldld $LIBS"
11697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698/* end confdefs.h. */
11699
11700/* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706char dld_link ();
11707int
11708main ()
11709{
11710return dld_link ();
11711 ;
11712 return 0;
11713}
11714_ACEOF
11715if ac_fn_c_try_link "$LINENO"; then :
11716 ac_cv_lib_dld_dld_link=yes
11717else
11718 ac_cv_lib_dld_dld_link=no
11719fi
11720rm -f core conftest.err conftest.$ac_objext \
11721 conftest$ac_exeext conftest.$ac_ext
11722LIBS=$ac_check_lib_save_LIBS
11723fi
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11725$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11726if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11727 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11728fi
11729
11730
11731fi
11732
11733
11734fi
11735
11736
11737fi
11738
11739
11740fi
11741
11742
11743fi
11744
11745 ;;
11746 esac
11747
11748 if test no = "$lt_cv_dlopen"; then
11749 enable_dlopen=no
11750 else
11751 enable_dlopen=yes
11752 fi
11753
11754 case $lt_cv_dlopen in
11755 dlopen)
11756 save_CPPFLAGS=$CPPFLAGS
11757 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11758
11759 save_LDFLAGS=$LDFLAGS
11760 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11761
11762 save_LIBS=$LIBS
11763 LIBS="$lt_cv_dlopen_libs $LIBS"
11764
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11766$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11767if ${lt_cv_dlopen_self+:} false; then :
11768 $as_echo_n "(cached) " >&6
11769else
11770 if test yes = "$cross_compiling"; then :
11771 lt_cv_dlopen_self=cross
11772else
11773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11774 lt_status=$lt_dlunknown
11775 cat > conftest.$ac_ext <<_LT_EOF
11776#line $LINENO "configure"
11777#include "confdefs.h"
11778
11779#if HAVE_DLFCN_H
11780#include <dlfcn.h>
11781#endif
11782
11783#include <stdio.h>
11784
11785#ifdef RTLD_GLOBAL
11786# define LT_DLGLOBAL RTLD_GLOBAL
11787#else
11788# ifdef DL_GLOBAL
11789# define LT_DLGLOBAL DL_GLOBAL
11790# else
11791# define LT_DLGLOBAL 0
11792# endif
11793#endif
11794
11795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11796 find out it does not work in some platform. */
11797#ifndef LT_DLLAZY_OR_NOW
11798# ifdef RTLD_LAZY
11799# define LT_DLLAZY_OR_NOW RTLD_LAZY
11800# else
11801# ifdef DL_LAZY
11802# define LT_DLLAZY_OR_NOW DL_LAZY
11803# else
11804# ifdef RTLD_NOW
11805# define LT_DLLAZY_OR_NOW RTLD_NOW
11806# else
11807# ifdef DL_NOW
11808# define LT_DLLAZY_OR_NOW DL_NOW
11809# else
11810# define LT_DLLAZY_OR_NOW 0
11811# endif
11812# endif
11813# endif
11814# endif
11815#endif
11816
11817/* When -fvisibility=hidden is used, assume the code has been annotated
11818 correspondingly for the symbols needed. */
11819#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11820int fnord () __attribute__((visibility("default")));
11821#endif
11822
11823int fnord () { return 42; }
11824int main ()
11825{
11826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11827 int status = $lt_dlunknown;
11828
11829 if (self)
11830 {
11831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11832 else
11833 {
11834 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11835 else puts (dlerror ());
11836 }
11837 /* dlclose (self); */
11838 }
11839 else
11840 puts (dlerror ());
11841
11842 return status;
11843}
11844_LT_EOF
11845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11846 (eval $ac_link) 2>&5
11847 ac_status=$?
11848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11849 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11850 (./conftest; exit; ) >&5 2>/dev/null
11851 lt_status=$?
11852 case x$lt_status in
11853 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11854 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11855 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11856 esac
11857 else :
11858 # compilation failed
11859 lt_cv_dlopen_self=no
11860 fi
11861fi
11862rm -fr conftest*
11863
11864
11865fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11867$as_echo "$lt_cv_dlopen_self" >&6; }
11868
11869 if test yes = "$lt_cv_dlopen_self"; then
11870 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11872$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11873if ${lt_cv_dlopen_self_static+:} false; then :
11874 $as_echo_n "(cached) " >&6
11875else
11876 if test yes = "$cross_compiling"; then :
11877 lt_cv_dlopen_self_static=cross
11878else
11879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11880 lt_status=$lt_dlunknown
11881 cat > conftest.$ac_ext <<_LT_EOF
11882#line $LINENO "configure"
11883#include "confdefs.h"
11884
11885#if HAVE_DLFCN_H
11886#include <dlfcn.h>
11887#endif
11888
11889#include <stdio.h>
11890
11891#ifdef RTLD_GLOBAL
11892# define LT_DLGLOBAL RTLD_GLOBAL
11893#else
11894# ifdef DL_GLOBAL
11895# define LT_DLGLOBAL DL_GLOBAL
11896# else
11897# define LT_DLGLOBAL 0
11898# endif
11899#endif
11900
11901/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11902 find out it does not work in some platform. */
11903#ifndef LT_DLLAZY_OR_NOW
11904# ifdef RTLD_LAZY
11905# define LT_DLLAZY_OR_NOW RTLD_LAZY
11906# else
11907# ifdef DL_LAZY
11908# define LT_DLLAZY_OR_NOW DL_LAZY
11909# else
11910# ifdef RTLD_NOW
11911# define LT_DLLAZY_OR_NOW RTLD_NOW
11912# else
11913# ifdef DL_NOW
11914# define LT_DLLAZY_OR_NOW DL_NOW
11915# else
11916# define LT_DLLAZY_OR_NOW 0
11917# endif
11918# endif
11919# endif
11920# endif
11921#endif
11922
11923/* When -fvisibility=hidden is used, assume the code has been annotated
11924 correspondingly for the symbols needed. */
11925#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11926int fnord () __attribute__((visibility("default")));
11927#endif
11928
11929int fnord () { return 42; }
11930int main ()
11931{
11932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11933 int status = $lt_dlunknown;
11934
11935 if (self)
11936 {
11937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11938 else
11939 {
11940 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11941 else puts (dlerror ());
11942 }
11943 /* dlclose (self); */
11944 }
11945 else
11946 puts (dlerror ());
11947
11948 return status;
11949}
11950_LT_EOF
11951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11952 (eval $ac_link) 2>&5
11953 ac_status=$?
11954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11955 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11956 (./conftest; exit; ) >&5 2>/dev/null
11957 lt_status=$?
11958 case x$lt_status in
11959 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11960 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11961 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11962 esac
11963 else :
11964 # compilation failed
11965 lt_cv_dlopen_self_static=no
11966 fi
11967fi
11968rm -fr conftest*
11969
11970
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11973$as_echo "$lt_cv_dlopen_self_static" >&6; }
11974 fi
11975
11976 CPPFLAGS=$save_CPPFLAGS
11977 LDFLAGS=$save_LDFLAGS
11978 LIBS=$save_LIBS
11979 ;;
11980 esac
11981
11982 case $lt_cv_dlopen_self in
11983 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11984 *) enable_dlopen_self=unknown ;;
11985 esac
11986
11987 case $lt_cv_dlopen_self_static in
11988 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11989 *) enable_dlopen_self_static=unknown ;;
11990 esac
11991fi
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009striplib=
12010old_striplib=
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12012$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12013if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12014 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12015 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12017$as_echo "yes" >&6; }
12018else
12019# FIXME - insert some real tests, host_os isn't really good enough
12020 case $host_os in
12021 darwin*)
12022 if test -n "$STRIP"; then
12023 striplib="$STRIP -x"
12024 old_striplib="$STRIP -S"
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12026$as_echo "yes" >&6; }
12027 else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
12030 fi
12031 ;;
12032 *)
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034$as_echo "no" >&6; }
12035 ;;
12036 esac
12037fi
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050 # Report what library types will actually be built
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12052$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12054$as_echo "$can_build_shared" >&6; }
12055
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12057$as_echo_n "checking whether to build shared libraries... " >&6; }
12058 test no = "$can_build_shared" && enable_shared=no
12059
12060 # On AIX, shared libraries and static libraries use the same namespace, and
12061 # are all built from PIC.
12062 case $host_os in
12063 aix3*)
12064 test yes = "$enable_shared" && enable_static=no
12065 if test -n "$RANLIB"; then
12066 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12067 postinstall_cmds='$RANLIB $lib'
12068 fi
12069 ;;
12070
12071 aix[4-9]*)
12072 if test ia64 != "$host_cpu"; then
12073 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12074 yes,aix,yes) ;; # shared object as lib.so file only
12075 yes,svr4,*) ;; # shared object as lib.so archive member only
12076 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12077 esac
12078 fi
12079 ;;
12080 esac
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12082$as_echo "$enable_shared" >&6; }
12083
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12085$as_echo_n "checking whether to build static libraries... " >&6; }
12086 # Make sure either enable_shared or enable_static is yes.
12087 test yes = "$enable_shared" || enable_static=yes
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12089$as_echo "$enable_static" >&6; }
12090
12091
12092
12093
12094fi
12095ac_ext=c
12096ac_cpp='$CPP $CPPFLAGS'
12097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12099ac_compiler_gnu=$ac_cv_c_compiler_gnu
12100
12101CC=$lt_save_CC
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117 ac_config_commands="$ac_config_commands libtool"
12118
12119
12120
12121
12122# Only expand once:
12123
12124
12125
12126# Check whether --enable-silent-rules was given.
12127if test "${enable_silent_rules+set}" = set; then :
12128 enableval=$enable_silent_rules;
12129fi
12130
12131case $enable_silent_rules in # (((
12132 yes) AM_DEFAULT_VERBOSITY=0;;
12133 no) AM_DEFAULT_VERBOSITY=1;;
12134 *) AM_DEFAULT_VERBOSITY=0;;
12135esac
12136am_make=${MAKE-make}
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12138$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12139if ${am_cv_make_support_nested_variables+:} false; then :
12140 $as_echo_n "(cached) " >&6
12141else
12142 if $as_echo 'TRUE=$(BAR$(V))
12143BAR0=false
12144BAR1=true
12145V=1
12146am__doit:
12147 @$(TRUE)
12148.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12149 am_cv_make_support_nested_variables=yes
12150else
12151 am_cv_make_support_nested_variables=no
12152fi
12153fi
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12155$as_echo "$am_cv_make_support_nested_variables" >&6; }
12156if test $am_cv_make_support_nested_variables = yes; then
12157 AM_V='$(V)'
12158 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12159else
12160 AM_V=$AM_DEFAULT_VERBOSITY
12161 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12162fi
12163AM_BACKSLASH='\'
12164
12165
12166AM_CPPFLAGS="-I\${top_srcdir}/include"
12167AM_CFLAGS="-Wall"
12168AM_LDFLAGS="-Wl,-z -Wl,relro"
12169
12170
12171
12172
12173
12174
12175
12176 for ac_header in $ac_header_list
12177do :
12178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12179ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12180"
12181if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12182 cat >>confdefs.h <<_ACEOF
12183#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12184_ACEOF
12185
12186fi
12187
12188done
12189
12190
12191
12192
12193
12194VERSION_MAJOR=$(echo ${VERSION} | cut -d'.' -f 1)
12195VERSION_MINOR=$(echo ${VERSION} | cut -d'.' -f 2)
12196VERSION_MICRO=$(echo ${VERSION} | cut -d'.' -f 3)
12197
12198
12199
12200
12201# Extract the first word of "cython", so it can be a program name with args.
12202set dummy cython; ac_word=$2
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204$as_echo_n "checking for $ac_word... " >&6; }
12205if ${ac_cv_prog_have_cython+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207else
12208 if test -n "$have_cython"; then
12209 ac_cv_prog_have_cython="$have_cython" # Let the user override the test.
12210else
12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_prog_have_cython=""yes""
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222done
12223 done
12224IFS=$as_save_IFS
12225
12226 test -z "$ac_cv_prog_have_cython" && ac_cv_prog_have_cython=""no""
12227fi
12228fi
12229have_cython=$ac_cv_prog_have_cython
12230if test -n "$have_cython"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cython" >&5
12232$as_echo "$have_cython" >&6; }
12233else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235$as_echo "no" >&6; }
12236fi
12237
12238
12239if test "$have_cython" = yes; then :
12240
12241 $as_echo "checking cython version... $(cython -V 2>&1 | cut -d' ' -f 3)"
12242 CYTHON_VER_MAJ=$(cython -V 2>&1 | cut -d' ' -f 3 | cut -d'.' -f 1);
12243 CYTHON_VER_MIN=$(cython -V 2>&1 | cut -d' ' -f 3 | cut -d'.' -f 2);
12244
12245else
12246
12247 CYTHON_VER_MAJ=0
12248 CYTHON_VER_MIN=0
12249
12250fi
12251
12252# Check whether --enable-python was given.
12253if test "${enable_python+set}" = set; then :
12254 enableval=$enable_python;
12255fi
12256
12257if test "$enable_python" = yes; then :
12258
12259 # cython version check
12260 if test "$CYTHON_VER_MAJ" -eq 0 -a "$CYTHON_VER_MIN" -lt 16; then :
12261
12262 as_fn_error $? "python bindings require cython 0.16 or higher" "$LINENO" 5
12263
12264fi
12265
12266fi
12267 if test "$enable_python" = yes; then
12268 ENABLE_PYTHON_TRUE=
12269 ENABLE_PYTHON_FALSE='#'
12270else
12271 ENABLE_PYTHON_TRUE='#'
12272 ENABLE_PYTHON_FALSE=
12273fi
12274
12275
12276cat >>confdefs.h <<_ACEOF
12277#define ENABLE_PYTHON $(test "$enable_python" = yes && echo 1 || echo 0)
12278_ACEOF
12279
12280
12281# Extract the first word of "cov-build", so it can be a program name with args.
12282set dummy cov-build; ac_word=$2
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284$as_echo_n "checking for $ac_word... " >&6; }
12285if ${ac_cv_prog_have_coverity+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287else
12288 if test -n "$have_coverity"; then
12289 ac_cv_prog_have_coverity="$have_coverity" # Let the user override the test.
12290else
12291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292for as_dir in $PATH
12293do
12294 IFS=$as_save_IFS
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12298 ac_cv_prog_have_coverity=""yes""
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 break 2
12301 fi
12302done
12303 done
12304IFS=$as_save_IFS
12305
12306 test -z "$ac_cv_prog_have_coverity" && ac_cv_prog_have_coverity=""no""
12307fi
12308fi
12309have_coverity=$ac_cv_prog_have_coverity
12310if test -n "$have_coverity"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_coverity" >&5
12312$as_echo "$have_coverity" >&6; }
12313else
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315$as_echo "no" >&6; }
12316fi
12317
12318
12319 if test "$have_coverity" = yes; then
12320 COVERITY_TRUE=
12321 COVERITY_FALSE='#'
12322else
12323 COVERITY_TRUE='#'
12324 COVERITY_FALSE=
12325fi
12326
12327
12328ac_config_files="$ac_config_files libseccomp.pc include/seccomp.h"
12329
12330
12331ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/python/Makefile tools/Makefile tests/Makefile doc/Makefile"
12332
12333
12334cat >confcache <<\_ACEOF
12335# This file is a shell script that caches the results of configure
12336# tests run on this system so they can be shared between configure
12337# scripts and configure runs, see configure's option --config-cache.
12338# It is not useful on other systems. If it contains results you don't
12339# want to keep, you may remove or edit it.
12340#
12341# config.status only pays attention to the cache file if you give it
12342# the --recheck option to rerun configure.
12343#
12344# `ac_cv_env_foo' variables (set or unset) will be overridden when
12345# loading this file, other *unset* `ac_cv_foo' will be assigned the
12346# following values.
12347
12348_ACEOF
12349
12350# The following way of writing the cache mishandles newlines in values,
12351# but we know of no workaround that is simple, portable, and efficient.
12352# So, we kill variables containing newlines.
12353# Ultrix sh set writes to stderr and can't be redirected directly,
12354# and sets the high bit in the cache file unless we assign to the vars.
12355(
12356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12357 eval ac_val=\$$ac_var
12358 case $ac_val in #(
12359 *${as_nl}*)
12360 case $ac_var in #(
12361 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12362$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12363 esac
12364 case $ac_var in #(
12365 _ | IFS | as_nl) ;; #(
12366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12367 *) { eval $ac_var=; unset $ac_var;} ;;
12368 esac ;;
12369 esac
12370 done
12371
12372 (set) 2>&1 |
12373 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12374 *${as_nl}ac_space=\ *)
12375 # `set' does not quote correctly, so add quotes: double-quote
12376 # substitution turns \\\\ into \\, and sed turns \\ into \.
12377 sed -n \
12378 "s/'/'\\\\''/g;
12379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12380 ;; #(
12381 *)
12382 # `set' quotes correctly as required by POSIX, so do not add quotes.
12383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12384 ;;
12385 esac |
12386 sort
12387) |
12388 sed '
12389 /^ac_cv_env_/b end
12390 t clear
12391 :clear
12392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12393 t end
12394 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12395 :end' >>confcache
12396if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12397 if test -w "$cache_file"; then
12398 if test "x$cache_file" != "x/dev/null"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12400$as_echo "$as_me: updating cache $cache_file" >&6;}
12401 if test ! -f "$cache_file" || test -h "$cache_file"; then
12402 cat confcache >"$cache_file"
12403 else
12404 case $cache_file in #(
12405 */* | ?:*)
12406 mv -f confcache "$cache_file"$$ &&
12407 mv -f "$cache_file"$$ "$cache_file" ;; #(
12408 *)
12409 mv -f confcache "$cache_file" ;;
12410 esac
12411 fi
12412 fi
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12415$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12416 fi
12417fi
12418rm -f confcache
12419
12420test "x$prefix" = xNONE && prefix=$ac_default_prefix
12421# Let make expand exec_prefix.
12422test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12423
12424DEFS=-DHAVE_CONFIG_H
12425
12426ac_libobjs=
12427ac_ltlibobjs=
12428U=
12429for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12430 # 1. Remove the extension, and $U if already installed.
12431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12432 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12434 # will be set to the directory where LIBOBJS objects are built.
12435 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12436 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12437done
12438LIBOBJS=$ac_libobjs
12439
12440LTLIBOBJS=$ac_ltlibobjs
12441
12442
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12444$as_echo_n "checking that generated files are newer than configure... " >&6; }
12445 if test -n "$am_sleep_pid"; then
12446 # Hide warnings about reused PIDs.
12447 wait $am_sleep_pid 2>/dev/null
12448 fi
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12450$as_echo "done" >&6; }
12451 if test -n "$EXEEXT"; then
12452 am__EXEEXT_TRUE=
12453 am__EXEEXT_FALSE='#'
12454else
12455 am__EXEEXT_TRUE='#'
12456 am__EXEEXT_FALSE=
12457fi
12458
12459if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12460 as_fn_error $? "conditional \"AMDEP\" was never defined.
12461Usually this means the macro was only invoked conditionally." "$LINENO" 5
12462fi
12463if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12464 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12465Usually this means the macro was only invoked conditionally." "$LINENO" 5
12466fi
12467if test -z "${ENABLE_PYTHON_TRUE}" && test -z "${ENABLE_PYTHON_FALSE}"; then
12468 as_fn_error $? "conditional \"ENABLE_PYTHON\" was never defined.
12469Usually this means the macro was only invoked conditionally." "$LINENO" 5
12470fi
12471if test -z "${COVERITY_TRUE}" && test -z "${COVERITY_FALSE}"; then
12472 as_fn_error $? "conditional \"COVERITY\" was never defined.
12473Usually this means the macro was only invoked conditionally." "$LINENO" 5
12474fi
12475
12476: "${CONFIG_STATUS=./config.status}"
12477ac_write_fail=0
12478ac_clean_files_save=$ac_clean_files
12479ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12481$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12482as_write_fail=0
12483cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12484#! $SHELL
12485# Generated by $as_me.
12486# Run this file to recreate the current configuration.
12487# Compiler output produced by configure, useful for debugging
12488# configure, is in config.log if it exists.
12489
12490debug=false
12491ac_cs_recheck=false
12492ac_cs_silent=false
12493
12494SHELL=\${CONFIG_SHELL-$SHELL}
12495export SHELL
12496_ASEOF
12497cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12498## -------------------- ##
12499## M4sh Initialization. ##
12500## -------------------- ##
12501
12502# Be more Bourne compatible
12503DUALCASE=1; export DUALCASE # for MKS sh
12504if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12505 emulate sh
12506 NULLCMD=:
12507 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12508 # is contrary to our usage. Disable this feature.
12509 alias -g '${1+"$@"}'='"$@"'
12510 setopt NO_GLOB_SUBST
12511else
12512 case `(set -o) 2>/dev/null` in #(
12513 *posix*) :
12514 set -o posix ;; #(
12515 *) :
12516 ;;
12517esac
12518fi
12519
12520
12521as_nl='
12522'
12523export as_nl
12524# Printing a long string crashes Solaris 7 /usr/bin/printf.
12525as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12526as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12527as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12528# Prefer a ksh shell builtin over an external printf program on Solaris,
12529# but without wasting forks for bash or zsh.
12530if test -z "$BASH_VERSION$ZSH_VERSION" \
12531 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12532 as_echo='print -r --'
12533 as_echo_n='print -rn --'
12534elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12535 as_echo='printf %s\n'
12536 as_echo_n='printf %s'
12537else
12538 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12539 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12540 as_echo_n='/usr/ucb/echo -n'
12541 else
12542 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12543 as_echo_n_body='eval
12544 arg=$1;
12545 case $arg in #(
12546 *"$as_nl"*)
12547 expr "X$arg" : "X\\(.*\\)$as_nl";
12548 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12549 esac;
12550 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12551 '
12552 export as_echo_n_body
12553 as_echo_n='sh -c $as_echo_n_body as_echo'
12554 fi
12555 export as_echo_body
12556 as_echo='sh -c $as_echo_body as_echo'
12557fi
12558
12559# The user is always right.
12560if test "${PATH_SEPARATOR+set}" != set; then
12561 PATH_SEPARATOR=:
12562 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12563 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12564 PATH_SEPARATOR=';'
12565 }
12566fi
12567
12568
12569# IFS
12570# We need space, tab and new line, in precisely that order. Quoting is
12571# there to prevent editors from complaining about space-tab.
12572# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12573# splitting by setting IFS to empty value.)
12574IFS=" "" $as_nl"
12575
12576# Find who we are. Look in the path if we contain no directory separator.
12577as_myself=
12578case $0 in #((
12579 *[\\/]* ) as_myself=$0 ;;
12580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581for as_dir in $PATH
12582do
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
12585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12586 done
12587IFS=$as_save_IFS
12588
12589 ;;
12590esac
12591# We did not find ourselves, most probably we were run as `sh COMMAND'
12592# in which case we are not to be found in the path.
12593if test "x$as_myself" = x; then
12594 as_myself=$0
12595fi
12596if test ! -f "$as_myself"; then
12597 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12598 exit 1
12599fi
12600
12601# Unset variables that we do not need and which cause bugs (e.g. in
12602# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12603# suppresses any "Segmentation fault" message there. '((' could
12604# trigger a bug in pdksh 5.2.14.
12605for as_var in BASH_ENV ENV MAIL MAILPATH
12606do eval test x\${$as_var+set} = xset \
12607 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12608done
12609PS1='$ '
12610PS2='> '
12611PS4='+ '
12612
12613# NLS nuisances.
12614LC_ALL=C
12615export LC_ALL
12616LANGUAGE=C
12617export LANGUAGE
12618
12619# CDPATH.
12620(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12621
12622
12623# as_fn_error STATUS ERROR [LINENO LOG_FD]
12624# ----------------------------------------
12625# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12626# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12627# script with STATUS, using 1 if that was 0.
12628as_fn_error ()
12629{
12630 as_status=$1; test $as_status -eq 0 && as_status=1
12631 if test "$4"; then
12632 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12633 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12634 fi
12635 $as_echo "$as_me: error: $2" >&2
12636 as_fn_exit $as_status
12637} # as_fn_error
12638
12639
12640# as_fn_set_status STATUS
12641# -----------------------
12642# Set $? to STATUS, without forking.
12643as_fn_set_status ()
12644{
12645 return $1
12646} # as_fn_set_status
12647
12648# as_fn_exit STATUS
12649# -----------------
12650# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12651as_fn_exit ()
12652{
12653 set +e
12654 as_fn_set_status $1
12655 exit $1
12656} # as_fn_exit
12657
12658# as_fn_unset VAR
12659# ---------------
12660# Portably unset VAR.
12661as_fn_unset ()
12662{
12663 { eval $1=; unset $1;}
12664}
12665as_unset=as_fn_unset
12666# as_fn_append VAR VALUE
12667# ----------------------
12668# Append the text in VALUE to the end of the definition contained in VAR. Take
12669# advantage of any shell optimizations that allow amortized linear growth over
12670# repeated appends, instead of the typical quadratic growth present in naive
12671# implementations.
12672if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12673 eval 'as_fn_append ()
12674 {
12675 eval $1+=\$2
12676 }'
12677else
12678 as_fn_append ()
12679 {
12680 eval $1=\$$1\$2
12681 }
12682fi # as_fn_append
12683
12684# as_fn_arith ARG...
12685# ------------------
12686# Perform arithmetic evaluation on the ARGs, and store the result in the
12687# global $as_val. Take advantage of shells that can avoid forks. The arguments
12688# must be portable across $(()) and expr.
12689if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12690 eval 'as_fn_arith ()
12691 {
12692 as_val=$(( $* ))
12693 }'
12694else
12695 as_fn_arith ()
12696 {
12697 as_val=`expr "$@" || test $? -eq 1`
12698 }
12699fi # as_fn_arith
12700
12701
12702if expr a : '\(a\)' >/dev/null 2>&1 &&
12703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12704 as_expr=expr
12705else
12706 as_expr=false
12707fi
12708
12709if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12710 as_basename=basename
12711else
12712 as_basename=false
12713fi
12714
12715if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12716 as_dirname=dirname
12717else
12718 as_dirname=false
12719fi
12720
12721as_me=`$as_basename -- "$0" ||
12722$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12723 X"$0" : 'X\(//\)$' \| \
12724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12725$as_echo X/"$0" |
12726 sed '/^.*\/\([^/][^/]*\)\/*$/{
12727 s//\1/
12728 q
12729 }
12730 /^X\/\(\/\/\)$/{
12731 s//\1/
12732 q
12733 }
12734 /^X\/\(\/\).*/{
12735 s//\1/
12736 q
12737 }
12738 s/.*/./; q'`
12739
12740# Avoid depending upon Character Ranges.
12741as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12742as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12743as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12744as_cr_digits='0123456789'
12745as_cr_alnum=$as_cr_Letters$as_cr_digits
12746
12747ECHO_C= ECHO_N= ECHO_T=
12748case `echo -n x` in #(((((
12749-n*)
12750 case `echo 'xy\c'` in
12751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12752 xy) ECHO_C='\c';;
12753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12754 ECHO_T=' ';;
12755 esac;;
12756*)
12757 ECHO_N='-n';;
12758esac
12759
12760rm -f conf$$ conf$$.exe conf$$.file
12761if test -d conf$$.dir; then
12762 rm -f conf$$.dir/conf$$.file
12763else
12764 rm -f conf$$.dir
12765 mkdir conf$$.dir 2>/dev/null
12766fi
12767if (echo >conf$$.file) 2>/dev/null; then
12768 if ln -s conf$$.file conf$$ 2>/dev/null; then
12769 as_ln_s='ln -s'
12770 # ... but there are two gotchas:
12771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12773 # In both cases, we have to default to `cp -pR'.
12774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12775 as_ln_s='cp -pR'
12776 elif ln conf$$.file conf$$ 2>/dev/null; then
12777 as_ln_s=ln
12778 else
12779 as_ln_s='cp -pR'
12780 fi
12781else
12782 as_ln_s='cp -pR'
12783fi
12784rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12785rmdir conf$$.dir 2>/dev/null
12786
12787
12788# as_fn_mkdir_p
12789# -------------
12790# Create "$as_dir" as a directory, including parents if necessary.
12791as_fn_mkdir_p ()
12792{
12793
12794 case $as_dir in #(
12795 -*) as_dir=./$as_dir;;
12796 esac
12797 test -d "$as_dir" || eval $as_mkdir_p || {
12798 as_dirs=
12799 while :; do
12800 case $as_dir in #(
12801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12802 *) as_qdir=$as_dir;;
12803 esac
12804 as_dirs="'$as_qdir' $as_dirs"
12805 as_dir=`$as_dirname -- "$as_dir" ||
12806$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12807 X"$as_dir" : 'X\(//\)[^/]' \| \
12808 X"$as_dir" : 'X\(//\)$' \| \
12809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12810$as_echo X"$as_dir" |
12811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12812 s//\1/
12813 q
12814 }
12815 /^X\(\/\/\)[^/].*/{
12816 s//\1/
12817 q
12818 }
12819 /^X\(\/\/\)$/{
12820 s//\1/
12821 q
12822 }
12823 /^X\(\/\).*/{
12824 s//\1/
12825 q
12826 }
12827 s/.*/./; q'`
12828 test -d "$as_dir" && break
12829 done
12830 test -z "$as_dirs" || eval "mkdir $as_dirs"
12831 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12832
12833
12834} # as_fn_mkdir_p
12835if mkdir -p . 2>/dev/null; then
12836 as_mkdir_p='mkdir -p "$as_dir"'
12837else
12838 test -d ./-p && rmdir ./-p
12839 as_mkdir_p=false
12840fi
12841
12842
12843# as_fn_executable_p FILE
12844# -----------------------
12845# Test if FILE is an executable regular file.
12846as_fn_executable_p ()
12847{
12848 test -f "$1" && test -x "$1"
12849} # as_fn_executable_p
12850as_test_x='test -x'
12851as_executable_p=as_fn_executable_p
12852
12853# Sed expression to map a string onto a valid CPP name.
12854as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12855
12856# Sed expression to map a string onto a valid variable name.
12857as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12858
12859
12860exec 6>&1
12861## ----------------------------------- ##
12862## Main body of $CONFIG_STATUS script. ##
12863## ----------------------------------- ##
12864_ASEOF
12865test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12866
12867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12868# Save the log message, to keep $0 and so on meaningful, and to
12869# report actual input values of CONFIG_FILES etc. instead of their
12870# values after options handling.
12871ac_log="
12872This file was extended by libseccomp $as_me 2.3.1, which was
12873generated by GNU Autoconf 2.69. Invocation command line was
12874
12875 CONFIG_FILES = $CONFIG_FILES
12876 CONFIG_HEADERS = $CONFIG_HEADERS
12877 CONFIG_LINKS = $CONFIG_LINKS
12878 CONFIG_COMMANDS = $CONFIG_COMMANDS
12879 $ $0 $@
12880
12881on `(hostname || uname -n) 2>/dev/null | sed 1q`
12882"
12883
12884_ACEOF
12885
12886case $ac_config_files in *"
12887"*) set x $ac_config_files; shift; ac_config_files=$*;;
12888esac
12889
12890case $ac_config_headers in *"
12891"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12892esac
12893
12894
12895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12896# Files that config.status was made for.
12897config_files="$ac_config_files"
12898config_headers="$ac_config_headers"
12899config_commands="$ac_config_commands"
12900
12901_ACEOF
12902
12903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12904ac_cs_usage="\
12905\`$as_me' instantiates files and other configuration actions
12906from templates according to the current configuration. Unless the files
12907and actions are specified as TAGs, all are instantiated by default.
12908
12909Usage: $0 [OPTION]... [TAG]...
12910
12911 -h, --help print this help, then exit
12912 -V, --version print version number and configuration settings, then exit
12913 --config print configuration, then exit
12914 -q, --quiet, --silent
12915 do not print progress messages
12916 -d, --debug don't remove temporary files
12917 --recheck update $as_me by reconfiguring in the same conditions
12918 --file=FILE[:TEMPLATE]
12919 instantiate the configuration file FILE
12920 --header=FILE[:TEMPLATE]
12921 instantiate the configuration header FILE
12922
12923Configuration files:
12924$config_files
12925
12926Configuration headers:
12927$config_headers
12928
12929Configuration commands:
12930$config_commands
12931
12932Report bugs to the package provider."
12933
12934_ACEOF
12935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12936ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12937ac_cs_version="\\
12938libseccomp config.status 2.3.1
12939configured by $0, generated by GNU Autoconf 2.69,
12940 with options \\"\$ac_cs_config\\"
12941
12942Copyright (C) 2012 Free Software Foundation, Inc.
12943This config.status script is free software; the Free Software Foundation
12944gives unlimited permission to copy, distribute and modify it."
12945
12946ac_pwd='$ac_pwd'
12947srcdir='$srcdir'
12948INSTALL='$INSTALL'
12949MKDIR_P='$MKDIR_P'
12950AWK='$AWK'
12951test -n "\$AWK" || AWK=awk
12952_ACEOF
12953
12954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12955# The default lists apply if the user does not specify any file.
12956ac_need_defaults=:
12957while test $# != 0
12958do
12959 case $1 in
12960 --*=?*)
12961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12963 ac_shift=:
12964 ;;
12965 --*=)
12966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12967 ac_optarg=
12968 ac_shift=:
12969 ;;
12970 *)
12971 ac_option=$1
12972 ac_optarg=$2
12973 ac_shift=shift
12974 ;;
12975 esac
12976
12977 case $ac_option in
12978 # Handling of the options.
12979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12980 ac_cs_recheck=: ;;
12981 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12982 $as_echo "$ac_cs_version"; exit ;;
12983 --config | --confi | --conf | --con | --co | --c )
12984 $as_echo "$ac_cs_config"; exit ;;
12985 --debug | --debu | --deb | --de | --d | -d )
12986 debug=: ;;
12987 --file | --fil | --fi | --f )
12988 $ac_shift
12989 case $ac_optarg in
12990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12991 '') as_fn_error $? "missing file argument" ;;
12992 esac
12993 as_fn_append CONFIG_FILES " '$ac_optarg'"
12994 ac_need_defaults=false;;
12995 --header | --heade | --head | --hea )
12996 $ac_shift
12997 case $ac_optarg in
12998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12999 esac
13000 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13001 ac_need_defaults=false;;
13002 --he | --h)
13003 # Conflict between --help and --header
13004 as_fn_error $? "ambiguous option: \`$1'
13005Try \`$0 --help' for more information.";;
13006 --help | --hel | -h )
13007 $as_echo "$ac_cs_usage"; exit ;;
13008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13009 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13010 ac_cs_silent=: ;;
13011
13012 # This is an error.
13013 -*) as_fn_error $? "unrecognized option: \`$1'
13014Try \`$0 --help' for more information." ;;
13015
13016 *) as_fn_append ac_config_targets " $1"
13017 ac_need_defaults=false ;;
13018
13019 esac
13020 shift
13021done
13022
13023ac_configure_extra_args=
13024
13025if $ac_cs_silent; then
13026 exec 6>/dev/null
13027 ac_configure_extra_args="$ac_configure_extra_args --silent"
13028fi
13029
13030_ACEOF
13031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13032if \$ac_cs_recheck; then
13033 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13034 shift
13035 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13036 CONFIG_SHELL='$SHELL'
13037 export CONFIG_SHELL
13038 exec "\$@"
13039fi
13040
13041_ACEOF
13042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13043exec 5>>config.log
13044{
13045 echo
13046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13047## Running $as_me. ##
13048_ASBOX
13049 $as_echo "$ac_log"
13050} >&5
13051
13052_ACEOF
13053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13054#
13055# INIT-COMMANDS
13056#
13057AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13058
13059
13060# The HP-UX ksh and POSIX shell print the target directory to stdout
13061# if CDPATH is set.
13062(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13063
13064sed_quote_subst='$sed_quote_subst'
13065double_quote_subst='$double_quote_subst'
13066delay_variable_subst='$delay_variable_subst'
13067macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13068macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13069enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13070pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13071enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13072enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13073shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13074SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13075ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13076PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13077host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13078host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13079host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13080build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13081build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13082build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13083SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13084Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13085GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13086EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13087FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13088LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13089NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13090LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13091max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13092ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13093exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13094lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13095lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13096lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13097lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13098lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13099reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13100reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13101OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13102deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13103file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13104file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13105want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13106DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13107sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13108AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13109AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13110archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13111STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13112RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13113old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13114old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13115old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13116lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13117CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13118CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13119compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13120GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13121lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13122lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13123lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13124lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13125lt_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"`'
13126lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13127nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13128lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13129lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13130objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13131MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13132lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13133lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13134lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13135lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13136lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13137need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13138MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13139DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13140NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13141LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13142OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13143OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13144libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13145shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13146extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13147archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13148enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13149export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13150whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13151compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13152old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13153old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13154archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13155archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13156module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13157module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13158with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13159allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13160no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13161hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13162hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13163hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13164hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13165hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13166hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13167hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13168inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13169link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13170always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13171export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13172exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13173include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13174prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13175postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13176file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13177variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13178need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13179need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13180version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13181runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13182shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13183shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13184libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13185library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13186soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13187install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13188postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13189postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13190finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13191finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13192hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13193sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13194configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13195configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13196hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13197enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13198enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13199enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13200old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13201striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13202
13203LTCC='$LTCC'
13204LTCFLAGS='$LTCFLAGS'
13205compiler='$compiler_DEFAULT'
13206
13207# A function that is used when there is no print builtin or printf.
13208func_fallback_echo ()
13209{
13210 eval 'cat <<_LTECHO_EOF
13211\$1
13212_LTECHO_EOF'
13213}
13214
13215# Quote evaled strings.
13216for var in SHELL \
13217ECHO \
13218PATH_SEPARATOR \
13219SED \
13220GREP \
13221EGREP \
13222FGREP \
13223LD \
13224NM \
13225LN_S \
13226lt_SP2NL \
13227lt_NL2SP \
13228reload_flag \
13229OBJDUMP \
13230deplibs_check_method \
13231file_magic_cmd \
13232file_magic_glob \
13233want_nocaseglob \
13234DLLTOOL \
13235sharedlib_from_linklib_cmd \
13236AR \
13237AR_FLAGS \
13238archiver_list_spec \
13239STRIP \
13240RANLIB \
13241CC \
13242CFLAGS \
13243compiler \
13244lt_cv_sys_global_symbol_pipe \
13245lt_cv_sys_global_symbol_to_cdecl \
13246lt_cv_sys_global_symbol_to_import \
13247lt_cv_sys_global_symbol_to_c_name_address \
13248lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13249lt_cv_nm_interface \
13250nm_file_list_spec \
13251lt_cv_truncate_bin \
13252lt_prog_compiler_no_builtin_flag \
13253lt_prog_compiler_pic \
13254lt_prog_compiler_wl \
13255lt_prog_compiler_static \
13256lt_cv_prog_compiler_c_o \
13257need_locks \
13258MANIFEST_TOOL \
13259DSYMUTIL \
13260NMEDIT \
13261LIPO \
13262OTOOL \
13263OTOOL64 \
13264shrext_cmds \
13265export_dynamic_flag_spec \
13266whole_archive_flag_spec \
13267compiler_needs_object \
13268with_gnu_ld \
13269allow_undefined_flag \
13270no_undefined_flag \
13271hardcode_libdir_flag_spec \
13272hardcode_libdir_separator \
13273exclude_expsyms \
13274include_expsyms \
13275file_list_spec \
13276variables_saved_for_relink \
13277libname_spec \
13278library_names_spec \
13279soname_spec \
13280install_override_mode \
13281finish_eval \
13282old_striplib \
13283striplib; do
13284 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13285 *[\\\\\\\`\\"\\\$]*)
13286 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13287 ;;
13288 *)
13289 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13290 ;;
13291 esac
13292done
13293
13294# Double-quote double-evaled strings.
13295for var in reload_cmds \
13296old_postinstall_cmds \
13297old_postuninstall_cmds \
13298old_archive_cmds \
13299extract_expsyms_cmds \
13300old_archive_from_new_cmds \
13301old_archive_from_expsyms_cmds \
13302archive_cmds \
13303archive_expsym_cmds \
13304module_cmds \
13305module_expsym_cmds \
13306export_symbols_cmds \
13307prelink_cmds \
13308postlink_cmds \
13309postinstall_cmds \
13310postuninstall_cmds \
13311finish_cmds \
13312sys_lib_search_path_spec \
13313configure_time_dlsearch_path \
13314configure_time_lt_sys_library_path; do
13315 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13316 *[\\\\\\\`\\"\\\$]*)
13317 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13318 ;;
13319 *)
13320 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13321 ;;
13322 esac
13323done
13324
13325ac_aux_dir='$ac_aux_dir'
13326
13327# See if we are running on zsh, and set the options that allow our
13328# commands through without removal of \ escapes INIT.
13329if test -n "\${ZSH_VERSION+set}"; then
13330 setopt NO_GLOB_SUBST
13331fi
13332
13333
13334 PACKAGE='$PACKAGE'
13335 VERSION='$VERSION'
13336 RM='$RM'
13337 ofile='$ofile'
13338
13339
13340
13341
13342_ACEOF
13343
13344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13345
13346# Handling of arguments.
13347for ac_config_target in $ac_config_targets
13348do
13349 case $ac_config_target in
13350 "configure.h") CONFIG_HEADERS="$CONFIG_HEADERS configure.h" ;;
13351 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13352 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13353 "libseccomp.pc") CONFIG_FILES="$CONFIG_FILES libseccomp.pc" ;;
13354 "include/seccomp.h") CONFIG_FILES="$CONFIG_FILES include/seccomp.h" ;;
13355 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13356 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13357 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13358 "src/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/python/Makefile" ;;
13359 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13360 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13361 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13362
13363 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13364 esac
13365done
13366
13367
13368# If the user did not use the arguments to specify the items to instantiate,
13369# then the envvar interface is used. Set only those that are not.
13370# We use the long form for the default assignment because of an extremely
13371# bizarre bug on SunOS 4.1.3.
13372if $ac_need_defaults; then
13373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13375 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13376fi
13377
13378# Have a temporary directory for convenience. Make it in the build tree
13379# simply because there is no reason against having it here, and in addition,
13380# creating and moving files from /tmp can sometimes cause problems.
13381# Hook for its removal unless debugging.
13382# Note that there is a small window in which the directory will not be cleaned:
13383# after its creation but before its name has been assigned to `$tmp'.
13384$debug ||
13385{
13386 tmp= ac_tmp=
13387 trap 'exit_status=$?
13388 : "${ac_tmp:=$tmp}"
13389 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13390' 0
13391 trap 'as_fn_exit 1' 1 2 13 15
13392}
13393# Create a (secure) tmp directory for tmp files.
13394
13395{
13396 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13397 test -d "$tmp"
13398} ||
13399{
13400 tmp=./conf$$-$RANDOM
13401 (umask 077 && mkdir "$tmp")
13402} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13403ac_tmp=$tmp
13404
13405# Set up the scripts for CONFIG_FILES section.
13406# No need to generate them if there are no CONFIG_FILES.
13407# This happens for instance with `./config.status config.h'.
13408if test -n "$CONFIG_FILES"; then
13409
13410
13411ac_cr=`echo X | tr X '\015'`
13412# On cygwin, bash can eat \r inside `` if the user requested igncr.
13413# But we know of no other shell where ac_cr would be empty at this
13414# point, so we can use a bashism as a fallback.
13415if test "x$ac_cr" = x; then
13416 eval ac_cr=\$\'\\r\'
13417fi
13418ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13419if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13420 ac_cs_awk_cr='\\r'
13421else
13422 ac_cs_awk_cr=$ac_cr
13423fi
13424
13425echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13426_ACEOF
13427
13428
13429{
13430 echo "cat >conf$$subs.awk <<_ACEOF" &&
13431 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13432 echo "_ACEOF"
13433} >conf$$subs.sh ||
13434 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13435ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13436ac_delim='%!_!# '
13437for ac_last_try in false false false false false :; do
13438 . ./conf$$subs.sh ||
13439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13440
13441 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13442 if test $ac_delim_n = $ac_delim_num; then
13443 break
13444 elif $ac_last_try; then
13445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13446 else
13447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13448 fi
13449done
13450rm -f conf$$subs.sh
13451
13452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13453cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13454_ACEOF
13455sed -n '
13456h
13457s/^/S["/; s/!.*/"]=/
13458p
13459g
13460s/^[^!]*!//
13461:repl
13462t repl
13463s/'"$ac_delim"'$//
13464t delim
13465:nl
13466h
13467s/\(.\{148\}\)..*/\1/
13468t more1
13469s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13470p
13471n
13472b repl
13473:more1
13474s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13475p
13476g
13477s/.\{148\}//
13478t nl
13479:delim
13480h
13481s/\(.\{148\}\)..*/\1/
13482t more2
13483s/["\\]/\\&/g; s/^/"/; s/$/"/
13484p
13485b
13486:more2
13487s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13488p
13489g
13490s/.\{148\}//
13491t delim
13492' <conf$$subs.awk | sed '
13493/^[^""]/{
13494 N
13495 s/\n//
13496}
13497' >>$CONFIG_STATUS || ac_write_fail=1
13498rm -f conf$$subs.awk
13499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13500_ACAWK
13501cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13502 for (key in S) S_is_set[key] = 1
13503 FS = "\a"
13504
13505}
13506{
13507 line = $ 0
13508 nfields = split(line, field, "@")
13509 substed = 0
13510 len = length(field[1])
13511 for (i = 2; i < nfields; i++) {
13512 key = field[i]
13513 keylen = length(key)
13514 if (S_is_set[key]) {
13515 value = S[key]
13516 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13517 len += length(value) + length(field[++i])
13518 substed = 1
13519 } else
13520 len += 1 + keylen
13521 }
13522
13523 print line
13524}
13525
13526_ACAWK
13527_ACEOF
13528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13529if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13530 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13531else
13532 cat
13533fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13534 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13535_ACEOF
13536
13537# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13538# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13539# trailing colons and then remove the whole line if VPATH becomes empty
13540# (actually we leave an empty line to preserve line numbers).
13541if test "x$srcdir" = x.; then
13542 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13543h
13544s///
13545s/^/:/
13546s/[ ]*$/:/
13547s/:\$(srcdir):/:/g
13548s/:\${srcdir}:/:/g
13549s/:@srcdir@:/:/g
13550s/^:*//
13551s/:*$//
13552x
13553s/\(=[ ]*\).*/\1/
13554G
13555s/\n//
13556s/^[^=]*=[ ]*$//
13557}'
13558fi
13559
13560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13561fi # test -n "$CONFIG_FILES"
13562
13563# Set up the scripts for CONFIG_HEADERS section.
13564# No need to generate them if there are no CONFIG_HEADERS.
13565# This happens for instance with `./config.status Makefile'.
13566if test -n "$CONFIG_HEADERS"; then
13567cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13568BEGIN {
13569_ACEOF
13570
13571# Transform confdefs.h into an awk script `defines.awk', embedded as
13572# here-document in config.status, that substitutes the proper values into
13573# config.h.in to produce config.h.
13574
13575# Create a delimiter string that does not exist in confdefs.h, to ease
13576# handling of long lines.
13577ac_delim='%!_!# '
13578for ac_last_try in false false :; do
13579 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13580 if test -z "$ac_tt"; then
13581 break
13582 elif $ac_last_try; then
13583 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13584 else
13585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13586 fi
13587done
13588
13589# For the awk script, D is an array of macro values keyed by name,
13590# likewise P contains macro parameters if any. Preserve backslash
13591# newline sequences.
13592
13593ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13594sed -n '
13595s/.\{148\}/&'"$ac_delim"'/g
13596t rset
13597:rset
13598s/^[ ]*#[ ]*define[ ][ ]*/ /
13599t def
13600d
13601:def
13602s/\\$//
13603t bsnl
13604s/["\\]/\\&/g
13605s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13606D["\1"]=" \3"/p
13607s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13608d
13609:bsnl
13610s/["\\]/\\&/g
13611s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13612D["\1"]=" \3\\\\\\n"\\/p
13613t cont
13614s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13615t cont
13616d
13617:cont
13618n
13619s/.\{148\}/&'"$ac_delim"'/g
13620t clear
13621:clear
13622s/\\$//
13623t bsnlc
13624s/["\\]/\\&/g; s/^/"/; s/$/"/p
13625d
13626:bsnlc
13627s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13628b cont
13629' <confdefs.h | sed '
13630s/'"$ac_delim"'/"\\\
13631"/g' >>$CONFIG_STATUS || ac_write_fail=1
13632
13633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13634 for (key in D) D_is_set[key] = 1
13635 FS = "\a"
13636}
13637/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13638 line = \$ 0
13639 split(line, arg, " ")
13640 if (arg[1] == "#") {
13641 defundef = arg[2]
13642 mac1 = arg[3]
13643 } else {
13644 defundef = substr(arg[1], 2)
13645 mac1 = arg[2]
13646 }
13647 split(mac1, mac2, "(") #)
13648 macro = mac2[1]
13649 prefix = substr(line, 1, index(line, defundef) - 1)
13650 if (D_is_set[macro]) {
13651 # Preserve the white space surrounding the "#".
13652 print prefix "define", macro P[macro] D[macro]
13653 next
13654 } else {
13655 # Replace #undef with comments. This is necessary, for example,
13656 # in the case of _POSIX_SOURCE, which is predefined and required
13657 # on some systems where configure will not decide to define it.
13658 if (defundef == "undef") {
13659 print "/*", prefix defundef, macro, "*/"
13660 next
13661 }
13662 }
13663}
13664{ print }
13665_ACAWK
13666_ACEOF
13667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13668 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13669fi # test -n "$CONFIG_HEADERS"
13670
13671
13672eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13673shift
13674for ac_tag
13675do
13676 case $ac_tag in
13677 :[FHLC]) ac_mode=$ac_tag; continue;;
13678 esac
13679 case $ac_mode$ac_tag in
13680 :[FHL]*:*);;
13681 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13682 :[FH]-) ac_tag=-:-;;
13683 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13684 esac
13685 ac_save_IFS=$IFS
13686 IFS=:
13687 set x $ac_tag
13688 IFS=$ac_save_IFS
13689 shift
13690 ac_file=$1
13691 shift
13692
13693 case $ac_mode in
13694 :L) ac_source=$1;;
13695 :[FH])
13696 ac_file_inputs=
13697 for ac_f
13698 do
13699 case $ac_f in
13700 -) ac_f="$ac_tmp/stdin";;
13701 *) # Look for the file first in the build tree, then in the source tree
13702 # (if the path is not absolute). The absolute path cannot be DOS-style,
13703 # because $ac_f cannot contain `:'.
13704 test -f "$ac_f" ||
13705 case $ac_f in
13706 [\\/$]*) false;;
13707 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13708 esac ||
13709 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13710 esac
13711 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13712 as_fn_append ac_file_inputs " '$ac_f'"
13713 done
13714
13715 # Let's still pretend it is `configure' which instantiates (i.e., don't
13716 # use $as_me), people would be surprised to read:
13717 # /* config.h. Generated by config.status. */
13718 configure_input='Generated from '`
13719 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13720 `' by configure.'
13721 if test x"$ac_file" != x-; then
13722 configure_input="$ac_file. $configure_input"
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13724$as_echo "$as_me: creating $ac_file" >&6;}
13725 fi
13726 # Neutralize special characters interpreted by sed in replacement strings.
13727 case $configure_input in #(
13728 *\&* | *\|* | *\\* )
13729 ac_sed_conf_input=`$as_echo "$configure_input" |
13730 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13731 *) ac_sed_conf_input=$configure_input;;
13732 esac
13733
13734 case $ac_tag in
13735 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13737 esac
13738 ;;
13739 esac
13740
13741 ac_dir=`$as_dirname -- "$ac_file" ||
13742$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13743 X"$ac_file" : 'X\(//\)[^/]' \| \
13744 X"$ac_file" : 'X\(//\)$' \| \
13745 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13746$as_echo X"$ac_file" |
13747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13748 s//\1/
13749 q
13750 }
13751 /^X\(\/\/\)[^/].*/{
13752 s//\1/
13753 q
13754 }
13755 /^X\(\/\/\)$/{
13756 s//\1/
13757 q
13758 }
13759 /^X\(\/\).*/{
13760 s//\1/
13761 q
13762 }
13763 s/.*/./; q'`
13764 as_dir="$ac_dir"; as_fn_mkdir_p
13765 ac_builddir=.
13766
13767case "$ac_dir" in
13768.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13769*)
13770 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13771 # A ".." for each directory in $ac_dir_suffix.
13772 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13773 case $ac_top_builddir_sub in
13774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13776 esac ;;
13777esac
13778ac_abs_top_builddir=$ac_pwd
13779ac_abs_builddir=$ac_pwd$ac_dir_suffix
13780# for backward compatibility:
13781ac_top_builddir=$ac_top_build_prefix
13782
13783case $srcdir in
13784 .) # We are building in place.
13785 ac_srcdir=.
13786 ac_top_srcdir=$ac_top_builddir_sub
13787 ac_abs_top_srcdir=$ac_pwd ;;
13788 [\\/]* | ?:[\\/]* ) # Absolute name.
13789 ac_srcdir=$srcdir$ac_dir_suffix;
13790 ac_top_srcdir=$srcdir
13791 ac_abs_top_srcdir=$srcdir ;;
13792 *) # Relative name.
13793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13794 ac_top_srcdir=$ac_top_build_prefix$srcdir
13795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13796esac
13797ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13798
13799
13800 case $ac_mode in
13801 :F)
13802 #
13803 # CONFIG_FILE
13804 #
13805
13806 case $INSTALL in
13807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13808 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13809 esac
13810 ac_MKDIR_P=$MKDIR_P
13811 case $MKDIR_P in
13812 [\\/$]* | ?:[\\/]* ) ;;
13813 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13814 esac
13815_ACEOF
13816
13817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13818# If the template does not know about datarootdir, expand it.
13819# FIXME: This hack should be removed a few years after 2.60.
13820ac_datarootdir_hack=; ac_datarootdir_seen=
13821ac_sed_dataroot='
13822/datarootdir/ {
13823 p
13824 q
13825}
13826/@datadir@/p
13827/@docdir@/p
13828/@infodir@/p
13829/@localedir@/p
13830/@mandir@/p'
13831case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13832*datarootdir*) ac_datarootdir_seen=yes;;
13833*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13835$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13836_ACEOF
13837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13838 ac_datarootdir_hack='
13839 s&@datadir@&$datadir&g
13840 s&@docdir@&$docdir&g
13841 s&@infodir@&$infodir&g
13842 s&@localedir@&$localedir&g
13843 s&@mandir@&$mandir&g
13844 s&\\\${datarootdir}&$datarootdir&g' ;;
13845esac
13846_ACEOF
13847
13848# Neutralize VPATH when `$srcdir' = `.'.
13849# Shell code in configure.ac might set extrasub.
13850# FIXME: do we really want to maintain this feature?
13851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13852ac_sed_extra="$ac_vpsub
13853$extrasub
13854_ACEOF
13855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13856:t
13857/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13858s|@configure_input@|$ac_sed_conf_input|;t t
13859s&@top_builddir@&$ac_top_builddir_sub&;t t
13860s&@top_build_prefix@&$ac_top_build_prefix&;t t
13861s&@srcdir@&$ac_srcdir&;t t
13862s&@abs_srcdir@&$ac_abs_srcdir&;t t
13863s&@top_srcdir@&$ac_top_srcdir&;t t
13864s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13865s&@builddir@&$ac_builddir&;t t
13866s&@abs_builddir@&$ac_abs_builddir&;t t
13867s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13868s&@INSTALL@&$ac_INSTALL&;t t
13869s&@MKDIR_P@&$ac_MKDIR_P&;t t
13870$ac_datarootdir_hack
13871"
13872eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13873 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13874
13875test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13876 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13877 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13878 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13880which seems to be undefined. Please make sure it is defined" >&5
13881$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13882which seems to be undefined. Please make sure it is defined" >&2;}
13883
13884 rm -f "$ac_tmp/stdin"
13885 case $ac_file in
13886 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13887 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13888 esac \
13889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13890 ;;
13891 :H)
13892 #
13893 # CONFIG_HEADER
13894 #
13895 if test x"$ac_file" != x-; then
13896 {
13897 $as_echo "/* $configure_input */" \
13898 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13899 } >"$ac_tmp/config.h" \
13900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13901 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13903$as_echo "$as_me: $ac_file is unchanged" >&6;}
13904 else
13905 rm -f "$ac_file"
13906 mv "$ac_tmp/config.h" "$ac_file" \
13907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13908 fi
13909 else
13910 $as_echo "/* $configure_input */" \
13911 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13912 || as_fn_error $? "could not create -" "$LINENO" 5
13913 fi
13914# Compute "$ac_file"'s index in $config_headers.
13915_am_arg="$ac_file"
13916_am_stamp_count=1
13917for _am_header in $config_headers :; do
13918 case $_am_header in
13919 $_am_arg | $_am_arg:* )
13920 break ;;
13921 * )
13922 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13923 esac
13924done
13925echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13926$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13927 X"$_am_arg" : 'X\(//\)[^/]' \| \
13928 X"$_am_arg" : 'X\(//\)$' \| \
13929 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13930$as_echo X"$_am_arg" |
13931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13932 s//\1/
13933 q
13934 }
13935 /^X\(\/\/\)[^/].*/{
13936 s//\1/
13937 q
13938 }
13939 /^X\(\/\/\)$/{
13940 s//\1/
13941 q
13942 }
13943 /^X\(\/\).*/{
13944 s//\1/
13945 q
13946 }
13947 s/.*/./; q'`/stamp-h$_am_stamp_count
13948 ;;
13949
13950 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13951$as_echo "$as_me: executing $ac_file commands" >&6;}
13952 ;;
13953 esac
13954
13955
13956 case $ac_file$ac_mode in
13957 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13958 # Older Autoconf quotes --file arguments for eval, but not when files
13959 # are listed without --file. Let's play safe and only enable the eval
13960 # if we detect the quoting.
13961 case $CONFIG_FILES in
13962 *\'*) eval set x "$CONFIG_FILES" ;;
13963 *) set x $CONFIG_FILES ;;
13964 esac
13965 shift
13966 for mf
13967 do
13968 # Strip MF so we end up with the name of the file.
13969 mf=`echo "$mf" | sed -e 's/:.*$//'`
13970 # Check whether this is an Automake generated Makefile or not.
13971 # We used to match only the files named 'Makefile.in', but
13972 # some people rename them; so instead we look at the file content.
13973 # Grep'ing the first line is not enough: some people post-process
13974 # each Makefile.in and add a new line on top of each file to say so.
13975 # Grep'ing the whole file is not good either: AIX grep has a line
13976 # limit of 2048, but all sed's we know have understand at least 4000.
13977 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13978 dirpart=`$as_dirname -- "$mf" ||
13979$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13980 X"$mf" : 'X\(//\)[^/]' \| \
13981 X"$mf" : 'X\(//\)$' \| \
13982 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13983$as_echo X"$mf" |
13984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13985 s//\1/
13986 q
13987 }
13988 /^X\(\/\/\)[^/].*/{
13989 s//\1/
13990 q
13991 }
13992 /^X\(\/\/\)$/{
13993 s//\1/
13994 q
13995 }
13996 /^X\(\/\).*/{
13997 s//\1/
13998 q
13999 }
14000 s/.*/./; q'`
14001 else
14002 continue
14003 fi
14004 # Extract the definition of DEPDIR, am__include, and am__quote
14005 # from the Makefile without running 'make'.
14006 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14007 test -z "$DEPDIR" && continue
14008 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14009 test -z "$am__include" && continue
14010 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14011 # Find all dependency output files, they are included files with
14012 # $(DEPDIR) in their names. We invoke sed twice because it is the
14013 # simplest approach to changing $(DEPDIR) to its actual value in the
14014 # expansion.
14015 for file in `sed -n "
14016 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14017 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14018 # Make sure the directory exists.
14019 test -f "$dirpart/$file" && continue
14020 fdir=`$as_dirname -- "$file" ||
14021$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14022 X"$file" : 'X\(//\)[^/]' \| \
14023 X"$file" : 'X\(//\)$' \| \
14024 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14025$as_echo X"$file" |
14026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14027 s//\1/
14028 q
14029 }
14030 /^X\(\/\/\)[^/].*/{
14031 s//\1/
14032 q
14033 }
14034 /^X\(\/\/\)$/{
14035 s//\1/
14036 q
14037 }
14038 /^X\(\/\).*/{
14039 s//\1/
14040 q
14041 }
14042 s/.*/./; q'`
14043 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14044 # echo "creating $dirpart/$file"
14045 echo '# dummy' > "$dirpart/$file"
14046 done
14047 done
14048}
14049 ;;
14050 "libtool":C)
14051
14052 # See if we are running on zsh, and set the options that allow our
14053 # commands through without removal of \ escapes.
14054 if test -n "${ZSH_VERSION+set}"; then
14055 setopt NO_GLOB_SUBST
14056 fi
14057
14058 cfgfile=${ofile}T
14059 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14060 $RM "$cfgfile"
14061
14062 cat <<_LT_EOF >> "$cfgfile"
14063#! $SHELL
14064# Generated automatically by $as_me ($PACKAGE) $VERSION
14065# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14066# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14067
14068# Provide generalized library-building support services.
14069# Written by Gordon Matzigkeit, 1996
14070
14071# Copyright (C) 2014 Free Software Foundation, Inc.
14072# This is free software; see the source for copying conditions. There is NO
14073# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14074
14075# GNU Libtool is free software; you can redistribute it and/or modify
14076# it under the terms of the GNU General Public License as published by
14077# the Free Software Foundation; either version 2 of of the License, or
14078# (at your option) any later version.
14079#
14080# As a special exception to the GNU General Public License, if you
14081# distribute this file as part of a program or library that is built
14082# using GNU Libtool, you may include this file under the same
14083# distribution terms that you use for the rest of that program.
14084#
14085# GNU Libtool is distributed in the hope that it will be useful, but
14086# WITHOUT ANY WARRANTY; without even the implied warranty of
14087# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14088# GNU General Public License for more details.
14089#
14090# You should have received a copy of the GNU General Public License
14091# along with this program. If not, see <http://www.gnu.org/licenses/>.
14092
14093
14094# The names of the tagged configurations supported by this script.
14095available_tags=''
14096
14097# Configured defaults for sys_lib_dlsearch_path munging.
14098: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14099
14100# ### BEGIN LIBTOOL CONFIG
14101
14102# Which release of libtool.m4 was used?
14103macro_version=$macro_version
14104macro_revision=$macro_revision
14105
14106# Whether or not to build shared libraries.
14107build_libtool_libs=$enable_shared
14108
14109# What type of objects to build.
14110pic_mode=$pic_mode
14111
14112# Whether or not to build static libraries.
14113build_old_libs=$enable_static
14114
14115# Whether or not to optimize for fast installation.
14116fast_install=$enable_fast_install
14117
14118# Shared archive member basename,for filename based shared library versioning on AIX.
14119shared_archive_member_spec=$shared_archive_member_spec
14120
14121# Shell to use when invoking shell scripts.
14122SHELL=$lt_SHELL
14123
14124# An echo program that protects backslashes.
14125ECHO=$lt_ECHO
14126
14127# The PATH separator for the build system.
14128PATH_SEPARATOR=$lt_PATH_SEPARATOR
14129
14130# The host system.
14131host_alias=$host_alias
14132host=$host
14133host_os=$host_os
14134
14135# The build system.
14136build_alias=$build_alias
14137build=$build
14138build_os=$build_os
14139
14140# A sed program that does not truncate output.
14141SED=$lt_SED
14142
14143# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14144Xsed="\$SED -e 1s/^X//"
14145
14146# A grep program that handles long lines.
14147GREP=$lt_GREP
14148
14149# An ERE matcher.
14150EGREP=$lt_EGREP
14151
14152# A literal string matcher.
14153FGREP=$lt_FGREP
14154
14155# A BSD- or MS-compatible name lister.
14156NM=$lt_NM
14157
14158# Whether we need soft or hard links.
14159LN_S=$lt_LN_S
14160
14161# What is the maximum length of a command?
14162max_cmd_len=$max_cmd_len
14163
14164# Object file suffix (normally "o").
14165objext=$ac_objext
14166
14167# Executable file suffix (normally "").
14168exeext=$exeext
14169
14170# whether the shell understands "unset".
14171lt_unset=$lt_unset
14172
14173# turn spaces into newlines.
14174SP2NL=$lt_lt_SP2NL
14175
14176# turn newlines into spaces.
14177NL2SP=$lt_lt_NL2SP
14178
14179# convert \$build file names to \$host format.
14180to_host_file_cmd=$lt_cv_to_host_file_cmd
14181
14182# convert \$build files to toolchain format.
14183to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14184
14185# An object symbol dumper.
14186OBJDUMP=$lt_OBJDUMP
14187
14188# Method to check whether dependent libraries are shared objects.
14189deplibs_check_method=$lt_deplibs_check_method
14190
14191# Command to use when deplibs_check_method = "file_magic".
14192file_magic_cmd=$lt_file_magic_cmd
14193
14194# How to find potential files when deplibs_check_method = "file_magic".
14195file_magic_glob=$lt_file_magic_glob
14196
14197# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14198want_nocaseglob=$lt_want_nocaseglob
14199
14200# DLL creation program.
14201DLLTOOL=$lt_DLLTOOL
14202
14203# Command to associate shared and link libraries.
14204sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14205
14206# The archiver.
14207AR=$lt_AR
14208
14209# Flags to create an archive.
14210AR_FLAGS=$lt_AR_FLAGS
14211
14212# How to feed a file listing to the archiver.
14213archiver_list_spec=$lt_archiver_list_spec
14214
14215# A symbol stripping program.
14216STRIP=$lt_STRIP
14217
14218# Commands used to install an old-style archive.
14219RANLIB=$lt_RANLIB
14220old_postinstall_cmds=$lt_old_postinstall_cmds
14221old_postuninstall_cmds=$lt_old_postuninstall_cmds
14222
14223# Whether to use a lock for old archive extraction.
14224lock_old_archive_extraction=$lock_old_archive_extraction
14225
14226# A C compiler.
14227LTCC=$lt_CC
14228
14229# LTCC compiler flags.
14230LTCFLAGS=$lt_CFLAGS
14231
14232# Take the output of nm and produce a listing of raw symbols and C names.
14233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14234
14235# Transform the output of nm in a proper C declaration.
14236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14237
14238# Transform the output of nm into a list of symbols to manually relocate.
14239global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14240
14241# Transform the output of nm in a C name address pair.
14242global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14243
14244# Transform the output of nm in a C name address pair when lib prefix is needed.
14245global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14246
14247# The name lister interface.
14248nm_interface=$lt_lt_cv_nm_interface
14249
14250# Specify filename containing input files for \$NM.
14251nm_file_list_spec=$lt_nm_file_list_spec
14252
14253# The root where to search for dependent libraries,and where our libraries should be installed.
14254lt_sysroot=$lt_sysroot
14255
14256# Command to truncate a binary pipe.
14257lt_truncate_bin=$lt_lt_cv_truncate_bin
14258
14259# The name of the directory that contains temporary libtool files.
14260objdir=$objdir
14261
14262# Used to examine libraries when file_magic_cmd begins with "file".
14263MAGIC_CMD=$MAGIC_CMD
14264
14265# Must we lock files when doing compilation?
14266need_locks=$lt_need_locks
14267
14268# Manifest tool.
14269MANIFEST_TOOL=$lt_MANIFEST_TOOL
14270
14271# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14272DSYMUTIL=$lt_DSYMUTIL
14273
14274# Tool to change global to local symbols on Mac OS X.
14275NMEDIT=$lt_NMEDIT
14276
14277# Tool to manipulate fat objects and archives on Mac OS X.
14278LIPO=$lt_LIPO
14279
14280# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14281OTOOL=$lt_OTOOL
14282
14283# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14284OTOOL64=$lt_OTOOL64
14285
14286# Old archive suffix (normally "a").
14287libext=$libext
14288
14289# Shared library suffix (normally ".so").
14290shrext_cmds=$lt_shrext_cmds
14291
14292# The commands to extract the exported symbol list from a shared archive.
14293extract_expsyms_cmds=$lt_extract_expsyms_cmds
14294
14295# Variables whose values should be saved in libtool wrapper scripts and
14296# restored at link time.
14297variables_saved_for_relink=$lt_variables_saved_for_relink
14298
14299# Do we need the "lib" prefix for modules?
14300need_lib_prefix=$need_lib_prefix
14301
14302# Do we need a version for libraries?
14303need_version=$need_version
14304
14305# Library versioning type.
14306version_type=$version_type
14307
14308# Shared library runtime path variable.
14309runpath_var=$runpath_var
14310
14311# Shared library path variable.
14312shlibpath_var=$shlibpath_var
14313
14314# Is shlibpath searched before the hard-coded library search path?
14315shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14316
14317# Format of library name prefix.
14318libname_spec=$lt_libname_spec
14319
14320# List of archive names. First name is the real one, the rest are links.
14321# The last name is the one that the linker finds with -lNAME
14322library_names_spec=$lt_library_names_spec
14323
14324# The coded name of the library, if different from the real name.
14325soname_spec=$lt_soname_spec
14326
14327# Permission mode override for installation of shared libraries.
14328install_override_mode=$lt_install_override_mode
14329
14330# Command to use after installation of a shared archive.
14331postinstall_cmds=$lt_postinstall_cmds
14332
14333# Command to use after uninstallation of a shared archive.
14334postuninstall_cmds=$lt_postuninstall_cmds
14335
14336# Commands used to finish a libtool library installation in a directory.
14337finish_cmds=$lt_finish_cmds
14338
14339# As "finish_cmds", except a single script fragment to be evaled but
14340# not shown.
14341finish_eval=$lt_finish_eval
14342
14343# Whether we should hardcode library paths into libraries.
14344hardcode_into_libs=$hardcode_into_libs
14345
14346# Compile-time system search path for libraries.
14347sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14348
14349# Detected run-time system search path for libraries.
14350sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14351
14352# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14353configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14354
14355# Whether dlopen is supported.
14356dlopen_support=$enable_dlopen
14357
14358# Whether dlopen of programs is supported.
14359dlopen_self=$enable_dlopen_self
14360
14361# Whether dlopen of statically linked programs is supported.
14362dlopen_self_static=$enable_dlopen_self_static
14363
14364# Commands to strip libraries.
14365old_striplib=$lt_old_striplib
14366striplib=$lt_striplib
14367
14368
14369# The linker used to build libraries.
14370LD=$lt_LD
14371
14372# How to create reloadable object files.
14373reload_flag=$lt_reload_flag
14374reload_cmds=$lt_reload_cmds
14375
14376# Commands used to build an old-style archive.
14377old_archive_cmds=$lt_old_archive_cmds
14378
14379# A language specific compiler.
14380CC=$lt_compiler
14381
14382# Is the compiler the GNU compiler?
14383with_gcc=$GCC
14384
14385# Compiler flag to turn off builtin functions.
14386no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14387
14388# Additional compiler flags for building library objects.
14389pic_flag=$lt_lt_prog_compiler_pic
14390
14391# How to pass a linker flag through the compiler.
14392wl=$lt_lt_prog_compiler_wl
14393
14394# Compiler flag to prevent dynamic linking.
14395link_static_flag=$lt_lt_prog_compiler_static
14396
14397# Does compiler simultaneously support -c and -o options?
14398compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14399
14400# Whether or not to add -lc for building shared libraries.
14401build_libtool_need_lc=$archive_cmds_need_lc
14402
14403# Whether or not to disallow shared libs when runtime libs are static.
14404allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14405
14406# Compiler flag to allow reflexive dlopens.
14407export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14408
14409# Compiler flag to generate shared objects directly from archives.
14410whole_archive_flag_spec=$lt_whole_archive_flag_spec
14411
14412# Whether the compiler copes with passing no objects directly.
14413compiler_needs_object=$lt_compiler_needs_object
14414
14415# Create an old-style archive from a shared archive.
14416old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14417
14418# Create a temporary old-style archive to link instead of a shared archive.
14419old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14420
14421# Commands used to build a shared archive.
14422archive_cmds=$lt_archive_cmds
14423archive_expsym_cmds=$lt_archive_expsym_cmds
14424
14425# Commands used to build a loadable module if different from building
14426# a shared archive.
14427module_cmds=$lt_module_cmds
14428module_expsym_cmds=$lt_module_expsym_cmds
14429
14430# Whether we are building with GNU ld or not.
14431with_gnu_ld=$lt_with_gnu_ld
14432
14433# Flag that allows shared libraries with undefined symbols to be built.
14434allow_undefined_flag=$lt_allow_undefined_flag
14435
14436# Flag that enforces no undefined symbols.
14437no_undefined_flag=$lt_no_undefined_flag
14438
14439# Flag to hardcode \$libdir into a binary during linking.
14440# This must work even if \$libdir does not exist
14441hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14442
14443# Whether we need a single "-rpath" flag with a separated argument.
14444hardcode_libdir_separator=$lt_hardcode_libdir_separator
14445
14446# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14447# DIR into the resulting binary.
14448hardcode_direct=$hardcode_direct
14449
14450# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14451# DIR into the resulting binary and the resulting library dependency is
14452# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14453# library is relocated.
14454hardcode_direct_absolute=$hardcode_direct_absolute
14455
14456# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14457# into the resulting binary.
14458hardcode_minus_L=$hardcode_minus_L
14459
14460# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14461# into the resulting binary.
14462hardcode_shlibpath_var=$hardcode_shlibpath_var
14463
14464# Set to "yes" if building a shared library automatically hardcodes DIR
14465# into the library and all subsequent libraries and executables linked
14466# against it.
14467hardcode_automatic=$hardcode_automatic
14468
14469# Set to yes if linker adds runtime paths of dependent libraries
14470# to runtime path list.
14471inherit_rpath=$inherit_rpath
14472
14473# Whether libtool must link a program against all its dependency libraries.
14474link_all_deplibs=$link_all_deplibs
14475
14476# Set to "yes" if exported symbols are required.
14477always_export_symbols=$always_export_symbols
14478
14479# The commands to list exported symbols.
14480export_symbols_cmds=$lt_export_symbols_cmds
14481
14482# Symbols that should not be listed in the preloaded symbols.
14483exclude_expsyms=$lt_exclude_expsyms
14484
14485# Symbols that must always be exported.
14486include_expsyms=$lt_include_expsyms
14487
14488# Commands necessary for linking programs (against libraries) with templates.
14489prelink_cmds=$lt_prelink_cmds
14490
14491# Commands necessary for finishing linking programs.
14492postlink_cmds=$lt_postlink_cmds
14493
14494# Specify filename containing input files.
14495file_list_spec=$lt_file_list_spec
14496
14497# How to hardcode a shared library path into an executable.
14498hardcode_action=$hardcode_action
14499
14500# ### END LIBTOOL CONFIG
14501
14502_LT_EOF
14503
14504 cat <<'_LT_EOF' >> "$cfgfile"
14505
14506# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14507
14508# func_munge_path_list VARIABLE PATH
14509# -----------------------------------
14510# VARIABLE is name of variable containing _space_ separated list of
14511# directories to be munged by the contents of PATH, which is string
14512# having a format:
14513# "DIR[:DIR]:"
14514# string "DIR[ DIR]" will be prepended to VARIABLE
14515# ":DIR[:DIR]"
14516# string "DIR[ DIR]" will be appended to VARIABLE
14517# "DIRP[:DIRP]::[DIRA:]DIRA"
14518# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14519# "DIRA[ DIRA]" will be appended to VARIABLE
14520# "DIR[:DIR]"
14521# VARIABLE will be replaced by "DIR[ DIR]"
14522func_munge_path_list ()
14523{
14524 case x$2 in
14525 x)
14526 ;;
14527 *:)
14528 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14529 ;;
14530 x:*)
14531 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14532 ;;
14533 *::*)
14534 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14535 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14536 ;;
14537 *)
14538 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14539 ;;
14540 esac
14541}
14542
14543
14544# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14545func_cc_basename ()
14546{
14547 for cc_temp in $*""; do
14548 case $cc_temp in
14549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14551 \-*) ;;
14552 *) break;;
14553 esac
14554 done
14555 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14556}
14557
14558
14559# ### END FUNCTIONS SHARED WITH CONFIGURE
14560
14561_LT_EOF
14562
14563 case $host_os in
14564 aix3*)
14565 cat <<\_LT_EOF >> "$cfgfile"
14566# AIX sometimes has problems with the GCC collect2 program. For some
14567# reason, if we set the COLLECT_NAMES environment variable, the problems
14568# vanish in a puff of smoke.
14569if test set != "${COLLECT_NAMES+set}"; then
14570 COLLECT_NAMES=
14571 export COLLECT_NAMES
14572fi
14573_LT_EOF
14574 ;;
14575 esac
14576
14577
14578ltmain=$ac_aux_dir/ltmain.sh
14579
14580
14581 # We use sed instead of cat because bash on DJGPP gets confused if
14582 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14583 # text mode, it properly converts lines to CR/LF. This bash problem
14584 # is reportedly fixed, but why not run on old versions too?
14585 sed '$q' "$ltmain" >> "$cfgfile" \
14586 || (rm -f "$cfgfile"; exit 1)
14587
14588 mv -f "$cfgfile" "$ofile" ||
14589 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14590 chmod +x "$ofile"
14591
14592 ;;
14593
14594 esac
14595done # for ac_tag
14596
14597
14598as_fn_exit 0
14599_ACEOF
14600ac_clean_files=$ac_clean_files_save
14601
14602test $ac_write_fail = 0 ||
14603 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14604
14605
14606# configure is writing to config.log, and then calls config.status.
14607# config.status does its own redirection, appending to config.log.
14608# Unfortunately, on DOS this fails, as config.log is still kept open
14609# by configure, so config.status won't be able to write to it; its
14610# output is simply discarded. So we exec the FD to /dev/null,
14611# effectively closing config.log, so it can be properly (re)opened and
14612# appended to by config.status. When coming back to configure, we
14613# need to make the FD available again.
14614if test "$no_create" != yes; then
14615 ac_cs_success=:
14616 ac_config_status_args=
14617 test "$silent" = yes &&
14618 ac_config_status_args="$ac_config_status_args --quiet"
14619 exec 5>/dev/null
14620 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14621 exec 5>>config.log
14622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14623 # would make configure fail if this is the last instruction.
14624 $ac_cs_success || as_fn_exit 1
14625fi
14626if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14628$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14629fi
14630
This page took 1.45072 seconds and 4 git commands to generate.