blob: 00405baf48b3786d6bdca5bf56bc5e35bbf1dd65 [file] [log] [blame]
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186else
187 as_have_required=no
188fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209fi
210fi
211 done;;
212 esac
213 as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251 fi
252 exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270 { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279 return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287 set +e
288 as_fn_set_status $1
289 exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394else
395 as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400else
401 as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406else
407 as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502else
503 as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME=
569PACKAGE_TARNAME=
570PACKAGE_VERSION=
571PACKAGE_STRING=
572PACKAGE_BUGREPORT=
573PACKAGE_URL=
574
575ac_unique_file="src/opus_encoder.c"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_subst_vars='am__EXEEXT_FALSE
613am__EXEEXT_TRUE
614LTLIBOBJS
615LIBOBJS
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +0000616PC_LIBM
617PC_BUILD
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000618CUSTOM_MODES_FALSE
619CUSTOM_MODES_TRUE
620FIXED_POINT_FALSE
621FIXED_POINT_TRUE
622SIZE32
623SIZE16
624SYMBOL_VISIBILITY
625HAVE_DOXYGEN_FALSE
626HAVE_DOXYGEN_TRUE
627HAVE_DOXYGEN
628LIBM
629CPP
630OTOOL64
631OTOOL
632LIPO
633NMEDIT
634DSYMUTIL
635MANIFEST_TOOL
636RANLIB
637ac_ct_AR
638AR
639DLLTOOL
640OBJDUMP
641LN_S
642NM
643ac_ct_DUMPBIN
644DUMPBIN
645LD
646FGREP
647EGREP
648GREP
649SED
650am__fastdepCC_FALSE
651am__fastdepCC_TRUE
652CCDEPMODE
653am__nodep
654AMDEPBACKSLASH
655AMDEP_FALSE
656AMDEP_TRUE
657am__quote
658am__include
659DEPDIR
660OBJEXT
661EXEEXT
662ac_ct_CC
663CPPFLAGS
664LDFLAGS
665CFLAGS
666CC
667LIBTOOL
668host_os
669host_vendor
670host_cpu
671host
672build_os
673build_vendor
674build_cpu
675build
676MAINT
677MAINTAINER_MODE_FALSE
678MAINTAINER_MODE_TRUE
679am__untar
680am__tar
681AMTAR
682am__leading_dot
683SET_MAKE
684AWK
685mkdir_p
686MKDIR_P
687INSTALL_STRIP_PROGRAM
688STRIP
689install_sh
690MAKEINFO
691AUTOHEADER
692AUTOMAKE
693AUTOCONF
694ACLOCAL
695VERSION
696PACKAGE
697CYGPATH_W
698am__isrc
699INSTALL_DATA
700INSTALL_SCRIPT
701INSTALL_PROGRAM
702OPUS_LT_AGE
703OPUS_LT_REVISION
704OPUS_LT_CURRENT
705OPUS_VERSION
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
710target_alias
711host_alias
712build_alias
713LIBS
714ECHO_T
715ECHO_N
716ECHO_C
717DEFS
718mandir
719localedir
720libdir
721psdir
722pdfdir
723dvidir
724htmldir
725infodir
726docdir
727oldincludedir
728includedir
729localstatedir
730sharedstatedir
731sysconfdir
732datadir
733datarootdir
734libexecdir
735sbindir
736bindir
737program_transform_name
738prefix
739exec_prefix
740PACKAGE_URL
741PACKAGE_BUGREPORT
742PACKAGE_STRING
743PACKAGE_VERSION
744PACKAGE_TARNAME
745PACKAGE_NAME
746PATH_SEPARATOR
747SHELL'
748ac_subst_files=''
749ac_user_opts='
750enable_option_checking
751enable_silent_rules
752enable_maintainer_mode
753enable_shared
754enable_static
755with_pic
756enable_fast_install
757enable_dependency_tracking
758with_gnu_ld
759with_sysroot
760enable_libtool_lock
761enable_fixed_point
762enable_fixed_point_debug
763enable_custom_modes
764enable_float_approx
765enable_assertions
766enable_fuzzing
767enable_doc
768'
769 ac_precious_vars='build_alias
770host_alias
771target_alias
772CC
773CFLAGS
774LDFLAGS
775LIBS
776CPPFLAGS
777CPP'
778
779
780# Initialize some variables set by options.
781ac_init_help=
782ac_init_version=false
783ac_unrecognized_opts=
784ac_unrecognized_sep=
785# The variables have the same names as the options, with
786# dashes changed to underlines.
787cache_file=/dev/null
788exec_prefix=NONE
789no_create=
790no_recursion=
791prefix=NONE
792program_prefix=NONE
793program_suffix=NONE
794program_transform_name=s,x,x,
795silent=
796site=
797srcdir=
798verbose=
799x_includes=NONE
800x_libraries=NONE
801
802# Installation directory options.
803# These are left unexpanded so users can "make install exec_prefix=/foo"
804# and all the variables that are supposed to be based on exec_prefix
805# by default will actually change.
806# Use braces instead of parens because sh, perl, etc. also accept them.
807# (The list follows the same order as the GNU Coding Standards.)
808bindir='${exec_prefix}/bin'
809sbindir='${exec_prefix}/sbin'
810libexecdir='${exec_prefix}/libexec'
811datarootdir='${prefix}/share'
812datadir='${datarootdir}'
813sysconfdir='${prefix}/etc'
814sharedstatedir='${prefix}/com'
815localstatedir='${prefix}/var'
816includedir='${prefix}/include'
817oldincludedir='/usr/include'
818docdir='${datarootdir}/doc/${PACKAGE}'
819infodir='${datarootdir}/info'
820htmldir='${docdir}'
821dvidir='${docdir}'
822pdfdir='${docdir}'
823psdir='${docdir}'
824libdir='${exec_prefix}/lib'
825localedir='${datarootdir}/locale'
826mandir='${datarootdir}/man'
827
828ac_prev=
829ac_dashdash=
830for ac_option
831do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892"enable_$ac_useropt"
893"*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186done
1187
1188if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191fi
1192
1193if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199fi
1200
1201# Check all directory arguments for consistency.
1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220done
1221
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used" >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
1288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320\`configure' configures this package to adapt to many kinds of systems.
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389
1390 cat <<\_ACEOF
1391
1392Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-silent-rules less verbose build output (undo: `make V=1')
1397 --disable-silent-rules verbose build output (undo: `make V=0')
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +00001398 --disable-maintainer-mode disable make rules and dependencies not useful
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001399 (and sometimes confusing) to the casual installer
1400 --enable-shared[=PKGS] build shared libraries [default=yes]
1401 --enable-static[=PKGS] build static libraries [default=yes]
1402 --enable-fast-install[=PKGS]
1403 optimize for fast installation [default=yes]
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1407 --enable-fixed-point compile without floating point (for machines without a fast enough FPU)
1408 --enable-fixed-point-debug debug fixed-point implementation
1409 --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
1410 --enable-float-approx enable fast approximations for floating point
1411 --enable-assertions enable additional software error checking
1412 --enable-fuzzing causes the encoder to make random decisions
1413 --disable-doc Do not build API documentation
1414
1415Optional Packages:
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1419 both]
1420 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1421 --with-sysroot=DIR Search for dependent libraries within DIR
1422 (or the compiler's sysroot if not specified).
1423
1424Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 CPP C preprocessor
1433
1434Use these variables to override the choices made by `configure' or to help
1435it to find libraries and programs with nonstandard names/locations.
1436
1437Report bugs to the package provider.
1438_ACEOF
1439ac_status=$?
1440fi
1441
1442if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450case "$ac_dir" in
1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452*)
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460esac
1461ac_abs_top_builddir=$ac_pwd
1462ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463# for backward compatibility:
1464ac_top_builddir=$ac_top_build_prefix
1465
1466case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479esac
1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1495fi
1496
1497test -n "$ac_init_help" && exit $ac_status
1498if $ac_init_version; then
1499 cat <<\_ACEOF
1500configure
1501generated by GNU Autoconf 2.68
1502
1503Copyright (C) 2010 Free Software Foundation, Inc.
1504This configure script is free software; the Free Software Foundation
1505gives unlimited permission to copy, distribute and modify it.
1506_ACEOF
1507 exit
1508fi
1509
1510## ------------------------ ##
1511## Autoconf initialization. ##
1512## ------------------------ ##
1513
1514# ac_fn_c_try_compile LINENO
1515# --------------------------
1516# Try to compile conftest.$ac_ext, and return whether this succeeded.
1517ac_fn_c_try_compile ()
1518{
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1522case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525esac
1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527$as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1540 ac_retval=0
1541else
1542 $as_echo "$as_me: failed program was:" >&5
1543sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546fi
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550} # ac_fn_c_try_compile
1551
1552# ac_fn_c_try_link LINENO
1553# -----------------------
1554# Try to link conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_link ()
1556{
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext conftest$ac_exeext
1559 if { { ac_try="$ac_link"
1560case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_link") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest$ac_exeext && {
1578 test "$cross_compiling" = yes ||
1579 $as_test_x conftest$ac_exeext
1580 }; then :
1581 ac_retval=0
1582else
1583 $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587fi
1588 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1589 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1590 # interfere with the next link command; also delete a directory that is
1591 # left behind by Apple's compiler. We do this before executing the actions.
1592 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_link
1597
1598# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1599# -------------------------------------------------------
1600# Tests whether HEADER exists and can be compiled using the include files in
1601# INCLUDES, setting the cache variable VAR accordingly.
1602ac_fn_c_check_header_compile ()
1603{
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606$as_echo_n "checking for $2... " >&6; }
1607if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1609else
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h. */
1612$4
1613#include <$2>
1614_ACEOF
1615if ac_fn_c_try_compile "$LINENO"; then :
1616 eval "$3=yes"
1617else
1618 eval "$3=no"
1619fi
1620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621fi
1622eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624$as_echo "$ac_res" >&6; }
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627} # ac_fn_c_check_header_compile
1628
1629# ac_fn_c_try_cpp LINENO
1630# ----------------------
1631# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_cpp ()
1633{
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } > conftest.i && {
1651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 }; then :
1654 ac_retval=0
1655else
1656 $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660fi
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664} # ac_fn_c_try_cpp
1665
1666# ac_fn_c_try_run LINENO
1667# ----------------------
1668# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669# that executables *can* be run.
1670ac_fn_c_try_run ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1674case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=$ac_status
1701fi
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_run
1707
1708# ac_fn_c_check_func LINENO FUNC VAR
1709# ----------------------------------
1710# Tests whether FUNC exists, setting the cache variable VAR accordingly
1711ac_fn_c_check_func ()
1712{
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715$as_echo_n "checking for $2... " >&6; }
1716if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718else
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h. */
1721/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1723#define $2 innocuous_$2
1724
1725/* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char $2 (); below.
1727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1728 <limits.h> exists even on freestanding compilers. */
1729
1730#ifdef __STDC__
1731# include <limits.h>
1732#else
1733# include <assert.h>
1734#endif
1735
1736#undef $2
1737
1738/* Override any GCC internal prototype to avoid an error.
1739 Use char because int might match the return type of a GCC
1740 builtin and then its argument prototype would still apply. */
1741#ifdef __cplusplus
1742extern "C"
1743#endif
1744char $2 ();
1745/* The GNU C library defines this for functions which it implements
1746 to always fail with ENOSYS. Some functions are actually named
1747 something starting with __ and the normal name is an alias. */
1748#if defined __stub_$2 || defined __stub___$2
1749choke me
1750#endif
1751
1752int
1753main ()
1754{
1755return $2 ();
1756 ;
1757 return 0;
1758}
1759_ACEOF
1760if ac_fn_c_try_link "$LINENO"; then :
1761 eval "$3=yes"
1762else
1763 eval "$3=no"
1764fi
1765rm -f core conftest.err conftest.$ac_objext \
1766 conftest$ac_exeext conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773} # ac_fn_c_check_func
1774
1775# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1776# -------------------------------------------------------
1777# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1778# the include files in INCLUDES and setting the cache variable VAR
1779# accordingly.
1780ac_fn_c_check_header_mongrel ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if eval \${$3+:} false; then :
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788fi
1789eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792else
1793 # Is the header compilable?
1794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1795$as_echo_n "checking $2 usability... " >&6; }
1796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$4
1799#include <$2>
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802 ac_header_compiler=yes
1803else
1804 ac_header_compiler=no
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1808$as_echo "$ac_header_compiler" >&6; }
1809
1810# Is the header present?
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1812$as_echo_n "checking $2 presence... " >&6; }
1813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h. */
1815#include <$2>
1816_ACEOF
1817if ac_fn_c_try_cpp "$LINENO"; then :
1818 ac_header_preproc=yes
1819else
1820 ac_header_preproc=no
1821fi
1822rm -f conftest.err conftest.i conftest.$ac_ext
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1824$as_echo "$ac_header_preproc" >&6; }
1825
1826# So? What about this header?
1827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1828 yes:no: )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1830$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ;;
1834 no:yes:* )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1836$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1838$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1840$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1842$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ;;
1846esac
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851else
1852 eval "$3=\$ac_header_compiler"
1853fi
1854eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857fi
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860} # ac_fn_c_check_header_mongrel
1861
1862# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1863# --------------------------------------------
1864# Tries to find the compile-time value of EXPR in a program that includes
1865# INCLUDES, setting VAR accordingly. Returns whether the value could be
1866# computed
1867ac_fn_c_compute_int ()
1868{
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if test "$cross_compiling" = yes; then
1871 # Depending upon the size, compute the lo and hi bounds.
1872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h. */
1874$4
1875int
1876main ()
1877{
1878static int test_array [1 - 2 * !(($2) >= 0)];
1879test_array [0] = 0
1880
1881 ;
1882 return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_compile "$LINENO"; then :
1886 ac_lo=0 ac_mid=0
1887 while :; do
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h. */
1890$4
1891int
1892main ()
1893{
1894static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1895test_array [0] = 0
1896
1897 ;
1898 return 0;
1899}
1900_ACEOF
1901if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_hi=$ac_mid; break
1903else
1904 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1905 if test $ac_lo -le $ac_mid; then
1906 ac_lo= ac_hi=
1907 break
1908 fi
1909 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1910fi
1911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 done
1913else
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h. */
1916$4
1917int
1918main ()
1919{
1920static int test_array [1 - 2 * !(($2) < 0)];
1921test_array [0] = 0
1922
1923 ;
1924 return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_hi=-1 ac_mid=-1
1929 while :; do
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h. */
1932$4
1933int
1934main ()
1935{
1936static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1937test_array [0] = 0
1938
1939 ;
1940 return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_lo=$ac_mid; break
1945else
1946 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1947 if test $ac_mid -le $ac_hi; then
1948 ac_lo= ac_hi=
1949 break
1950 fi
1951 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 done
1955else
1956 ac_lo= ac_hi=
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959fi
1960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961# Binary search between lo and hi bounds.
1962while test "x$ac_lo" != "x$ac_hi"; do
1963 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1971test_array [0] = 0
1972
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978 ac_hi=$ac_mid
1979else
1980 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983done
1984case $ac_lo in #((
1985?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1986'') ac_retval=1 ;;
1987esac
1988 else
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h. */
1991$4
1992static long int longval () { return $2; }
1993static unsigned long int ulongval () { return $2; }
1994#include <stdio.h>
1995#include <stdlib.h>
1996int
1997main ()
1998{
1999
2000 FILE *f = fopen ("conftest.val", "w");
2001 if (! f)
2002 return 1;
2003 if (($2) < 0)
2004 {
2005 long int i = longval ();
2006 if (i != ($2))
2007 return 1;
2008 fprintf (f, "%ld", i);
2009 }
2010 else
2011 {
2012 unsigned long int i = ulongval ();
2013 if (i != ($2))
2014 return 1;
2015 fprintf (f, "%lu", i);
2016 }
2017 /* Do not output a trailing newline, as this causes \r\n confusion
2018 on some platforms. */
2019 return ferror (f) || fclose (f) != 0;
2020
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025if ac_fn_c_try_run "$LINENO"; then :
2026 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2027else
2028 ac_retval=1
2029fi
2030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2031 conftest.$ac_objext conftest.beam conftest.$ac_ext
2032rm -f conftest.val
2033
2034 fi
2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 as_fn_set_status $ac_retval
2037
2038} # ac_fn_c_compute_int
2039cat >config.log <<_ACEOF
2040This file contains any messages produced by compilers while
2041running configure, to aid debugging if configure makes a mistake.
2042
2043It was created by $as_me, which was
2044generated by GNU Autoconf 2.68. Invocation command line was
2045
2046 $ $0 $@
2047
2048_ACEOF
2049exec 5>>config.log
2050{
2051cat <<_ASUNAME
2052## --------- ##
2053## Platform. ##
2054## --------- ##
2055
2056hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2057uname -m = `(uname -m) 2>/dev/null || echo unknown`
2058uname -r = `(uname -r) 2>/dev/null || echo unknown`
2059uname -s = `(uname -s) 2>/dev/null || echo unknown`
2060uname -v = `(uname -v) 2>/dev/null || echo unknown`
2061
2062/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2063/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2064
2065/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2066/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2067/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2068/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2069/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2070/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2071/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2072
2073_ASUNAME
2074
2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076for as_dir in $PATH
2077do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 $as_echo "PATH: $as_dir"
2081 done
2082IFS=$as_save_IFS
2083
2084} >&5
2085
2086cat >&5 <<_ACEOF
2087
2088
2089## ----------- ##
2090## Core tests. ##
2091## ----------- ##
2092
2093_ACEOF
2094
2095
2096# Keep a trace of the command line.
2097# Strip out --no-create and --no-recursion so they do not pile up.
2098# Strip out --silent because we don't want to record it for future runs.
2099# Also quote any args containing shell meta-characters.
2100# Make two passes to allow for proper duplicate-argument suppression.
2101ac_configure_args=
2102ac_configure_args0=
2103ac_configure_args1=
2104ac_must_keep_next=false
2105for ac_pass in 1 2
2106do
2107 for ac_arg
2108 do
2109 case $ac_arg in
2110 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2112 | -silent | --silent | --silen | --sile | --sil)
2113 continue ;;
2114 *\'*)
2115 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2116 esac
2117 case $ac_pass in
2118 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2119 2)
2120 as_fn_append ac_configure_args1 " '$ac_arg'"
2121 if test $ac_must_keep_next = true; then
2122 ac_must_keep_next=false # Got value, back to normal.
2123 else
2124 case $ac_arg in
2125 *=* | --config-cache | -C | -disable-* | --disable-* \
2126 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2127 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2128 | -with-* | --with-* | -without-* | --without-* | --x)
2129 case "$ac_configure_args0 " in
2130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2131 esac
2132 ;;
2133 -* ) ac_must_keep_next=true ;;
2134 esac
2135 fi
2136 as_fn_append ac_configure_args " '$ac_arg'"
2137 ;;
2138 esac
2139 done
2140done
2141{ ac_configure_args0=; unset ac_configure_args0;}
2142{ ac_configure_args1=; unset ac_configure_args1;}
2143
2144# When interrupted or exit'd, cleanup temporary files, and complete
2145# config.log. We remove comments because anyway the quotes in there
2146# would cause problems or look ugly.
2147# WARNING: Use '\'' to represent an apostrophe within the trap.
2148# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2149trap 'exit_status=$?
2150 # Save into config.log some information that might help in debugging.
2151 {
2152 echo
2153
2154 $as_echo "## ---------------- ##
2155## Cache variables. ##
2156## ---------------- ##"
2157 echo
2158 # The following way of writing the cache mishandles newlines in values,
2159(
2160 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in #(
2163 *${as_nl}*)
2164 case $ac_var in #(
2165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2167 esac
2168 case $ac_var in #(
2169 _ | IFS | as_nl) ;; #(
2170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2171 *) { eval $ac_var=; unset $ac_var;} ;;
2172 esac ;;
2173 esac
2174 done
2175 (set) 2>&1 |
2176 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2177 *${as_nl}ac_space=\ *)
2178 sed -n \
2179 "s/'\''/'\''\\\\'\'''\''/g;
2180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2181 ;; #(
2182 *)
2183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2184 ;;
2185 esac |
2186 sort
2187)
2188 echo
2189
2190 $as_echo "## ----------------- ##
2191## Output variables. ##
2192## ----------------- ##"
2193 echo
2194 for ac_var in $ac_subst_vars
2195 do
2196 eval ac_val=\$$ac_var
2197 case $ac_val in
2198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199 esac
2200 $as_echo "$ac_var='\''$ac_val'\''"
2201 done | sort
2202 echo
2203
2204 if test -n "$ac_subst_files"; then
2205 $as_echo "## ------------------- ##
2206## File substitutions. ##
2207## ------------------- ##"
2208 echo
2209 for ac_var in $ac_subst_files
2210 do
2211 eval ac_val=\$$ac_var
2212 case $ac_val in
2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 esac
2215 $as_echo "$ac_var='\''$ac_val'\''"
2216 done | sort
2217 echo
2218 fi
2219
2220 if test -s confdefs.h; then
2221 $as_echo "## ----------- ##
2222## confdefs.h. ##
2223## ----------- ##"
2224 echo
2225 cat confdefs.h
2226 echo
2227 fi
2228 test "$ac_signal" != 0 &&
2229 $as_echo "$as_me: caught signal $ac_signal"
2230 $as_echo "$as_me: exit $exit_status"
2231 } >&5
2232 rm -f core *.core core.conftest.* &&
2233 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2234 exit $exit_status
2235' 0
2236for ac_signal in 1 2 13 15; do
2237 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2238done
2239ac_signal=0
2240
2241# confdefs.h avoids OS command line length limits that DEFS can exceed.
2242rm -f -r conftest* confdefs.h
2243
2244$as_echo "/* confdefs.h */" > confdefs.h
2245
2246# Predefined preprocessor variables.
2247
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_NAME "$PACKAGE_NAME"
2250_ACEOF
2251
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2254_ACEOF
2255
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_VERSION "$PACKAGE_VERSION"
2258_ACEOF
2259
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_STRING "$PACKAGE_STRING"
2262_ACEOF
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2266_ACEOF
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_URL "$PACKAGE_URL"
2270_ACEOF
2271
2272
2273# Let the site file select an alternate cache file if it wants to.
2274# Prefer an explicitly selected file to automatically selected ones.
2275ac_site_file1=NONE
2276ac_site_file2=NONE
2277if test -n "$CONFIG_SITE"; then
2278 # We do not want a PATH search for config.site.
2279 case $CONFIG_SITE in #((
2280 -*) ac_site_file1=./$CONFIG_SITE;;
2281 */*) ac_site_file1=$CONFIG_SITE;;
2282 *) ac_site_file1=./$CONFIG_SITE;;
2283 esac
2284elif test "x$prefix" != xNONE; then
2285 ac_site_file1=$prefix/share/config.site
2286 ac_site_file2=$prefix/etc/config.site
2287else
2288 ac_site_file1=$ac_default_prefix/share/config.site
2289 ac_site_file2=$ac_default_prefix/etc/config.site
2290fi
2291for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2292do
2293 test "x$ac_site_file" = xNONE && continue
2294 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2296$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2297 sed 's/^/| /' "$ac_site_file" >&5
2298 . "$ac_site_file" \
2299 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301as_fn_error $? "failed to load site script $ac_site_file
2302See \`config.log' for more details" "$LINENO" 5; }
2303 fi
2304done
2305
2306if test -r "$cache_file"; then
2307 # Some versions of bash will fail to source /dev/null (special files
2308 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2309 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2311$as_echo "$as_me: loading cache $cache_file" >&6;}
2312 case $cache_file in
2313 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2314 *) . "./$cache_file";;
2315 esac
2316 fi
2317else
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2319$as_echo "$as_me: creating cache $cache_file" >&6;}
2320 >$cache_file
2321fi
2322
2323# Check that the precious variables saved in the cache have kept the same
2324# value.
2325ac_cache_corrupted=false
2326for ac_var in $ac_precious_vars; do
2327 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2328 eval ac_new_set=\$ac_env_${ac_var}_set
2329 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2330 eval ac_new_val=\$ac_env_${ac_var}_value
2331 case $ac_old_set,$ac_new_set in
2332 set,)
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2334$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2336 ,set)
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2338$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2339 ac_cache_corrupted=: ;;
2340 ,);;
2341 *)
2342 if test "x$ac_old_val" != "x$ac_new_val"; then
2343 # differences in whitespace do not lead to failure.
2344 ac_old_val_w=`echo x $ac_old_val`
2345 ac_new_val_w=`echo x $ac_new_val`
2346 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2348$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2349 ac_cache_corrupted=:
2350 else
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2352$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2353 eval $ac_var=\$ac_old_val
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2356$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2358$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2359 fi;;
2360 esac
2361 # Pass precious variables to config.status.
2362 if test "$ac_new_set" = set; then
2363 case $ac_new_val in
2364 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2365 *) ac_arg=$ac_var=$ac_new_val ;;
2366 esac
2367 case " $ac_configure_args " in
2368 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2369 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2370 esac
2371 fi
2372done
2373if $ac_cache_corrupted; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2377$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2378 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2379fi
2380## -------------------- ##
2381## Main body of script. ##
2382## -------------------- ##
2383
2384ac_ext=c
2385ac_cpp='$CPP $CPPFLAGS'
2386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
2390
2391
2392ac_config_headers="$ac_config_headers config.h"
2393
2394
2395# Check whether --enable-silent-rules was given.
2396if test "${enable_silent_rules+set}" = set; then :
2397 enableval=$enable_silent_rules;
2398fi
2399
2400case $enable_silent_rules in
2401yes) AM_DEFAULT_VERBOSITY=0;;
2402no) AM_DEFAULT_VERBOSITY=1;;
2403*) AM_DEFAULT_VERBOSITY=0;;
2404esac
2405am_make=${MAKE-make}
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2407$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2408if ${am_cv_make_support_nested_variables+:} false; then :
2409 $as_echo_n "(cached) " >&6
2410else
2411 if $as_echo 'TRUE=$(BAR$(V))
2412BAR0=false
2413BAR1=true
2414V=1
2415am__doit:
2416 @$(TRUE)
2417.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2418 am_cv_make_support_nested_variables=yes
2419else
2420 am_cv_make_support_nested_variables=no
2421fi
2422fi
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2424$as_echo "$am_cv_make_support_nested_variables" >&6; }
2425if test $am_cv_make_support_nested_variables = yes; then
2426 AM_V='$(V)'
2427 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2428else
2429 AM_V=$AM_DEFAULT_VERBOSITY
2430 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2431fi
2432AM_BACKSLASH='\'
2433
2434
2435# Read our default version string from version.mk.
2436# Please update this file for releases.
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version.mk" >&5
2438$as_echo_n "checking version.mk... " >&6; }
2439MK_VERSION=$(awk 'BEGIN { FS = "=" }
2440 /OPUS_VERSION/ { ver = $2}
2441 END {
2442 gsub(/"/, "", ver);
2443 gsub(/^ /, "", ver);
2444 gsub(/ $/, "", ver);
2445 print ver;
2446 }' $srcdir/version.mk)
2447if test -z "$MK_VERSION"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449$as_echo "no" >&6; }
2450else
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MK_VERSION" >&5
2452$as_echo "$MK_VERSION" >&6; }
2453 OPUS_VERSION="$MK_VERSION"
2454fi
2455
2456# Override with the git version, if available.
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking git revision" >&5
2458$as_echo_n "checking git revision... " >&6; }
2459GIT_VERSION=$(git describe --tags --match 'v*' 2>/dev/null | sed 's/^v//')
2460if test -z "$GIT_VERSION"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462$as_echo "no" >&6; }
2463else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_VERSION" >&5
2465$as_echo "$GIT_VERSION" >&6; }
2466 OPUS_VERSION="$GIT_VERSION"
2467fi
2468
2469# Use 'unknown' if all else fails.
2470if test -z "$OPUS_VERSION"; then
2471 OPUS_VERSION="unknown"
2472fi
2473
2474# For automake.
2475PACKAGE=opus
2476VERSION=$OPUS_VERSION
2477
2478# For autoconf
2479
2480
2481# For config.h.
2482
2483cat >>confdefs.h <<_ACEOF
2484#define OPUS_VERSION "$OPUS_VERSION"
2485_ACEOF
2486
2487
2488# For libtool.
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +00002489OPUS_LT_CURRENT=3
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00002490OPUS_LT_REVISION=0
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +00002491OPUS_LT_AGE=3
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00002492
2493
2494
2495
2496
2497am__api_version='1.11'
2498
2499ac_aux_dir=
2500for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2501 if test -f "$ac_dir/install-sh"; then
2502 ac_aux_dir=$ac_dir
2503 ac_install_sh="$ac_aux_dir/install-sh -c"
2504 break
2505 elif test -f "$ac_dir/install.sh"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/install.sh -c"
2508 break
2509 elif test -f "$ac_dir/shtool"; then
2510 ac_aux_dir=$ac_dir
2511 ac_install_sh="$ac_aux_dir/shtool install -c"
2512 break
2513 fi
2514done
2515if test -z "$ac_aux_dir"; then
2516 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2517fi
2518
2519# These three variables are undocumented and unsupported,
2520# and are intended to be withdrawn in a future Autoconf release.
2521# They can cause serious problems if a builder's source tree is in a directory
2522# whose full name contains unusual characters.
2523ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2524ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2525ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2526
2527
2528# Find a good install program. We prefer a C program (faster),
2529# so one script is as good as another. But avoid the broken or
2530# incompatible versions:
2531# SysV /etc/install, /usr/sbin/install
2532# SunOS /usr/etc/install
2533# IRIX /sbin/install
2534# AIX /bin/install
2535# AmigaOS /C/install, which installs bootblocks on floppy discs
2536# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2537# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2538# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2539# OS/2's system install, which has a completely different semantic
2540# ./install, which can be erroneously created by make from ./install.sh.
2541# Reject install programs that cannot install multiple files.
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2543$as_echo_n "checking for a BSD-compatible install... " >&6; }
2544if test -z "$INSTALL"; then
2545if ${ac_cv_path_install+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 # Account for people who put trailing slashes in PATH elements.
2554case $as_dir/ in #((
2555 ./ | .// | /[cC]/* | \
2556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2557 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2558 /usr/ucb/* ) ;;
2559 *)
2560 # OSF1 and SCO ODT 3.0 have their own names for install.
2561 # Don't use installbsd from OSF since it installs stuff as root
2562 # by default.
2563 for ac_prog in ginstall scoinst install; do
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2566 if test $ac_prog = install &&
2567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2568 # AIX install. It has an incompatible calling convention.
2569 :
2570 elif test $ac_prog = install &&
2571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572 # program-specific install script used by HP pwplus--don't use.
2573 :
2574 else
2575 rm -rf conftest.one conftest.two conftest.dir
2576 echo one > conftest.one
2577 echo two > conftest.two
2578 mkdir conftest.dir
2579 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2580 test -s conftest.one && test -s conftest.two &&
2581 test -s conftest.dir/conftest.one &&
2582 test -s conftest.dir/conftest.two
2583 then
2584 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2585 break 3
2586 fi
2587 fi
2588 fi
2589 done
2590 done
2591 ;;
2592esac
2593
2594 done
2595IFS=$as_save_IFS
2596
2597rm -rf conftest.one conftest.two conftest.dir
2598
2599fi
2600 if test "${ac_cv_path_install+set}" = set; then
2601 INSTALL=$ac_cv_path_install
2602 else
2603 # As a last resort, use the slow shell script. Don't cache a
2604 # value for INSTALL within a source directory, because that will
2605 # break other packages using the cache if that directory is
2606 # removed, or if the value is a relative name.
2607 INSTALL=$ac_install_sh
2608 fi
2609fi
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2611$as_echo "$INSTALL" >&6; }
2612
2613# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2614# It thinks the first close brace ends the variable substitution.
2615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2616
2617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2618
2619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2620
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2622$as_echo_n "checking whether build environment is sane... " >&6; }
2623# Just in case
2624sleep 1
2625echo timestamp > conftest.file
2626# Reject unsafe characters in $srcdir or the absolute working directory
2627# name. Accept space and tab only in the latter.
2628am_lf='
2629'
2630case `pwd` in
2631 *[\\\"\#\$\&\'\`$am_lf]*)
2632 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2633esac
2634case $srcdir in
2635 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2636 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2637esac
2638
2639# Do `set' in a subshell so we don't clobber the current shell's
2640# arguments. Must try -L first in case configure is actually a
2641# symlink; some systems play weird games with the mod time of symlinks
2642# (eg FreeBSD returns the mod time of the symlink's containing
2643# directory).
2644if (
2645 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2646 if test "$*" = "X"; then
2647 # -L didn't work.
2648 set X `ls -t "$srcdir/configure" conftest.file`
2649 fi
2650 rm -f conftest.file
2651 if test "$*" != "X $srcdir/configure conftest.file" \
2652 && test "$*" != "X conftest.file $srcdir/configure"; then
2653
2654 # If neither matched, then we have a broken ls. This can happen
2655 # if, for instance, CONFIG_SHELL is bash and it inherits a
2656 # broken ls alias from the environment. This has actually
2657 # happened. Such a system could not be considered "sane".
2658 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2659alias in your environment" "$LINENO" 5
2660 fi
2661
2662 test "$2" = conftest.file
2663 )
2664then
2665 # Ok.
2666 :
2667else
2668 as_fn_error $? "newly created file is older than distributed files!
2669Check your system clock" "$LINENO" 5
2670fi
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2672$as_echo "yes" >&6; }
2673test "$program_prefix" != NONE &&
2674 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2675# Use a double $ so make ignores it.
2676test "$program_suffix" != NONE &&
2677 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2678# Double any \ or $.
2679# By default was `s,x,x', remove it if useless.
2680ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2681program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2682
2683# expand $ac_aux_dir to an absolute path
2684am_aux_dir=`cd $ac_aux_dir && pwd`
2685
2686if test x"${MISSING+set}" != xset; then
2687 case $am_aux_dir in
2688 *\ * | *\ *)
2689 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2690 *)
2691 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2692 esac
2693fi
2694# Use eval to expand $SHELL
2695if eval "$MISSING --run true"; then
2696 am_missing_run="$MISSING --run "
2697else
2698 am_missing_run=
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2700$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2701fi
2702
2703if test x"${install_sh}" != xset; then
2704 case $am_aux_dir in
2705 *\ * | *\ *)
2706 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2707 *)
2708 install_sh="\${SHELL} $am_aux_dir/install-sh"
2709 esac
2710fi
2711
2712# Installed binaries are usually stripped using `strip' when the user
2713# run `make install-strip'. However `strip' might not be the right
2714# tool to use in cross-compilation environments, therefore Automake
2715# will honor the `STRIP' environment variable to overrule this program.
2716if test "$cross_compiling" != no; then
2717 if test -n "$ac_tool_prefix"; then
2718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2719set dummy ${ac_tool_prefix}strip; ac_word=$2
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721$as_echo_n "checking for $ac_word... " >&6; }
2722if ${ac_cv_prog_STRIP+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724else
2725 if test -n "$STRIP"; then
2726 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2727else
2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739done
2740 done
2741IFS=$as_save_IFS
2742
2743fi
2744fi
2745STRIP=$ac_cv_prog_STRIP
2746if test -n "$STRIP"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2748$as_echo "$STRIP" >&6; }
2749else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751$as_echo "no" >&6; }
2752fi
2753
2754
2755fi
2756if test -z "$ac_cv_prog_STRIP"; then
2757 ac_ct_STRIP=$STRIP
2758 # Extract the first word of "strip", so it can be a program name with args.
2759set dummy strip; ac_word=$2
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761$as_echo_n "checking for $ac_word... " >&6; }
2762if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764else
2765 if test -n "$ac_ct_STRIP"; then
2766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_ac_ct_STRIP="strip"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779done
2780 done
2781IFS=$as_save_IFS
2782
2783fi
2784fi
2785ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2786if test -n "$ac_ct_STRIP"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2788$as_echo "$ac_ct_STRIP" >&6; }
2789else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791$as_echo "no" >&6; }
2792fi
2793
2794 if test "x$ac_ct_STRIP" = x; then
2795 STRIP=":"
2796 else
2797 case $cross_compiling:$ac_tool_warned in
2798yes:)
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801ac_tool_warned=yes ;;
2802esac
2803 STRIP=$ac_ct_STRIP
2804 fi
2805else
2806 STRIP="$ac_cv_prog_STRIP"
2807fi
2808
2809fi
2810INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2811
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2813$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2814if test -z "$MKDIR_P"; then
2815 if ${ac_cv_path_mkdir+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_prog in mkdir gmkdir; do
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2826 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2827 'mkdir (GNU coreutils) '* | \
2828 'mkdir (coreutils) '* | \
2829 'mkdir (fileutils) '4.1*)
2830 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2831 break 3;;
2832 esac
2833 done
2834 done
2835 done
2836IFS=$as_save_IFS
2837
2838fi
2839
2840 test -d ./--version && rmdir ./--version
2841 if test "${ac_cv_path_mkdir+set}" = set; then
2842 MKDIR_P="$ac_cv_path_mkdir -p"
2843 else
2844 # As a last resort, use the slow shell script. Don't cache a
2845 # value for MKDIR_P within a source directory, because that will
2846 # break other packages using the cache if that directory is
2847 # removed, or if the value is a relative name.
2848 MKDIR_P="$ac_install_sh -d"
2849 fi
2850fi
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2852$as_echo "$MKDIR_P" >&6; }
2853
2854mkdir_p="$MKDIR_P"
2855case $mkdir_p in
2856 [\\/$]* | ?:[\\/]*) ;;
2857 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2858esac
2859
2860for ac_prog in gawk mawk nawk awk
2861do
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863set dummy $ac_prog; ac_word=$2
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865$as_echo_n "checking for $ac_word... " >&6; }
2866if ${ac_cv_prog_AWK+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868else
2869 if test -n "$AWK"; then
2870 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2871else
2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH
2874do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_AWK="$ac_prog"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883done
2884 done
2885IFS=$as_save_IFS
2886
2887fi
2888fi
2889AWK=$ac_cv_prog_AWK
2890if test -n "$AWK"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2892$as_echo "$AWK" >&6; }
2893else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895$as_echo "no" >&6; }
2896fi
2897
2898
2899 test -n "$AWK" && break
2900done
2901
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2904set x ${MAKE-make}
2905ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2906if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908else
2909 cat >conftest.make <<\_ACEOF
2910SHELL = /bin/sh
2911all:
2912 @echo '@@@%%%=$(MAKE)=@@@%%%'
2913_ACEOF
2914# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2915case `${MAKE-make} -f conftest.make 2>/dev/null` in
2916 *@@@%%%=?*=@@@%%%*)
2917 eval ac_cv_prog_make_${ac_make}_set=yes;;
2918 *)
2919 eval ac_cv_prog_make_${ac_make}_set=no;;
2920esac
2921rm -f conftest.make
2922fi
2923if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925$as_echo "yes" >&6; }
2926 SET_MAKE=
2927else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929$as_echo "no" >&6; }
2930 SET_MAKE="MAKE=${MAKE-make}"
2931fi
2932
2933rm -rf .tst 2>/dev/null
2934mkdir .tst 2>/dev/null
2935if test -d .tst; then
2936 am__leading_dot=.
2937else
2938 am__leading_dot=_
2939fi
2940rmdir .tst 2>/dev/null
2941
2942if test "`cd $srcdir && pwd`" != "`pwd`"; then
2943 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2944 # is not polluted with repeated "-I."
2945 am__isrc=' -I$(srcdir)'
2946 # test to see if srcdir already configured
2947 if test -f $srcdir/config.status; then
2948 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2949 fi
2950fi
2951
2952# test whether we have cygpath
2953if test -z "$CYGPATH_W"; then
2954 if (cygpath --version) >/dev/null 2>/dev/null; then
2955 CYGPATH_W='cygpath -w'
2956 else
2957 CYGPATH_W=echo
2958 fi
2959fi
2960
2961
2962# Define the identity of the package.
2963 PACKAGE=$PACKAGE
2964 VERSION=$VERSION
2965
2966
2967# Some tools Automake needs.
2968
2969ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2970
2971
2972AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2973
2974
2975AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2976
2977
2978AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2979
2980
2981MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2982
2983# We need awk for the "check" target. The system "awk" is bad on
2984# some platforms.
2985# Always define AMTAR for backward compatibility. Yes, it's still used
2986# in the wild :-( We should find a proper way to deprecate it ...
2987AMTAR='$${TAR-tar}'
2988
2989am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2990
2991
2992
2993
2994
2995
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2997$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2998 # Check whether --enable-maintainer-mode was given.
2999if test "${enable_maintainer_mode+set}" = set; then :
3000 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3001else
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +00003002 USE_MAINTAINER_MODE=yes
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00003003fi
3004
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3006$as_echo "$USE_MAINTAINER_MODE" >&6; }
3007 if test $USE_MAINTAINER_MODE = yes; then
3008 MAINTAINER_MODE_TRUE=
3009 MAINTAINER_MODE_FALSE='#'
3010else
3011 MAINTAINER_MODE_TRUE='#'
3012 MAINTAINER_MODE_FALSE=
3013fi
3014
3015 MAINT=$MAINTAINER_MODE_TRUE
3016
3017
3018
3019# Make sure we can run config.sub.
3020$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3021 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3022
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3024$as_echo_n "checking build system type... " >&6; }
3025if ${ac_cv_build+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027else
3028 ac_build_alias=$build_alias
3029test "x$ac_build_alias" = x &&
3030 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3031test "x$ac_build_alias" = x &&
3032 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3033ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3034 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3035
3036fi
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3038$as_echo "$ac_cv_build" >&6; }
3039case $ac_cv_build in
3040*-*-*) ;;
3041*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3042esac
3043build=$ac_cv_build
3044ac_save_IFS=$IFS; IFS='-'
3045set x $ac_cv_build
3046shift
3047build_cpu=$1
3048build_vendor=$2
3049shift; shift
3050# Remember, the first character of IFS is used to create $*,
3051# except with old shells:
3052build_os=$*
3053IFS=$ac_save_IFS
3054case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3055
3056
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3058$as_echo_n "checking host system type... " >&6; }
3059if ${ac_cv_host+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061else
3062 if test "x$host_alias" = x; then
3063 ac_cv_host=$ac_cv_build
3064else
3065 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3066 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3067fi
3068
3069fi
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3071$as_echo "$ac_cv_host" >&6; }
3072case $ac_cv_host in
3073*-*-*) ;;
3074*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3075esac
3076host=$ac_cv_host
3077ac_save_IFS=$IFS; IFS='-'
3078set x $ac_cv_host
3079shift
3080host_cpu=$1
3081host_vendor=$2
3082shift; shift
3083# Remember, the first character of IFS is used to create $*,
3084# except with old shells:
3085host_os=$*
3086IFS=$ac_save_IFS
3087case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3088
3089
3090
3091case $host_os in
3092 *mingw32* ) MINGW32=yes;;
3093 * ) MINGW32=no;;
3094esac
3095
3096case `pwd` in
3097 *\ * | *\ *)
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3099$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3100esac
3101
3102
3103
3104macro_version='2.4.2'
3105macro_revision='1.3337'
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119ltmain="$ac_aux_dir/ltmain.sh"
3120
3121# Backslashify metacharacters that are still active within
3122# double-quoted strings.
3123sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3124
3125# Same as above, but do not quote variable references.
3126double_quote_subst='s/\(["`\\]\)/\\\1/g'
3127
3128# Sed substitution to delay expansion of an escaped shell variable in a
3129# double_quote_subst'ed string.
3130delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3131
3132# Sed substitution to delay expansion of an escaped single quote.
3133delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3134
3135# Sed substitution to avoid accidental globbing in evaled expressions
3136no_glob_subst='s/\*/\\\*/g'
3137
3138ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3139ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3140ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3141
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3143$as_echo_n "checking how to print strings... " >&6; }
3144# Test print first, because it will be a builtin if present.
3145if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3146 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3147 ECHO='print -r --'
3148elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3149 ECHO='printf %s\n'
3150else
3151 # Use this function as a fallback that always works.
3152 func_fallback_echo ()
3153 {
3154 eval 'cat <<_LTECHO_EOF
3155$1
3156_LTECHO_EOF'
3157 }
3158 ECHO='func_fallback_echo'
3159fi
3160
3161# func_echo_all arg...
3162# Invoke $ECHO with all args, space-separated.
3163func_echo_all ()
3164{
3165 $ECHO ""
3166}
3167
3168case "$ECHO" in
3169 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3170$as_echo "printf" >&6; } ;;
3171 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3172$as_echo "print -r" >&6; } ;;
3173 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3174$as_echo "cat" >&6; } ;;
3175esac
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190DEPDIR="${am__leading_dot}deps"
3191
3192ac_config_commands="$ac_config_commands depfiles"
3193
3194
3195am_make=${MAKE-make}
3196cat > confinc << 'END'
3197am__doit:
3198 @echo this is the am__doit target
3199.PHONY: am__doit
3200END
3201# If we don't find an include directive, just comment out the code.
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3203$as_echo_n "checking for style of include used by $am_make... " >&6; }
3204am__include="#"
3205am__quote=
3206_am_result=none
3207# First try GNU make style include.
3208echo "include confinc" > confmf
3209# Ignore all kinds of additional output from `make'.
3210case `$am_make -s -f confmf 2> /dev/null` in #(
3211*the\ am__doit\ target*)
3212 am__include=include
3213 am__quote=
3214 _am_result=GNU
3215 ;;
3216esac
3217# Now try BSD make style include.
3218if test "$am__include" = "#"; then
3219 echo '.include "confinc"' > confmf
3220 case `$am_make -s -f confmf 2> /dev/null` in #(
3221 *the\ am__doit\ target*)
3222 am__include=.include
3223 am__quote="\""
3224 _am_result=BSD
3225 ;;
3226 esac
3227fi
3228
3229
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3231$as_echo "$_am_result" >&6; }
3232rm -f confinc confmf
3233
3234# Check whether --enable-dependency-tracking was given.
3235if test "${enable_dependency_tracking+set}" = set; then :
3236 enableval=$enable_dependency_tracking;
3237fi
3238
3239if test "x$enable_dependency_tracking" != xno; then
3240 am_depcomp="$ac_aux_dir/depcomp"
3241 AMDEPBACKSLASH='\'
3242 am__nodep='_no'
3243fi
3244 if test "x$enable_dependency_tracking" != xno; then
3245 AMDEP_TRUE=
3246 AMDEP_FALSE='#'
3247else
3248 AMDEP_TRUE='#'
3249 AMDEP_FALSE=
3250fi
3251
3252
3253ac_ext=c
3254ac_cpp='$CPP $CPPFLAGS'
3255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3260set dummy ${ac_tool_prefix}gcc; ac_word=$2
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262$as_echo_n "checking for $ac_word... " >&6; }
3263if ${ac_cv_prog_CC+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265else
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280done
3281 done
3282IFS=$as_save_IFS
3283
3284fi
3285fi
3286CC=$ac_cv_prog_CC
3287if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289$as_echo "$CC" >&6; }
3290else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293fi
3294
3295
3296fi
3297if test -z "$ac_cv_prog_CC"; then
3298 ac_ct_CC=$CC
3299 # Extract the first word of "gcc", so it can be a program name with args.
3300set dummy gcc; ac_word=$2
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302$as_echo_n "checking for $ac_word... " >&6; }
3303if ${ac_cv_prog_ac_ct_CC+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305else
3306 if test -n "$ac_ct_CC"; then
3307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308else
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316 ac_cv_prog_ac_ct_CC="gcc"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320done
3321 done
3322IFS=$as_save_IFS
3323
3324fi
3325fi
3326ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327if test -n "$ac_ct_CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3329$as_echo "$ac_ct_CC" >&6; }
3330else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333fi
3334
3335 if test "x$ac_ct_CC" = x; then
3336 CC=""
3337 else
3338 case $cross_compiling:$ac_tool_warned in
3339yes:)
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342ac_tool_warned=yes ;;
3343esac
3344 CC=$ac_ct_CC
3345 fi
3346else
3347 CC="$ac_cv_prog_CC"
3348fi
3349
3350if test -z "$CC"; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353set dummy ${ac_tool_prefix}cc; ac_word=$2
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355$as_echo_n "checking for $ac_word... " >&6; }
3356if ${ac_cv_prog_CC+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369 ac_cv_prog_CC="${ac_tool_prefix}cc"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373done
3374 done
3375IFS=$as_save_IFS
3376
3377fi
3378fi
3379CC=$ac_cv_prog_CC
3380if test -n "$CC"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382$as_echo "$CC" >&6; }
3383else
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385$as_echo "no" >&6; }
3386fi
3387
3388
3389 fi
3390fi
3391if test -z "$CC"; then
3392 # Extract the first word of "cc", so it can be a program name with args.
3393set dummy cc; ac_word=$2
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395$as_echo_n "checking for $ac_word... " >&6; }
3396if ${ac_cv_prog_CC+:} false; then :
3397 $as_echo_n "(cached) " >&6
3398else
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3401else
3402 ac_prog_rejected=no
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3411 ac_prog_rejected=yes
3412 continue
3413 fi
3414 ac_cv_prog_CC="cc"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3417 fi
3418done
3419 done
3420IFS=$as_save_IFS
3421
3422if test $ac_prog_rejected = yes; then
3423 # We found a bogon in the path, so make sure we never use it.
3424 set dummy $ac_cv_prog_CC
3425 shift
3426 if test $# != 0; then
3427 # We chose a different compiler from the bogus one.
3428 # However, it has the same basename, so the bogon will be chosen
3429 # first if we set CC to just the basename; use the full file name.
3430 shift
3431 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3432 fi
3433fi
3434fi
3435fi
3436CC=$ac_cv_prog_CC
3437if test -n "$CC"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439$as_echo "$CC" >&6; }
3440else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442$as_echo "no" >&6; }
3443fi
3444
3445
3446fi
3447if test -z "$CC"; then
3448 if test -n "$ac_tool_prefix"; then
3449 for ac_prog in cl.exe
3450 do
3451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454$as_echo_n "checking for $ac_word... " >&6; }
3455if ${ac_cv_prog_CC+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457else
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3460else
3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH
3463do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472done
3473 done
3474IFS=$as_save_IFS
3475
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481$as_echo "$CC" >&6; }
3482else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485fi
3486
3487
3488 test -n "$CC" && break
3489 done
3490fi
3491if test -z "$CC"; then
3492 ac_ct_CC=$CC
3493 for ac_prog in cl.exe
3494do
3495 # Extract the first word of "$ac_prog", so it can be a program name with args.
3496set dummy $ac_prog; ac_word=$2
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498$as_echo_n "checking for $ac_word... " >&6; }
3499if ${ac_cv_prog_ac_ct_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501else
3502 if test -n "$ac_ct_CC"; then
3503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504else
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_ac_ct_CC="$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516done
3517 done
3518IFS=$as_save_IFS
3519
3520fi
3521fi
3522ac_ct_CC=$ac_cv_prog_ac_ct_CC
3523if test -n "$ac_ct_CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3525$as_echo "$ac_ct_CC" >&6; }
3526else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528$as_echo "no" >&6; }
3529fi
3530
3531
3532 test -n "$ac_ct_CC" && break
3533done
3534
3535 if test "x$ac_ct_CC" = x; then
3536 CC=""
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539yes:)
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542ac_tool_warned=yes ;;
3543esac
3544 CC=$ac_ct_CC
3545 fi
3546fi
3547
3548fi
3549
3550
3551test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553as_fn_error $? "no acceptable C compiler found in \$PATH
3554See \`config.log' for more details" "$LINENO" 5; }
3555
3556# Provide some information about the compiler.
3557$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3558set X $ac_compile
3559ac_compiler=$2
3560for ac_option in --version -v -V -qversion; do
3561 { { ac_try="$ac_compiler $ac_option >&5"
3562case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3569 ac_status=$?
3570 if test -s conftest.err; then
3571 sed '10a\
3572... rest of stderr output deleted ...
3573 10q' conftest.err >conftest.er1
3574 cat conftest.er1 >&5
3575 fi
3576 rm -f conftest.er1 conftest.err
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }
3579done
3580
3581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h. */
3583
3584int
3585main ()
3586{
3587
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592ac_clean_files_save=$ac_clean_files
3593ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3594# Try to create an executable without -o first, disregard a.out.
3595# It will help us diagnose broken compilers, and finding out an intuition
3596# of exeext.
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3598$as_echo_n "checking whether the C compiler works... " >&6; }
3599ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3600
3601# The possible output files:
3602ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3603
3604ac_rmfiles=
3605for ac_file in $ac_files
3606do
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3609 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3610 esac
3611done
3612rm -f $ac_rmfiles
3613
3614if { { ac_try="$ac_link_default"
3615case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618esac
3619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620$as_echo "$ac_try_echo"; } >&5
3621 (eval "$ac_link_default") 2>&5
3622 ac_status=$?
3623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624 test $ac_status = 0; }; then :
3625 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3626# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3627# in a Makefile. We should not override ac_cv_exeext if it was cached,
3628# so that the user can short-circuit this test for compilers unknown to
3629# Autoconf.
3630for ac_file in $ac_files ''
3631do
3632 test -f "$ac_file" || continue
3633 case $ac_file in
3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3635 ;;
3636 [ab].out )
3637 # We found the default executable, but exeext='' is most
3638 # certainly right.
3639 break;;
3640 *.* )
3641 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3642 then :; else
3643 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644 fi
3645 # We set ac_cv_exeext here because the later test for it is not
3646 # safe: cross compilers may not add the suffix if given an `-o'
3647 # argument, so we may need to know it at that point already.
3648 # Even if this section looks crufty: it has the advantage of
3649 # actually working.
3650 break;;
3651 * )
3652 break;;
3653 esac
3654done
3655test "$ac_cv_exeext" = no && ac_cv_exeext=
3656
3657else
3658 ac_file=''
3659fi
3660if test -z "$ac_file"; then :
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
3663$as_echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668as_fn_error 77 "C compiler cannot create executables
3669See \`config.log' for more details" "$LINENO" 5; }
3670else
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672$as_echo "yes" >&6; }
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3675$as_echo_n "checking for C compiler default output file name... " >&6; }
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3677$as_echo "$ac_file" >&6; }
3678ac_exeext=$ac_cv_exeext
3679
3680rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3681ac_clean_files=$ac_clean_files_save
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3683$as_echo_n "checking for suffix of executables... " >&6; }
3684if { { ac_try="$ac_link"
3685case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688esac
3689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690$as_echo "$ac_try_echo"; } >&5
3691 (eval "$ac_link") 2>&5
3692 ac_status=$?
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }; then :
3695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3696# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3697# work properly (i.e., refer to `conftest.exe'), while it won't with
3698# `rm'.
3699for ac_file in conftest.exe conftest conftest.*; do
3700 test -f "$ac_file" || continue
3701 case $ac_file in
3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3703 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704 break;;
3705 * ) break;;
3706 esac
3707done
3708else
3709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3712See \`config.log' for more details" "$LINENO" 5; }
3713fi
3714rm -f conftest conftest$ac_cv_exeext
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3716$as_echo "$ac_cv_exeext" >&6; }
3717
3718rm -f conftest.$ac_ext
3719EXEEXT=$ac_cv_exeext
3720ac_exeext=$EXEEXT
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h. */
3723#include <stdio.h>
3724int
3725main ()
3726{
3727FILE *f = fopen ("conftest.out", "w");
3728 return ferror (f) || fclose (f) != 0;
3729
3730 ;
3731 return 0;
3732}
3733_ACEOF
3734ac_clean_files="$ac_clean_files conftest.out"
3735# Check that the compiler produces executables we can run. If not, either
3736# the compiler is broken, or we cross compile.
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3738$as_echo_n "checking whether we are cross compiling... " >&6; }
3739if test "$cross_compiling" != yes; then
3740 { { ac_try="$ac_link"
3741case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744esac
3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746$as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_link") 2>&5
3748 ac_status=$?
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }
3751 if { ac_try='./conftest$ac_cv_exeext'
3752 { { case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755esac
3756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757$as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_try") 2>&5
3759 ac_status=$?
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }; }; then
3762 cross_compiling=no
3763 else
3764 if test "$cross_compiling" = maybe; then
3765 cross_compiling=yes
3766 else
3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769as_fn_error $? "cannot run C compiled programs.
3770If you meant to cross compile, use \`--host'.
3771See \`config.log' for more details" "$LINENO" 5; }
3772 fi
3773 fi
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3776$as_echo "$cross_compiling" >&6; }
3777
3778rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3779ac_clean_files=$ac_clean_files_save
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3781$as_echo_n "checking for suffix of object files... " >&6; }
3782if ${ac_cv_objext+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784else
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h. */
3787
3788int
3789main ()
3790{
3791
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796rm -f conftest.o conftest.obj
3797if { { ac_try="$ac_compile"
3798case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801esac
3802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803$as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compile") 2>&5
3805 ac_status=$?
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }; then :
3808 for ac_file in conftest.o conftest.obj conftest.*; do
3809 test -f "$ac_file" || continue;
3810 case $ac_file in
3811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3812 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3813 break;;
3814 esac
3815done
3816else
3817 $as_echo "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822as_fn_error $? "cannot compute suffix of object files: cannot compile
3823See \`config.log' for more details" "$LINENO" 5; }
3824fi
3825rm -f conftest.$ac_cv_objext conftest.$ac_ext
3826fi
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3828$as_echo "$ac_cv_objext" >&6; }
3829OBJEXT=$ac_cv_objext
3830ac_objext=$OBJEXT
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3832$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3833if ${ac_cv_c_compiler_gnu+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835else
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h. */
3838
3839int
3840main ()
3841{
3842#ifndef __GNUC__
3843 choke me
3844#endif
3845
3846 ;
3847 return 0;
3848}
3849_ACEOF
3850if ac_fn_c_try_compile "$LINENO"; then :
3851 ac_compiler_gnu=yes
3852else
3853 ac_compiler_gnu=no
3854fi
3855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856ac_cv_c_compiler_gnu=$ac_compiler_gnu
3857
3858fi
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3860$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3861if test $ac_compiler_gnu = yes; then
3862 GCC=yes
3863else
3864 GCC=
3865fi
3866ac_test_CFLAGS=${CFLAGS+set}
3867ac_save_CFLAGS=$CFLAGS
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3869$as_echo_n "checking whether $CC accepts -g... " >&6; }
3870if ${ac_cv_prog_cc_g+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872else
3873 ac_save_c_werror_flag=$ac_c_werror_flag
3874 ac_c_werror_flag=yes
3875 ac_cv_prog_cc_g=no
3876 CFLAGS="-g"
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h. */
3879
3880int
3881main ()
3882{
3883
3884 ;
3885 return 0;
3886}
3887_ACEOF
3888if ac_fn_c_try_compile "$LINENO"; then :
3889 ac_cv_prog_cc_g=yes
3890else
3891 CFLAGS=""
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h. */
3894
3895int
3896main ()
3897{
3898
3899 ;
3900 return 0;
3901}
3902_ACEOF
3903if ac_fn_c_try_compile "$LINENO"; then :
3904
3905else
3906 ac_c_werror_flag=$ac_save_c_werror_flag
3907 CFLAGS="-g"
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h. */
3910
3911int
3912main ()
3913{
3914
3915 ;
3916 return 0;
3917}
3918_ACEOF
3919if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_g=yes
3921fi
3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923fi
3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925fi
3926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 ac_c_werror_flag=$ac_save_c_werror_flag
3928fi
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3930$as_echo "$ac_cv_prog_cc_g" >&6; }
3931if test "$ac_test_CFLAGS" = set; then
3932 CFLAGS=$ac_save_CFLAGS
3933elif test $ac_cv_prog_cc_g = yes; then
3934 if test "$GCC" = yes; then
3935 CFLAGS="-g -O2"
3936 else
3937 CFLAGS="-g"
3938 fi
3939else
3940 if test "$GCC" = yes; then
3941 CFLAGS="-O2"
3942 else
3943 CFLAGS=
3944 fi
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3947$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3948if ${ac_cv_prog_cc_c89+:} false; then :
3949 $as_echo_n "(cached) " >&6
3950else
3951 ac_cv_prog_cc_c89=no
3952ac_save_CC=$CC
3953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h. */
3955#include <stdarg.h>
3956#include <stdio.h>
3957#include <sys/types.h>
3958#include <sys/stat.h>
3959/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3960struct buf { int x; };
3961FILE * (*rcsopen) (struct buf *, struct stat *, int);
3962static char *e (p, i)
3963 char **p;
3964 int i;
3965{
3966 return p[i];
3967}
3968static char *f (char * (*g) (char **, int), char **p, ...)
3969{
3970 char *s;
3971 va_list v;
3972 va_start (v,p);
3973 s = g (p, va_arg (v,int));
3974 va_end (v);
3975 return s;
3976}
3977
3978/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3979 function prototypes and stuff, but not '\xHH' hex character constants.
3980 These don't provoke an error unfortunately, instead are silently treated
3981 as 'x'. The following induces an error, until -std is added to get
3982 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3983 array size at least. It's necessary to write '\x00'==0 to get something
3984 that's true only with -std. */
3985int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3986
3987/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3988 inside strings and character constants. */
3989#define FOO(x) 'x'
3990int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3991
3992int test (int i, double x);
3993struct s1 {int (*f) (int a);};
3994struct s2 {int (*f) (double a);};
3995int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3996int argc;
3997char **argv;
3998int
3999main ()
4000{
4001return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4007 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4008do
4009 CC="$ac_save_CC $ac_arg"
4010 if ac_fn_c_try_compile "$LINENO"; then :
4011 ac_cv_prog_cc_c89=$ac_arg
4012fi
4013rm -f core conftest.err conftest.$ac_objext
4014 test "x$ac_cv_prog_cc_c89" != "xno" && break
4015done
4016rm -f conftest.$ac_ext
4017CC=$ac_save_CC
4018
4019fi
4020# AC_CACHE_VAL
4021case "x$ac_cv_prog_cc_c89" in
4022 x)
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4024$as_echo "none needed" >&6; } ;;
4025 xno)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4027$as_echo "unsupported" >&6; } ;;
4028 *)
4029 CC="$CC $ac_cv_prog_cc_c89"
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4031$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4032esac
4033if test "x$ac_cv_prog_cc_c89" != xno; then :
4034
4035fi
4036
4037ac_ext=c
4038ac_cpp='$CPP $CPPFLAGS'
4039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043depcc="$CC" am_compiler_list=
4044
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4046$as_echo_n "checking dependency style of $depcc... " >&6; }
4047if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049else
4050 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4051 # We make a subdir and do the tests there. Otherwise we can end up
4052 # making bogus files that we don't know about and never remove. For
4053 # instance it was reported that on HP-UX the gcc test will end up
4054 # making a dummy file named `D' -- because `-MD' means `put the output
4055 # in D'.
4056 rm -rf conftest.dir
4057 mkdir conftest.dir
4058 # Copy depcomp to subdir because otherwise we won't find it if we're
4059 # using a relative directory.
4060 cp "$am_depcomp" conftest.dir
4061 cd conftest.dir
4062 # We will build objects and dependencies in a subdirectory because
4063 # it helps to detect inapplicable dependency modes. For instance
4064 # both Tru64's cc and ICC support -MD to output dependencies as a
4065 # side effect of compilation, but ICC will put the dependencies in
4066 # the current directory while Tru64 will put them in the object
4067 # directory.
4068 mkdir sub
4069
4070 am_cv_CC_dependencies_compiler_type=none
4071 if test "$am_compiler_list" = ""; then
4072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4073 fi
4074 am__universal=false
4075 case " $depcc " in #(
4076 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4077 esac
4078
4079 for depmode in $am_compiler_list; do
4080 # Setup a source with many dependencies, because some compilers
4081 # like to wrap large dependency lists on column 80 (with \), and
4082 # we should not choose a depcomp mode which is confused by this.
4083 #
4084 # We need to recreate these files for each test, as the compiler may
4085 # overwrite some of them when testing with obscure command lines.
4086 # This happens at least with the AIX C compiler.
4087 : > sub/conftest.c
4088 for i in 1 2 3 4 5 6; do
4089 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4090 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4091 # Solaris 8's {/usr,}/bin/sh.
4092 touch sub/conftst$i.h
4093 done
4094 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4095
4096 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4097 # mode. It turns out that the SunPro C++ compiler does not properly
4098 # handle `-M -o', and we need to detect this. Also, some Intel
4099 # versions had trouble with output in subdirs
4100 am__obj=sub/conftest.${OBJEXT-o}
4101 am__minus_obj="-o $am__obj"
4102 case $depmode in
4103 gcc)
4104 # This depmode causes a compiler race in universal mode.
4105 test "$am__universal" = false || continue
4106 ;;
4107 nosideeffect)
4108 # after this tag, mechanisms are not by side-effect, so they'll
4109 # only be used when explicitly requested
4110 if test "x$enable_dependency_tracking" = xyes; then
4111 continue
4112 else
4113 break
4114 fi
4115 ;;
4116 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4117 # This compiler won't grok `-c -o', but also, the minuso test has
4118 # not run yet. These depmodes are late enough in the game, and
4119 # so weak that their functioning should not be impacted.
4120 am__obj=conftest.${OBJEXT-o}
4121 am__minus_obj=
4122 ;;
4123 none) break ;;
4124 esac
4125 if depmode=$depmode \
4126 source=sub/conftest.c object=$am__obj \
4127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4128 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4129 >/dev/null 2>conftest.err &&
4130 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4132 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4134 # icc doesn't choke on unknown options, it will just issue warnings
4135 # or remarks (even with -Werror). So we grep stderr for any message
4136 # that says an option was ignored or not supported.
4137 # When given -MP, icc 7.0 and 7.1 complain thusly:
4138 # icc: Command line warning: ignoring option '-M'; no argument required
4139 # The diagnosis changed in icc 8.0:
4140 # icc: Command line remark: option '-MP' not supported
4141 if (grep 'ignoring option' conftest.err ||
4142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4143 am_cv_CC_dependencies_compiler_type=$depmode
4144 break
4145 fi
4146 fi
4147 done
4148
4149 cd ..
4150 rm -rf conftest.dir
4151else
4152 am_cv_CC_dependencies_compiler_type=none
4153fi
4154
4155fi
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4157$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4158CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4159
4160 if
4161 test "x$enable_dependency_tracking" != xno \
4162 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4163 am__fastdepCC_TRUE=
4164 am__fastdepCC_FALSE='#'
4165else
4166 am__fastdepCC_TRUE='#'
4167 am__fastdepCC_FALSE=
4168fi
4169
4170
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4172$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4173if ${ac_cv_path_SED+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175else
4176 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4177 for ac_i in 1 2 3 4 5 6 7; do
4178 ac_script="$ac_script$as_nl$ac_script"
4179 done
4180 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4181 { ac_script=; unset ac_script;}
4182 if test -z "$SED"; then
4183 ac_path_SED_found=false
4184 # Loop through the user's path and test for each of PROGNAME-LIST
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH
4187do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_prog in sed gsed; do
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4193 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4194# Check for GNU ac_path_SED and select it if it is found.
4195 # Check for GNU $ac_path_SED
4196case `"$ac_path_SED" --version 2>&1` in
4197*GNU*)
4198 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4199*)
4200 ac_count=0
4201 $as_echo_n 0123456789 >"conftest.in"
4202 while :
4203 do
4204 cat "conftest.in" "conftest.in" >"conftest.tmp"
4205 mv "conftest.tmp" "conftest.in"
4206 cp "conftest.in" "conftest.nl"
4207 $as_echo '' >> "conftest.nl"
4208 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210 as_fn_arith $ac_count + 1 && ac_count=$as_val
4211 if test $ac_count -gt ${ac_path_SED_max-0}; then
4212 # Best one so far, save it but keep looking for a better one
4213 ac_cv_path_SED="$ac_path_SED"
4214 ac_path_SED_max=$ac_count
4215 fi
4216 # 10*(2^10) chars as input seems more than enough
4217 test $ac_count -gt 10 && break
4218 done
4219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220esac
4221
4222 $ac_path_SED_found && break 3
4223 done
4224 done
4225 done
4226IFS=$as_save_IFS
4227 if test -z "$ac_cv_path_SED"; then
4228 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4229 fi
4230else
4231 ac_cv_path_SED=$SED
4232fi
4233
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4236$as_echo "$ac_cv_path_SED" >&6; }
4237 SED="$ac_cv_path_SED"
4238 rm -f conftest.sed
4239
4240test -z "$SED" && SED=sed
4241Xsed="$SED -e 1s/^X//"
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4254$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4255if ${ac_cv_path_GREP+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257else
4258 if test -z "$GREP"; then
4259 ac_path_GREP_found=false
4260 # Loop through the user's path and test for each of PROGNAME-LIST
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_prog in grep ggrep; do
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4269 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4270# Check for GNU ac_path_GREP and select it if it is found.
4271 # Check for GNU $ac_path_GREP
4272case `"$ac_path_GREP" --version 2>&1` in
4273*GNU*)
4274 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4275*)
4276 ac_count=0
4277 $as_echo_n 0123456789 >"conftest.in"
4278 while :
4279 do
4280 cat "conftest.in" "conftest.in" >"conftest.tmp"
4281 mv "conftest.tmp" "conftest.in"
4282 cp "conftest.in" "conftest.nl"
4283 $as_echo 'GREP' >> "conftest.nl"
4284 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286 as_fn_arith $ac_count + 1 && ac_count=$as_val
4287 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4288 # Best one so far, save it but keep looking for a better one
4289 ac_cv_path_GREP="$ac_path_GREP"
4290 ac_path_GREP_max=$ac_count
4291 fi
4292 # 10*(2^10) chars as input seems more than enough
4293 test $ac_count -gt 10 && break
4294 done
4295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296esac
4297
4298 $ac_path_GREP_found && break 3
4299 done
4300 done
4301 done
4302IFS=$as_save_IFS
4303 if test -z "$ac_cv_path_GREP"; then
4304 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4305 fi
4306else
4307 ac_cv_path_GREP=$GREP
4308fi
4309
4310fi
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4312$as_echo "$ac_cv_path_GREP" >&6; }
4313 GREP="$ac_cv_path_GREP"
4314
4315
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4317$as_echo_n "checking for egrep... " >&6; }
4318if ${ac_cv_path_EGREP+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320else
4321 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4322 then ac_cv_path_EGREP="$GREP -E"
4323 else
4324 if test -z "$EGREP"; then
4325 ac_path_EGREP_found=false
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_prog in egrep; do
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4335 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4336# Check for GNU ac_path_EGREP and select it if it is found.
4337 # Check for GNU $ac_path_EGREP
4338case `"$ac_path_EGREP" --version 2>&1` in
4339*GNU*)
4340 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4341*)
4342 ac_count=0
4343 $as_echo_n 0123456789 >"conftest.in"
4344 while :
4345 do
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
4349 $as_echo 'EGREP' >> "conftest.nl"
4350 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352 as_fn_arith $ac_count + 1 && ac_count=$as_val
4353 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_EGREP="$ac_path_EGREP"
4356 ac_path_EGREP_max=$ac_count
4357 fi
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4360 done
4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362esac
4363
4364 $ac_path_EGREP_found && break 3
4365 done
4366 done
4367 done
4368IFS=$as_save_IFS
4369 if test -z "$ac_cv_path_EGREP"; then
4370 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371 fi
4372else
4373 ac_cv_path_EGREP=$EGREP
4374fi
4375
4376 fi
4377fi
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4379$as_echo "$ac_cv_path_EGREP" >&6; }
4380 EGREP="$ac_cv_path_EGREP"
4381
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4384$as_echo_n "checking for fgrep... " >&6; }
4385if ${ac_cv_path_FGREP+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387else
4388 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4389 then ac_cv_path_FGREP="$GREP -F"
4390 else
4391 if test -z "$FGREP"; then
4392 ac_path_FGREP_found=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_prog in fgrep; do
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4402 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4403# Check for GNU ac_path_FGREP and select it if it is found.
4404 # Check for GNU $ac_path_FGREP
4405case `"$ac_path_FGREP" --version 2>&1` in
4406*GNU*)
4407 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4408*)
4409 ac_count=0
4410 $as_echo_n 0123456789 >"conftest.in"
4411 while :
4412 do
4413 cat "conftest.in" "conftest.in" >"conftest.tmp"
4414 mv "conftest.tmp" "conftest.in"
4415 cp "conftest.in" "conftest.nl"
4416 $as_echo 'FGREP' >> "conftest.nl"
4417 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419 as_fn_arith $ac_count + 1 && ac_count=$as_val
4420 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4421 # Best one so far, save it but keep looking for a better one
4422 ac_cv_path_FGREP="$ac_path_FGREP"
4423 ac_path_FGREP_max=$ac_count
4424 fi
4425 # 10*(2^10) chars as input seems more than enough
4426 test $ac_count -gt 10 && break
4427 done
4428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429esac
4430
4431 $ac_path_FGREP_found && break 3
4432 done
4433 done
4434 done
4435IFS=$as_save_IFS
4436 if test -z "$ac_cv_path_FGREP"; then
4437 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4438 fi
4439else
4440 ac_cv_path_FGREP=$FGREP
4441fi
4442
4443 fi
4444fi
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4446$as_echo "$ac_cv_path_FGREP" >&6; }
4447 FGREP="$ac_cv_path_FGREP"
4448
4449
4450test -z "$GREP" && GREP=grep
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470# Check whether --with-gnu-ld was given.
4471if test "${with_gnu_ld+set}" = set; then :
4472 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4473else
4474 with_gnu_ld=no
4475fi
4476
4477ac_prog=ld
4478if test "$GCC" = yes; then
4479 # Check if gcc -print-prog-name=ld gives a path.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4481$as_echo_n "checking for ld used by $CC... " >&6; }
4482 case $host in
4483 *-*-mingw*)
4484 # gcc leaves a trailing carriage return which upsets mingw
4485 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4486 *)
4487 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4488 esac
4489 case $ac_prog in
4490 # Accept absolute paths.
4491 [\\/]* | ?:[\\/]*)
4492 re_direlt='/[^/][^/]*/\.\./'
4493 # Canonicalize the pathname of ld
4494 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4495 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4496 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4497 done
4498 test -z "$LD" && LD="$ac_prog"
4499 ;;
4500 "")
4501 # If it fails, then pretend we aren't using GCC.
4502 ac_prog=ld
4503 ;;
4504 *)
4505 # If it is relative, then search for the first ld in PATH.
4506 with_gnu_ld=unknown
4507 ;;
4508 esac
4509elif test "$with_gnu_ld" = yes; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4511$as_echo_n "checking for GNU ld... " >&6; }
4512else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4514$as_echo_n "checking for non-GNU ld... " >&6; }
4515fi
4516if ${lt_cv_path_LD+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518else
4519 if test -z "$LD"; then
4520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4521 for ac_dir in $PATH; do
4522 IFS="$lt_save_ifs"
4523 test -z "$ac_dir" && ac_dir=.
4524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4525 lt_cv_path_LD="$ac_dir/$ac_prog"
4526 # Check to see if the program is GNU ld. I'd rather use --version,
4527 # but apparently some variants of GNU ld only accept -v.
4528 # Break only if it was the GNU/non-GNU ld that we prefer.
4529 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4530 *GNU* | *'with BFD'*)
4531 test "$with_gnu_ld" != no && break
4532 ;;
4533 *)
4534 test "$with_gnu_ld" != yes && break
4535 ;;
4536 esac
4537 fi
4538 done
4539 IFS="$lt_save_ifs"
4540else
4541 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4542fi
4543fi
4544
4545LD="$lt_cv_path_LD"
4546if test -n "$LD"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4548$as_echo "$LD" >&6; }
4549else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551$as_echo "no" >&6; }
4552fi
4553test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4555$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4556if ${lt_cv_prog_gnu_ld+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558else
4559 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4560case `$LD -v 2>&1 </dev/null` in
4561*GNU* | *'with BFD'*)
4562 lt_cv_prog_gnu_ld=yes
4563 ;;
4564*)
4565 lt_cv_prog_gnu_ld=no
4566 ;;
4567esac
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4570$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4571with_gnu_ld=$lt_cv_prog_gnu_ld
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4582$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4583if ${lt_cv_path_NM+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585else
4586 if test -n "$NM"; then
4587 # Let the user override the test.
4588 lt_cv_path_NM="$NM"
4589else
4590 lt_nm_to_check="${ac_tool_prefix}nm"
4591 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4592 lt_nm_to_check="$lt_nm_to_check nm"
4593 fi
4594 for lt_tmp_nm in $lt_nm_to_check; do
4595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4596 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4597 IFS="$lt_save_ifs"
4598 test -z "$ac_dir" && ac_dir=.
4599 tmp_nm="$ac_dir/$lt_tmp_nm"
4600 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4601 # Check to see if the nm accepts a BSD-compat flag.
4602 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4603 # nm: unknown option "B" ignored
4604 # Tru64's nm complains that /dev/null is an invalid object file
4605 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4606 */dev/null* | *'Invalid file or object type'*)
4607 lt_cv_path_NM="$tmp_nm -B"
4608 break
4609 ;;
4610 *)
4611 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4612 */dev/null*)
4613 lt_cv_path_NM="$tmp_nm -p"
4614 break
4615 ;;
4616 *)
4617 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4618 continue # so that we can try to find one that supports BSD flags
4619 ;;
4620 esac
4621 ;;
4622 esac
4623 fi
4624 done
4625 IFS="$lt_save_ifs"
4626 done
4627 : ${lt_cv_path_NM=no}
4628fi
4629fi
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4631$as_echo "$lt_cv_path_NM" >&6; }
4632if test "$lt_cv_path_NM" != "no"; then
4633 NM="$lt_cv_path_NM"
4634else
4635 # Didn't find any BSD compatible name lister, look for dumpbin.
4636 if test -n "$DUMPBIN"; then :
4637 # Let the user override the test.
4638 else
4639 if test -n "$ac_tool_prefix"; then
4640 for ac_prog in dumpbin "link -dump"
4641 do
4642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4643set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645$as_echo_n "checking for $ac_word... " >&6; }
4646if ${ac_cv_prog_DUMPBIN+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648else
4649 if test -n "$DUMPBIN"; then
4650 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4651else
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663done
4664 done
4665IFS=$as_save_IFS
4666
4667fi
4668fi
4669DUMPBIN=$ac_cv_prog_DUMPBIN
4670if test -n "$DUMPBIN"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4672$as_echo "$DUMPBIN" >&6; }
4673else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675$as_echo "no" >&6; }
4676fi
4677
4678
4679 test -n "$DUMPBIN" && break
4680 done
4681fi
4682if test -z "$DUMPBIN"; then
4683 ac_ct_DUMPBIN=$DUMPBIN
4684 for ac_prog in dumpbin "link -dump"
4685do
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687set dummy $ac_prog; ac_word=$2
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689$as_echo_n "checking for $ac_word... " >&6; }
4690if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692else
4693 if test -n "$ac_ct_DUMPBIN"; then
4694 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707done
4708 done
4709IFS=$as_save_IFS
4710
4711fi
4712fi
4713ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4714if test -n "$ac_ct_DUMPBIN"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4716$as_echo "$ac_ct_DUMPBIN" >&6; }
4717else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719$as_echo "no" >&6; }
4720fi
4721
4722
4723 test -n "$ac_ct_DUMPBIN" && break
4724done
4725
4726 if test "x$ac_ct_DUMPBIN" = x; then
4727 DUMPBIN=":"
4728 else
4729 case $cross_compiling:$ac_tool_warned in
4730yes:)
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733ac_tool_warned=yes ;;
4734esac
4735 DUMPBIN=$ac_ct_DUMPBIN
4736 fi
4737fi
4738
4739 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4740 *COFF*)
4741 DUMPBIN="$DUMPBIN -symbols"
4742 ;;
4743 *)
4744 DUMPBIN=:
4745 ;;
4746 esac
4747 fi
4748
4749 if test "$DUMPBIN" != ":"; then
4750 NM="$DUMPBIN"
4751 fi
4752fi
4753test -z "$NM" && NM=nm
4754
4755
4756
4757
4758
4759
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4761$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4762if ${lt_cv_nm_interface+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764else
4765 lt_cv_nm_interface="BSD nm"
4766 echo "int some_variable = 0;" > conftest.$ac_ext
4767 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4768 (eval "$ac_compile" 2>conftest.err)
4769 cat conftest.err >&5
4770 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4771 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4772 cat conftest.err >&5
4773 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4774 cat conftest.out >&5
4775 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4776 lt_cv_nm_interface="MS dumpbin"
4777 fi
4778 rm -f conftest*
4779fi
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4781$as_echo "$lt_cv_nm_interface" >&6; }
4782
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4784$as_echo_n "checking whether ln -s works... " >&6; }
4785LN_S=$as_ln_s
4786if test "$LN_S" = "ln -s"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4788$as_echo "yes" >&6; }
4789else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4791$as_echo "no, using $LN_S" >&6; }
4792fi
4793
4794# find the maximum length of command line arguments
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4796$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4797if ${lt_cv_sys_max_cmd_len+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799else
4800 i=0
4801 teststring="ABCD"
4802
4803 case $build_os in
4804 msdosdjgpp*)
4805 # On DJGPP, this test can blow up pretty badly due to problems in libc
4806 # (any single argument exceeding 2000 bytes causes a buffer overrun
4807 # during glob expansion). Even if it were fixed, the result of this
4808 # check would be larger than it should be.
4809 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4810 ;;
4811
4812 gnu*)
4813 # Under GNU Hurd, this test is not required because there is
4814 # no limit to the length of command line arguments.
4815 # Libtool will interpret -1 as no limit whatsoever
4816 lt_cv_sys_max_cmd_len=-1;
4817 ;;
4818
4819 cygwin* | mingw* | cegcc*)
4820 # On Win9x/ME, this test blows up -- it succeeds, but takes
4821 # about 5 minutes as the teststring grows exponentially.
4822 # Worse, since 9x/ME are not pre-emptively multitasking,
4823 # you end up with a "frozen" computer, even though with patience
4824 # the test eventually succeeds (with a max line length of 256k).
4825 # Instead, let's just punt: use the minimum linelength reported by
4826 # all of the supported platforms: 8192 (on NT/2K/XP).
4827 lt_cv_sys_max_cmd_len=8192;
4828 ;;
4829
4830 mint*)
4831 # On MiNT this can take a long time and run out of memory.
4832 lt_cv_sys_max_cmd_len=8192;
4833 ;;
4834
4835 amigaos*)
4836 # On AmigaOS with pdksh, this test takes hours, literally.
4837 # So we just punt and use a minimum line length of 8192.
4838 lt_cv_sys_max_cmd_len=8192;
4839 ;;
4840
4841 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4842 # This has been around since 386BSD, at least. Likely further.
4843 if test -x /sbin/sysctl; then
4844 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4845 elif test -x /usr/sbin/sysctl; then
4846 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4847 else
4848 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4849 fi
4850 # And add a safety zone
4851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4853 ;;
4854
4855 interix*)
4856 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4857 lt_cv_sys_max_cmd_len=196608
4858 ;;
4859
4860 os2*)
4861 # The test takes a long time on OS/2.
4862 lt_cv_sys_max_cmd_len=8192
4863 ;;
4864
4865 osf*)
4866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4868 # nice to cause kernel panics so lets avoid the loop below.
4869 # First set a reasonable default.
4870 lt_cv_sys_max_cmd_len=16384
4871 #
4872 if test -x /sbin/sysconfig; then
4873 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4874 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4875 esac
4876 fi
4877 ;;
4878 sco3.2v5*)
4879 lt_cv_sys_max_cmd_len=102400
4880 ;;
4881 sysv5* | sco5v6* | sysv4.2uw2*)
4882 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4883 if test -n "$kargmax"; then
4884 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4885 else
4886 lt_cv_sys_max_cmd_len=32768
4887 fi
4888 ;;
4889 *)
4890 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4891 if test -n "$lt_cv_sys_max_cmd_len"; then
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894 else
4895 # Make teststring a little bigger before we do anything with it.
4896 # a 1K string should be a reasonable start.
4897 for i in 1 2 3 4 5 6 7 8 ; do
4898 teststring=$teststring$teststring
4899 done
4900 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4901 # If test is not a shell built-in, we'll probably end up computing a
4902 # maximum length that is only half of the actual maximum length, but
4903 # we can't tell.
4904 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4905 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4906 test $i != 17 # 1/2 MB should be enough
4907 do
4908 i=`expr $i + 1`
4909 teststring=$teststring$teststring
4910 done
4911 # Only check the string length outside the loop.
4912 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4913 teststring=
4914 # Add a significant safety factor because C++ compilers can tack on
4915 # massive amounts of additional arguments before passing them to the
4916 # linker. It appears as though 1/2 is a usable value.
4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4918 fi
4919 ;;
4920 esac
4921
4922fi
4923
4924if test -n $lt_cv_sys_max_cmd_len ; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4926$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4927else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4929$as_echo "none" >&6; }
4930fi
4931max_cmd_len=$lt_cv_sys_max_cmd_len
4932
4933
4934
4935
4936
4937
4938: ${CP="cp -f"}
4939: ${MV="mv -f"}
4940: ${RM="rm -f"}
4941
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4943$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4944# Try some XSI features
4945xsi_shell=no
4946( _lt_dummy="a/b/c"
4947 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4948 = c,a/b,b/c, \
4949 && eval 'test $(( 1 + 1 )) -eq 2 \
4950 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4951 && xsi_shell=yes
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4953$as_echo "$xsi_shell" >&6; }
4954
4955
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4957$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4958lt_shell_append=no
4959( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4960 >/dev/null 2>&1 \
4961 && lt_shell_append=yes
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4963$as_echo "$lt_shell_append" >&6; }
4964
4965
4966if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4967 lt_unset=unset
4968else
4969 lt_unset=false
4970fi
4971
4972
4973
4974
4975
4976# test EBCDIC or ASCII
4977case `echo X|tr X '\101'` in
4978 A) # ASCII based system
4979 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4980 lt_SP2NL='tr \040 \012'
4981 lt_NL2SP='tr \015\012 \040\040'
4982 ;;
4983 *) # EBCDIC based system
4984 lt_SP2NL='tr \100 \n'
4985 lt_NL2SP='tr \r\n \100\100'
4986 ;;
4987esac
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4998$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4999if ${lt_cv_to_host_file_cmd+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001else
5002 case $host in
5003 *-*-mingw* )
5004 case $build in
5005 *-*-mingw* ) # actually msys
5006 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5007 ;;
5008 *-*-cygwin* )
5009 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5010 ;;
5011 * ) # otherwise, assume *nix
5012 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5013 ;;
5014 esac
5015 ;;
5016 *-*-cygwin* )
5017 case $build in
5018 *-*-mingw* ) # actually msys
5019 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5020 ;;
5021 *-*-cygwin* )
5022 lt_cv_to_host_file_cmd=func_convert_file_noop
5023 ;;
5024 * ) # otherwise, assume *nix
5025 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5026 ;;
5027 esac
5028 ;;
5029 * ) # unhandled hosts (and "normal" native builds)
5030 lt_cv_to_host_file_cmd=func_convert_file_noop
5031 ;;
5032esac
5033
5034fi
5035
5036to_host_file_cmd=$lt_cv_to_host_file_cmd
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5038$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5039
5040
5041
5042
5043
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5045$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5046if ${lt_cv_to_tool_file_cmd+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048else
5049 #assume ordinary cross tools, or native build.
5050lt_cv_to_tool_file_cmd=func_convert_file_noop
5051case $host in
5052 *-*-mingw* )
5053 case $build in
5054 *-*-mingw* ) # actually msys
5055 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5056 ;;
5057 esac
5058 ;;
5059esac
5060
5061fi
5062
5063to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5065$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5066
5067
5068
5069
5070
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5072$as_echo_n "checking for $LD option to reload object files... " >&6; }
5073if ${lt_cv_ld_reload_flag+:} false; then :
5074 $as_echo_n "(cached) " >&6
5075else
5076 lt_cv_ld_reload_flag='-r'
5077fi
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5079$as_echo "$lt_cv_ld_reload_flag" >&6; }
5080reload_flag=$lt_cv_ld_reload_flag
5081case $reload_flag in
5082"" | " "*) ;;
5083*) reload_flag=" $reload_flag" ;;
5084esac
5085reload_cmds='$LD$reload_flag -o $output$reload_objs'
5086case $host_os in
5087 cygwin* | mingw* | pw32* | cegcc*)
5088 if test "$GCC" != yes; then
5089 reload_cmds=false
5090 fi
5091 ;;
5092 darwin*)
5093 if test "$GCC" = yes; then
5094 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5095 else
5096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5097 fi
5098 ;;
5099esac
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109if test -n "$ac_tool_prefix"; then
5110 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5111set dummy ${ac_tool_prefix}objdump; ac_word=$2
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if ${ac_cv_prog_OBJDUMP+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116else
5117 if test -n "$OBJDUMP"; then
5118 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131done
5132 done
5133IFS=$as_save_IFS
5134
5135fi
5136fi
5137OBJDUMP=$ac_cv_prog_OBJDUMP
5138if test -n "$OBJDUMP"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5140$as_echo "$OBJDUMP" >&6; }
5141else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
5144fi
5145
5146
5147fi
5148if test -z "$ac_cv_prog_OBJDUMP"; then
5149 ac_ct_OBJDUMP=$OBJDUMP
5150 # Extract the first word of "objdump", so it can be a program name with args.
5151set dummy objdump; ac_word=$2
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153$as_echo_n "checking for $ac_word... " >&6; }
5154if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156else
5157 if test -n "$ac_ct_OBJDUMP"; then
5158 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171done
5172 done
5173IFS=$as_save_IFS
5174
5175fi
5176fi
5177ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5178if test -n "$ac_ct_OBJDUMP"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5180$as_echo "$ac_ct_OBJDUMP" >&6; }
5181else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183$as_echo "no" >&6; }
5184fi
5185
5186 if test "x$ac_ct_OBJDUMP" = x; then
5187 OBJDUMP="false"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190yes:)
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193ac_tool_warned=yes ;;
5194esac
5195 OBJDUMP=$ac_ct_OBJDUMP
5196 fi
5197else
5198 OBJDUMP="$ac_cv_prog_OBJDUMP"
5199fi
5200
5201test -z "$OBJDUMP" && OBJDUMP=objdump
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5212$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5213if ${lt_cv_deplibs_check_method+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215else
5216 lt_cv_file_magic_cmd='$MAGIC_CMD'
5217lt_cv_file_magic_test_file=
5218lt_cv_deplibs_check_method='unknown'
5219# Need to set the preceding variable on all platforms that support
5220# interlibrary dependencies.
5221# 'none' -- dependencies not supported.
5222# `unknown' -- same as none, but documents that we really don't know.
5223# 'pass_all' -- all dependencies passed with no checks.
5224# 'test_compile' -- check by making test program.
5225# 'file_magic [[regex]]' -- check by looking for files in library path
5226# which responds to the $file_magic_cmd with a given extended regex.
5227# If you have `file' or equivalent on your system and you're not sure
5228# whether `pass_all' will *always* work, you probably want this one.
5229
5230case $host_os in
5231aix[4-9]*)
5232 lt_cv_deplibs_check_method=pass_all
5233 ;;
5234
5235beos*)
5236 lt_cv_deplibs_check_method=pass_all
5237 ;;
5238
5239bsdi[45]*)
5240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5241 lt_cv_file_magic_cmd='/usr/bin/file -L'
5242 lt_cv_file_magic_test_file=/shlib/libc.so
5243 ;;
5244
5245cygwin*)
5246 # func_win32_libid is a shell function defined in ltmain.sh
5247 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5248 lt_cv_file_magic_cmd='func_win32_libid'
5249 ;;
5250
5251mingw* | pw32*)
5252 # Base MSYS/MinGW do not provide the 'file' command needed by
5253 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5254 # unless we find 'file', for example because we are cross-compiling.
5255 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5256 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5258 lt_cv_file_magic_cmd='func_win32_libid'
5259 else
5260 # Keep this pattern in sync with the one in func_win32_libid.
5261 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5262 lt_cv_file_magic_cmd='$OBJDUMP -f'
5263 fi
5264 ;;
5265
5266cegcc*)
5267 # use the weaker test based on 'objdump'. See mingw*.
5268 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5269 lt_cv_file_magic_cmd='$OBJDUMP -f'
5270 ;;
5271
5272darwin* | rhapsody*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276freebsd* | dragonfly*)
5277 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5278 case $host_cpu in
5279 i*86 )
5280 # Not sure whether the presence of OpenBSD here was a mistake.
5281 # Let's accept both of them until this is cleared up.
5282 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5283 lt_cv_file_magic_cmd=/usr/bin/file
5284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5285 ;;
5286 esac
5287 else
5288 lt_cv_deplibs_check_method=pass_all
5289 fi
5290 ;;
5291
5292gnu*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295
5296haiku*)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
5299
5300hpux10.20* | hpux11*)
5301 lt_cv_file_magic_cmd=/usr/bin/file
5302 case $host_cpu in
5303 ia64*)
5304 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5305 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5306 ;;
5307 hppa*64*)
5308 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]'
5309 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5310 ;;
5311 *)
5312 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5313 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5314 ;;
5315 esac
5316 ;;
5317
5318interix[3-9]*)
5319 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5321 ;;
5322
5323irix5* | irix6* | nonstopux*)
5324 case $LD in
5325 *-32|*"-32 ") libmagic=32-bit;;
5326 *-n32|*"-n32 ") libmagic=N32;;
5327 *-64|*"-64 ") libmagic=64-bit;;
5328 *) libmagic=never-match;;
5329 esac
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332
5333# This must be glibc/ELF.
5334linux* | k*bsd*-gnu | kopensolaris*-gnu)
5335 lt_cv_deplibs_check_method=pass_all
5336 ;;
5337
5338netbsd*)
5339 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5341 else
5342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5343 fi
5344 ;;
5345
5346newos6*)
5347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5348 lt_cv_file_magic_cmd=/usr/bin/file
5349 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5350 ;;
5351
5352*nto* | *qnx*)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356openbsd*)
5357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5359 else
5360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5361 fi
5362 ;;
5363
5364osf3* | osf4* | osf5*)
5365 lt_cv_deplibs_check_method=pass_all
5366 ;;
5367
5368rdos*)
5369 lt_cv_deplibs_check_method=pass_all
5370 ;;
5371
5372solaris*)
5373 lt_cv_deplibs_check_method=pass_all
5374 ;;
5375
5376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5377 lt_cv_deplibs_check_method=pass_all
5378 ;;
5379
5380sysv4 | sysv4.3*)
5381 case $host_vendor in
5382 motorola)
5383 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]'
5384 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5385 ;;
5386 ncr)
5387 lt_cv_deplibs_check_method=pass_all
5388 ;;
5389 sequent)
5390 lt_cv_file_magic_cmd='/bin/file'
5391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5392 ;;
5393 sni)
5394 lt_cv_file_magic_cmd='/bin/file'
5395 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5396 lt_cv_file_magic_test_file=/lib/libc.so
5397 ;;
5398 siemens)
5399 lt_cv_deplibs_check_method=pass_all
5400 ;;
5401 pc)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404 esac
5405 ;;
5406
5407tpf*)
5408 lt_cv_deplibs_check_method=pass_all
5409 ;;
5410esac
5411
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5414$as_echo "$lt_cv_deplibs_check_method" >&6; }
5415
5416file_magic_glob=
5417want_nocaseglob=no
5418if test "$build" = "$host"; then
5419 case $host_os in
5420 mingw* | pw32*)
5421 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5422 want_nocaseglob=yes
5423 else
5424 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5425 fi
5426 ;;
5427 esac
5428fi
5429
5430file_magic_cmd=$lt_cv_file_magic_cmd
5431deplibs_check_method=$lt_cv_deplibs_check_method
5432test -z "$deplibs_check_method" && deplibs_check_method=unknown
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5457set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459$as_echo_n "checking for $ac_word... " >&6; }
5460if ${ac_cv_prog_DLLTOOL+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462else
5463 if test -n "$DLLTOOL"; then
5464 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5465else
5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477done
5478 done
5479IFS=$as_save_IFS
5480
5481fi
5482fi
5483DLLTOOL=$ac_cv_prog_DLLTOOL
5484if test -n "$DLLTOOL"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5486$as_echo "$DLLTOOL" >&6; }
5487else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489$as_echo "no" >&6; }
5490fi
5491
5492
5493fi
5494if test -z "$ac_cv_prog_DLLTOOL"; then
5495 ac_ct_DLLTOOL=$DLLTOOL
5496 # Extract the first word of "dlltool", so it can be a program name with args.
5497set dummy dlltool; ac_word=$2
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499$as_echo_n "checking for $ac_word... " >&6; }
5500if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502else
5503 if test -n "$ac_ct_DLLTOOL"; then
5504 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517done
5518 done
5519IFS=$as_save_IFS
5520
5521fi
5522fi
5523ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5524if test -n "$ac_ct_DLLTOOL"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5526$as_echo "$ac_ct_DLLTOOL" >&6; }
5527else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531
5532 if test "x$ac_ct_DLLTOOL" = x; then
5533 DLLTOOL="false"
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536yes:)
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539ac_tool_warned=yes ;;
5540esac
5541 DLLTOOL=$ac_ct_DLLTOOL
5542 fi
5543else
5544 DLLTOOL="$ac_cv_prog_DLLTOOL"
5545fi
5546
5547test -z "$DLLTOOL" && DLLTOOL=dlltool
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5559$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5560if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562else
5563 lt_cv_sharedlib_from_linklib_cmd='unknown'
5564
5565case $host_os in
5566cygwin* | mingw* | pw32* | cegcc*)
5567 # two different shell functions defined in ltmain.sh
5568 # decide which to use based on capabilities of $DLLTOOL
5569 case `$DLLTOOL --help 2>&1` in
5570 *--identify-strict*)
5571 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5572 ;;
5573 *)
5574 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5575 ;;
5576 esac
5577 ;;
5578*)
5579 # fallback: assume linklib IS sharedlib
5580 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5581 ;;
5582esac
5583
5584fi
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5586$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5587sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5588test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5589
5590
5591
5592
5593
5594
5595
5596
5597if test -n "$ac_tool_prefix"; then
5598 for ac_prog in ar
5599 do
5600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603$as_echo_n "checking for $ac_word... " >&6; }
5604if ${ac_cv_prog_AR+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606else
5607 if test -n "$AR"; then
5608 ac_cv_prog_AR="$AR" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5620 fi
5621done
5622 done
5623IFS=$as_save_IFS
5624
5625fi
5626fi
5627AR=$ac_cv_prog_AR
5628if test -n "$AR"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5630$as_echo "$AR" >&6; }
5631else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634fi
5635
5636
5637 test -n "$AR" && break
5638 done
5639fi
5640if test -z "$AR"; then
5641 ac_ct_AR=$AR
5642 for ac_prog in ar
5643do
5644 # Extract the first word of "$ac_prog", so it can be a program name with args.
5645set dummy $ac_prog; ac_word=$2
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647$as_echo_n "checking for $ac_word... " >&6; }
5648if ${ac_cv_prog_ac_ct_AR+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650else
5651 if test -n "$ac_ct_AR"; then
5652 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 ac_cv_prog_ac_ct_AR="$ac_prog"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5664 fi
5665done
5666 done
5667IFS=$as_save_IFS
5668
5669fi
5670fi
5671ac_ct_AR=$ac_cv_prog_ac_ct_AR
5672if test -n "$ac_ct_AR"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5674$as_echo "$ac_ct_AR" >&6; }
5675else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680
5681 test -n "$ac_ct_AR" && break
5682done
5683
5684 if test "x$ac_ct_AR" = x; then
5685 AR="false"
5686 else
5687 case $cross_compiling:$ac_tool_warned in
5688yes:)
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5691ac_tool_warned=yes ;;
5692esac
5693 AR=$ac_ct_AR
5694 fi
5695fi
5696
5697: ${AR=ar}
5698: ${AR_FLAGS=cru}
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5711$as_echo_n "checking for archiver @FILE support... " >&6; }
5712if ${lt_cv_ar_at_file+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714else
5715 lt_cv_ar_at_file=no
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h. */
5718
5719int
5720main ()
5721{
5722
5723 ;
5724 return 0;
5725}
5726_ACEOF
5727if ac_fn_c_try_compile "$LINENO"; then :
5728 echo conftest.$ac_objext > conftest.lst
5729 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5731 (eval $lt_ar_try) 2>&5
5732 ac_status=$?
5733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5734 test $ac_status = 0; }
5735 if test "$ac_status" -eq 0; then
5736 # Ensure the archiver fails upon bogus file names.
5737 rm -f conftest.$ac_objext libconftest.a
5738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5739 (eval $lt_ar_try) 2>&5
5740 ac_status=$?
5741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5742 test $ac_status = 0; }
5743 if test "$ac_status" -ne 0; then
5744 lt_cv_ar_at_file=@
5745 fi
5746 fi
5747 rm -f conftest.* libconftest.a
5748
5749fi
5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751
5752fi
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5754$as_echo "$lt_cv_ar_at_file" >&6; }
5755
5756if test "x$lt_cv_ar_at_file" = xno; then
5757 archiver_list_spec=
5758else
5759 archiver_list_spec=$lt_cv_ar_at_file
5760fi
5761
5762
5763
5764
5765
5766
5767
5768if test -n "$ac_tool_prefix"; then
5769 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5770set dummy ${ac_tool_prefix}strip; ac_word=$2
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772$as_echo_n "checking for $ac_word... " >&6; }
5773if ${ac_cv_prog_STRIP+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775else
5776 if test -n "$STRIP"; then
5777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790done
5791 done
5792IFS=$as_save_IFS
5793
5794fi
5795fi
5796STRIP=$ac_cv_prog_STRIP
5797if test -n "$STRIP"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5799$as_echo "$STRIP" >&6; }
5800else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802$as_echo "no" >&6; }
5803fi
5804
5805
5806fi
5807if test -z "$ac_cv_prog_STRIP"; then
5808 ac_ct_STRIP=$STRIP
5809 # Extract the first word of "strip", so it can be a program name with args.
5810set dummy strip; ac_word=$2
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812$as_echo_n "checking for $ac_word... " >&6; }
5813if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815else
5816 if test -n "$ac_ct_STRIP"; then
5817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5818else
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_prog_ac_ct_STRIP="strip"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830done
5831 done
5832IFS=$as_save_IFS
5833
5834fi
5835fi
5836ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5837if test -n "$ac_ct_STRIP"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5839$as_echo "$ac_ct_STRIP" >&6; }
5840else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842$as_echo "no" >&6; }
5843fi
5844
5845 if test "x$ac_ct_STRIP" = x; then
5846 STRIP=":"
5847 else
5848 case $cross_compiling:$ac_tool_warned in
5849yes:)
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5852ac_tool_warned=yes ;;
5853esac
5854 STRIP=$ac_ct_STRIP
5855 fi
5856else
5857 STRIP="$ac_cv_prog_STRIP"
5858fi
5859
5860test -z "$STRIP" && STRIP=:
5861
5862
5863
5864
5865
5866
5867if test -n "$ac_tool_prefix"; then
5868 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5869set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871$as_echo_n "checking for $ac_word... " >&6; }
5872if ${ac_cv_prog_RANLIB+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874else
5875 if test -n "$RANLIB"; then
5876 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889done
5890 done
5891IFS=$as_save_IFS
5892
5893fi
5894fi
5895RANLIB=$ac_cv_prog_RANLIB
5896if test -n "$RANLIB"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5898$as_echo "$RANLIB" >&6; }
5899else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
5903
5904
5905fi
5906if test -z "$ac_cv_prog_RANLIB"; then
5907 ac_ct_RANLIB=$RANLIB
5908 # Extract the first word of "ranlib", so it can be a program name with args.
5909set dummy ranlib; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
5912if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914else
5915 if test -n "$ac_ct_RANLIB"; then
5916 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_ac_ct_RANLIB="ranlib"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930 done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5936if test -n "$ac_ct_RANLIB"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5938$as_echo "$ac_ct_RANLIB" >&6; }
5939else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944 if test "x$ac_ct_RANLIB" = x; then
5945 RANLIB=":"
5946 else
5947 case $cross_compiling:$ac_tool_warned in
5948yes:)
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5951ac_tool_warned=yes ;;
5952esac
5953 RANLIB=$ac_ct_RANLIB
5954 fi
5955else
5956 RANLIB="$ac_cv_prog_RANLIB"
5957fi
5958
5959test -z "$RANLIB" && RANLIB=:
5960
5961
5962
5963
5964
5965
5966# Determine commands to create old-style static archives.
5967old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5968old_postinstall_cmds='chmod 644 $oldlib'
5969old_postuninstall_cmds=
5970
5971if test -n "$RANLIB"; then
5972 case $host_os in
5973 openbsd*)
5974 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5975 ;;
5976 *)
5977 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5978 ;;
5979 esac
5980 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5981fi
5982
5983case $host_os in
5984 darwin*)
5985 lock_old_archive_extraction=yes ;;
5986 *)
5987 lock_old_archive_extraction=no ;;
5988esac
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028# If no C compiler was specified, use CC.
6029LTCC=${LTCC-"$CC"}
6030
6031# If no C compiler flags were specified, use CFLAGS.
6032LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6033
6034# Allow CC to be a program name with arguments.
6035compiler=$CC
6036
6037
6038# Check for command to grab the raw symbol name followed by C symbol from nm.
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6040$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6041if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043else
6044
6045# These are sane defaults that work on at least a few old systems.
6046# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6047
6048# Character class describing NM global symbol codes.
6049symcode='[BCDEGRST]'
6050
6051# Regexp to match symbols that can be accessed directly from C.
6052sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6053
6054# Define system-specific variables.
6055case $host_os in
6056aix*)
6057 symcode='[BCDT]'
6058 ;;
6059cygwin* | mingw* | pw32* | cegcc*)
6060 symcode='[ABCDGISTW]'
6061 ;;
6062hpux*)
6063 if test "$host_cpu" = ia64; then
6064 symcode='[ABCDEGRST]'
6065 fi
6066 ;;
6067irix* | nonstopux*)
6068 symcode='[BCDEGRST]'
6069 ;;
6070osf*)
6071 symcode='[BCDEGQRST]'
6072 ;;
6073solaris*)
6074 symcode='[BDRT]'
6075 ;;
6076sco3.2v5*)
6077 symcode='[DT]'
6078 ;;
6079sysv4.2uw2*)
6080 symcode='[DT]'
6081 ;;
6082sysv5* | sco5v6* | unixware* | OpenUNIX*)
6083 symcode='[ABDT]'
6084 ;;
6085sysv4)
6086 symcode='[DFNSTU]'
6087 ;;
6088esac
6089
6090# If we're using GNU nm, then use its standard symbol codes.
6091case `$NM -V 2>&1` in
6092*GNU* | *'with BFD'*)
6093 symcode='[ABCDGIRSTW]' ;;
6094esac
6095
6096# Transform an extracted symbol line into a proper C declaration.
6097# Some systems (esp. on ia64) link data and code symbols differently,
6098# so use this general approach.
6099lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6100
6101# Transform an extracted symbol line into symbol name and symbol address
6102lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6103lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6104
6105# Handle CRLF in mingw tool chain
6106opt_cr=
6107case $build_os in
6108mingw*)
6109 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6110 ;;
6111esac
6112
6113# Try without a prefix underscore, then with it.
6114for ac_symprfx in "" "_"; do
6115
6116 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6117 symxfrm="\\1 $ac_symprfx\\2 \\2"
6118
6119 # Write the raw and C identifiers.
6120 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6121 # Fake it for dumpbin and say T for any non-static function
6122 # and D for any global variable.
6123 # Also find C++ and __fastcall symbols from MSVC++,
6124 # which start with @ or ?.
6125 lt_cv_sys_global_symbol_pipe="$AWK '"\
6126" {last_section=section; section=\$ 3};"\
6127" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6128" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6129" \$ 0!~/External *\|/{next};"\
6130" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6131" {if(hide[section]) next};"\
6132" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6133" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6134" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6135" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6136" ' prfx=^$ac_symprfx"
6137 else
6138 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6139 fi
6140 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6141
6142 # Check to see that the pipe works correctly.
6143 pipe_works=no
6144
6145 rm -f conftest*
6146 cat > conftest.$ac_ext <<_LT_EOF
6147#ifdef __cplusplus
6148extern "C" {
6149#endif
6150char nm_test_var;
6151void nm_test_func(void);
6152void nm_test_func(void){}
6153#ifdef __cplusplus
6154}
6155#endif
6156int main(){nm_test_var='a';nm_test_func();return(0);}
6157_LT_EOF
6158
6159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6160 (eval $ac_compile) 2>&5
6161 ac_status=$?
6162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163 test $ac_status = 0; }; then
6164 # Now try to grab the symbols.
6165 nlist=conftest.nm
6166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6167 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6168 ac_status=$?
6169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6170 test $ac_status = 0; } && test -s "$nlist"; then
6171 # Try sorting and uniquifying the output.
6172 if sort "$nlist" | uniq > "$nlist"T; then
6173 mv -f "$nlist"T "$nlist"
6174 else
6175 rm -f "$nlist"T
6176 fi
6177
6178 # Make sure that we snagged all the symbols we need.
6179 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6180 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6181 cat <<_LT_EOF > conftest.$ac_ext
6182/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6183#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6184/* DATA imports from DLLs on WIN32 con't be const, because runtime
6185 relocations are performed -- see ld's documentation on pseudo-relocs. */
6186# define LT_DLSYM_CONST
6187#elif defined(__osf__)
6188/* This system does not cope well with relocations in const data. */
6189# define LT_DLSYM_CONST
6190#else
6191# define LT_DLSYM_CONST const
6192#endif
6193
6194#ifdef __cplusplus
6195extern "C" {
6196#endif
6197
6198_LT_EOF
6199 # Now generate the symbol file.
6200 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6201
6202 cat <<_LT_EOF >> conftest.$ac_ext
6203
6204/* The mapping between symbol names and symbols. */
6205LT_DLSYM_CONST struct {
6206 const char *name;
6207 void *address;
6208}
6209lt__PROGRAM__LTX_preloaded_symbols[] =
6210{
6211 { "@PROGRAM@", (void *) 0 },
6212_LT_EOF
6213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6214 cat <<\_LT_EOF >> conftest.$ac_ext
6215 {0, (void *) 0}
6216};
6217
6218/* This works around a problem in FreeBSD linker */
6219#ifdef FREEBSD_WORKAROUND
6220static const void *lt_preloaded_setup() {
6221 return lt__PROGRAM__LTX_preloaded_symbols;
6222}
6223#endif
6224
6225#ifdef __cplusplus
6226}
6227#endif
6228_LT_EOF
6229 # Now try linking the two files.
6230 mv conftest.$ac_objext conftstm.$ac_objext
6231 lt_globsym_save_LIBS=$LIBS
6232 lt_globsym_save_CFLAGS=$CFLAGS
6233 LIBS="conftstm.$ac_objext"
6234 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6236 (eval $ac_link) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6240 pipe_works=yes
6241 fi
6242 LIBS=$lt_globsym_save_LIBS
6243 CFLAGS=$lt_globsym_save_CFLAGS
6244 else
6245 echo "cannot find nm_test_func in $nlist" >&5
6246 fi
6247 else
6248 echo "cannot find nm_test_var in $nlist" >&5
6249 fi
6250 else
6251 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6252 fi
6253 else
6254 echo "$progname: failed program was:" >&5
6255 cat conftest.$ac_ext >&5
6256 fi
6257 rm -rf conftest* conftst*
6258
6259 # Do not use the global_symbol_pipe unless it works.
6260 if test "$pipe_works" = yes; then
6261 break
6262 else
6263 lt_cv_sys_global_symbol_pipe=
6264 fi
6265done
6266
6267fi
6268
6269if test -z "$lt_cv_sys_global_symbol_pipe"; then
6270 lt_cv_sys_global_symbol_to_cdecl=
6271fi
6272if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6274$as_echo "failed" >&6; }
6275else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6277$as_echo "ok" >&6; }
6278fi
6279
6280# Response file support.
6281if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6282 nm_file_list_spec='@'
6283elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6284 nm_file_list_spec='@'
6285fi
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6314$as_echo_n "checking for sysroot... " >&6; }
6315
6316# Check whether --with-sysroot was given.
6317if test "${with_sysroot+set}" = set; then :
6318 withval=$with_sysroot;
6319else
6320 with_sysroot=no
6321fi
6322
6323
6324lt_sysroot=
6325case ${with_sysroot} in #(
6326 yes)
6327 if test "$GCC" = yes; then
6328 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6329 fi
6330 ;; #(
6331 /*)
6332 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6333 ;; #(
6334 no|'')
6335 ;; #(
6336 *)
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6338$as_echo "${with_sysroot}" >&6; }
6339 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6340 ;;
6341esac
6342
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6344$as_echo "${lt_sysroot:-no}" >&6; }
6345
6346
6347
6348
6349
6350# Check whether --enable-libtool-lock was given.
6351if test "${enable_libtool_lock+set}" = set; then :
6352 enableval=$enable_libtool_lock;
6353fi
6354
6355test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6356
6357# Some flags need to be propagated to the compiler or linker for good
6358# libtool support.
6359case $host in
6360ia64-*-hpux*)
6361 # Find out which ABI we are using.
6362 echo 'int i;' > conftest.$ac_ext
6363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6364 (eval $ac_compile) 2>&5
6365 ac_status=$?
6366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367 test $ac_status = 0; }; then
6368 case `/usr/bin/file conftest.$ac_objext` in
6369 *ELF-32*)
6370 HPUX_IA64_MODE="32"
6371 ;;
6372 *ELF-64*)
6373 HPUX_IA64_MODE="64"
6374 ;;
6375 esac
6376 fi
6377 rm -rf conftest*
6378 ;;
6379*-*-irix6*)
6380 # Find out which ABI we are using.
6381 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6383 (eval $ac_compile) 2>&5
6384 ac_status=$?
6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386 test $ac_status = 0; }; then
6387 if test "$lt_cv_prog_gnu_ld" = yes; then
6388 case `/usr/bin/file conftest.$ac_objext` in
6389 *32-bit*)
6390 LD="${LD-ld} -melf32bsmip"
6391 ;;
6392 *N32*)
6393 LD="${LD-ld} -melf32bmipn32"
6394 ;;
6395 *64-bit*)
6396 LD="${LD-ld} -melf64bmip"
6397 ;;
6398 esac
6399 else
6400 case `/usr/bin/file conftest.$ac_objext` in
6401 *32-bit*)
6402 LD="${LD-ld} -32"
6403 ;;
6404 *N32*)
6405 LD="${LD-ld} -n32"
6406 ;;
6407 *64-bit*)
6408 LD="${LD-ld} -64"
6409 ;;
6410 esac
6411 fi
6412 fi
6413 rm -rf conftest*
6414 ;;
6415
6416x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6417s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6418 # Find out which ABI we are using.
6419 echo 'int i;' > conftest.$ac_ext
6420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6421 (eval $ac_compile) 2>&5
6422 ac_status=$?
6423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424 test $ac_status = 0; }; then
6425 case `/usr/bin/file conftest.o` in
6426 *32-bit*)
6427 case $host in
6428 x86_64-*kfreebsd*-gnu)
6429 LD="${LD-ld} -m elf_i386_fbsd"
6430 ;;
6431 x86_64-*linux*)
6432 LD="${LD-ld} -m elf_i386"
6433 ;;
6434 ppc64-*linux*|powerpc64-*linux*)
6435 LD="${LD-ld} -m elf32ppclinux"
6436 ;;
6437 s390x-*linux*)
6438 LD="${LD-ld} -m elf_s390"
6439 ;;
6440 sparc64-*linux*)
6441 LD="${LD-ld} -m elf32_sparc"
6442 ;;
6443 esac
6444 ;;
6445 *64-bit*)
6446 case $host in
6447 x86_64-*kfreebsd*-gnu)
6448 LD="${LD-ld} -m elf_x86_64_fbsd"
6449 ;;
6450 x86_64-*linux*)
6451 LD="${LD-ld} -m elf_x86_64"
6452 ;;
6453 ppc*-*linux*|powerpc*-*linux*)
6454 LD="${LD-ld} -m elf64ppc"
6455 ;;
6456 s390*-*linux*|s390*-*tpf*)
6457 LD="${LD-ld} -m elf64_s390"
6458 ;;
6459 sparc*-*linux*)
6460 LD="${LD-ld} -m elf64_sparc"
6461 ;;
6462 esac
6463 ;;
6464 esac
6465 fi
6466 rm -rf conftest*
6467 ;;
6468
6469*-*-sco3.2v5*)
6470 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6471 SAVE_CFLAGS="$CFLAGS"
6472 CFLAGS="$CFLAGS -belf"
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6474$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6475if ${lt_cv_cc_needs_belf+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477else
6478 ac_ext=c
6479ac_cpp='$CPP $CPPFLAGS'
6480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6482ac_compiler_gnu=$ac_cv_c_compiler_gnu
6483
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h. */
6486
6487int
6488main ()
6489{
6490
6491 ;
6492 return 0;
6493}
6494_ACEOF
6495if ac_fn_c_try_link "$LINENO"; then :
6496 lt_cv_cc_needs_belf=yes
6497else
6498 lt_cv_cc_needs_belf=no
6499fi
6500rm -f core conftest.err conftest.$ac_objext \
6501 conftest$ac_exeext conftest.$ac_ext
6502 ac_ext=c
6503ac_cpp='$CPP $CPPFLAGS'
6504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506ac_compiler_gnu=$ac_cv_c_compiler_gnu
6507
6508fi
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6510$as_echo "$lt_cv_cc_needs_belf" >&6; }
6511 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6512 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6513 CFLAGS="$SAVE_CFLAGS"
6514 fi
6515 ;;
6516*-*solaris*)
6517 # Find out which ABI we are using.
6518 echo 'int i;' > conftest.$ac_ext
6519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6520 (eval $ac_compile) 2>&5
6521 ac_status=$?
6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523 test $ac_status = 0; }; then
6524 case `/usr/bin/file conftest.o` in
6525 *64-bit*)
6526 case $lt_cv_prog_gnu_ld in
6527 yes*)
6528 case $host in
6529 i?86-*-solaris*)
6530 LD="${LD-ld} -m elf_x86_64"
6531 ;;
6532 sparc*-*-solaris*)
6533 LD="${LD-ld} -m elf64_sparc"
6534 ;;
6535 esac
6536 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6537 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6538 LD="${LD-ld}_sol2"
6539 fi
6540 ;;
6541 *)
6542 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6543 LD="${LD-ld} -64"
6544 fi
6545 ;;
6546 esac
6547 ;;
6548 esac
6549 fi
6550 rm -rf conftest*
6551 ;;
6552esac
6553
6554need_locks="$enable_libtool_lock"
6555
6556if test -n "$ac_tool_prefix"; then
6557 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6558set dummy ${ac_tool_prefix}mt; ac_word=$2
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560$as_echo_n "checking for $ac_word... " >&6; }
6561if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563else
6564 if test -n "$MANIFEST_TOOL"; then
6565 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6566else
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6577 fi
6578done
6579 done
6580IFS=$as_save_IFS
6581
6582fi
6583fi
6584MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6585if test -n "$MANIFEST_TOOL"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6587$as_echo "$MANIFEST_TOOL" >&6; }
6588else
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590$as_echo "no" >&6; }
6591fi
6592
6593
6594fi
6595if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6596 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6597 # Extract the first word of "mt", so it can be a program name with args.
6598set dummy mt; ac_word=$2
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600$as_echo_n "checking for $ac_word... " >&6; }
6601if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603else
6604 if test -n "$ac_ct_MANIFEST_TOOL"; then
6605 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618done
6619 done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6625if test -n "$ac_ct_MANIFEST_TOOL"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6627$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6628else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6634 MANIFEST_TOOL=":"
6635 else
6636 case $cross_compiling:$ac_tool_warned in
6637yes:)
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6640ac_tool_warned=yes ;;
6641esac
6642 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6643 fi
6644else
6645 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6646fi
6647
6648test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6650$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6651if ${lt_cv_path_mainfest_tool+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653else
6654 lt_cv_path_mainfest_tool=no
6655 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6656 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6657 cat conftest.err >&5
6658 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6659 lt_cv_path_mainfest_tool=yes
6660 fi
6661 rm -f conftest*
6662fi
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6664$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6665if test "x$lt_cv_path_mainfest_tool" != xyes; then
6666 MANIFEST_TOOL=:
6667fi
6668
6669
6670
6671
6672
6673
6674 case $host_os in
6675 rhapsody* | darwin*)
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6678set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680$as_echo_n "checking for $ac_word... " >&6; }
6681if ${ac_cv_prog_DSYMUTIL+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683else
6684 if test -n "$DSYMUTIL"; then
6685 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6686else
6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698done
6699 done
6700IFS=$as_save_IFS
6701
6702fi
6703fi
6704DSYMUTIL=$ac_cv_prog_DSYMUTIL
6705if test -n "$DSYMUTIL"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6707$as_echo "$DSYMUTIL" >&6; }
6708else
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710$as_echo "no" >&6; }
6711fi
6712
6713
6714fi
6715if test -z "$ac_cv_prog_DSYMUTIL"; then
6716 ac_ct_DSYMUTIL=$DSYMUTIL
6717 # Extract the first word of "dsymutil", so it can be a program name with args.
6718set dummy dsymutil; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
6721if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723else
6724 if test -n "$ac_ct_DSYMUTIL"; then
6725 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738done
6739 done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6745if test -n "$ac_ct_DSYMUTIL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6747$as_echo "$ac_ct_DSYMUTIL" >&6; }
6748else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753 if test "x$ac_ct_DSYMUTIL" = x; then
6754 DSYMUTIL=":"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757yes:)
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760ac_tool_warned=yes ;;
6761esac
6762 DSYMUTIL=$ac_ct_DSYMUTIL
6763 fi
6764else
6765 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6766fi
6767
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6770set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772$as_echo_n "checking for $ac_word... " >&6; }
6773if ${ac_cv_prog_NMEDIT+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775else
6776 if test -n "$NMEDIT"; then
6777 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6778else
6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790done
6791 done
6792IFS=$as_save_IFS
6793
6794fi
6795fi
6796NMEDIT=$ac_cv_prog_NMEDIT
6797if test -n "$NMEDIT"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6799$as_echo "$NMEDIT" >&6; }
6800else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802$as_echo "no" >&6; }
6803fi
6804
6805
6806fi
6807if test -z "$ac_cv_prog_NMEDIT"; then
6808 ac_ct_NMEDIT=$NMEDIT
6809 # Extract the first word of "nmedit", so it can be a program name with args.
6810set dummy nmedit; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
6813if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815else
6816 if test -n "$ac_ct_NMEDIT"; then
6817 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831 done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6837if test -n "$ac_ct_NMEDIT"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6839$as_echo "$ac_ct_NMEDIT" >&6; }
6840else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845 if test "x$ac_ct_NMEDIT" = x; then
6846 NMEDIT=":"
6847 else
6848 case $cross_compiling:$ac_tool_warned in
6849yes:)
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852ac_tool_warned=yes ;;
6853esac
6854 NMEDIT=$ac_ct_NMEDIT
6855 fi
6856else
6857 NMEDIT="$ac_cv_prog_NMEDIT"
6858fi
6859
6860 if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6862set dummy ${ac_tool_prefix}lipo; ac_word=$2
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864$as_echo_n "checking for $ac_word... " >&6; }
6865if ${ac_cv_prog_LIPO+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867else
6868 if test -n "$LIPO"; then
6869 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6870else
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882done
6883 done
6884IFS=$as_save_IFS
6885
6886fi
6887fi
6888LIPO=$ac_cv_prog_LIPO
6889if test -n "$LIPO"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6891$as_echo "$LIPO" >&6; }
6892else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894$as_echo "no" >&6; }
6895fi
6896
6897
6898fi
6899if test -z "$ac_cv_prog_LIPO"; then
6900 ac_ct_LIPO=$LIPO
6901 # Extract the first word of "lipo", so it can be a program name with args.
6902set dummy lipo; ac_word=$2
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
6905if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907else
6908 if test -n "$ac_ct_LIPO"; then
6909 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_ac_ct_LIPO="lipo"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923 done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
6928ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6929if test -n "$ac_ct_LIPO"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6931$as_echo "$ac_ct_LIPO" >&6; }
6932else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937 if test "x$ac_ct_LIPO" = x; then
6938 LIPO=":"
6939 else
6940 case $cross_compiling:$ac_tool_warned in
6941yes:)
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944ac_tool_warned=yes ;;
6945esac
6946 LIPO=$ac_ct_LIPO
6947 fi
6948else
6949 LIPO="$ac_cv_prog_LIPO"
6950fi
6951
6952 if test -n "$ac_tool_prefix"; then
6953 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6954set dummy ${ac_tool_prefix}otool; ac_word=$2
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956$as_echo_n "checking for $ac_word... " >&6; }
6957if ${ac_cv_prog_OTOOL+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959else
6960 if test -n "$OTOOL"; then
6961 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6962else
6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974done
6975 done
6976IFS=$as_save_IFS
6977
6978fi
6979fi
6980OTOOL=$ac_cv_prog_OTOOL
6981if test -n "$OTOOL"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6983$as_echo "$OTOOL" >&6; }
6984else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986$as_echo "no" >&6; }
6987fi
6988
6989
6990fi
6991if test -z "$ac_cv_prog_OTOOL"; then
6992 ac_ct_OTOOL=$OTOOL
6993 # Extract the first word of "otool", so it can be a program name with args.
6994set dummy otool; ac_word=$2
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996$as_echo_n "checking for $ac_word... " >&6; }
6997if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999else
7000 if test -n "$ac_ct_OTOOL"; then
7001 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_prog_ac_ct_OTOOL="otool"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014done
7015 done
7016IFS=$as_save_IFS
7017
7018fi
7019fi
7020ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7021if test -n "$ac_ct_OTOOL"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7023$as_echo "$ac_ct_OTOOL" >&6; }
7024else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026$as_echo "no" >&6; }
7027fi
7028
7029 if test "x$ac_ct_OTOOL" = x; then
7030 OTOOL=":"
7031 else
7032 case $cross_compiling:$ac_tool_warned in
7033yes:)
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036ac_tool_warned=yes ;;
7037esac
7038 OTOOL=$ac_ct_OTOOL
7039 fi
7040else
7041 OTOOL="$ac_cv_prog_OTOOL"
7042fi
7043
7044 if test -n "$ac_tool_prefix"; then
7045 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7046set dummy ${ac_tool_prefix}otool64; ac_word=$2
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048$as_echo_n "checking for $ac_word... " >&6; }
7049if ${ac_cv_prog_OTOOL64+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051else
7052 if test -n "$OTOOL64"; then
7053 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7054else
7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066done
7067 done
7068IFS=$as_save_IFS
7069
7070fi
7071fi
7072OTOOL64=$ac_cv_prog_OTOOL64
7073if test -n "$OTOOL64"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7075$as_echo "$OTOOL64" >&6; }
7076else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078$as_echo "no" >&6; }
7079fi
7080
7081
7082fi
7083if test -z "$ac_cv_prog_OTOOL64"; then
7084 ac_ct_OTOOL64=$OTOOL64
7085 # Extract the first word of "otool64", so it can be a program name with args.
7086set dummy otool64; ac_word=$2
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088$as_echo_n "checking for $ac_word... " >&6; }
7089if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091else
7092 if test -n "$ac_ct_OTOOL64"; then
7093 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_prog_ac_ct_OTOOL64="otool64"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106done
7107 done
7108IFS=$as_save_IFS
7109
7110fi
7111fi
7112ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7113if test -n "$ac_ct_OTOOL64"; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7115$as_echo "$ac_ct_OTOOL64" >&6; }
7116else
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118$as_echo "no" >&6; }
7119fi
7120
7121 if test "x$ac_ct_OTOOL64" = x; then
7122 OTOOL64=":"
7123 else
7124 case $cross_compiling:$ac_tool_warned in
7125yes:)
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128ac_tool_warned=yes ;;
7129esac
7130 OTOOL64=$ac_ct_OTOOL64
7131 fi
7132else
7133 OTOOL64="$ac_cv_prog_OTOOL64"
7134fi
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7163$as_echo_n "checking for -single_module linker flag... " >&6; }
7164if ${lt_cv_apple_cc_single_mod+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166else
7167 lt_cv_apple_cc_single_mod=no
7168 if test -z "${LT_MULTI_MODULE}"; then
7169 # By default we will add the -single_module flag. You can override
7170 # by either setting the environment variable LT_MULTI_MODULE
7171 # non-empty at configure time, or by adding -multi_module to the
7172 # link flags.
7173 rm -rf libconftest.dylib*
7174 echo "int foo(void){return 1;}" > conftest.c
7175 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7176-dynamiclib -Wl,-single_module conftest.c" >&5
7177 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7178 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7179 _lt_result=$?
7180 # If there is a non-empty error log, and "single_module"
7181 # appears in it, assume the flag caused a linker warning
7182 if test -s conftest.err && $GREP single_module conftest.err; then
7183 cat conftest.err >&5
7184 # Otherwise, if the output was created with a 0 exit code from
7185 # the compiler, it worked.
7186 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7187 lt_cv_apple_cc_single_mod=yes
7188 else
7189 cat conftest.err >&5
7190 fi
7191 rm -rf libconftest.dylib*
7192 rm -f conftest.*
7193 fi
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7196$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7197
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7199$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7200if ${lt_cv_ld_exported_symbols_list+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202else
7203 lt_cv_ld_exported_symbols_list=no
7204 save_LDFLAGS=$LDFLAGS
7205 echo "_main" > conftest.sym
7206 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h. */
7209
7210int
7211main ()
7212{
7213
7214 ;
7215 return 0;
7216}
7217_ACEOF
7218if ac_fn_c_try_link "$LINENO"; then :
7219 lt_cv_ld_exported_symbols_list=yes
7220else
7221 lt_cv_ld_exported_symbols_list=no
7222fi
7223rm -f core conftest.err conftest.$ac_objext \
7224 conftest$ac_exeext conftest.$ac_ext
7225 LDFLAGS="$save_LDFLAGS"
7226
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7229$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7230
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7232$as_echo_n "checking for -force_load linker flag... " >&6; }
7233if ${lt_cv_ld_force_load+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235else
7236 lt_cv_ld_force_load=no
7237 cat > conftest.c << _LT_EOF
7238int forced_loaded() { return 2;}
7239_LT_EOF
7240 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7241 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7242 echo "$AR cru libconftest.a conftest.o" >&5
7243 $AR cru libconftest.a conftest.o 2>&5
7244 echo "$RANLIB libconftest.a" >&5
7245 $RANLIB libconftest.a 2>&5
7246 cat > conftest.c << _LT_EOF
7247int main() { return 0;}
7248_LT_EOF
7249 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7250 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7251 _lt_result=$?
7252 if test -s conftest.err && $GREP force_load conftest.err; then
7253 cat conftest.err >&5
7254 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7255 lt_cv_ld_force_load=yes
7256 else
7257 cat conftest.err >&5
7258 fi
7259 rm -f conftest.err libconftest.a conftest conftest.c
7260 rm -rf conftest.dSYM
7261
7262fi
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7264$as_echo "$lt_cv_ld_force_load" >&6; }
7265 case $host_os in
7266 rhapsody* | darwin1.[012])
7267 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7268 darwin1.*)
7269 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7270 darwin*) # darwin 5.x on
7271 # if running on 10.5 or later, the deployment target defaults
7272 # to the OS version, if on x86, and 10.4, the deployment
7273 # target defaults to 10.4. Don't you love it?
7274 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7275 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7276 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7277 10.[012]*)
7278 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7279 10.*)
7280 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7281 esac
7282 ;;
7283 esac
7284 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7285 _lt_dar_single_mod='$single_module'
7286 fi
7287 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7288 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7289 else
7290 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7291 fi
7292 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7293 _lt_dsymutil='~$DSYMUTIL $lib || :'
7294 else
7295 _lt_dsymutil=
7296 fi
7297 ;;
7298 esac
7299
7300ac_ext=c
7301ac_cpp='$CPP $CPPFLAGS'
7302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7304ac_compiler_gnu=$ac_cv_c_compiler_gnu
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7306$as_echo_n "checking how to run the C preprocessor... " >&6; }
7307# On Suns, sometimes $CPP names a directory.
7308if test -n "$CPP" && test -d "$CPP"; then
7309 CPP=
7310fi
7311if test -z "$CPP"; then
7312 if ${ac_cv_prog_CPP+:} false; then :
7313 $as_echo_n "(cached) " >&6
7314else
7315 # Double quotes because CPP needs to be expanded
7316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7317 do
7318 ac_preproc_ok=false
7319for ac_c_preproc_warn_flag in '' yes
7320do
7321 # Use a header file that comes with gcc, so configuring glibc
7322 # with a fresh cross-compiler works.
7323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7324 # <limits.h> exists even on freestanding compilers.
7325 # On the NeXT, cc -E runs the code through the compiler's parser,
7326 # not just through cpp. "Syntax error" is here to catch this case.
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h. */
7329#ifdef __STDC__
7330# include <limits.h>
7331#else
7332# include <assert.h>
7333#endif
7334 Syntax error
7335_ACEOF
7336if ac_fn_c_try_cpp "$LINENO"; then :
7337
7338else
7339 # Broken: fails on valid input.
7340continue
7341fi
7342rm -f conftest.err conftest.i conftest.$ac_ext
7343
7344 # OK, works on sane cases. Now check whether nonexistent headers
7345 # can be detected and how.
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347/* end confdefs.h. */
7348#include <ac_nonexistent.h>
7349_ACEOF
7350if ac_fn_c_try_cpp "$LINENO"; then :
7351 # Broken: success on invalid input.
7352continue
7353else
7354 # Passes both tests.
7355ac_preproc_ok=:
7356break
7357fi
7358rm -f conftest.err conftest.i conftest.$ac_ext
7359
7360done
7361# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7362rm -f conftest.i conftest.err conftest.$ac_ext
7363if $ac_preproc_ok; then :
7364 break
7365fi
7366
7367 done
7368 ac_cv_prog_CPP=$CPP
7369
7370fi
7371 CPP=$ac_cv_prog_CPP
7372else
7373 ac_cv_prog_CPP=$CPP
7374fi
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7376$as_echo "$CPP" >&6; }
7377ac_preproc_ok=false
7378for ac_c_preproc_warn_flag in '' yes
7379do
7380 # Use a header file that comes with gcc, so configuring glibc
7381 # with a fresh cross-compiler works.
7382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7383 # <limits.h> exists even on freestanding compilers.
7384 # On the NeXT, cc -E runs the code through the compiler's parser,
7385 # not just through cpp. "Syntax error" is here to catch this case.
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h. */
7388#ifdef __STDC__
7389# include <limits.h>
7390#else
7391# include <assert.h>
7392#endif
7393 Syntax error
7394_ACEOF
7395if ac_fn_c_try_cpp "$LINENO"; then :
7396
7397else
7398 # Broken: fails on valid input.
7399continue
7400fi
7401rm -f conftest.err conftest.i conftest.$ac_ext
7402
7403 # OK, works on sane cases. Now check whether nonexistent headers
7404 # can be detected and how.
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406/* end confdefs.h. */
7407#include <ac_nonexistent.h>
7408_ACEOF
7409if ac_fn_c_try_cpp "$LINENO"; then :
7410 # Broken: success on invalid input.
7411continue
7412else
7413 # Passes both tests.
7414ac_preproc_ok=:
7415break
7416fi
7417rm -f conftest.err conftest.i conftest.$ac_ext
7418
7419done
7420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7421rm -f conftest.i conftest.err conftest.$ac_ext
7422if $ac_preproc_ok; then :
7423
7424else
7425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7427as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7428See \`config.log' for more details" "$LINENO" 5; }
7429fi
7430
7431ac_ext=c
7432ac_cpp='$CPP $CPPFLAGS'
7433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435ac_compiler_gnu=$ac_cv_c_compiler_gnu
7436
7437
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7439$as_echo_n "checking for ANSI C header files... " >&6; }
7440if ${ac_cv_header_stdc+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442else
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h. */
7445#include <stdlib.h>
7446#include <stdarg.h>
7447#include <string.h>
7448#include <float.h>
7449
7450int
7451main ()
7452{
7453
7454 ;
7455 return 0;
7456}
7457_ACEOF
7458if ac_fn_c_try_compile "$LINENO"; then :
7459 ac_cv_header_stdc=yes
7460else
7461 ac_cv_header_stdc=no
7462fi
7463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464
7465if test $ac_cv_header_stdc = yes; then
7466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468/* end confdefs.h. */
7469#include <string.h>
7470
7471_ACEOF
7472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7473 $EGREP "memchr" >/dev/null 2>&1; then :
7474
7475else
7476 ac_cv_header_stdc=no
7477fi
7478rm -f conftest*
7479
7480fi
7481
7482if test $ac_cv_header_stdc = yes; then
7483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485/* end confdefs.h. */
7486#include <stdlib.h>
7487
7488_ACEOF
7489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7490 $EGREP "free" >/dev/null 2>&1; then :
7491
7492else
7493 ac_cv_header_stdc=no
7494fi
7495rm -f conftest*
7496
7497fi
7498
7499if test $ac_cv_header_stdc = yes; then
7500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7501 if test "$cross_compiling" = yes; then :
7502 :
7503else
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h. */
7506#include <ctype.h>
7507#include <stdlib.h>
7508#if ((' ' & 0x0FF) == 0x020)
7509# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7510# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7511#else
7512# define ISLOWER(c) \
7513 (('a' <= (c) && (c) <= 'i') \
7514 || ('j' <= (c) && (c) <= 'r') \
7515 || ('s' <= (c) && (c) <= 'z'))
7516# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7517#endif
7518
7519#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7520int
7521main ()
7522{
7523 int i;
7524 for (i = 0; i < 256; i++)
7525 if (XOR (islower (i), ISLOWER (i))
7526 || toupper (i) != TOUPPER (i))
7527 return 2;
7528 return 0;
7529}
7530_ACEOF
7531if ac_fn_c_try_run "$LINENO"; then :
7532
7533else
7534 ac_cv_header_stdc=no
7535fi
7536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7537 conftest.$ac_objext conftest.beam conftest.$ac_ext
7538fi
7539
7540fi
7541fi
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7543$as_echo "$ac_cv_header_stdc" >&6; }
7544if test $ac_cv_header_stdc = yes; then
7545
7546$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7547
7548fi
7549
7550# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7551for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7552 inttypes.h stdint.h unistd.h
7553do :
7554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7555ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7556"
7557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7558 cat >>confdefs.h <<_ACEOF
7559#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7560_ACEOF
7561
7562fi
7563
7564done
7565
7566
7567for ac_header in dlfcn.h
7568do :
7569 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7570"
7571if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7572 cat >>confdefs.h <<_ACEOF
7573#define HAVE_DLFCN_H 1
7574_ACEOF
7575
7576fi
7577
7578done
7579
7580
7581
7582
7583
7584# Set options
7585
7586
7587
7588 enable_dlopen=no
7589
7590
7591 enable_win32_dll=no
7592
7593
7594 # Check whether --enable-shared was given.
7595if test "${enable_shared+set}" = set; then :
7596 enableval=$enable_shared; p=${PACKAGE-default}
7597 case $enableval in
7598 yes) enable_shared=yes ;;
7599 no) enable_shared=no ;;
7600 *)
7601 enable_shared=no
7602 # Look at the argument we got. We use all the common list separators.
7603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7604 for pkg in $enableval; do
7605 IFS="$lt_save_ifs"
7606 if test "X$pkg" = "X$p"; then
7607 enable_shared=yes
7608 fi
7609 done
7610 IFS="$lt_save_ifs"
7611 ;;
7612 esac
7613else
7614 enable_shared=yes
7615fi
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625 # Check whether --enable-static was given.
7626if test "${enable_static+set}" = set; then :
7627 enableval=$enable_static; p=${PACKAGE-default}
7628 case $enableval in
7629 yes) enable_static=yes ;;
7630 no) enable_static=no ;;
7631 *)
7632 enable_static=no
7633 # Look at the argument we got. We use all the common list separators.
7634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7635 for pkg in $enableval; do
7636 IFS="$lt_save_ifs"
7637 if test "X$pkg" = "X$p"; then
7638 enable_static=yes
7639 fi
7640 done
7641 IFS="$lt_save_ifs"
7642 ;;
7643 esac
7644else
7645 enable_static=yes
7646fi
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657# Check whether --with-pic was given.
7658if test "${with_pic+set}" = set; then :
7659 withval=$with_pic; lt_p=${PACKAGE-default}
7660 case $withval in
7661 yes|no) pic_mode=$withval ;;
7662 *)
7663 pic_mode=default
7664 # Look at the argument we got. We use all the common list separators.
7665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7666 for lt_pkg in $withval; do
7667 IFS="$lt_save_ifs"
7668 if test "X$lt_pkg" = "X$lt_p"; then
7669 pic_mode=yes
7670 fi
7671 done
7672 IFS="$lt_save_ifs"
7673 ;;
7674 esac
7675else
7676 pic_mode=default
7677fi
7678
7679
7680test -z "$pic_mode" && pic_mode=default
7681
7682
7683
7684
7685
7686
7687
7688 # Check whether --enable-fast-install was given.
7689if test "${enable_fast_install+set}" = set; then :
7690 enableval=$enable_fast_install; p=${PACKAGE-default}
7691 case $enableval in
7692 yes) enable_fast_install=yes ;;
7693 no) enable_fast_install=no ;;
7694 *)
7695 enable_fast_install=no
7696 # Look at the argument we got. We use all the common list separators.
7697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7698 for pkg in $enableval; do
7699 IFS="$lt_save_ifs"
7700 if test "X$pkg" = "X$p"; then
7701 enable_fast_install=yes
7702 fi
7703 done
7704 IFS="$lt_save_ifs"
7705 ;;
7706 esac
7707else
7708 enable_fast_install=yes
7709fi
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721# This can be used to rebuild libtool when needed
7722LIBTOOL_DEPS="$ltmain"
7723
7724# Always use our own libtool.
7725LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756test -z "$LN_S" && LN_S="ln -s"
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771if test -n "${ZSH_VERSION+set}" ; then
7772 setopt NO_GLOB_SUBST
7773fi
7774
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7776$as_echo_n "checking for objdir... " >&6; }
7777if ${lt_cv_objdir+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779else
7780 rm -f .libs 2>/dev/null
7781mkdir .libs 2>/dev/null
7782if test -d .libs; then
7783 lt_cv_objdir=.libs
7784else
7785 # MS-DOS does not allow filenames that begin with a dot.
7786 lt_cv_objdir=_libs
7787fi
7788rmdir .libs 2>/dev/null
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7791$as_echo "$lt_cv_objdir" >&6; }
7792objdir=$lt_cv_objdir
7793
7794
7795
7796
7797
7798cat >>confdefs.h <<_ACEOF
7799#define LT_OBJDIR "$lt_cv_objdir/"
7800_ACEOF
7801
7802
7803
7804
7805case $host_os in
7806aix3*)
7807 # AIX sometimes has problems with the GCC collect2 program. For some
7808 # reason, if we set the COLLECT_NAMES environment variable, the problems
7809 # vanish in a puff of smoke.
7810 if test "X${COLLECT_NAMES+set}" != Xset; then
7811 COLLECT_NAMES=
7812 export COLLECT_NAMES
7813 fi
7814 ;;
7815esac
7816
7817# Global variables:
7818ofile=libtool
7819can_build_shared=yes
7820
7821# All known linkers require a `.a' archive for static linking (except MSVC,
7822# which needs '.lib').
7823libext=a
7824
7825with_gnu_ld="$lt_cv_prog_gnu_ld"
7826
7827old_CC="$CC"
7828old_CFLAGS="$CFLAGS"
7829
7830# Set sane defaults for various variables
7831test -z "$CC" && CC=cc
7832test -z "$LTCC" && LTCC=$CC
7833test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7834test -z "$LD" && LD=ld
7835test -z "$ac_objext" && ac_objext=o
7836
7837for cc_temp in $compiler""; do
7838 case $cc_temp in
7839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7841 \-*) ;;
7842 *) break;;
7843 esac
7844done
7845cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7846
7847
7848# Only perform the check for file, if the check method requires it
7849test -z "$MAGIC_CMD" && MAGIC_CMD=file
7850case $deplibs_check_method in
7851file_magic*)
7852 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7854$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7855if ${lt_cv_path_MAGIC_CMD+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857else
7858 case $MAGIC_CMD in
7859[\\/*] | ?:[\\/]*)
7860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7861 ;;
7862*)
7863 lt_save_MAGIC_CMD="$MAGIC_CMD"
7864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7865 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7866 for ac_dir in $ac_dummy; do
7867 IFS="$lt_save_ifs"
7868 test -z "$ac_dir" && ac_dir=.
7869 if test -f $ac_dir/${ac_tool_prefix}file; then
7870 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7871 if test -n "$file_magic_test_file"; then
7872 case $deplibs_check_method in
7873 "file_magic "*)
7874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7877 $EGREP "$file_magic_regex" > /dev/null; then
7878 :
7879 else
7880 cat <<_LT_EOF 1>&2
7881
7882*** Warning: the command libtool uses to detect shared libraries,
7883*** $file_magic_cmd, produces output that libtool cannot recognize.
7884*** The result is that libtool may fail to recognize shared libraries
7885*** as such. This will affect the creation of libtool libraries that
7886*** depend on shared libraries, but programs linked with such libtool
7887*** libraries will work regardless of this problem. Nevertheless, you
7888*** may want to report the problem to your system manager and/or to
7889*** bug-libtool@gnu.org
7890
7891_LT_EOF
7892 fi ;;
7893 esac
7894 fi
7895 break
7896 fi
7897 done
7898 IFS="$lt_save_ifs"
7899 MAGIC_CMD="$lt_save_MAGIC_CMD"
7900 ;;
7901esac
7902fi
7903
7904MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7905if test -n "$MAGIC_CMD"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7907$as_echo "$MAGIC_CMD" >&6; }
7908else
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910$as_echo "no" >&6; }
7911fi
7912
7913
7914
7915
7916
7917if test -z "$lt_cv_path_MAGIC_CMD"; then
7918 if test -n "$ac_tool_prefix"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7920$as_echo_n "checking for file... " >&6; }
7921if ${lt_cv_path_MAGIC_CMD+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923else
7924 case $MAGIC_CMD in
7925[\\/*] | ?:[\\/]*)
7926 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7927 ;;
7928*)
7929 lt_save_MAGIC_CMD="$MAGIC_CMD"
7930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7932 for ac_dir in $ac_dummy; do
7933 IFS="$lt_save_ifs"
7934 test -z "$ac_dir" && ac_dir=.
7935 if test -f $ac_dir/file; then
7936 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7937 if test -n "$file_magic_test_file"; then
7938 case $deplibs_check_method in
7939 "file_magic "*)
7940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7943 $EGREP "$file_magic_regex" > /dev/null; then
7944 :
7945 else
7946 cat <<_LT_EOF 1>&2
7947
7948*** Warning: the command libtool uses to detect shared libraries,
7949*** $file_magic_cmd, produces output that libtool cannot recognize.
7950*** The result is that libtool may fail to recognize shared libraries
7951*** as such. This will affect the creation of libtool libraries that
7952*** depend on shared libraries, but programs linked with such libtool
7953*** libraries will work regardless of this problem. Nevertheless, you
7954*** may want to report the problem to your system manager and/or to
7955*** bug-libtool@gnu.org
7956
7957_LT_EOF
7958 fi ;;
7959 esac
7960 fi
7961 break
7962 fi
7963 done
7964 IFS="$lt_save_ifs"
7965 MAGIC_CMD="$lt_save_MAGIC_CMD"
7966 ;;
7967esac
7968fi
7969
7970MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7971if test -n "$MAGIC_CMD"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7973$as_echo "$MAGIC_CMD" >&6; }
7974else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
7977fi
7978
7979
7980 else
7981 MAGIC_CMD=:
7982 fi
7983fi
7984
7985 fi
7986 ;;
7987esac
7988
7989# Use C for the default configuration in the libtool script
7990
7991lt_save_CC="$CC"
7992ac_ext=c
7993ac_cpp='$CPP $CPPFLAGS'
7994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997
7998
7999# Source file extension for C test sources.
8000ac_ext=c
8001
8002# Object file extension for compiled C test sources.
8003objext=o
8004objext=$objext
8005
8006# Code to be used in simple compile tests
8007lt_simple_compile_test_code="int some_variable = 0;"
8008
8009# Code to be used in simple link tests
8010lt_simple_link_test_code='int main(){return(0);}'
8011
8012
8013
8014
8015
8016
8017
8018# If no C compiler was specified, use CC.
8019LTCC=${LTCC-"$CC"}
8020
8021# If no C compiler flags were specified, use CFLAGS.
8022LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8023
8024# Allow CC to be a program name with arguments.
8025compiler=$CC
8026
8027# Save the default compiler, since it gets overwritten when the other
8028# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8029compiler_DEFAULT=$CC
8030
8031# save warnings/boilerplate of simple test code
8032ac_outfile=conftest.$ac_objext
8033echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8034eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8035_lt_compiler_boilerplate=`cat conftest.err`
8036$RM conftest*
8037
8038ac_outfile=conftest.$ac_objext
8039echo "$lt_simple_link_test_code" >conftest.$ac_ext
8040eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8041_lt_linker_boilerplate=`cat conftest.err`
8042$RM -r conftest*
8043
8044
8045if test -n "$compiler"; then
8046
8047lt_prog_compiler_no_builtin_flag=
8048
8049if test "$GCC" = yes; then
8050 case $cc_basename in
8051 nvcc*)
8052 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8053 *)
8054 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8055 esac
8056
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8058$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8059if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061else
8062 lt_cv_prog_compiler_rtti_exceptions=no
8063 ac_outfile=conftest.$ac_objext
8064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8065 lt_compiler_flag="-fno-rtti -fno-exceptions"
8066 # Insert the option either (1) after the last *FLAGS variable, or
8067 # (2) before a word containing "conftest.", or (3) at the end.
8068 # Note that $ac_compile itself does not contain backslashes and begins
8069 # with a dollar sign (not a hyphen), so the echo should work correctly.
8070 # The option is referenced via a variable to avoid confusing sed.
8071 lt_compile=`echo "$ac_compile" | $SED \
8072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8074 -e 's:$: $lt_compiler_flag:'`
8075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8076 (eval "$lt_compile" 2>conftest.err)
8077 ac_status=$?
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 if (exit $ac_status) && test -s "$ac_outfile"; then
8081 # The compiler can only warn and ignore the option if not recognized
8082 # So say no if there are warnings other than the usual output.
8083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8085 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8086 lt_cv_prog_compiler_rtti_exceptions=yes
8087 fi
8088 fi
8089 $RM conftest*
8090
8091fi
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8093$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8094
8095if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8096 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8097else
8098 :
8099fi
8100
8101fi
8102
8103
8104
8105
8106
8107
8108 lt_prog_compiler_wl=
8109lt_prog_compiler_pic=
8110lt_prog_compiler_static=
8111
8112
8113 if test "$GCC" = yes; then
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_static='-static'
8116
8117 case $host_os in
8118 aix*)
8119 # All AIX code is PIC.
8120 if test "$host_cpu" = ia64; then
8121 # AIX 5 now supports IA64 processor
8122 lt_prog_compiler_static='-Bstatic'
8123 fi
8124 ;;
8125
8126 amigaos*)
8127 case $host_cpu in
8128 powerpc)
8129 # see comment about AmigaOS4 .so support
8130 lt_prog_compiler_pic='-fPIC'
8131 ;;
8132 m68k)
8133 # FIXME: we need at least 68020 code to build shared libraries, but
8134 # adding the `-m68020' flag to GCC prevents building anything better,
8135 # like `-m68040'.
8136 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8137 ;;
8138 esac
8139 ;;
8140
8141 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8142 # PIC is the default for these OSes.
8143 ;;
8144
8145 mingw* | cygwin* | pw32* | os2* | cegcc*)
8146 # This hack is so that the source file can tell whether it is being
8147 # built for inclusion in a dll (and should export symbols for example).
8148 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8149 # (--disable-auto-import) libraries
8150 lt_prog_compiler_pic='-DDLL_EXPORT'
8151 ;;
8152
8153 darwin* | rhapsody*)
8154 # PIC is the default on this platform
8155 # Common symbols not allowed in MH_DYLIB files
8156 lt_prog_compiler_pic='-fno-common'
8157 ;;
8158
8159 haiku*)
8160 # PIC is the default for Haiku.
8161 # The "-static" flag exists, but is broken.
8162 lt_prog_compiler_static=
8163 ;;
8164
8165 hpux*)
8166 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8167 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8168 # sets the default TLS model and affects inlining.
8169 case $host_cpu in
8170 hppa*64*)
8171 # +Z the default
8172 ;;
8173 *)
8174 lt_prog_compiler_pic='-fPIC'
8175 ;;
8176 esac
8177 ;;
8178
8179 interix[3-9]*)
8180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8181 # Instead, we relocate shared libraries at runtime.
8182 ;;
8183
8184 msdosdjgpp*)
8185 # Just because we use GCC doesn't mean we suddenly get shared libraries
8186 # on systems that don't support them.
8187 lt_prog_compiler_can_build_shared=no
8188 enable_shared=no
8189 ;;
8190
8191 *nto* | *qnx*)
8192 # QNX uses GNU C++, but need to define -shared option too, otherwise
8193 # it will coredump.
8194 lt_prog_compiler_pic='-fPIC -shared'
8195 ;;
8196
8197 sysv4*MP*)
8198 if test -d /usr/nec; then
8199 lt_prog_compiler_pic=-Kconform_pic
8200 fi
8201 ;;
8202
8203 *)
8204 lt_prog_compiler_pic='-fPIC'
8205 ;;
8206 esac
8207
8208 case $cc_basename in
8209 nvcc*) # Cuda Compiler Driver 2.2
8210 lt_prog_compiler_wl='-Xlinker '
8211 if test -n "$lt_prog_compiler_pic"; then
8212 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8213 fi
8214 ;;
8215 esac
8216 else
8217 # PORTME Check for flag to pass linker flags through the system compiler.
8218 case $host_os in
8219 aix*)
8220 lt_prog_compiler_wl='-Wl,'
8221 if test "$host_cpu" = ia64; then
8222 # AIX 5 now supports IA64 processor
8223 lt_prog_compiler_static='-Bstatic'
8224 else
8225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8226 fi
8227 ;;
8228
8229 mingw* | cygwin* | pw32* | os2* | cegcc*)
8230 # This hack is so that the source file can tell whether it is being
8231 # built for inclusion in a dll (and should export symbols for example).
8232 lt_prog_compiler_pic='-DDLL_EXPORT'
8233 ;;
8234
8235 hpux9* | hpux10* | hpux11*)
8236 lt_prog_compiler_wl='-Wl,'
8237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8238 # not for PA HP-UX.
8239 case $host_cpu in
8240 hppa*64*|ia64*)
8241 # +Z the default
8242 ;;
8243 *)
8244 lt_prog_compiler_pic='+Z'
8245 ;;
8246 esac
8247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8248 lt_prog_compiler_static='${wl}-a ${wl}archive'
8249 ;;
8250
8251 irix5* | irix6* | nonstopux*)
8252 lt_prog_compiler_wl='-Wl,'
8253 # PIC (with -KPIC) is the default.
8254 lt_prog_compiler_static='-non_shared'
8255 ;;
8256
8257 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8258 case $cc_basename in
8259 # old Intel for x86_64 which still supported -KPIC.
8260 ecc*)
8261 lt_prog_compiler_wl='-Wl,'
8262 lt_prog_compiler_pic='-KPIC'
8263 lt_prog_compiler_static='-static'
8264 ;;
8265 # icc used to be incompatible with GCC.
8266 # ICC 10 doesn't accept -KPIC any more.
8267 icc* | ifort*)
8268 lt_prog_compiler_wl='-Wl,'
8269 lt_prog_compiler_pic='-fPIC'
8270 lt_prog_compiler_static='-static'
8271 ;;
8272 # Lahey Fortran 8.1.
8273 lf95*)
8274 lt_prog_compiler_wl='-Wl,'
8275 lt_prog_compiler_pic='--shared'
8276 lt_prog_compiler_static='--static'
8277 ;;
8278 nagfor*)
8279 # NAG Fortran compiler
8280 lt_prog_compiler_wl='-Wl,-Wl,,'
8281 lt_prog_compiler_pic='-PIC'
8282 lt_prog_compiler_static='-Bstatic'
8283 ;;
8284 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8285 # Portland Group compilers (*not* the Pentium gcc compiler,
8286 # which looks to be a dead project)
8287 lt_prog_compiler_wl='-Wl,'
8288 lt_prog_compiler_pic='-fpic'
8289 lt_prog_compiler_static='-Bstatic'
8290 ;;
8291 ccc*)
8292 lt_prog_compiler_wl='-Wl,'
8293 # All Alpha code is PIC.
8294 lt_prog_compiler_static='-non_shared'
8295 ;;
8296 xl* | bgxl* | bgf* | mpixl*)
8297 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8298 lt_prog_compiler_wl='-Wl,'
8299 lt_prog_compiler_pic='-qpic'
8300 lt_prog_compiler_static='-qstaticlink'
8301 ;;
8302 *)
8303 case `$CC -V 2>&1 | sed 5q` in
8304 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8305 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8306 lt_prog_compiler_pic='-KPIC'
8307 lt_prog_compiler_static='-Bstatic'
8308 lt_prog_compiler_wl=''
8309 ;;
8310 *Sun\ F* | *Sun*Fortran*)
8311 lt_prog_compiler_pic='-KPIC'
8312 lt_prog_compiler_static='-Bstatic'
8313 lt_prog_compiler_wl='-Qoption ld '
8314 ;;
8315 *Sun\ C*)
8316 # Sun C 5.9
8317 lt_prog_compiler_pic='-KPIC'
8318 lt_prog_compiler_static='-Bstatic'
8319 lt_prog_compiler_wl='-Wl,'
8320 ;;
8321 *Intel*\ [CF]*Compiler*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-fPIC'
8324 lt_prog_compiler_static='-static'
8325 ;;
8326 *Portland\ Group*)
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-fpic'
8329 lt_prog_compiler_static='-Bstatic'
8330 ;;
8331 esac
8332 ;;
8333 esac
8334 ;;
8335
8336 newsos6)
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 ;;
8340
8341 *nto* | *qnx*)
8342 # QNX uses GNU C++, but need to define -shared option too, otherwise
8343 # it will coredump.
8344 lt_prog_compiler_pic='-fPIC -shared'
8345 ;;
8346
8347 osf3* | osf4* | osf5*)
8348 lt_prog_compiler_wl='-Wl,'
8349 # All OSF/1 code is PIC.
8350 lt_prog_compiler_static='-non_shared'
8351 ;;
8352
8353 rdos*)
8354 lt_prog_compiler_static='-non_shared'
8355 ;;
8356
8357 solaris*)
8358 lt_prog_compiler_pic='-KPIC'
8359 lt_prog_compiler_static='-Bstatic'
8360 case $cc_basename in
8361 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8362 lt_prog_compiler_wl='-Qoption ld ';;
8363 *)
8364 lt_prog_compiler_wl='-Wl,';;
8365 esac
8366 ;;
8367
8368 sunos4*)
8369 lt_prog_compiler_wl='-Qoption ld '
8370 lt_prog_compiler_pic='-PIC'
8371 lt_prog_compiler_static='-Bstatic'
8372 ;;
8373
8374 sysv4 | sysv4.2uw2* | sysv4.3*)
8375 lt_prog_compiler_wl='-Wl,'
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 ;;
8379
8380 sysv4*MP*)
8381 if test -d /usr/nec ;then
8382 lt_prog_compiler_pic='-Kconform_pic'
8383 lt_prog_compiler_static='-Bstatic'
8384 fi
8385 ;;
8386
8387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8388 lt_prog_compiler_wl='-Wl,'
8389 lt_prog_compiler_pic='-KPIC'
8390 lt_prog_compiler_static='-Bstatic'
8391 ;;
8392
8393 unicos*)
8394 lt_prog_compiler_wl='-Wl,'
8395 lt_prog_compiler_can_build_shared=no
8396 ;;
8397
8398 uts4*)
8399 lt_prog_compiler_pic='-pic'
8400 lt_prog_compiler_static='-Bstatic'
8401 ;;
8402
8403 *)
8404 lt_prog_compiler_can_build_shared=no
8405 ;;
8406 esac
8407 fi
8408
8409case $host_os in
8410 # For platforms which do not support PIC, -DPIC is meaningless:
8411 *djgpp*)
8412 lt_prog_compiler_pic=
8413 ;;
8414 *)
8415 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8416 ;;
8417esac
8418
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8420$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8421if ${lt_cv_prog_compiler_pic+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423else
8424 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8425fi
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8427$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8428lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8429
8430#
8431# Check to make sure the PIC flag actually works.
8432#
8433if test -n "$lt_prog_compiler_pic"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8435$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8436if ${lt_cv_prog_compiler_pic_works+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438else
8439 lt_cv_prog_compiler_pic_works=no
8440 ac_outfile=conftest.$ac_objext
8441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8442 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8443 # Insert the option either (1) after the last *FLAGS variable, or
8444 # (2) before a word containing "conftest.", or (3) at the end.
8445 # Note that $ac_compile itself does not contain backslashes and begins
8446 # with a dollar sign (not a hyphen), so the echo should work correctly.
8447 # The option is referenced via a variable to avoid confusing sed.
8448 lt_compile=`echo "$ac_compile" | $SED \
8449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8451 -e 's:$: $lt_compiler_flag:'`
8452 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8453 (eval "$lt_compile" 2>conftest.err)
8454 ac_status=$?
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 if (exit $ac_status) && test -s "$ac_outfile"; then
8458 # The compiler can only warn and ignore the option if not recognized
8459 # So say no if there are warnings other than the usual output.
8460 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8463 lt_cv_prog_compiler_pic_works=yes
8464 fi
8465 fi
8466 $RM conftest*
8467
8468fi
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8470$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8471
8472if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8473 case $lt_prog_compiler_pic in
8474 "" | " "*) ;;
8475 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8476 esac
8477else
8478 lt_prog_compiler_pic=
8479 lt_prog_compiler_can_build_shared=no
8480fi
8481
8482fi
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494#
8495# Check to make sure the static flag actually works.
8496#
8497wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8499$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8500if ${lt_cv_prog_compiler_static_works+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502else
8503 lt_cv_prog_compiler_static_works=no
8504 save_LDFLAGS="$LDFLAGS"
8505 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8506 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8508 # The linker can only warn and ignore the option if not recognized
8509 # So say no if there are warnings
8510 if test -s conftest.err; then
8511 # Append any errors to the config.log.
8512 cat conftest.err 1>&5
8513 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8515 if diff conftest.exp conftest.er2 >/dev/null; then
8516 lt_cv_prog_compiler_static_works=yes
8517 fi
8518 else
8519 lt_cv_prog_compiler_static_works=yes
8520 fi
8521 fi
8522 $RM -r conftest*
8523 LDFLAGS="$save_LDFLAGS"
8524
8525fi
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8527$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8528
8529if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8530 :
8531else
8532 lt_prog_compiler_static=
8533fi
8534
8535
8536
8537
8538
8539
8540
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8542$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8543if ${lt_cv_prog_compiler_c_o+:} false; then :
8544 $as_echo_n "(cached) " >&6
8545else
8546 lt_cv_prog_compiler_c_o=no
8547 $RM -r conftest 2>/dev/null
8548 mkdir conftest
8549 cd conftest
8550 mkdir out
8551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8552
8553 lt_compiler_flag="-o out/conftest2.$ac_objext"
8554 # Insert the option either (1) after the last *FLAGS variable, or
8555 # (2) before a word containing "conftest.", or (3) at the end.
8556 # Note that $ac_compile itself does not contain backslashes and begins
8557 # with a dollar sign (not a hyphen), so the echo should work correctly.
8558 lt_compile=`echo "$ac_compile" | $SED \
8559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8561 -e 's:$: $lt_compiler_flag:'`
8562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8563 (eval "$lt_compile" 2>out/conftest.err)
8564 ac_status=$?
8565 cat out/conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8568 then
8569 # The compiler can only warn and ignore the option if not recognized
8570 # So say no if there are warnings
8571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8574 lt_cv_prog_compiler_c_o=yes
8575 fi
8576 fi
8577 chmod u+w . 2>&5
8578 $RM conftest*
8579 # SGI C++ compiler will create directory out/ii_files/ for
8580 # template instantiation
8581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8582 $RM out/* && rmdir out
8583 cd ..
8584 $RM -r conftest
8585 $RM conftest*
8586
8587fi
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8589$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8590
8591
8592
8593
8594
8595
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8597$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8598if ${lt_cv_prog_compiler_c_o+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600else
8601 lt_cv_prog_compiler_c_o=no
8602 $RM -r conftest 2>/dev/null
8603 mkdir conftest
8604 cd conftest
8605 mkdir out
8606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8607
8608 lt_compiler_flag="-o out/conftest2.$ac_objext"
8609 # Insert the option either (1) after the last *FLAGS variable, or
8610 # (2) before a word containing "conftest.", or (3) at the end.
8611 # Note that $ac_compile itself does not contain backslashes and begins
8612 # with a dollar sign (not a hyphen), so the echo should work correctly.
8613 lt_compile=`echo "$ac_compile" | $SED \
8614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8616 -e 's:$: $lt_compiler_flag:'`
8617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8618 (eval "$lt_compile" 2>out/conftest.err)
8619 ac_status=$?
8620 cat out/conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8623 then
8624 # The compiler can only warn and ignore the option if not recognized
8625 # So say no if there are warnings
8626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8629 lt_cv_prog_compiler_c_o=yes
8630 fi
8631 fi
8632 chmod u+w . 2>&5
8633 $RM conftest*
8634 # SGI C++ compiler will create directory out/ii_files/ for
8635 # template instantiation
8636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8637 $RM out/* && rmdir out
8638 cd ..
8639 $RM -r conftest
8640 $RM conftest*
8641
8642fi
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8644$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8645
8646
8647
8648
8649hard_links="nottested"
8650if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8651 # do not overwrite the value of need_locks provided by the user
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8653$as_echo_n "checking if we can lock with hard links... " >&6; }
8654 hard_links=yes
8655 $RM conftest*
8656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8657 touch conftest.a
8658 ln conftest.a conftest.b 2>&5 || hard_links=no
8659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8661$as_echo "$hard_links" >&6; }
8662 if test "$hard_links" = no; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8664$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8665 need_locks=warn
8666 fi
8667else
8668 need_locks=no
8669fi
8670
8671
8672
8673
8674
8675
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8677$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8678
8679 runpath_var=
8680 allow_undefined_flag=
8681 always_export_symbols=no
8682 archive_cmds=
8683 archive_expsym_cmds=
8684 compiler_needs_object=no
8685 enable_shared_with_static_runtimes=no
8686 export_dynamic_flag_spec=
8687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8688 hardcode_automatic=no
8689 hardcode_direct=no
8690 hardcode_direct_absolute=no
8691 hardcode_libdir_flag_spec=
8692 hardcode_libdir_separator=
8693 hardcode_minus_L=no
8694 hardcode_shlibpath_var=unsupported
8695 inherit_rpath=no
8696 link_all_deplibs=unknown
8697 module_cmds=
8698 module_expsym_cmds=
8699 old_archive_from_new_cmds=
8700 old_archive_from_expsyms_cmds=
8701 thread_safe_flag_spec=
8702 whole_archive_flag_spec=
8703 # include_expsyms should be a list of space-separated symbols to be *always*
8704 # included in the symbol list
8705 include_expsyms=
8706 # exclude_expsyms can be an extended regexp of symbols to exclude
8707 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8708 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8709 # as well as any symbol that contains `d'.
8710 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8711 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8712 # platforms (ab)use it in PIC code, but their linkers get confused if
8713 # the symbol is explicitly referenced. Since portable code cannot
8714 # rely on this symbol name, it's probably fine to never include it in
8715 # preloaded symbol tables.
8716 # Exclude shared library initialization/finalization symbols.
8717 extract_expsyms_cmds=
8718
8719 case $host_os in
8720 cygwin* | mingw* | pw32* | cegcc*)
8721 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8722 # When not using gcc, we currently assume that we are using
8723 # Microsoft Visual C++.
8724 if test "$GCC" != yes; then
8725 with_gnu_ld=no
8726 fi
8727 ;;
8728 interix*)
8729 # we just hope/assume this is gcc and not c89 (= MSVC++)
8730 with_gnu_ld=yes
8731 ;;
8732 openbsd*)
8733 with_gnu_ld=no
8734 ;;
8735 esac
8736
8737 ld_shlibs=yes
8738
8739 # On some targets, GNU ld is compatible enough with the native linker
8740 # that we're better off using the native interface for both.
8741 lt_use_gnu_ld_interface=no
8742 if test "$with_gnu_ld" = yes; then
8743 case $host_os in
8744 aix*)
8745 # The AIX port of GNU ld has always aspired to compatibility
8746 # with the native linker. However, as the warning in the GNU ld
8747 # block says, versions before 2.19.5* couldn't really create working
8748 # shared libraries, regardless of the interface used.
8749 case `$LD -v 2>&1` in
8750 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8751 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8752 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8753 *)
8754 lt_use_gnu_ld_interface=yes
8755 ;;
8756 esac
8757 ;;
8758 *)
8759 lt_use_gnu_ld_interface=yes
8760 ;;
8761 esac
8762 fi
8763
8764 if test "$lt_use_gnu_ld_interface" = yes; then
8765 # If archive_cmds runs LD, not CC, wlarc should be empty
8766 wlarc='${wl}'
8767
8768 # Set some defaults for GNU ld with shared library support. These
8769 # are reset later if shared libraries are not supported. Putting them
8770 # here allows them to be overridden if necessary.
8771 runpath_var=LD_RUN_PATH
8772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8773 export_dynamic_flag_spec='${wl}--export-dynamic'
8774 # ancient GNU ld didn't support --whole-archive et. al.
8775 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8776 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8777 else
8778 whole_archive_flag_spec=
8779 fi
8780 supports_anon_versioning=no
8781 case `$LD -v 2>&1` in
8782 *GNU\ gold*) supports_anon_versioning=yes ;;
8783 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8784 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8785 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8786 *\ 2.11.*) ;; # other 2.11 versions
8787 *) supports_anon_versioning=yes ;;
8788 esac
8789
8790 # See if GNU ld supports shared libraries.
8791 case $host_os in
8792 aix[3-9]*)
8793 # On AIX/PPC, the GNU linker is very broken
8794 if test "$host_cpu" != ia64; then
8795 ld_shlibs=no
8796 cat <<_LT_EOF 1>&2
8797
8798*** Warning: the GNU linker, at least up to release 2.19, is reported
8799*** to be unable to reliably create shared libraries on AIX.
8800*** Therefore, libtool is disabling shared libraries support. If you
8801*** really care for shared libraries, you may want to install binutils
8802*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8803*** You will then need to restart the configuration process.
8804
8805_LT_EOF
8806 fi
8807 ;;
8808
8809 amigaos*)
8810 case $host_cpu in
8811 powerpc)
8812 # see comment about AmigaOS4 .so support
8813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814 archive_expsym_cmds=''
8815 ;;
8816 m68k)
8817 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)'
8818 hardcode_libdir_flag_spec='-L$libdir'
8819 hardcode_minus_L=yes
8820 ;;
8821 esac
8822 ;;
8823
8824 beos*)
8825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8826 allow_undefined_flag=unsupported
8827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8828 # support --undefined. This deserves some investigation. FIXME
8829 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 else
8831 ld_shlibs=no
8832 fi
8833 ;;
8834
8835 cygwin* | mingw* | pw32* | cegcc*)
8836 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8837 # as there is no search path for DLLs.
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 export_dynamic_flag_spec='${wl}--export-all-symbols'
8840 allow_undefined_flag=unsupported
8841 always_export_symbols=no
8842 enable_shared_with_static_runtimes=yes
8843 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'
8844 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8845
8846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848 # If the export-symbols file already is a .def file (1st line
8849 # is EXPORTS), use it as is; otherwise, prepend...
8850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8851 cp $export_symbols $output_objdir/$soname.def;
8852 else
8853 echo EXPORTS > $output_objdir/$soname.def;
8854 cat $export_symbols >> $output_objdir/$soname.def;
8855 fi~
8856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8857 else
8858 ld_shlibs=no
8859 fi
8860 ;;
8861
8862 haiku*)
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 link_all_deplibs=yes
8865 ;;
8866
8867 interix[3-9]*)
8868 hardcode_direct=no
8869 hardcode_shlibpath_var=no
8870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8871 export_dynamic_flag_spec='${wl}-E'
8872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8873 # Instead, shared libraries are loaded at an image base (0x10000000 by
8874 # default) and relocated if they conflict, which is a slow very memory
8875 # consuming and fragmenting process. To avoid this, we pick a random,
8876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8879 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'
8880 ;;
8881
8882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8883 tmp_diet=no
8884 if test "$host_os" = linux-dietlibc; then
8885 case $cc_basename in
8886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8887 esac
8888 fi
8889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8890 && test "$tmp_diet" = no
8891 then
8892 tmp_addflag=' $pic_flag'
8893 tmp_sharedflag='-shared'
8894 case $cc_basename,$host_cpu in
8895 pgcc*) # Portland Group C compiler
8896 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'
8897 tmp_addflag=' $pic_flag'
8898 ;;
8899 pgf77* | pgf90* | pgf95* | pgfortran*)
8900 # Portland Group f77 and f90 compilers
8901 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'
8902 tmp_addflag=' $pic_flag -Mnomain' ;;
8903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8904 tmp_addflag=' -i_dynamic' ;;
8905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8906 tmp_addflag=' -i_dynamic -nofor_main' ;;
8907 ifc* | ifort*) # Intel Fortran compiler
8908 tmp_addflag=' -nofor_main' ;;
8909 lf95*) # Lahey Fortran 8.1
8910 whole_archive_flag_spec=
8911 tmp_sharedflag='--shared' ;;
8912 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8913 tmp_sharedflag='-qmkshrobj'
8914 tmp_addflag= ;;
8915 nvcc*) # Cuda Compiler Driver 2.2
8916 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'
8917 compiler_needs_object=yes
8918 ;;
8919 esac
8920 case `$CC -V 2>&1 | sed 5q` in
8921 *Sun\ C*) # Sun C 5.9
8922 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'
8923 compiler_needs_object=yes
8924 tmp_sharedflag='-G' ;;
8925 *Sun\ F*) # Sun Fortran 8.3
8926 tmp_sharedflag='-G' ;;
8927 esac
8928 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929
8930 if test "x$supports_anon_versioning" = xyes; then
8931 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8933 echo "local: *; };" >> $output_objdir/$libname.ver~
8934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8935 fi
8936
8937 case $cc_basename in
8938 xlf* | bgf* | bgxlf* | mpixlf*)
8939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8940 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8942 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8943 if test "x$supports_anon_versioning" = xyes; then
8944 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8946 echo "local: *; };" >> $output_objdir/$libname.ver~
8947 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8948 fi
8949 ;;
8950 esac
8951 else
8952 ld_shlibs=no
8953 fi
8954 ;;
8955
8956 netbsd*)
8957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8958 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8959 wlarc=
8960 else
8961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8963 fi
8964 ;;
8965
8966 solaris*)
8967 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8968 ld_shlibs=no
8969 cat <<_LT_EOF 1>&2
8970
8971*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8972*** create shared libraries on Solaris systems. Therefore, libtool
8973*** is disabling shared libraries support. We urge you to upgrade GNU
8974*** binutils to release 2.9.1 or newer. Another option is to modify
8975*** your PATH or compiler configuration so that the native linker is
8976*** used, and then restart.
8977
8978_LT_EOF
8979 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8981 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982 else
8983 ld_shlibs=no
8984 fi
8985 ;;
8986
8987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8988 case `$LD -v 2>&1` in
8989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8990 ld_shlibs=no
8991 cat <<_LT_EOF 1>&2
8992
8993*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8994*** reliably create shared libraries on SCO systems. Therefore, libtool
8995*** is disabling shared libraries support. We urge you to upgrade GNU
8996*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8997*** your PATH or compiler configuration so that the native linker is
8998*** used, and then restart.
8999
9000_LT_EOF
9001 ;;
9002 *)
9003 # For security reasons, it is highly recommended that you always
9004 # use absolute paths for naming shared libraries, and exclude the
9005 # DT_RUNPATH tag from executables and libraries. But doing so
9006 # requires that you compile everything twice, which is a pain.
9007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9011 else
9012 ld_shlibs=no
9013 fi
9014 ;;
9015 esac
9016 ;;
9017
9018 sunos4*)
9019 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9020 wlarc=
9021 hardcode_direct=yes
9022 hardcode_shlibpath_var=no
9023 ;;
9024
9025 *)
9026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029 else
9030 ld_shlibs=no
9031 fi
9032 ;;
9033 esac
9034
9035 if test "$ld_shlibs" = no; then
9036 runpath_var=
9037 hardcode_libdir_flag_spec=
9038 export_dynamic_flag_spec=
9039 whole_archive_flag_spec=
9040 fi
9041 else
9042 # PORTME fill in a description of your system's linker (not GNU ld)
9043 case $host_os in
9044 aix3*)
9045 allow_undefined_flag=unsupported
9046 always_export_symbols=yes
9047 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'
9048 # Note: this linker hardcodes the directories in LIBPATH if there
9049 # are no directories specified by -L.
9050 hardcode_minus_L=yes
9051 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9052 # Neither direct hardcoding nor static linking is supported with a
9053 # broken collect2.
9054 hardcode_direct=unsupported
9055 fi
9056 ;;
9057
9058 aix[4-9]*)
9059 if test "$host_cpu" = ia64; then
9060 # On IA64, the linker does run time linking by default, so we don't
9061 # have to do anything special.
9062 aix_use_runtimelinking=no
9063 exp_sym_flag='-Bexport'
9064 no_entry_flag=""
9065 else
9066 # If we're using GNU nm, then we don't want the "-C" option.
9067 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9068 # Also, AIX nm treats weak defined symbols like other global
9069 # defined symbols, whereas GNU nm marks them as "W".
9070 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9071 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9072 else
9073 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9074 fi
9075 aix_use_runtimelinking=no
9076
9077 # Test if we are trying to use run time linking or normal
9078 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9079 # need to do runtime linking.
9080 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9081 for ld_flag in $LDFLAGS; do
9082 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9083 aix_use_runtimelinking=yes
9084 break
9085 fi
9086 done
9087 ;;
9088 esac
9089
9090 exp_sym_flag='-bexport'
9091 no_entry_flag='-bnoentry'
9092 fi
9093
9094 # When large executables or shared objects are built, AIX ld can
9095 # have problems creating the table of contents. If linking a library
9096 # or program results in "error TOC overflow" add -mminimal-toc to
9097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9099
9100 archive_cmds=''
9101 hardcode_direct=yes
9102 hardcode_direct_absolute=yes
9103 hardcode_libdir_separator=':'
9104 link_all_deplibs=yes
9105 file_list_spec='${wl}-f,'
9106
9107 if test "$GCC" = yes; then
9108 case $host_os in aix4.[012]|aix4.[012].*)
9109 # We only want to do this on AIX 4.2 and lower, the check
9110 # below for broken collect2 doesn't work under 4.3+
9111 collect2name=`${CC} -print-prog-name=collect2`
9112 if test -f "$collect2name" &&
9113 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9114 then
9115 # We have reworked collect2
9116 :
9117 else
9118 # We have old collect2
9119 hardcode_direct=unsupported
9120 # It fails to find uninstalled libraries when the uninstalled
9121 # path is not listed in the libpath. Setting hardcode_minus_L
9122 # to unsupported forces relinking
9123 hardcode_minus_L=yes
9124 hardcode_libdir_flag_spec='-L$libdir'
9125 hardcode_libdir_separator=
9126 fi
9127 ;;
9128 esac
9129 shared_flag='-shared'
9130 if test "$aix_use_runtimelinking" = yes; then
9131 shared_flag="$shared_flag "'${wl}-G'
9132 fi
9133 else
9134 # not using gcc
9135 if test "$host_cpu" = ia64; then
9136 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9137 # chokes on -Wl,-G. The following line is correct:
9138 shared_flag='-G'
9139 else
9140 if test "$aix_use_runtimelinking" = yes; then
9141 shared_flag='${wl}-G'
9142 else
9143 shared_flag='${wl}-bM:SRE'
9144 fi
9145 fi
9146 fi
9147
9148 export_dynamic_flag_spec='${wl}-bexpall'
9149 # It seems that -bexpall does not export symbols beginning with
9150 # underscore (_), so it is better to generate a list of symbols to export.
9151 always_export_symbols=yes
9152 if test "$aix_use_runtimelinking" = yes; then
9153 # Warning - without using the other runtime loading flags (-brtl),
9154 # -berok will link without error, but may produce a broken library.
9155 allow_undefined_flag='-berok'
9156 # Determine the default libpath from the value encoded in an
9157 # empty executable.
9158 if test "${lt_cv_aix_libpath+set}" = set; then
9159 aix_libpath=$lt_cv_aix_libpath
9160else
9161 if ${lt_cv_aix_libpath_+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163else
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h. */
9166
9167int
9168main ()
9169{
9170
9171 ;
9172 return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_link "$LINENO"; then :
9176
9177 lt_aix_libpath_sed='
9178 /Import File Strings/,/^$/ {
9179 /^0/ {
9180 s/^0 *\([^ ]*\) *$/\1/
9181 p
9182 }
9183 }'
9184 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185 # Check for a 64-bit object if we didn't find anything.
9186 if test -z "$lt_cv_aix_libpath_"; then
9187 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9188 fi
9189fi
9190rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9192 if test -z "$lt_cv_aix_libpath_"; then
9193 lt_cv_aix_libpath_="/usr/lib:/lib"
9194 fi
9195
9196fi
9197
9198 aix_libpath=$lt_cv_aix_libpath_
9199fi
9200
9201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9202 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9203 else
9204 if test "$host_cpu" = ia64; then
9205 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9206 allow_undefined_flag="-z nodefs"
9207 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"
9208 else
9209 # Determine the default libpath from the value encoded in an
9210 # empty executable.
9211 if test "${lt_cv_aix_libpath+set}" = set; then
9212 aix_libpath=$lt_cv_aix_libpath
9213else
9214 if ${lt_cv_aix_libpath_+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216else
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218/* end confdefs.h. */
9219
9220int
9221main ()
9222{
9223
9224 ;
9225 return 0;
9226}
9227_ACEOF
9228if ac_fn_c_try_link "$LINENO"; then :
9229
9230 lt_aix_libpath_sed='
9231 /Import File Strings/,/^$/ {
9232 /^0/ {
9233 s/^0 *\([^ ]*\) *$/\1/
9234 p
9235 }
9236 }'
9237 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9238 # Check for a 64-bit object if we didn't find anything.
9239 if test -z "$lt_cv_aix_libpath_"; then
9240 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241 fi
9242fi
9243rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 if test -z "$lt_cv_aix_libpath_"; then
9246 lt_cv_aix_libpath_="/usr/lib:/lib"
9247 fi
9248
9249fi
9250
9251 aix_libpath=$lt_cv_aix_libpath_
9252fi
9253
9254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9255 # Warning - without using the other run time loading flags,
9256 # -berok will link without error, but may produce a broken library.
9257 no_undefined_flag=' ${wl}-bernotok'
9258 allow_undefined_flag=' ${wl}-berok'
9259 if test "$with_gnu_ld" = yes; then
9260 # We only use this code for GNU lds that support --whole-archive.
9261 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9262 else
9263 # Exported symbols can be pulled into shared objects from archives
9264 whole_archive_flag_spec='$convenience'
9265 fi
9266 archive_cmds_need_lc=yes
9267 # This is similar to how AIX traditionally builds its shared libraries.
9268 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9269 fi
9270 fi
9271 ;;
9272
9273 amigaos*)
9274 case $host_cpu in
9275 powerpc)
9276 # see comment about AmigaOS4 .so support
9277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9278 archive_expsym_cmds=''
9279 ;;
9280 m68k)
9281 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)'
9282 hardcode_libdir_flag_spec='-L$libdir'
9283 hardcode_minus_L=yes
9284 ;;
9285 esac
9286 ;;
9287
9288 bsdi[45]*)
9289 export_dynamic_flag_spec=-rdynamic
9290 ;;
9291
9292 cygwin* | mingw* | pw32* | cegcc*)
9293 # When not using gcc, we currently assume that we are using
9294 # Microsoft Visual C++.
9295 # hardcode_libdir_flag_spec is actually meaningless, as there is
9296 # no search path for DLLs.
9297 case $cc_basename in
9298 cl*)
9299 # Native MSVC
9300 hardcode_libdir_flag_spec=' '
9301 allow_undefined_flag=unsupported
9302 always_export_symbols=yes
9303 file_list_spec='@'
9304 # Tell ltmain to make .lib files, not .a files.
9305 libext=lib
9306 # Tell ltmain to make .dll files, not .so files.
9307 shrext_cmds=".dll"
9308 # FIXME: Setting linknames here is a bad hack.
9309 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9310 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9311 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9312 else
9313 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9314 fi~
9315 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9316 linknames='
9317 # The linker will not automatically build a static lib if we build a DLL.
9318 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9319 enable_shared_with_static_runtimes=yes
9320 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9322 # Don't use ranlib
9323 old_postinstall_cmds='chmod 644 $oldlib'
9324 postlink_cmds='lt_outputfile="@OUTPUT@"~
9325 lt_tool_outputfile="@TOOL_OUTPUT@"~
9326 case $lt_outputfile in
9327 *.exe|*.EXE) ;;
9328 *)
9329 lt_outputfile="$lt_outputfile.exe"
9330 lt_tool_outputfile="$lt_tool_outputfile.exe"
9331 ;;
9332 esac~
9333 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9334 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9335 $RM "$lt_outputfile.manifest";
9336 fi'
9337 ;;
9338 *)
9339 # Assume MSVC wrapper
9340 hardcode_libdir_flag_spec=' '
9341 allow_undefined_flag=unsupported
9342 # Tell ltmain to make .lib files, not .a files.
9343 libext=lib
9344 # Tell ltmain to make .dll files, not .so files.
9345 shrext_cmds=".dll"
9346 # FIXME: Setting linknames here is a bad hack.
9347 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9348 # The linker will automatically build a .lib file if we build a DLL.
9349 old_archive_from_new_cmds='true'
9350 # FIXME: Should let the user specify the lib program.
9351 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9352 enable_shared_with_static_runtimes=yes
9353 ;;
9354 esac
9355 ;;
9356
9357 darwin* | rhapsody*)
9358
9359
9360 archive_cmds_need_lc=no
9361 hardcode_direct=no
9362 hardcode_automatic=yes
9363 hardcode_shlibpath_var=unsupported
9364 if test "$lt_cv_ld_force_load" = "yes"; then
9365 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\"`'
9366
9367 else
9368 whole_archive_flag_spec=''
9369 fi
9370 link_all_deplibs=yes
9371 allow_undefined_flag="$_lt_dar_allow_undefined"
9372 case $cc_basename in
9373 ifort*) _lt_dar_can_shared=yes ;;
9374 *) _lt_dar_can_shared=$GCC ;;
9375 esac
9376 if test "$_lt_dar_can_shared" = "yes"; then
9377 output_verbose_link_cmd=func_echo_all
9378 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9379 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9380 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}"
9381 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}"
9382
9383 else
9384 ld_shlibs=no
9385 fi
9386
9387 ;;
9388
9389 dgux*)
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_libdir_flag_spec='-L$libdir'
9392 hardcode_shlibpath_var=no
9393 ;;
9394
9395 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9396 # support. Future versions do this automatically, but an explicit c++rt0.o
9397 # does not break anything, and helps significantly (at the cost of a little
9398 # extra space).
9399 freebsd2.2*)
9400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9401 hardcode_libdir_flag_spec='-R$libdir'
9402 hardcode_direct=yes
9403 hardcode_shlibpath_var=no
9404 ;;
9405
9406 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9407 freebsd2.*)
9408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_direct=yes
9410 hardcode_minus_L=yes
9411 hardcode_shlibpath_var=no
9412 ;;
9413
9414 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9415 freebsd* | dragonfly*)
9416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9417 hardcode_libdir_flag_spec='-R$libdir'
9418 hardcode_direct=yes
9419 hardcode_shlibpath_var=no
9420 ;;
9421
9422 hpux9*)
9423 if test "$GCC" = yes; then
9424 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9425 else
9426 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9427 fi
9428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9429 hardcode_libdir_separator=:
9430 hardcode_direct=yes
9431
9432 # hardcode_minus_L: Not really in the search PATH,
9433 # but as the default location of the library.
9434 hardcode_minus_L=yes
9435 export_dynamic_flag_spec='${wl}-E'
9436 ;;
9437
9438 hpux10*)
9439 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9440 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9441 else
9442 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9443 fi
9444 if test "$with_gnu_ld" = no; then
9445 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9446 hardcode_libdir_separator=:
9447 hardcode_direct=yes
9448 hardcode_direct_absolute=yes
9449 export_dynamic_flag_spec='${wl}-E'
9450 # hardcode_minus_L: Not really in the search PATH,
9451 # but as the default location of the library.
9452 hardcode_minus_L=yes
9453 fi
9454 ;;
9455
9456 hpux11*)
9457 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9458 case $host_cpu in
9459 hppa*64*)
9460 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9461 ;;
9462 ia64*)
9463 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9464 ;;
9465 *)
9466 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9467 ;;
9468 esac
9469 else
9470 case $host_cpu in
9471 hppa*64*)
9472 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9473 ;;
9474 ia64*)
9475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9476 ;;
9477 *)
9478
9479 # Older versions of the 11.00 compiler do not understand -b yet
9480 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9482$as_echo_n "checking if $CC understands -b... " >&6; }
9483if ${lt_cv_prog_compiler__b+:} false; then :
9484 $as_echo_n "(cached) " >&6
9485else
9486 lt_cv_prog_compiler__b=no
9487 save_LDFLAGS="$LDFLAGS"
9488 LDFLAGS="$LDFLAGS -b"
9489 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9491 # The linker can only warn and ignore the option if not recognized
9492 # So say no if there are warnings
9493 if test -s conftest.err; then
9494 # Append any errors to the config.log.
9495 cat conftest.err 1>&5
9496 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9498 if diff conftest.exp conftest.er2 >/dev/null; then
9499 lt_cv_prog_compiler__b=yes
9500 fi
9501 else
9502 lt_cv_prog_compiler__b=yes
9503 fi
9504 fi
9505 $RM -r conftest*
9506 LDFLAGS="$save_LDFLAGS"
9507
9508fi
9509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9510$as_echo "$lt_cv_prog_compiler__b" >&6; }
9511
9512if test x"$lt_cv_prog_compiler__b" = xyes; then
9513 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9514else
9515 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9516fi
9517
9518 ;;
9519 esac
9520 fi
9521 if test "$with_gnu_ld" = no; then
9522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9523 hardcode_libdir_separator=:
9524
9525 case $host_cpu in
9526 hppa*64*|ia64*)
9527 hardcode_direct=no
9528 hardcode_shlibpath_var=no
9529 ;;
9530 *)
9531 hardcode_direct=yes
9532 hardcode_direct_absolute=yes
9533 export_dynamic_flag_spec='${wl}-E'
9534
9535 # hardcode_minus_L: Not really in the search PATH,
9536 # but as the default location of the library.
9537 hardcode_minus_L=yes
9538 ;;
9539 esac
9540 fi
9541 ;;
9542
9543 irix5* | irix6* | nonstopux*)
9544 if test "$GCC" = yes; then
9545 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'
9546 # Try to use the -exported_symbol ld option, if it does not
9547 # work, assume that -exports_file does not work either and
9548 # implicitly export all symbols.
9549 # This should be the same for all languages, so no per-tag cache variable.
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9551$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9552if ${lt_cv_irix_exported_symbol+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554else
9555 save_LDFLAGS="$LDFLAGS"
9556 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h. */
9559int foo (void) { return 0; }
9560_ACEOF
9561if ac_fn_c_try_link "$LINENO"; then :
9562 lt_cv_irix_exported_symbol=yes
9563else
9564 lt_cv_irix_exported_symbol=no
9565fi
9566rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568 LDFLAGS="$save_LDFLAGS"
9569fi
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9571$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9572 if test "$lt_cv_irix_exported_symbol" = yes; then
9573 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'
9574 fi
9575 else
9576 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'
9577 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'
9578 fi
9579 archive_cmds_need_lc='no'
9580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9581 hardcode_libdir_separator=:
9582 inherit_rpath=yes
9583 link_all_deplibs=yes
9584 ;;
9585
9586 netbsd*)
9587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9589 else
9590 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9591 fi
9592 hardcode_libdir_flag_spec='-R$libdir'
9593 hardcode_direct=yes
9594 hardcode_shlibpath_var=no
9595 ;;
9596
9597 newsos6)
9598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599 hardcode_direct=yes
9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 hardcode_libdir_separator=:
9602 hardcode_shlibpath_var=no
9603 ;;
9604
9605 *nto* | *qnx*)
9606 ;;
9607
9608 openbsd*)
9609 if test -f /usr/libexec/ld.so; then
9610 hardcode_direct=yes
9611 hardcode_shlibpath_var=no
9612 hardcode_direct_absolute=yes
9613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9616 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9617 export_dynamic_flag_spec='${wl}-E'
9618 else
9619 case $host_os in
9620 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_libdir_flag_spec='-R$libdir'
9623 ;;
9624 *)
9625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9627 ;;
9628 esac
9629 fi
9630 else
9631 ld_shlibs=no
9632 fi
9633 ;;
9634
9635 os2*)
9636 hardcode_libdir_flag_spec='-L$libdir'
9637 hardcode_minus_L=yes
9638 allow_undefined_flag=unsupported
9639 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9640 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9641 ;;
9642
9643 osf3*)
9644 if test "$GCC" = yes; then
9645 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9646 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'
9647 else
9648 allow_undefined_flag=' -expect_unresolved \*'
9649 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'
9650 fi
9651 archive_cmds_need_lc='no'
9652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653 hardcode_libdir_separator=:
9654 ;;
9655
9656 osf4* | osf5*) # as osf3* with the addition of -msym flag
9657 if test "$GCC" = yes; then
9658 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9659 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'
9660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9661 else
9662 allow_undefined_flag=' -expect_unresolved \*'
9663 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'
9664 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~
9665 $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'
9666
9667 # Both c and cxx compiler support -rpath directly
9668 hardcode_libdir_flag_spec='-rpath $libdir'
9669 fi
9670 archive_cmds_need_lc='no'
9671 hardcode_libdir_separator=:
9672 ;;
9673
9674 solaris*)
9675 no_undefined_flag=' -z defs'
9676 if test "$GCC" = yes; then
9677 wlarc='${wl}'
9678 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9679 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9680 $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'
9681 else
9682 case `$CC -V 2>&1` in
9683 *"Compilers 5.0"*)
9684 wlarc=''
9685 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9687 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9688 ;;
9689 *)
9690 wlarc='${wl}'
9691 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9693 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9694 ;;
9695 esac
9696 fi
9697 hardcode_libdir_flag_spec='-R$libdir'
9698 hardcode_shlibpath_var=no
9699 case $host_os in
9700 solaris2.[0-5] | solaris2.[0-5].*) ;;
9701 *)
9702 # The compiler driver will combine and reorder linker options,
9703 # but understands `-z linker_flag'. GCC discards it without `$wl',
9704 # but is careful enough not to reorder.
9705 # Supported since Solaris 2.6 (maybe 2.5.1?)
9706 if test "$GCC" = yes; then
9707 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9708 else
9709 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9710 fi
9711 ;;
9712 esac
9713 link_all_deplibs=yes
9714 ;;
9715
9716 sunos4*)
9717 if test "x$host_vendor" = xsequent; then
9718 # Use $CC to link under sequent, because it throws in some extra .o
9719 # files that make .init and .fini sections work.
9720 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9721 else
9722 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9723 fi
9724 hardcode_libdir_flag_spec='-L$libdir'
9725 hardcode_direct=yes
9726 hardcode_minus_L=yes
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 sysv4)
9731 case $host_vendor in
9732 sni)
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_direct=yes # is this really true???
9735 ;;
9736 siemens)
9737 ## LD is ld it makes a PLAMLIB
9738 ## CC just makes a GrossModule.
9739 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9740 reload_cmds='$CC -r -o $output$reload_objs'
9741 hardcode_direct=no
9742 ;;
9743 motorola)
9744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9745 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9746 ;;
9747 esac
9748 runpath_var='LD_RUN_PATH'
9749 hardcode_shlibpath_var=no
9750 ;;
9751
9752 sysv4.3*)
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_shlibpath_var=no
9755 export_dynamic_flag_spec='-Bexport'
9756 ;;
9757
9758 sysv4*MP*)
9759 if test -d /usr/nec; then
9760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761 hardcode_shlibpath_var=no
9762 runpath_var=LD_RUN_PATH
9763 hardcode_runpath_var=yes
9764 ld_shlibs=yes
9765 fi
9766 ;;
9767
9768 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9769 no_undefined_flag='${wl}-z,text'
9770 archive_cmds_need_lc=no
9771 hardcode_shlibpath_var=no
9772 runpath_var='LD_RUN_PATH'
9773
9774 if test "$GCC" = yes; then
9775 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 else
9778 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9780 fi
9781 ;;
9782
9783 sysv5* | sco3.2v5* | sco5v6*)
9784 # Note: We can NOT use -z defs as we might desire, because we do not
9785 # link with -lc, and that would cause any symbols used from libc to
9786 # always be unresolved, which means just about no library would
9787 # ever link correctly. If we're not using GNU ld we use -z text
9788 # though, which does catch some bad symbols but isn't as heavy-handed
9789 # as -z defs.
9790 no_undefined_flag='${wl}-z,text'
9791 allow_undefined_flag='${wl}-z,nodefs'
9792 archive_cmds_need_lc=no
9793 hardcode_shlibpath_var=no
9794 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9795 hardcode_libdir_separator=':'
9796 link_all_deplibs=yes
9797 export_dynamic_flag_spec='${wl}-Bexport'
9798 runpath_var='LD_RUN_PATH'
9799
9800 if test "$GCC" = yes; then
9801 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 else
9804 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9806 fi
9807 ;;
9808
9809 uts4*)
9810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811 hardcode_libdir_flag_spec='-L$libdir'
9812 hardcode_shlibpath_var=no
9813 ;;
9814
9815 *)
9816 ld_shlibs=no
9817 ;;
9818 esac
9819
9820 if test x$host_vendor = xsni; then
9821 case $host in
9822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9823 export_dynamic_flag_spec='${wl}-Blargedynsym'
9824 ;;
9825 esac
9826 fi
9827 fi
9828
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9830$as_echo "$ld_shlibs" >&6; }
9831test "$ld_shlibs" = no && can_build_shared=no
9832
9833with_gnu_ld=$with_gnu_ld
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849#
9850# Do we need to explicitly link libc?
9851#
9852case "x$archive_cmds_need_lc" in
9853x|xyes)
9854 # Assume -lc should be added
9855 archive_cmds_need_lc=yes
9856
9857 if test "$enable_shared" = yes && test "$GCC" = yes; then
9858 case $archive_cmds in
9859 *'~'*)
9860 # FIXME: we may have to deal with multi-command sequences.
9861 ;;
9862 '$CC '*)
9863 # Test whether the compiler implicitly links with -lc since on some
9864 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9865 # to ld, don't add -lc before -lgcc.
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9867$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9868if ${lt_cv_archive_cmds_need_lc+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870else
9871 $RM conftest*
9872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9873
9874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9875 (eval $ac_compile) 2>&5
9876 ac_status=$?
9877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9878 test $ac_status = 0; } 2>conftest.err; then
9879 soname=conftest
9880 lib=conftest
9881 libobjs=conftest.$ac_objext
9882 deplibs=
9883 wl=$lt_prog_compiler_wl
9884 pic_flag=$lt_prog_compiler_pic
9885 compiler_flags=-v
9886 linker_flags=-v
9887 verstring=
9888 output_objdir=.
9889 libname=conftest
9890 lt_save_allow_undefined_flag=$allow_undefined_flag
9891 allow_undefined_flag=
9892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9893 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9894 ac_status=$?
9895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9896 test $ac_status = 0; }
9897 then
9898 lt_cv_archive_cmds_need_lc=no
9899 else
9900 lt_cv_archive_cmds_need_lc=yes
9901 fi
9902 allow_undefined_flag=$lt_save_allow_undefined_flag
9903 else
9904 cat conftest.err 1>&5
9905 fi
9906 $RM conftest*
9907
9908fi
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9910$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9911 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9912 ;;
9913 esac
9914 fi
9915 ;;
9916esac
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10070$as_echo_n "checking dynamic linker characteristics... " >&6; }
10071
10072if test "$GCC" = yes; then
10073 case $host_os in
10074 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10075 *) lt_awk_arg="/^libraries:/" ;;
10076 esac
10077 case $host_os in
10078 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10079 *) lt_sed_strip_eq="s,=/,/,g" ;;
10080 esac
10081 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10082 case $lt_search_path_spec in
10083 *\;*)
10084 # if the path contains ";" then we assume it to be the separator
10085 # otherwise default to the standard path separator (i.e. ":") - it is
10086 # assumed that no part of a normal pathname contains ";" but that should
10087 # okay in the real world where ";" in dirpaths is itself problematic.
10088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10089 ;;
10090 *)
10091 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10092 ;;
10093 esac
10094 # Ok, now we have the path, separated by spaces, we can step through it
10095 # and add multilib dir if necessary.
10096 lt_tmp_lt_search_path_spec=
10097 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10098 for lt_sys_path in $lt_search_path_spec; do
10099 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10100 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10101 else
10102 test -d "$lt_sys_path" && \
10103 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10104 fi
10105 done
10106 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10107BEGIN {RS=" "; FS="/|\n";} {
10108 lt_foo="";
10109 lt_count=0;
10110 for (lt_i = NF; lt_i > 0; lt_i--) {
10111 if ($lt_i != "" && $lt_i != ".") {
10112 if ($lt_i == "..") {
10113 lt_count++;
10114 } else {
10115 if (lt_count == 0) {
10116 lt_foo="/" $lt_i lt_foo;
10117 } else {
10118 lt_count--;
10119 }
10120 }
10121 }
10122 }
10123 if (lt_foo != "") { lt_freq[lt_foo]++; }
10124 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10125}'`
10126 # AWK program above erroneously prepends '/' to C:/dos/paths
10127 # for these hosts.
10128 case $host_os in
10129 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10130 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10131 esac
10132 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10133else
10134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10135fi
10136library_names_spec=
10137libname_spec='lib$name'
10138soname_spec=
10139shrext_cmds=".so"
10140postinstall_cmds=
10141postuninstall_cmds=
10142finish_cmds=
10143finish_eval=
10144shlibpath_var=
10145shlibpath_overrides_runpath=unknown
10146version_type=none
10147dynamic_linker="$host_os ld.so"
10148sys_lib_dlsearch_path_spec="/lib /usr/lib"
10149need_lib_prefix=unknown
10150hardcode_into_libs=no
10151
10152# when you set need_version to no, make sure it does not cause -set_version
10153# flags to be left without arguments
10154need_version=unknown
10155
10156case $host_os in
10157aix3*)
10158 version_type=linux # correct to gnu/linux during the next big refactor
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10160 shlibpath_var=LIBPATH
10161
10162 # AIX 3 has no versioning support, so we append a major version to the name.
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 ;;
10165
10166aix[4-9]*)
10167 version_type=linux # correct to gnu/linux during the next big refactor
10168 need_lib_prefix=no
10169 need_version=no
10170 hardcode_into_libs=yes
10171 if test "$host_cpu" = ia64; then
10172 # AIX 5 supports IA64
10173 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 else
10176 # With GCC up to 2.95.x, collect2 would create an import file
10177 # for dependence libraries. The import file would start with
10178 # the line `#! .'. This would cause the generated library to
10179 # depend on `.', always an invalid library. This was fixed in
10180 # development snapshots of GCC prior to 3.0.
10181 case $host_os in
10182 aix4 | aix4.[01] | aix4.[01].*)
10183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10184 echo ' yes '
10185 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10186 :
10187 else
10188 can_build_shared=no
10189 fi
10190 ;;
10191 esac
10192 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10193 # soname into executable. Probably we can add versioning support to
10194 # collect2, so additional links can be useful in future.
10195 if test "$aix_use_runtimelinking" = yes; then
10196 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10197 # instead of lib<name>.a to let people know that these are not
10198 # typical AIX shared libraries.
10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10200 else
10201 # We preserve .a as extension for shared libraries through AIX4.2
10202 # and later when we are not doing run time linking.
10203 library_names_spec='${libname}${release}.a $libname.a'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 fi
10206 shlibpath_var=LIBPATH
10207 fi
10208 ;;
10209
10210amigaos*)
10211 case $host_cpu in
10212 powerpc)
10213 # Since July 2007 AmigaOS4 officially supports .so libraries.
10214 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 ;;
10217 m68k)
10218 library_names_spec='$libname.ixlibrary $libname.a'
10219 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10220 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10221 ;;
10222 esac
10223 ;;
10224
10225beos*)
10226 library_names_spec='${libname}${shared_ext}'
10227 dynamic_linker="$host_os ld.so"
10228 shlibpath_var=LIBRARY_PATH
10229 ;;
10230
10231bsdi[45]*)
10232 version_type=linux # correct to gnu/linux during the next big refactor
10233 need_version=no
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10239 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10240 # the default ld.so.conf also contains /usr/contrib/lib and
10241 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10242 # libtool to hard-code these into programs
10243 ;;
10244
10245cygwin* | mingw* | pw32* | cegcc*)
10246 version_type=windows
10247 shrext_cmds=".dll"
10248 need_version=no
10249 need_lib_prefix=no
10250
10251 case $GCC,$cc_basename in
10252 yes,*)
10253 # gcc
10254 library_names_spec='$libname.dll.a'
10255 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10256 postinstall_cmds='base_file=`basename \${file}`~
10257 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10258 dldir=$destdir/`dirname \$dlpath`~
10259 test -d \$dldir || mkdir -p \$dldir~
10260 $install_prog $dir/$dlname \$dldir/$dlname~
10261 chmod a+x \$dldir/$dlname~
10262 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10263 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10264 fi'
10265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10266 dlpath=$dir/\$dldll~
10267 $RM \$dlpath'
10268 shlibpath_overrides_runpath=yes
10269
10270 case $host_os in
10271 cygwin*)
10272 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10273 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10274
10275 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10276 ;;
10277 mingw* | cegcc*)
10278 # MinGW DLLs use traditional 'lib' prefix
10279 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10280 ;;
10281 pw32*)
10282 # pw32 DLLs use 'pw' prefix rather than 'lib'
10283 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10284 ;;
10285 esac
10286 dynamic_linker='Win32 ld.exe'
10287 ;;
10288
10289 *,cl*)
10290 # Native MSVC
10291 libname_spec='$name'
10292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10293 library_names_spec='${libname}.dll.lib'
10294
10295 case $build_os in
10296 mingw*)
10297 sys_lib_search_path_spec=
10298 lt_save_ifs=$IFS
10299 IFS=';'
10300 for lt_path in $LIB
10301 do
10302 IFS=$lt_save_ifs
10303 # Let DOS variable expansion print the short 8.3 style file name.
10304 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10305 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10306 done
10307 IFS=$lt_save_ifs
10308 # Convert to MSYS style.
10309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10310 ;;
10311 cygwin*)
10312 # Convert to unix form, then to dos form, then back to unix form
10313 # but this time dos style (no spaces!) so that the unix form looks
10314 # like /cygdrive/c/PROGRA~1:/cygdr...
10315 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10316 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10317 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10318 ;;
10319 *)
10320 sys_lib_search_path_spec="$LIB"
10321 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10322 # It is most probably a Windows format PATH.
10323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10324 else
10325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10326 fi
10327 # FIXME: find the short name or the path components, as spaces are
10328 # common. (e.g. "Program Files" -> "PROGRA~1")
10329 ;;
10330 esac
10331
10332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10333 postinstall_cmds='base_file=`basename \${file}`~
10334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10335 dldir=$destdir/`dirname \$dlpath`~
10336 test -d \$dldir || mkdir -p \$dldir~
10337 $install_prog $dir/$dlname \$dldir/$dlname'
10338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10339 dlpath=$dir/\$dldll~
10340 $RM \$dlpath'
10341 shlibpath_overrides_runpath=yes
10342 dynamic_linker='Win32 link.exe'
10343 ;;
10344
10345 *)
10346 # Assume MSVC wrapper
10347 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10348 dynamic_linker='Win32 ld.exe'
10349 ;;
10350 esac
10351 # FIXME: first we should search . and the directory the executable is in
10352 shlibpath_var=PATH
10353 ;;
10354
10355darwin* | rhapsody*)
10356 dynamic_linker="$host_os dyld"
10357 version_type=darwin
10358 need_lib_prefix=no
10359 need_version=no
10360 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10361 soname_spec='${libname}${release}${major}$shared_ext'
10362 shlibpath_overrides_runpath=yes
10363 shlibpath_var=DYLD_LIBRARY_PATH
10364 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10365
10366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10367 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10368 ;;
10369
10370dgux*)
10371 version_type=linux # correct to gnu/linux during the next big refactor
10372 need_lib_prefix=no
10373 need_version=no
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 ;;
10378
10379freebsd* | dragonfly*)
10380 # DragonFly does not have aout. When/if they implement a new
10381 # versioning mechanism, adjust this.
10382 if test -x /usr/bin/objformat; then
10383 objformat=`/usr/bin/objformat`
10384 else
10385 case $host_os in
10386 freebsd[23].*) objformat=aout ;;
10387 *) objformat=elf ;;
10388 esac
10389 fi
10390 version_type=freebsd-$objformat
10391 case $version_type in
10392 freebsd-elf*)
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10394 need_version=no
10395 need_lib_prefix=no
10396 ;;
10397 freebsd-*)
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10399 need_version=yes
10400 ;;
10401 esac
10402 shlibpath_var=LD_LIBRARY_PATH
10403 case $host_os in
10404 freebsd2.*)
10405 shlibpath_overrides_runpath=yes
10406 ;;
10407 freebsd3.[01]* | freebsdelf3.[01]*)
10408 shlibpath_overrides_runpath=yes
10409 hardcode_into_libs=yes
10410 ;;
10411 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10412 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10413 shlibpath_overrides_runpath=no
10414 hardcode_into_libs=yes
10415 ;;
10416 *) # from 4.6 on, and DragonFly
10417 shlibpath_overrides_runpath=yes
10418 hardcode_into_libs=yes
10419 ;;
10420 esac
10421 ;;
10422
10423gnu*)
10424 version_type=linux # correct to gnu/linux during the next big refactor
10425 need_lib_prefix=no
10426 need_version=no
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=no
10431 hardcode_into_libs=yes
10432 ;;
10433
10434haiku*)
10435 version_type=linux # correct to gnu/linux during the next big refactor
10436 need_lib_prefix=no
10437 need_version=no
10438 dynamic_linker="$host_os runtime_loader"
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 shlibpath_var=LIBRARY_PATH
10442 shlibpath_overrides_runpath=yes
10443 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10444 hardcode_into_libs=yes
10445 ;;
10446
10447hpux9* | hpux10* | hpux11*)
10448 # Give a soname corresponding to the major version so that dld.sl refuses to
10449 # link against other versions.
10450 version_type=sunos
10451 need_lib_prefix=no
10452 need_version=no
10453 case $host_cpu in
10454 ia64*)
10455 shrext_cmds='.so'
10456 hardcode_into_libs=yes
10457 dynamic_linker="$host_os dld.so"
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 if test "X$HPUX_IA64_MODE" = X32; then
10463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10464 else
10465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10466 fi
10467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10468 ;;
10469 hppa*64*)
10470 shrext_cmds='.sl'
10471 hardcode_into_libs=yes
10472 dynamic_linker="$host_os dld.sl"
10473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10479 ;;
10480 *)
10481 shrext_cmds='.sl'
10482 dynamic_linker="$host_os dld.sl"
10483 shlibpath_var=SHLIB_PATH
10484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 ;;
10488 esac
10489 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10490 postinstall_cmds='chmod 555 $lib'
10491 # or fails outright, so override atomically:
10492 install_override_mode=555
10493 ;;
10494
10495interix[3-9]*)
10496 version_type=linux # correct to gnu/linux during the next big refactor
10497 need_lib_prefix=no
10498 need_version=no
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=no
10504 hardcode_into_libs=yes
10505 ;;
10506
10507irix5* | irix6* | nonstopux*)
10508 case $host_os in
10509 nonstopux*) version_type=nonstopux ;;
10510 *)
10511 if test "$lt_cv_prog_gnu_ld" = yes; then
10512 version_type=linux # correct to gnu/linux during the next big refactor
10513 else
10514 version_type=irix
10515 fi ;;
10516 esac
10517 need_lib_prefix=no
10518 need_version=no
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10521 case $host_os in
10522 irix5* | nonstopux*)
10523 libsuff= shlibsuff=
10524 ;;
10525 *)
10526 case $LD in # libtool.m4 will add one of these switches to LD
10527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10528 libsuff= shlibsuff= libmagic=32-bit;;
10529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10530 libsuff=32 shlibsuff=N32 libmagic=N32;;
10531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10533 *) libsuff= shlibsuff= libmagic=never-match;;
10534 esac
10535 ;;
10536 esac
10537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10538 shlibpath_overrides_runpath=no
10539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10541 hardcode_into_libs=yes
10542 ;;
10543
10544# No shared lib support for Linux oldld, aout, or coff.
10545linux*oldld* | linux*aout* | linux*coff*)
10546 dynamic_linker=no
10547 ;;
10548
10549# This must be glibc/ELF.
10550linux* | k*bsd*-gnu | kopensolaris*-gnu)
10551 version_type=linux # correct to gnu/linux during the next big refactor
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559
10560 # Some binutils ld are patched to set DT_RUNPATH
10561 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563else
10564 lt_cv_shlibpath_overrides_runpath=no
10565 save_LDFLAGS=$LDFLAGS
10566 save_libdir=$libdir
10567 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10568 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570/* end confdefs.h. */
10571
10572int
10573main ()
10574{
10575
10576 ;
10577 return 0;
10578}
10579_ACEOF
10580if ac_fn_c_try_link "$LINENO"; then :
10581 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10582 lt_cv_shlibpath_overrides_runpath=yes
10583fi
10584fi
10585rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 LDFLAGS=$save_LDFLAGS
10588 libdir=$save_libdir
10589
10590fi
10591
10592 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10593
10594 # This implies no fast_install, which is unacceptable.
10595 # Some rework will be needed to allow for fast_install
10596 # before this can be enabled.
10597 hardcode_into_libs=yes
10598
10599 # Add ABI-specific directories to the system library path.
10600 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10601
10602 # Append ld.so.conf contents to the search path
10603 if test -f /etc/ld.so.conf; then
10604 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' ' '`
10605 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10606
10607 fi
10608
10609 # We used to test for /lib/ld.so.1 and disable shared libraries on
10610 # powerpc, because MkLinux only supported shared libraries with the
10611 # GNU dynamic linker. Since this was broken with cross compilers,
10612 # most powerpc-linux boxes support dynamic linking these days and
10613 # people can always --disable-shared, the test was removed, and we
10614 # assume the GNU/Linux dynamic linker is in use.
10615 dynamic_linker='GNU/Linux ld.so'
10616 ;;
10617
10618netbsd*)
10619 version_type=sunos
10620 need_lib_prefix=no
10621 need_version=no
10622 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10625 dynamic_linker='NetBSD (a.out) ld.so'
10626 else
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 dynamic_linker='NetBSD ld.elf_so'
10630 fi
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=yes
10633 hardcode_into_libs=yes
10634 ;;
10635
10636newsos6)
10637 version_type=linux # correct to gnu/linux during the next big refactor
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 ;;
10642
10643*nto* | *qnx*)
10644 version_type=qnx
10645 need_lib_prefix=no
10646 need_version=no
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath=no
10651 hardcode_into_libs=yes
10652 dynamic_linker='ldqnx.so'
10653 ;;
10654
10655openbsd*)
10656 version_type=sunos
10657 sys_lib_dlsearch_path_spec="/usr/lib"
10658 need_lib_prefix=no
10659 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10660 case $host_os in
10661 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10662 *) need_version=no ;;
10663 esac
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10668 case $host_os in
10669 openbsd2.[89] | openbsd2.[89].*)
10670 shlibpath_overrides_runpath=no
10671 ;;
10672 *)
10673 shlibpath_overrides_runpath=yes
10674 ;;
10675 esac
10676 else
10677 shlibpath_overrides_runpath=yes
10678 fi
10679 ;;
10680
10681os2*)
10682 libname_spec='$name'
10683 shrext_cmds=".dll"
10684 need_lib_prefix=no
10685 library_names_spec='$libname${shared_ext} $libname.a'
10686 dynamic_linker='OS/2 ld.exe'
10687 shlibpath_var=LIBPATH
10688 ;;
10689
10690osf3* | osf4* | osf5*)
10691 version_type=osf
10692 need_lib_prefix=no
10693 need_version=no
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10698 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10699 ;;
10700
10701rdos*)
10702 dynamic_linker=no
10703 ;;
10704
10705solaris*)
10706 version_type=linux # correct to gnu/linux during the next big refactor
10707 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
10712 shlibpath_overrides_runpath=yes
10713 hardcode_into_libs=yes
10714 # ldd complains unless libraries are executable
10715 postinstall_cmds='chmod +x $lib'
10716 ;;
10717
10718sunos4*)
10719 version_type=sunos
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10721 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 shlibpath_overrides_runpath=yes
10724 if test "$with_gnu_ld" = yes; then
10725 need_lib_prefix=no
10726 fi
10727 need_version=yes
10728 ;;
10729
10730sysv4 | sysv4.3*)
10731 version_type=linux # correct to gnu/linux during the next big refactor
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 case $host_vendor in
10736 sni)
10737 shlibpath_overrides_runpath=no
10738 need_lib_prefix=no
10739 runpath_var=LD_RUN_PATH
10740 ;;
10741 siemens)
10742 need_lib_prefix=no
10743 ;;
10744 motorola)
10745 need_lib_prefix=no
10746 need_version=no
10747 shlibpath_overrides_runpath=no
10748 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10749 ;;
10750 esac
10751 ;;
10752
10753sysv4*MP*)
10754 if test -d /usr/nec ;then
10755 version_type=linux # correct to gnu/linux during the next big refactor
10756 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10757 soname_spec='$libname${shared_ext}.$major'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 fi
10760 ;;
10761
10762sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10763 version_type=freebsd-elf
10764 need_lib_prefix=no
10765 need_version=no
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 shlibpath_overrides_runpath=yes
10770 hardcode_into_libs=yes
10771 if test "$with_gnu_ld" = yes; then
10772 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10773 else
10774 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10775 case $host_os in
10776 sco3.2v5*)
10777 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10778 ;;
10779 esac
10780 fi
10781 sys_lib_dlsearch_path_spec='/usr/lib'
10782 ;;
10783
10784tpf*)
10785 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10786 version_type=linux # correct to gnu/linux during the next big refactor
10787 need_lib_prefix=no
10788 need_version=no
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=no
10792 hardcode_into_libs=yes
10793 ;;
10794
10795uts4*)
10796 version_type=linux # correct to gnu/linux during the next big refactor
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 ;;
10801
10802*)
10803 dynamic_linker=no
10804 ;;
10805esac
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10807$as_echo "$dynamic_linker" >&6; }
10808test "$dynamic_linker" = no && can_build_shared=no
10809
10810variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10811if test "$GCC" = yes; then
10812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10813fi
10814
10815if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10816 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10817fi
10818if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10819 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10820fi
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10914$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10915hardcode_action=
10916if test -n "$hardcode_libdir_flag_spec" ||
10917 test -n "$runpath_var" ||
10918 test "X$hardcode_automatic" = "Xyes" ; then
10919
10920 # We can hardcode non-existent directories.
10921 if test "$hardcode_direct" != no &&
10922 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10923 # have to relink, otherwise we might link with an installed library
10924 # when we should be linking with a yet-to-be-installed one
10925 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10926 test "$hardcode_minus_L" != no; then
10927 # Linking always hardcodes the temporary library directory.
10928 hardcode_action=relink
10929 else
10930 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10931 hardcode_action=immediate
10932 fi
10933else
10934 # We cannot hardcode anything, or else we can only hardcode existing
10935 # directories.
10936 hardcode_action=unsupported
10937fi
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10939$as_echo "$hardcode_action" >&6; }
10940
10941if test "$hardcode_action" = relink ||
10942 test "$inherit_rpath" = yes; then
10943 # Fast installation is not supported
10944 enable_fast_install=no
10945elif test "$shlibpath_overrides_runpath" = yes ||
10946 test "$enable_shared" = no; then
10947 # Fast installation is not necessary
10948 enable_fast_install=needless
10949fi
10950
10951
10952
10953
10954
10955
10956 if test "x$enable_dlopen" != xyes; then
10957 enable_dlopen=unknown
10958 enable_dlopen_self=unknown
10959 enable_dlopen_self_static=unknown
10960else
10961 lt_cv_dlopen=no
10962 lt_cv_dlopen_libs=
10963
10964 case $host_os in
10965 beos*)
10966 lt_cv_dlopen="load_add_on"
10967 lt_cv_dlopen_libs=
10968 lt_cv_dlopen_self=yes
10969 ;;
10970
10971 mingw* | pw32* | cegcc*)
10972 lt_cv_dlopen="LoadLibrary"
10973 lt_cv_dlopen_libs=
10974 ;;
10975
10976 cygwin*)
10977 lt_cv_dlopen="dlopen"
10978 lt_cv_dlopen_libs=
10979 ;;
10980
10981 darwin*)
10982 # if libdl is installed we need to link against it
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10984$as_echo_n "checking for dlopen in -ldl... " >&6; }
10985if ${ac_cv_lib_dl_dlopen+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987else
10988 ac_check_lib_save_LIBS=$LIBS
10989LIBS="-ldl $LIBS"
10990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991/* end confdefs.h. */
10992
10993/* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996#ifdef __cplusplus
10997extern "C"
10998#endif
10999char dlopen ();
11000int
11001main ()
11002{
11003return dlopen ();
11004 ;
11005 return 0;
11006}
11007_ACEOF
11008if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_dl_dlopen=yes
11010else
11011 ac_cv_lib_dl_dlopen=no
11012fi
11013rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015LIBS=$ac_check_lib_save_LIBS
11016fi
11017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11018$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11019if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11021else
11022
11023 lt_cv_dlopen="dyld"
11024 lt_cv_dlopen_libs=
11025 lt_cv_dlopen_self=yes
11026
11027fi
11028
11029 ;;
11030
11031 *)
11032 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11033if test "x$ac_cv_func_shl_load" = xyes; then :
11034 lt_cv_dlopen="shl_load"
11035else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11037$as_echo_n "checking for shl_load in -ldld... " >&6; }
11038if ${ac_cv_lib_dld_shl_load+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040else
11041 ac_check_lib_save_LIBS=$LIBS
11042LIBS="-ldld $LIBS"
11043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044/* end confdefs.h. */
11045
11046/* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11049#ifdef __cplusplus
11050extern "C"
11051#endif
11052char shl_load ();
11053int
11054main ()
11055{
11056return shl_load ();
11057 ;
11058 return 0;
11059}
11060_ACEOF
11061if ac_fn_c_try_link "$LINENO"; then :
11062 ac_cv_lib_dld_shl_load=yes
11063else
11064 ac_cv_lib_dld_shl_load=no
11065fi
11066rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068LIBS=$ac_check_lib_save_LIBS
11069fi
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11071$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11072if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11073 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11074else
11075 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11076if test "x$ac_cv_func_dlopen" = xyes; then :
11077 lt_cv_dlopen="dlopen"
11078else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11080$as_echo_n "checking for dlopen in -ldl... " >&6; }
11081if ${ac_cv_lib_dl_dlopen+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083else
11084 ac_check_lib_save_LIBS=$LIBS
11085LIBS="-ldl $LIBS"
11086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087/* end confdefs.h. */
11088
11089/* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11092#ifdef __cplusplus
11093extern "C"
11094#endif
11095char dlopen ();
11096int
11097main ()
11098{
11099return dlopen ();
11100 ;
11101 return 0;
11102}
11103_ACEOF
11104if ac_fn_c_try_link "$LINENO"; then :
11105 ac_cv_lib_dl_dlopen=yes
11106else
11107 ac_cv_lib_dl_dlopen=no
11108fi
11109rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11111LIBS=$ac_check_lib_save_LIBS
11112fi
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11114$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11115if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11116 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11117else
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11119$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11120if ${ac_cv_lib_svld_dlopen+:} false; then :
11121 $as_echo_n "(cached) " >&6
11122else
11123 ac_check_lib_save_LIBS=$LIBS
11124LIBS="-lsvld $LIBS"
11125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126/* end confdefs.h. */
11127
11128/* Override any GCC internal prototype to avoid an error.
11129 Use char because int might match the return type of a GCC
11130 builtin and then its argument prototype would still apply. */
11131#ifdef __cplusplus
11132extern "C"
11133#endif
11134char dlopen ();
11135int
11136main ()
11137{
11138return dlopen ();
11139 ;
11140 return 0;
11141}
11142_ACEOF
11143if ac_fn_c_try_link "$LINENO"; then :
11144 ac_cv_lib_svld_dlopen=yes
11145else
11146 ac_cv_lib_svld_dlopen=no
11147fi
11148rm -f core conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext conftest.$ac_ext
11150LIBS=$ac_check_lib_save_LIBS
11151fi
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11153$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11154if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11155 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11156else
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11158$as_echo_n "checking for dld_link in -ldld... " >&6; }
11159if ${ac_cv_lib_dld_dld_link+:} false; then :
11160 $as_echo_n "(cached) " >&6
11161else
11162 ac_check_lib_save_LIBS=$LIBS
11163LIBS="-ldld $LIBS"
11164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165/* end confdefs.h. */
11166
11167/* Override any GCC internal prototype to avoid an error.
11168 Use char because int might match the return type of a GCC
11169 builtin and then its argument prototype would still apply. */
11170#ifdef __cplusplus
11171extern "C"
11172#endif
11173char dld_link ();
11174int
11175main ()
11176{
11177return dld_link ();
11178 ;
11179 return 0;
11180}
11181_ACEOF
11182if ac_fn_c_try_link "$LINENO"; then :
11183 ac_cv_lib_dld_dld_link=yes
11184else
11185 ac_cv_lib_dld_dld_link=no
11186fi
11187rm -f core conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11189LIBS=$ac_check_lib_save_LIBS
11190fi
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11192$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11193if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11194 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11195fi
11196
11197
11198fi
11199
11200
11201fi
11202
11203
11204fi
11205
11206
11207fi
11208
11209
11210fi
11211
11212 ;;
11213 esac
11214
11215 if test "x$lt_cv_dlopen" != xno; then
11216 enable_dlopen=yes
11217 else
11218 enable_dlopen=no
11219 fi
11220
11221 case $lt_cv_dlopen in
11222 dlopen)
11223 save_CPPFLAGS="$CPPFLAGS"
11224 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11225
11226 save_LDFLAGS="$LDFLAGS"
11227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11228
11229 save_LIBS="$LIBS"
11230 LIBS="$lt_cv_dlopen_libs $LIBS"
11231
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11233$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11234if ${lt_cv_dlopen_self+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236else
11237 if test "$cross_compiling" = yes; then :
11238 lt_cv_dlopen_self=cross
11239else
11240 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11241 lt_status=$lt_dlunknown
11242 cat > conftest.$ac_ext <<_LT_EOF
11243#line $LINENO "configure"
11244#include "confdefs.h"
11245
11246#if HAVE_DLFCN_H
11247#include <dlfcn.h>
11248#endif
11249
11250#include <stdio.h>
11251
11252#ifdef RTLD_GLOBAL
11253# define LT_DLGLOBAL RTLD_GLOBAL
11254#else
11255# ifdef DL_GLOBAL
11256# define LT_DLGLOBAL DL_GLOBAL
11257# else
11258# define LT_DLGLOBAL 0
11259# endif
11260#endif
11261
11262/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11263 find out it does not work in some platform. */
11264#ifndef LT_DLLAZY_OR_NOW
11265# ifdef RTLD_LAZY
11266# define LT_DLLAZY_OR_NOW RTLD_LAZY
11267# else
11268# ifdef DL_LAZY
11269# define LT_DLLAZY_OR_NOW DL_LAZY
11270# else
11271# ifdef RTLD_NOW
11272# define LT_DLLAZY_OR_NOW RTLD_NOW
11273# else
11274# ifdef DL_NOW
11275# define LT_DLLAZY_OR_NOW DL_NOW
11276# else
11277# define LT_DLLAZY_OR_NOW 0
11278# endif
11279# endif
11280# endif
11281# endif
11282#endif
11283
11284/* When -fvisbility=hidden is used, assume the code has been annotated
11285 correspondingly for the symbols needed. */
11286#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11287int fnord () __attribute__((visibility("default")));
11288#endif
11289
11290int fnord () { return 42; }
11291int main ()
11292{
11293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11294 int status = $lt_dlunknown;
11295
11296 if (self)
11297 {
11298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11299 else
11300 {
11301 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11302 else puts (dlerror ());
11303 }
11304 /* dlclose (self); */
11305 }
11306 else
11307 puts (dlerror ());
11308
11309 return status;
11310}
11311_LT_EOF
11312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11313 (eval $ac_link) 2>&5
11314 ac_status=$?
11315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11316 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11317 (./conftest; exit; ) >&5 2>/dev/null
11318 lt_status=$?
11319 case x$lt_status in
11320 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11321 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11322 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11323 esac
11324 else :
11325 # compilation failed
11326 lt_cv_dlopen_self=no
11327 fi
11328fi
11329rm -fr conftest*
11330
11331
11332fi
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11334$as_echo "$lt_cv_dlopen_self" >&6; }
11335
11336 if test "x$lt_cv_dlopen_self" = xyes; then
11337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11339$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11340if ${lt_cv_dlopen_self_static+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342else
11343 if test "$cross_compiling" = yes; then :
11344 lt_cv_dlopen_self_static=cross
11345else
11346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11347 lt_status=$lt_dlunknown
11348 cat > conftest.$ac_ext <<_LT_EOF
11349#line $LINENO "configure"
11350#include "confdefs.h"
11351
11352#if HAVE_DLFCN_H
11353#include <dlfcn.h>
11354#endif
11355
11356#include <stdio.h>
11357
11358#ifdef RTLD_GLOBAL
11359# define LT_DLGLOBAL RTLD_GLOBAL
11360#else
11361# ifdef DL_GLOBAL
11362# define LT_DLGLOBAL DL_GLOBAL
11363# else
11364# define LT_DLGLOBAL 0
11365# endif
11366#endif
11367
11368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11369 find out it does not work in some platform. */
11370#ifndef LT_DLLAZY_OR_NOW
11371# ifdef RTLD_LAZY
11372# define LT_DLLAZY_OR_NOW RTLD_LAZY
11373# else
11374# ifdef DL_LAZY
11375# define LT_DLLAZY_OR_NOW DL_LAZY
11376# else
11377# ifdef RTLD_NOW
11378# define LT_DLLAZY_OR_NOW RTLD_NOW
11379# else
11380# ifdef DL_NOW
11381# define LT_DLLAZY_OR_NOW DL_NOW
11382# else
11383# define LT_DLLAZY_OR_NOW 0
11384# endif
11385# endif
11386# endif
11387# endif
11388#endif
11389
11390/* When -fvisbility=hidden is used, assume the code has been annotated
11391 correspondingly for the symbols needed. */
11392#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11393int fnord () __attribute__((visibility("default")));
11394#endif
11395
11396int fnord () { return 42; }
11397int main ()
11398{
11399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11400 int status = $lt_dlunknown;
11401
11402 if (self)
11403 {
11404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11405 else
11406 {
11407 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11408 else puts (dlerror ());
11409 }
11410 /* dlclose (self); */
11411 }
11412 else
11413 puts (dlerror ());
11414
11415 return status;
11416}
11417_LT_EOF
11418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11419 (eval $ac_link) 2>&5
11420 ac_status=$?
11421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11422 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11423 (./conftest; exit; ) >&5 2>/dev/null
11424 lt_status=$?
11425 case x$lt_status in
11426 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11427 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11428 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11429 esac
11430 else :
11431 # compilation failed
11432 lt_cv_dlopen_self_static=no
11433 fi
11434fi
11435rm -fr conftest*
11436
11437
11438fi
11439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11440$as_echo "$lt_cv_dlopen_self_static" >&6; }
11441 fi
11442
11443 CPPFLAGS="$save_CPPFLAGS"
11444 LDFLAGS="$save_LDFLAGS"
11445 LIBS="$save_LIBS"
11446 ;;
11447 esac
11448
11449 case $lt_cv_dlopen_self in
11450 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11451 *) enable_dlopen_self=unknown ;;
11452 esac
11453
11454 case $lt_cv_dlopen_self_static in
11455 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11456 *) enable_dlopen_self_static=unknown ;;
11457 esac
11458fi
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476striplib=
11477old_striplib=
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11479$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11480if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11481 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11482 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11484$as_echo "yes" >&6; }
11485else
11486# FIXME - insert some real tests, host_os isn't really good enough
11487 case $host_os in
11488 darwin*)
11489 if test -n "$STRIP" ; then
11490 striplib="$STRIP -x"
11491 old_striplib="$STRIP -S"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11493$as_echo "yes" >&6; }
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496$as_echo "no" >&6; }
11497 fi
11498 ;;
11499 *)
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
11502 ;;
11503 esac
11504fi
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517 # Report which library types will actually be built
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11519$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11521$as_echo "$can_build_shared" >&6; }
11522
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11524$as_echo_n "checking whether to build shared libraries... " >&6; }
11525 test "$can_build_shared" = "no" && enable_shared=no
11526
11527 # On AIX, shared libraries and static libraries use the same namespace, and
11528 # are all built from PIC.
11529 case $host_os in
11530 aix3*)
11531 test "$enable_shared" = yes && enable_static=no
11532 if test -n "$RANLIB"; then
11533 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11534 postinstall_cmds='$RANLIB $lib'
11535 fi
11536 ;;
11537
11538 aix[4-9]*)
11539 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11540 test "$enable_shared" = yes && enable_static=no
11541 fi
11542 ;;
11543 esac
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11545$as_echo "$enable_shared" >&6; }
11546
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11548$as_echo_n "checking whether to build static libraries... " >&6; }
11549 # Make sure either enable_shared or enable_static is yes.
11550 test "$enable_shared" = yes || enable_static=yes
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11552$as_echo "$enable_static" >&6; }
11553
11554
11555
11556
11557fi
11558ac_ext=c
11559ac_cpp='$CPP $CPPFLAGS'
11560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11562ac_compiler_gnu=$ac_cv_c_compiler_gnu
11563
11564CC="$lt_save_CC"
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580 ac_config_commands="$ac_config_commands libtool"
11581
11582
11583
11584
11585# Only expand once:
11586
11587
11588if test "x$CC" != xcc; then
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11590$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11591else
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11593$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11594fi
11595set dummy $CC; ac_cc=`$as_echo "$2" |
11596 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11597if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599else
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601/* end confdefs.h. */
11602
11603int
11604main ()
11605{
11606
11607 ;
11608 return 0;
11609}
11610_ACEOF
11611# Make sure it works both with $CC and with simple cc.
11612# We do the test twice because some compilers refuse to overwrite an
11613# existing .o file with -o, though they will create one.
11614ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11615rm -f conftest2.*
11616if { { case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619esac
11620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11621$as_echo "$ac_try_echo"; } >&5
11622 (eval "$ac_try") 2>&5
11623 ac_status=$?
11624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11625 test $ac_status = 0; } &&
11626 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629esac
11630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11631$as_echo "$ac_try_echo"; } >&5
11632 (eval "$ac_try") 2>&5
11633 ac_status=$?
11634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11635 test $ac_status = 0; };
11636then
11637 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11638 if test "x$CC" != xcc; then
11639 # Test first that cc exists at all.
11640 if { ac_try='cc -c conftest.$ac_ext >&5'
11641 { { case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11644esac
11645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11646$as_echo "$ac_try_echo"; } >&5
11647 (eval "$ac_try") 2>&5
11648 ac_status=$?
11649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11650 test $ac_status = 0; }; }; then
11651 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11652 rm -f conftest2.*
11653 if { { case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11656esac
11657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11658$as_echo "$ac_try_echo"; } >&5
11659 (eval "$ac_try") 2>&5
11660 ac_status=$?
11661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11662 test $ac_status = 0; } &&
11663 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666esac
11667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11668$as_echo "$ac_try_echo"; } >&5
11669 (eval "$ac_try") 2>&5
11670 ac_status=$?
11671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11672 test $ac_status = 0; };
11673 then
11674 # cc works too.
11675 :
11676 else
11677 # cc exists but doesn't like -o.
11678 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11679 fi
11680 fi
11681 fi
11682else
11683 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11684fi
11685rm -f core conftest*
11686
11687fi
11688if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11690$as_echo "yes" >&6; }
11691else
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693$as_echo "no" >&6; }
11694
11695$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11696
11697fi
11698
11699# FIXME: we rely on the cache variable name because
11700# there is no other way.
11701set dummy $CC
11702am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11703eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11704if test "$am_t" != yes; then
11705 # Losing compiler, so override with the script.
11706 # FIXME: It is wrong to rewrite CC.
11707 # But if we don't then we get into trouble of one sort or another.
11708 # A longer-term fix would be to have automake use am__CC in this case,
11709 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11710 CC="$am_aux_dir/compile $CC"
11711fi
11712
11713
11714
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11716$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11717if ${ac_cv_prog_cc_c99+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719else
11720 ac_cv_prog_cc_c99=no
11721ac_save_CC=$CC
11722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723/* end confdefs.h. */
11724#include <stdarg.h>
11725#include <stdbool.h>
11726#include <stdlib.h>
11727#include <wchar.h>
11728#include <stdio.h>
11729
11730// Check varargs macros. These examples are taken from C99 6.10.3.5.
11731#define debug(...) fprintf (stderr, __VA_ARGS__)
11732#define showlist(...) puts (#__VA_ARGS__)
11733#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11734static void
11735test_varargs_macros (void)
11736{
11737 int x = 1234;
11738 int y = 5678;
11739 debug ("Flag");
11740 debug ("X = %d\n", x);
11741 showlist (The first, second, and third items.);
11742 report (x>y, "x is %d but y is %d", x, y);
11743}
11744
11745// Check long long types.
11746#define BIG64 18446744073709551615ull
11747#define BIG32 4294967295ul
11748#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11749#if !BIG_OK
11750 your preprocessor is broken;
11751#endif
11752#if BIG_OK
11753#else
11754 your preprocessor is broken;
11755#endif
11756static long long int bignum = -9223372036854775807LL;
11757static unsigned long long int ubignum = BIG64;
11758
11759struct incomplete_array
11760{
11761 int datasize;
11762 double data[];
11763};
11764
11765struct named_init {
11766 int number;
11767 const wchar_t *name;
11768 double average;
11769};
11770
11771typedef const char *ccp;
11772
11773static inline int
11774test_restrict (ccp restrict text)
11775{
11776 // See if C++-style comments work.
11777 // Iterate through items via the restricted pointer.
11778 // Also check for declarations in for loops.
11779 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11780 continue;
11781 return 0;
11782}
11783
11784// Check varargs and va_copy.
11785static void
11786test_varargs (const char *format, ...)
11787{
11788 va_list args;
11789 va_start (args, format);
11790 va_list args_copy;
11791 va_copy (args_copy, args);
11792
11793 const char *str;
11794 int number;
11795 float fnumber;
11796
11797 while (*format)
11798 {
11799 switch (*format++)
11800 {
11801 case 's': // string
11802 str = va_arg (args_copy, const char *);
11803 break;
11804 case 'd': // int
11805 number = va_arg (args_copy, int);
11806 break;
11807 case 'f': // float
11808 fnumber = va_arg (args_copy, double);
11809 break;
11810 default:
11811 break;
11812 }
11813 }
11814 va_end (args_copy);
11815 va_end (args);
11816}
11817
11818int
11819main ()
11820{
11821
11822 // Check bool.
11823 _Bool success = false;
11824
11825 // Check restrict.
11826 if (test_restrict ("String literal") == 0)
11827 success = true;
11828 char *restrict newvar = "Another string";
11829
11830 // Check varargs.
11831 test_varargs ("s, d' f .", "string", 65, 34.234);
11832 test_varargs_macros ();
11833
11834 // Check flexible array members.
11835 struct incomplete_array *ia =
11836 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11837 ia->datasize = 10;
11838 for (int i = 0; i < ia->datasize; ++i)
11839 ia->data[i] = i * 1.234;
11840
11841 // Check named initializers.
11842 struct named_init ni = {
11843 .number = 34,
11844 .name = L"Test wide string",
11845 .average = 543.34343,
11846 };
11847
11848 ni.number = 58;
11849
11850 int dynamic_array[ni.number];
11851 dynamic_array[ni.number - 1] = 543;
11852
11853 // work around unused variable warnings
11854 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11855 || dynamic_array[ni.number - 1] != 543);
11856
11857 ;
11858 return 0;
11859}
11860_ACEOF
11861for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11862do
11863 CC="$ac_save_CC $ac_arg"
11864 if ac_fn_c_try_compile "$LINENO"; then :
11865 ac_cv_prog_cc_c99=$ac_arg
11866fi
11867rm -f core conftest.err conftest.$ac_objext
11868 test "x$ac_cv_prog_cc_c99" != "xno" && break
11869done
11870rm -f conftest.$ac_ext
11871CC=$ac_save_CC
11872
11873fi
11874# AC_CACHE_VAL
11875case "x$ac_cv_prog_cc_c99" in
11876 x)
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11878$as_echo "none needed" >&6; } ;;
11879 xno)
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11881$as_echo "unsupported" >&6; } ;;
11882 *)
11883 CC="$CC $ac_cv_prog_cc_c99"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11885$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11886esac
11887if test "x$ac_cv_prog_cc_c99" != xno; then :
11888
11889fi
11890
11891
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000011892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11893$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11894if ${ac_cv_c_const+:} false; then :
11895 $as_echo_n "(cached) " >&6
11896else
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898/* end confdefs.h. */
11899
11900int
11901main ()
11902{
11903/* FIXME: Include the comments suggested by Paul. */
11904#ifndef __cplusplus
11905 /* Ultrix mips cc rejects this. */
11906 typedef int charset[2];
11907 const charset cs;
11908 /* SunOS 4.1.1 cc rejects this. */
11909 char const *const *pcpcc;
11910 char **ppc;
11911 /* NEC SVR4.0.2 mips cc rejects this. */
11912 struct point {int x, y;};
11913 static struct point const zero = {0,0};
11914 /* AIX XL C 1.02.0.0 rejects this.
11915 It does not let you subtract one const X* pointer from another in
11916 an arm of an if-expression whose if-part is not a constant
11917 expression */
11918 const char *g = "string";
11919 pcpcc = &g + (g ? g-g : 0);
11920 /* HPUX 7.0 cc rejects these. */
11921 ++pcpcc;
11922 ppc = (char**) pcpcc;
11923 pcpcc = (char const *const *) ppc;
11924 { /* SCO 3.2v4 cc rejects this. */
11925 char *t;
11926 char const *s = 0 ? (char *) 0 : (char const *) 0;
11927
11928 *t++ = 0;
11929 if (s) return 0;
11930 }
11931 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11932 int x[] = {25, 17};
11933 const int *foo = &x[0];
11934 ++foo;
11935 }
11936 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11937 typedef const int *iptr;
11938 iptr p = 0;
11939 ++p;
11940 }
11941 { /* AIX XL C 1.02.0.0 rejects this saying
11942 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11943 struct s { int j; const int *ap[3]; };
11944 struct s *b; b->j = 5;
11945 }
11946 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11947 const int foo = 10;
11948 if (!foo) return 0;
11949 }
11950 return !cs[0] && !zero.x;
11951#endif
11952
11953 ;
11954 return 0;
11955}
11956_ACEOF
11957if ac_fn_c_try_compile "$LINENO"; then :
11958 ac_cv_c_const=yes
11959else
11960 ac_cv_c_const=no
11961fi
11962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963fi
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11965$as_echo "$ac_cv_c_const" >&6; }
11966if test $ac_cv_c_const = no; then
11967
11968$as_echo "#define const /**/" >>confdefs.h
11969
11970fi
11971
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11973$as_echo_n "checking for inline... " >&6; }
11974if ${ac_cv_c_inline+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976else
11977 ac_cv_c_inline=no
11978for ac_kw in inline __inline__ __inline; do
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h. */
11981#ifndef __cplusplus
11982typedef int foo_t;
11983static $ac_kw foo_t static_foo () {return 0; }
11984$ac_kw foo_t foo () {return 0; }
11985#endif
11986
11987_ACEOF
11988if ac_fn_c_try_compile "$LINENO"; then :
11989 ac_cv_c_inline=$ac_kw
11990fi
11991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 test "$ac_cv_c_inline" != no && break
11993done
11994
11995fi
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11997$as_echo "$ac_cv_c_inline" >&6; }
11998
11999case $ac_cv_c_inline in
12000 inline | yes) ;;
12001 *)
12002 case $ac_cv_c_inline in
12003 no) ac_val=;;
12004 *) ac_val=$ac_cv_c_inline;;
12005 esac
12006 cat >>confdefs.h <<_ACEOF
12007#ifndef __cplusplus
12008#define inline $ac_val
12009#endif
12010_ACEOF
12011 ;;
12012esac
12013
12014
12015#Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
12016#strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12018$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12019if ${ac_cv_c_restrict+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021else
12022 ac_cv_c_restrict=no
12023 # The order here caters to the fact that C++ does not require restrict.
12024 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026/* end confdefs.h. */
12027typedef int * int_ptr;
12028 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
12029 return ip[0];
12030 }
12031int
12032main ()
12033{
12034int s[1];
12035 int * $ac_kw t = s;
12036 t[0] = 0;
12037 return foo(t, (void *)0)
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042if ac_fn_c_try_compile "$LINENO"; then :
12043 ac_cv_c_restrict=$ac_kw
12044fi
12045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 test "$ac_cv_c_restrict" != no && break
12047 done
12048
12049fi
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12051$as_echo "$ac_cv_c_restrict" >&6; }
12052
12053 case $ac_cv_c_restrict in
12054 restrict) ;;
12055 no) $as_echo "#define restrict /**/" >>confdefs.h
12056 ;;
12057 *) cat >>confdefs.h <<_ACEOF
12058#define restrict $ac_cv_c_restrict
12059_ACEOF
12060 ;;
12061 esac
12062
12063
12064$as_echo "#define OPUS_BUILD /**/" >>confdefs.h
12065
12066
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
12068$as_echo_n "checking for C99 variable-size arrays... " >&6; }
12069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070/* end confdefs.h. */
12071
12072int
12073main ()
12074{
12075static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
12076 ;
12077 return 0;
12078}
12079_ACEOF
12080if ac_fn_c_try_compile "$LINENO"; then :
12081 has_var_arrays=yes;
12082$as_echo "#define VAR_ARRAYS /**/" >>confdefs.h
12083
12084
12085else
12086 has_var_arrays=no
12087
12088fi
12089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
12091$as_echo "$has_var_arrays" >&6; }
12092
12093for ac_header in alloca.h getopt.h
12094do :
12095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12096ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12097if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12098 cat >>confdefs.h <<_ACEOF
12099#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12100_ACEOF
12101
12102fi
12103
12104done
12105
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12107$as_echo_n "checking for alloca... " >&6; }
12108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109/* end confdefs.h. */
12110#include <alloca.h>
12111int
12112main ()
12113{
12114
12115int foo=10;
12116int *array = alloca(foo);
12117
12118 ;
12119 return 0;
12120}
12121_ACEOF
12122if ac_fn_c_try_compile "$LINENO"; then :
12123
12124has_alloca=yes;
12125if test x$has_var_arrays = "xno" ; then
12126
12127$as_echo "#define USE_ALLOCA /**/" >>confdefs.h
12128
12129fi
12130
12131else
12132 has_alloca=no
12133
12134fi
12135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_alloca" >&5
12137$as_echo "$has_alloca" >&6; }
12138
12139ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
12140if test "x$ac_cv_func_exp" = xyes; then :
12141 fp_libm_not_needed=yes;LIBM=
12142else
12143 fp_libm_not_needed=dunno
12144fi
12145
12146if test x"$fp_libm_not_needed" = xdunno; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
12148$as_echo_n "checking for exp in -lm... " >&6; }
12149if ${ac_cv_lib_m_exp+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151else
12152 ac_check_lib_save_LIBS=$LIBS
12153LIBS="-lm $LIBS"
12154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155/* end confdefs.h. */
12156
12157/* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160#ifdef __cplusplus
12161extern "C"
12162#endif
12163char exp ();
12164int
12165main ()
12166{
12167return exp ();
12168 ;
12169 return 0;
12170}
12171_ACEOF
12172if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_m_exp=yes
12174else
12175 ac_cv_lib_m_exp=no
12176fi
12177rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179LIBS=$ac_check_lib_save_LIBS
12180fi
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
12182$as_echo "$ac_cv_lib_m_exp" >&6; }
12183if test "x$ac_cv_lib_m_exp" = xyes; then :
12184 LIBS="-lm $LIBS"; LIBM="-lm"
12185else
12186 LIBM=
12187fi
12188
12189fi
12190
12191
12192has_float_approx=no
12193#case "$host_cpu" in
12194#i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
12195# has_float_approx=yes
12196# ;;
12197#esac
12198
12199ac_enable_fixed="no";
12200ac_enable_float="yes";
12201# Check whether --enable-fixed-point was given.
12202if test "${enable_fixed_point+set}" = set; then :
12203 enableval=$enable_fixed_point; if test "$enableval" = yes; then
12204 ac_enable_fixed="yes";
12205 ac_enable_float="no";
12206
12207$as_echo "#define FIXED_POINT 1" >>confdefs.h
12208
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012209fi
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012210fi
12211
12212
12213ac_enable_fixed_debug="no"
12214# Check whether --enable-fixed-point-debug was given.
12215if test "${enable_fixed_point_debug+set}" = set; then :
12216 enableval=$enable_fixed_point_debug; if test "$enableval" = yes; then
12217 ac_enable_fixed_debug="yes"
12218
12219$as_echo "#define FIXED_DEBUG /**/" >>confdefs.h
12220
12221fi
12222fi
12223
12224
12225ac_enable_custom_modes="no"
12226# Check whether --enable-custom-modes was given.
12227if test "${enable_custom_modes+set}" = set; then :
12228 enableval=$enable_custom_modes; if test "$enableval" = yes; then
12229 ac_enable_custom_modes="yes"
12230
12231$as_echo "#define CUSTOM_MODES /**/" >>confdefs.h
12232
12233fi
12234fi
12235
12236
12237float_approx=$has_float_approx
12238# Check whether --enable-float-approx was given.
12239if test "${enable_float_approx+set}" = set; then :
12240 enableval=$enable_float_approx; if test "$enableval" = yes; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5
12242$as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;}
12243 float_approx=yes
12244 else
12245 float_approx=no
12246 fi
12247else
12248 float_approx=$has_float_approx
12249fi
12250
12251
12252if test "x${float_approx}" = "xyes"; then
12253
12254$as_echo "#define FLOAT_APPROX /**/" >>confdefs.h
12255
12256fi
12257
12258ac_enable_assertions="no"
12259# Check whether --enable-assertions was given.
12260if test "${enable_assertions+set}" = set; then :
12261 enableval=$enable_assertions; if test "$enableval" = yes; then
12262 ac_enable_assertions="yes"
12263
12264$as_echo "#define ENABLE_ASSERTIONS /**/" >>confdefs.h
12265
12266fi
12267fi
12268
12269
12270ac_enable_fuzzing="no"
12271# Check whether --enable-fuzzing was given.
12272if test "${enable_fuzzing+set}" = set; then :
12273 enableval=$enable_fuzzing; if test "$enableval" = yes; then
12274 ac_enable_fuzzing="yes"
12275
12276$as_echo "#define FUZZING /**/" >>confdefs.h
12277
12278fi
12279fi
12280
12281
12282ac_enable_doc="yes"
12283# Check whether --enable-doc was given.
12284if test "${enable_doc+set}" = set; then :
12285 enableval=$enable_doc; ac_enable_doc=$enableval
12286fi
12287
12288# Extract the first word of "doxygen", so it can be a program name with args.
12289set dummy doxygen; ac_word=$2
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291$as_echo_n "checking for $ac_word... " >&6; }
12292if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294else
12295 if test -n "$HAVE_DOXYGEN"; then
12296 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
12297else
12298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299for as_dir in $PATH
12300do
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12305 ac_cv_prog_HAVE_DOXYGEN="yes"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 break 2
12308 fi
12309done
12310 done
12311IFS=$as_save_IFS
12312
12313 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
12314fi
12315fi
12316HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
12317if test -n "$HAVE_DOXYGEN"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
12319$as_echo "$HAVE_DOXYGEN" >&6; }
12320else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322$as_echo "no" >&6; }
12323fi
12324
12325
12326if test "$HAVE_DOXYGEN" != "yes" -o "$ac_enable_doc" != "yes"; then
12327 HAVE_DOXYGEN="false"
12328 ac_enable_doc="no"
12329fi
12330 if test $HAVE_DOXYGEN = yes; then
12331 HAVE_DOXYGEN_TRUE=
12332 HAVE_DOXYGEN_FALSE='#'
12333else
12334 HAVE_DOXYGEN_TRUE='#'
12335 HAVE_DOXYGEN_FALSE=
12336fi
12337
12338
12339saved_CFLAGS="$CFLAGS"
12340CFLAGS="$CFLAGS -fvisibility=hidden"
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
12342$as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
12343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344/* end confdefs.h. */
12345char foo;
12346_ACEOF
12347if ac_fn_c_try_compile "$LINENO"; then :
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12349$as_echo "yes" >&6; }
12350 SYMBOL_VISIBILITY="-fvisibility=hidden"
12351else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353$as_echo "no" >&6; }
12354fi
12355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356CFLAGS="$saved_CFLAGS $SYMBOL_VISIBILITY"
12357
12358
12359CFLAGS="$CFLAGS -W"
12360
12361saved_CFLAGS="$CFLAGS"
12362CFLAGS="$CFLAGS -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes" >&5
12364$as_echo_n "checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes... " >&6; }
12365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366/* end confdefs.h. */
12367char foo;
12368_ACEOF
12369if ac_fn_c_try_compile "$LINENO"; then :
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12371$as_echo "yes" >&6; }
12372 EXTRA_WARNS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
12373else
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
12376fi
12377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378CFLAGS="$saved_CFLAGS $EXTRA_WARNS"
12379
12380for ac_func in lrintf
12381do :
12382 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
12383if test "x$ac_cv_func_lrintf" = xyes; then :
12384 cat >>confdefs.h <<_ACEOF
12385#define HAVE_LRINTF 1
12386_ACEOF
12387
12388fi
12389done
12390
12391for ac_func in lrint
12392do :
12393 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
12394if test "x$ac_cv_func_lrint" = xyes; then :
12395 cat >>confdefs.h <<_ACEOF
12396#define HAVE_LRINT 1
12397_ACEOF
12398
12399fi
12400done
12401
12402for ac_func in __malloc_hook
12403do :
12404 ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
12405if test "x$ac_cv_func___malloc_hook" = xyes; then :
12406 cat >>confdefs.h <<_ACEOF
12407#define HAVE___MALLOC_HOOK 1
12408_ACEOF
12409
12410fi
12411done
12412
12413
12414# The cast to long int works around a bug in the HP C Compiler
12415# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12416# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12417# This bug is HP SR number 8606223364.
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12419$as_echo_n "checking size of short... " >&6; }
12420if ${ac_cv_sizeof_short+:} false; then :
12421 $as_echo_n "(cached) " >&6
12422else
12423 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12424
12425else
12426 if test "$ac_cv_type_short" = yes; then
12427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12429as_fn_error 77 "cannot compute sizeof (short)
12430See \`config.log' for more details" "$LINENO" 5; }
12431 else
12432 ac_cv_sizeof_short=0
12433 fi
12434fi
12435
12436fi
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12438$as_echo "$ac_cv_sizeof_short" >&6; }
12439
12440
12441
12442cat >>confdefs.h <<_ACEOF
12443#define SIZEOF_SHORT $ac_cv_sizeof_short
12444_ACEOF
12445
12446
12447# The cast to long int works around a bug in the HP C Compiler
12448# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12449# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12450# This bug is HP SR number 8606223364.
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12452$as_echo_n "checking size of int... " >&6; }
12453if ${ac_cv_sizeof_int+:} false; then :
12454 $as_echo_n "(cached) " >&6
12455else
12456 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12457
12458else
12459 if test "$ac_cv_type_int" = yes; then
12460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12462as_fn_error 77 "cannot compute sizeof (int)
12463See \`config.log' for more details" "$LINENO" 5; }
12464 else
12465 ac_cv_sizeof_int=0
12466 fi
12467fi
12468
12469fi
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12471$as_echo "$ac_cv_sizeof_int" >&6; }
12472
12473
12474
12475cat >>confdefs.h <<_ACEOF
12476#define SIZEOF_INT $ac_cv_sizeof_int
12477_ACEOF
12478
12479
12480# The cast to long int works around a bug in the HP C Compiler
12481# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12482# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12483# This bug is HP SR number 8606223364.
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12485$as_echo_n "checking size of long... " >&6; }
12486if ${ac_cv_sizeof_long+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488else
12489 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12490
12491else
12492 if test "$ac_cv_type_long" = yes; then
12493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12495as_fn_error 77 "cannot compute sizeof (long)
12496See \`config.log' for more details" "$LINENO" 5; }
12497 else
12498 ac_cv_sizeof_long=0
12499 fi
12500fi
12501
12502fi
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12504$as_echo "$ac_cv_sizeof_long" >&6; }
12505
12506
12507
12508cat >>confdefs.h <<_ACEOF
12509#define SIZEOF_LONG $ac_cv_sizeof_long
12510_ACEOF
12511
12512
12513# The cast to long int works around a bug in the HP C Compiler
12514# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12515# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12516# This bug is HP SR number 8606223364.
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12518$as_echo_n "checking size of long long... " >&6; }
12519if ${ac_cv_sizeof_long_long+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521else
12522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12523
12524else
12525 if test "$ac_cv_type_long_long" = yes; then
12526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12528as_fn_error 77 "cannot compute sizeof (long long)
12529See \`config.log' for more details" "$LINENO" 5; }
12530 else
12531 ac_cv_sizeof_long_long=0
12532 fi
12533fi
12534
12535fi
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12537$as_echo "$ac_cv_sizeof_long_long" >&6; }
12538
12539
12540
12541cat >>confdefs.h <<_ACEOF
12542#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12543_ACEOF
12544
12545
12546
12547if test x$has_char16 = "xyes" ; then
12548 case 1 in
12549 $ac_cv_sizeof_short) SIZE16="short";;
12550 $ac_cv_sizeof_int) SIZE16="int";;
12551 esac
12552else
12553 case 2 in
12554 $ac_cv_sizeof_short) SIZE16="short";;
12555 $ac_cv_sizeof_int) SIZE16="int";;
12556 esac
12557fi
12558
12559if test x$has_char16 = "xyes" ; then
12560 case 2 in
12561 $ac_cv_sizeof_int) SIZE32="int";;
12562 $ac_cv_sizeof_long) SIZE32="long";;
12563 $ac_cv_sizeof_short) SIZE32="short";;
12564 esac
12565else
12566 case 4 in
12567 $ac_cv_sizeof_int) SIZE32="int";;
12568 $ac_cv_sizeof_long) SIZE32="long";;
12569 $ac_cv_sizeof_short) SIZE32="short";;
12570 esac
12571fi
12572
12573
12574
12575
12576 if test x$ac_enable_fixed = xyes; then
12577 FIXED_POINT_TRUE=
12578 FIXED_POINT_FALSE='#'
12579else
12580 FIXED_POINT_TRUE='#'
12581 FIXED_POINT_FALSE=
12582fi
12583
12584 if test x$ac_enable_custom_modes = xyes; then
12585 CUSTOM_MODES_TRUE=
12586 CUSTOM_MODES_FALSE='#'
12587else
12588 CUSTOM_MODES_TRUE='#'
12589 CUSTOM_MODES_FALSE=
12590fi
12591
12592
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +000012593if test x$ac_enable_float = xyes; then
12594 PC_BUILD="floating-point"
12595 PC_LIBM=$LIBM
12596else
12597 PC_BUILD="fixed-point"
12598 PC_LIBM=
12599fi
12600if test x$ac_enable_custom_modes = xyes; then
12601 PC_BUILD="${PC_BUILD}, custom modes"
12602 PC_LIBM=$LIBM
12603fi
12604
12605
12606
12607
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012608ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc doc/Makefile doc/Doxyfile"
12609
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +000012610
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012611cat >confcache <<\_ACEOF
12612# This file is a shell script that caches the results of configure
12613# tests run on this system so they can be shared between configure
12614# scripts and configure runs, see configure's option --config-cache.
12615# It is not useful on other systems. If it contains results you don't
12616# want to keep, you may remove or edit it.
12617#
12618# config.status only pays attention to the cache file if you give it
12619# the --recheck option to rerun configure.
12620#
12621# `ac_cv_env_foo' variables (set or unset) will be overridden when
12622# loading this file, other *unset* `ac_cv_foo' will be assigned the
12623# following values.
12624
12625_ACEOF
12626
12627# The following way of writing the cache mishandles newlines in values,
12628# but we know of no workaround that is simple, portable, and efficient.
12629# So, we kill variables containing newlines.
12630# Ultrix sh set writes to stderr and can't be redirected directly,
12631# and sets the high bit in the cache file unless we assign to the vars.
12632(
12633 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12634 eval ac_val=\$$ac_var
12635 case $ac_val in #(
12636 *${as_nl}*)
12637 case $ac_var in #(
12638 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12639$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12640 esac
12641 case $ac_var in #(
12642 _ | IFS | as_nl) ;; #(
12643 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12644 *) { eval $ac_var=; unset $ac_var;} ;;
12645 esac ;;
12646 esac
12647 done
12648
12649 (set) 2>&1 |
12650 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12651 *${as_nl}ac_space=\ *)
12652 # `set' does not quote correctly, so add quotes: double-quote
12653 # substitution turns \\\\ into \\, and sed turns \\ into \.
12654 sed -n \
12655 "s/'/'\\\\''/g;
12656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12657 ;; #(
12658 *)
12659 # `set' quotes correctly as required by POSIX, so do not add quotes.
12660 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12661 ;;
12662 esac |
12663 sort
12664) |
12665 sed '
12666 /^ac_cv_env_/b end
12667 t clear
12668 :clear
12669 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12670 t end
12671 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12672 :end' >>confcache
12673if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12674 if test -w "$cache_file"; then
12675 if test "x$cache_file" != "x/dev/null"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12677$as_echo "$as_me: updating cache $cache_file" >&6;}
12678 if test ! -f "$cache_file" || test -h "$cache_file"; then
12679 cat confcache >"$cache_file"
12680 else
12681 case $cache_file in #(
12682 */* | ?:*)
12683 mv -f confcache "$cache_file"$$ &&
12684 mv -f "$cache_file"$$ "$cache_file" ;; #(
12685 *)
12686 mv -f confcache "$cache_file" ;;
12687 esac
12688 fi
12689 fi
12690 else
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12692$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12693 fi
12694fi
12695rm -f confcache
12696
12697test "x$prefix" = xNONE && prefix=$ac_default_prefix
12698# Let make expand exec_prefix.
12699test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12700
12701DEFS=-DHAVE_CONFIG_H
12702
12703ac_libobjs=
12704ac_ltlibobjs=
12705U=
12706for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12707 # 1. Remove the extension, and $U if already installed.
12708 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12709 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12710 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12711 # will be set to the directory where LIBOBJS objects are built.
12712 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12713 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12714done
12715LIBOBJS=$ac_libobjs
12716
12717LTLIBOBJS=$ac_ltlibobjs
12718
12719
12720 if test -n "$EXEEXT"; then
12721 am__EXEEXT_TRUE=
12722 am__EXEEXT_FALSE='#'
12723else
12724 am__EXEEXT_TRUE='#'
12725 am__EXEEXT_FALSE=
12726fi
12727
12728if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12729 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12730Usually this means the macro was only invoked conditionally." "$LINENO" 5
12731fi
12732if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12733 as_fn_error $? "conditional \"AMDEP\" was never defined.
12734Usually this means the macro was only invoked conditionally." "$LINENO" 5
12735fi
12736if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12737 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12738Usually this means the macro was only invoked conditionally." "$LINENO" 5
12739fi
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012740if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
12741 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
12742Usually this means the macro was only invoked conditionally." "$LINENO" 5
12743fi
12744if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
12745 as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
12746Usually this means the macro was only invoked conditionally." "$LINENO" 5
12747fi
12748if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
12749 as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
12750Usually this means the macro was only invoked conditionally." "$LINENO" 5
12751fi
12752
12753: "${CONFIG_STATUS=./config.status}"
12754ac_write_fail=0
12755ac_clean_files_save=$ac_clean_files
12756ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12758$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12759as_write_fail=0
12760cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12761#! $SHELL
12762# Generated by $as_me.
12763# Run this file to recreate the current configuration.
12764# Compiler output produced by configure, useful for debugging
12765# configure, is in config.log if it exists.
12766
12767debug=false
12768ac_cs_recheck=false
12769ac_cs_silent=false
12770
12771SHELL=\${CONFIG_SHELL-$SHELL}
12772export SHELL
12773_ASEOF
12774cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12775## -------------------- ##
12776## M4sh Initialization. ##
12777## -------------------- ##
12778
12779# Be more Bourne compatible
12780DUALCASE=1; export DUALCASE # for MKS sh
12781if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12782 emulate sh
12783 NULLCMD=:
12784 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12785 # is contrary to our usage. Disable this feature.
12786 alias -g '${1+"$@"}'='"$@"'
12787 setopt NO_GLOB_SUBST
12788else
12789 case `(set -o) 2>/dev/null` in #(
12790 *posix*) :
12791 set -o posix ;; #(
12792 *) :
12793 ;;
12794esac
12795fi
12796
12797
12798as_nl='
12799'
12800export as_nl
12801# Printing a long string crashes Solaris 7 /usr/bin/printf.
12802as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12803as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12804as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12805# Prefer a ksh shell builtin over an external printf program on Solaris,
12806# but without wasting forks for bash or zsh.
12807if test -z "$BASH_VERSION$ZSH_VERSION" \
12808 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12809 as_echo='print -r --'
12810 as_echo_n='print -rn --'
12811elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12812 as_echo='printf %s\n'
12813 as_echo_n='printf %s'
12814else
12815 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12816 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12817 as_echo_n='/usr/ucb/echo -n'
12818 else
12819 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12820 as_echo_n_body='eval
12821 arg=$1;
12822 case $arg in #(
12823 *"$as_nl"*)
12824 expr "X$arg" : "X\\(.*\\)$as_nl";
12825 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12826 esac;
12827 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12828 '
12829 export as_echo_n_body
12830 as_echo_n='sh -c $as_echo_n_body as_echo'
12831 fi
12832 export as_echo_body
12833 as_echo='sh -c $as_echo_body as_echo'
12834fi
12835
12836# The user is always right.
12837if test "${PATH_SEPARATOR+set}" != set; then
12838 PATH_SEPARATOR=:
12839 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12840 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12841 PATH_SEPARATOR=';'
12842 }
12843fi
12844
12845
12846# IFS
12847# We need space, tab and new line, in precisely that order. Quoting is
12848# there to prevent editors from complaining about space-tab.
12849# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12850# splitting by setting IFS to empty value.)
12851IFS=" "" $as_nl"
12852
12853# Find who we are. Look in the path if we contain no directory separator.
12854as_myself=
12855case $0 in #((
12856 *[\\/]* ) as_myself=$0 ;;
12857 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858for as_dir in $PATH
12859do
12860 IFS=$as_save_IFS
12861 test -z "$as_dir" && as_dir=.
12862 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12863 done
12864IFS=$as_save_IFS
12865
12866 ;;
12867esac
12868# We did not find ourselves, most probably we were run as `sh COMMAND'
12869# in which case we are not to be found in the path.
12870if test "x$as_myself" = x; then
12871 as_myself=$0
12872fi
12873if test ! -f "$as_myself"; then
12874 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12875 exit 1
12876fi
12877
12878# Unset variables that we do not need and which cause bugs (e.g. in
12879# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12880# suppresses any "Segmentation fault" message there. '((' could
12881# trigger a bug in pdksh 5.2.14.
12882for as_var in BASH_ENV ENV MAIL MAILPATH
12883do eval test x\${$as_var+set} = xset \
12884 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12885done
12886PS1='$ '
12887PS2='> '
12888PS4='+ '
12889
12890# NLS nuisances.
12891LC_ALL=C
12892export LC_ALL
12893LANGUAGE=C
12894export LANGUAGE
12895
12896# CDPATH.
12897(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12898
12899
12900# as_fn_error STATUS ERROR [LINENO LOG_FD]
12901# ----------------------------------------
12902# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12903# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12904# script with STATUS, using 1 if that was 0.
12905as_fn_error ()
12906{
12907 as_status=$1; test $as_status -eq 0 && as_status=1
12908 if test "$4"; then
12909 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12910 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12911 fi
12912 $as_echo "$as_me: error: $2" >&2
12913 as_fn_exit $as_status
12914} # as_fn_error
12915
12916
12917# as_fn_set_status STATUS
12918# -----------------------
12919# Set $? to STATUS, without forking.
12920as_fn_set_status ()
12921{
12922 return $1
12923} # as_fn_set_status
12924
12925# as_fn_exit STATUS
12926# -----------------
12927# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12928as_fn_exit ()
12929{
12930 set +e
12931 as_fn_set_status $1
12932 exit $1
12933} # as_fn_exit
12934
12935# as_fn_unset VAR
12936# ---------------
12937# Portably unset VAR.
12938as_fn_unset ()
12939{
12940 { eval $1=; unset $1;}
12941}
12942as_unset=as_fn_unset
12943# as_fn_append VAR VALUE
12944# ----------------------
12945# Append the text in VALUE to the end of the definition contained in VAR. Take
12946# advantage of any shell optimizations that allow amortized linear growth over
12947# repeated appends, instead of the typical quadratic growth present in naive
12948# implementations.
12949if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12950 eval 'as_fn_append ()
12951 {
12952 eval $1+=\$2
12953 }'
12954else
12955 as_fn_append ()
12956 {
12957 eval $1=\$$1\$2
12958 }
12959fi # as_fn_append
12960
12961# as_fn_arith ARG...
12962# ------------------
12963# Perform arithmetic evaluation on the ARGs, and store the result in the
12964# global $as_val. Take advantage of shells that can avoid forks. The arguments
12965# must be portable across $(()) and expr.
12966if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12967 eval 'as_fn_arith ()
12968 {
12969 as_val=$(( $* ))
12970 }'
12971else
12972 as_fn_arith ()
12973 {
12974 as_val=`expr "$@" || test $? -eq 1`
12975 }
12976fi # as_fn_arith
12977
12978
12979if expr a : '\(a\)' >/dev/null 2>&1 &&
12980 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12981 as_expr=expr
12982else
12983 as_expr=false
12984fi
12985
12986if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12987 as_basename=basename
12988else
12989 as_basename=false
12990fi
12991
12992if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12993 as_dirname=dirname
12994else
12995 as_dirname=false
12996fi
12997
12998as_me=`$as_basename -- "$0" ||
12999$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13000 X"$0" : 'X\(//\)$' \| \
13001 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13002$as_echo X/"$0" |
13003 sed '/^.*\/\([^/][^/]*\)\/*$/{
13004 s//\1/
13005 q
13006 }
13007 /^X\/\(\/\/\)$/{
13008 s//\1/
13009 q
13010 }
13011 /^X\/\(\/\).*/{
13012 s//\1/
13013 q
13014 }
13015 s/.*/./; q'`
13016
13017# Avoid depending upon Character Ranges.
13018as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13019as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13020as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13021as_cr_digits='0123456789'
13022as_cr_alnum=$as_cr_Letters$as_cr_digits
13023
13024ECHO_C= ECHO_N= ECHO_T=
13025case `echo -n x` in #(((((
13026-n*)
13027 case `echo 'xy\c'` in
13028 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13029 xy) ECHO_C='\c';;
13030 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13031 ECHO_T=' ';;
13032 esac;;
13033*)
13034 ECHO_N='-n';;
13035esac
13036
13037rm -f conf$$ conf$$.exe conf$$.file
13038if test -d conf$$.dir; then
13039 rm -f conf$$.dir/conf$$.file
13040else
13041 rm -f conf$$.dir
13042 mkdir conf$$.dir 2>/dev/null
13043fi
13044if (echo >conf$$.file) 2>/dev/null; then
13045 if ln -s conf$$.file conf$$ 2>/dev/null; then
13046 as_ln_s='ln -s'
13047 # ... but there are two gotchas:
13048 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13049 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13050 # In both cases, we have to default to `cp -p'.
13051 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13052 as_ln_s='cp -p'
13053 elif ln conf$$.file conf$$ 2>/dev/null; then
13054 as_ln_s=ln
13055 else
13056 as_ln_s='cp -p'
13057 fi
13058else
13059 as_ln_s='cp -p'
13060fi
13061rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13062rmdir conf$$.dir 2>/dev/null
13063
13064
13065# as_fn_mkdir_p
13066# -------------
13067# Create "$as_dir" as a directory, including parents if necessary.
13068as_fn_mkdir_p ()
13069{
13070
13071 case $as_dir in #(
13072 -*) as_dir=./$as_dir;;
13073 esac
13074 test -d "$as_dir" || eval $as_mkdir_p || {
13075 as_dirs=
13076 while :; do
13077 case $as_dir in #(
13078 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13079 *) as_qdir=$as_dir;;
13080 esac
13081 as_dirs="'$as_qdir' $as_dirs"
13082 as_dir=`$as_dirname -- "$as_dir" ||
13083$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13084 X"$as_dir" : 'X\(//\)[^/]' \| \
13085 X"$as_dir" : 'X\(//\)$' \| \
13086 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13087$as_echo X"$as_dir" |
13088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13089 s//\1/
13090 q
13091 }
13092 /^X\(\/\/\)[^/].*/{
13093 s//\1/
13094 q
13095 }
13096 /^X\(\/\/\)$/{
13097 s//\1/
13098 q
13099 }
13100 /^X\(\/\).*/{
13101 s//\1/
13102 q
13103 }
13104 s/.*/./; q'`
13105 test -d "$as_dir" && break
13106 done
13107 test -z "$as_dirs" || eval "mkdir $as_dirs"
13108 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13109
13110
13111} # as_fn_mkdir_p
13112if mkdir -p . 2>/dev/null; then
13113 as_mkdir_p='mkdir -p "$as_dir"'
13114else
13115 test -d ./-p && rmdir ./-p
13116 as_mkdir_p=false
13117fi
13118
13119if test -x / >/dev/null 2>&1; then
13120 as_test_x='test -x'
13121else
13122 if ls -dL / >/dev/null 2>&1; then
13123 as_ls_L_option=L
13124 else
13125 as_ls_L_option=
13126 fi
13127 as_test_x='
13128 eval sh -c '\''
13129 if test -d "$1"; then
13130 test -d "$1/.";
13131 else
13132 case $1 in #(
13133 -*)set "./$1";;
13134 esac;
13135 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13136 ???[sx]*):;;*)false;;esac;fi
13137 '\'' sh
13138 '
13139fi
13140as_executable_p=$as_test_x
13141
13142# Sed expression to map a string onto a valid CPP name.
13143as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13144
13145# Sed expression to map a string onto a valid variable name.
13146as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13147
13148
13149exec 6>&1
13150## ----------------------------------- ##
13151## Main body of $CONFIG_STATUS script. ##
13152## ----------------------------------- ##
13153_ASEOF
13154test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13155
13156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13157# Save the log message, to keep $0 and so on meaningful, and to
13158# report actual input values of CONFIG_FILES etc. instead of their
13159# values after options handling.
13160ac_log="
13161This file was extended by $as_me, which was
13162generated by GNU Autoconf 2.68. Invocation command line was
13163
13164 CONFIG_FILES = $CONFIG_FILES
13165 CONFIG_HEADERS = $CONFIG_HEADERS
13166 CONFIG_LINKS = $CONFIG_LINKS
13167 CONFIG_COMMANDS = $CONFIG_COMMANDS
13168 $ $0 $@
13169
13170on `(hostname || uname -n) 2>/dev/null | sed 1q`
13171"
13172
13173_ACEOF
13174
13175case $ac_config_files in *"
13176"*) set x $ac_config_files; shift; ac_config_files=$*;;
13177esac
13178
13179case $ac_config_headers in *"
13180"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13181esac
13182
13183
13184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13185# Files that config.status was made for.
13186config_files="$ac_config_files"
13187config_headers="$ac_config_headers"
13188config_commands="$ac_config_commands"
13189
13190_ACEOF
13191
13192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13193ac_cs_usage="\
13194\`$as_me' instantiates files and other configuration actions
13195from templates according to the current configuration. Unless the files
13196and actions are specified as TAGs, all are instantiated by default.
13197
13198Usage: $0 [OPTION]... [TAG]...
13199
13200 -h, --help print this help, then exit
13201 -V, --version print version number and configuration settings, then exit
13202 --config print configuration, then exit
13203 -q, --quiet, --silent
13204 do not print progress messages
13205 -d, --debug don't remove temporary files
13206 --recheck update $as_me by reconfiguring in the same conditions
13207 --file=FILE[:TEMPLATE]
13208 instantiate the configuration file FILE
13209 --header=FILE[:TEMPLATE]
13210 instantiate the configuration header FILE
13211
13212Configuration files:
13213$config_files
13214
13215Configuration headers:
13216$config_headers
13217
13218Configuration commands:
13219$config_commands
13220
13221Report bugs to the package provider."
13222
13223_ACEOF
13224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13225ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13226ac_cs_version="\\
13227config.status
13228configured by $0, generated by GNU Autoconf 2.68,
13229 with options \\"\$ac_cs_config\\"
13230
13231Copyright (C) 2010 Free Software Foundation, Inc.
13232This config.status script is free software; the Free Software Foundation
13233gives unlimited permission to copy, distribute and modify it."
13234
13235ac_pwd='$ac_pwd'
13236srcdir='$srcdir'
13237INSTALL='$INSTALL'
13238MKDIR_P='$MKDIR_P'
13239AWK='$AWK'
13240test -n "\$AWK" || AWK=awk
13241_ACEOF
13242
13243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13244# The default lists apply if the user does not specify any file.
13245ac_need_defaults=:
13246while test $# != 0
13247do
13248 case $1 in
13249 --*=?*)
13250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13252 ac_shift=:
13253 ;;
13254 --*=)
13255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13256 ac_optarg=
13257 ac_shift=:
13258 ;;
13259 *)
13260 ac_option=$1
13261 ac_optarg=$2
13262 ac_shift=shift
13263 ;;
13264 esac
13265
13266 case $ac_option in
13267 # Handling of the options.
13268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13269 ac_cs_recheck=: ;;
13270 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13271 $as_echo "$ac_cs_version"; exit ;;
13272 --config | --confi | --conf | --con | --co | --c )
13273 $as_echo "$ac_cs_config"; exit ;;
13274 --debug | --debu | --deb | --de | --d | -d )
13275 debug=: ;;
13276 --file | --fil | --fi | --f )
13277 $ac_shift
13278 case $ac_optarg in
13279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13280 '') as_fn_error $? "missing file argument" ;;
13281 esac
13282 as_fn_append CONFIG_FILES " '$ac_optarg'"
13283 ac_need_defaults=false;;
13284 --header | --heade | --head | --hea )
13285 $ac_shift
13286 case $ac_optarg in
13287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13288 esac
13289 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13290 ac_need_defaults=false;;
13291 --he | --h)
13292 # Conflict between --help and --header
13293 as_fn_error $? "ambiguous option: \`$1'
13294Try \`$0 --help' for more information.";;
13295 --help | --hel | -h )
13296 $as_echo "$ac_cs_usage"; exit ;;
13297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13299 ac_cs_silent=: ;;
13300
13301 # This is an error.
13302 -*) as_fn_error $? "unrecognized option: \`$1'
13303Try \`$0 --help' for more information." ;;
13304
13305 *) as_fn_append ac_config_targets " $1"
13306 ac_need_defaults=false ;;
13307
13308 esac
13309 shift
13310done
13311
13312ac_configure_extra_args=
13313
13314if $ac_cs_silent; then
13315 exec 6>/dev/null
13316 ac_configure_extra_args="$ac_configure_extra_args --silent"
13317fi
13318
13319_ACEOF
13320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13321if \$ac_cs_recheck; then
13322 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13323 shift
13324 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13325 CONFIG_SHELL='$SHELL'
13326 export CONFIG_SHELL
13327 exec "\$@"
13328fi
13329
13330_ACEOF
13331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13332exec 5>>config.log
13333{
13334 echo
13335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13336## Running $as_me. ##
13337_ASBOX
13338 $as_echo "$ac_log"
13339} >&5
13340
13341_ACEOF
13342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13343#
13344# INIT-COMMANDS
13345#
13346AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13347
13348
13349# The HP-UX ksh and POSIX shell print the target directory to stdout
13350# if CDPATH is set.
13351(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13352
13353sed_quote_subst='$sed_quote_subst'
13354double_quote_subst='$double_quote_subst'
13355delay_variable_subst='$delay_variable_subst'
13356macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13357macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13358enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13359enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13360pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13361enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13362SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13363ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13364PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13365host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13366host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13367host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13368build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13369build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13370build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13371SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13372Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13373GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13374EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13375FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13376LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13377NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13378LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13379max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13380ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13381exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13382lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13383lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13384lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13385lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13386lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13387reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13388reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13389OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13390deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13391file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13392file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13393want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13394DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13395sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13396AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13397AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13398archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13399STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13400RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13401old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13402old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13403old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13404lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13405CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13406CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13407compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13408GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13409lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13410lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13411lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13412lt_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"`'
13413nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13414lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13415objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13416MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13417lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13418lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13419lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13420lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13421lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13422need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13423MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13424DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13425NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13426LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13427OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13428OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13429libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13430shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13431extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13432archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13433enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13434export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13435whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13436compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13437old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13438old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13439archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13440archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13441module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13442module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13443with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13444allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13445no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13446hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13447hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13448hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13449hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13450hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13451hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13452hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13453inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13454link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13455always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13456export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13457exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13458include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13459prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13460postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13461file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13462variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13463need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13464need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13465version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13466runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13467shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13468shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13469libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13470library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13471soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13472install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13473postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13474postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13475finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13476finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13477hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13478sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13479sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13480hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13481enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13482enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13483enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13484old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13485striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13486
13487LTCC='$LTCC'
13488LTCFLAGS='$LTCFLAGS'
13489compiler='$compiler_DEFAULT'
13490
13491# A function that is used when there is no print builtin or printf.
13492func_fallback_echo ()
13493{
13494 eval 'cat <<_LTECHO_EOF
13495\$1
13496_LTECHO_EOF'
13497}
13498
13499# Quote evaled strings.
13500for var in SHELL \
13501ECHO \
13502PATH_SEPARATOR \
13503SED \
13504GREP \
13505EGREP \
13506FGREP \
13507LD \
13508NM \
13509LN_S \
13510lt_SP2NL \
13511lt_NL2SP \
13512reload_flag \
13513OBJDUMP \
13514deplibs_check_method \
13515file_magic_cmd \
13516file_magic_glob \
13517want_nocaseglob \
13518DLLTOOL \
13519sharedlib_from_linklib_cmd \
13520AR \
13521AR_FLAGS \
13522archiver_list_spec \
13523STRIP \
13524RANLIB \
13525CC \
13526CFLAGS \
13527compiler \
13528lt_cv_sys_global_symbol_pipe \
13529lt_cv_sys_global_symbol_to_cdecl \
13530lt_cv_sys_global_symbol_to_c_name_address \
13531lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13532nm_file_list_spec \
13533lt_prog_compiler_no_builtin_flag \
13534lt_prog_compiler_pic \
13535lt_prog_compiler_wl \
13536lt_prog_compiler_static \
13537lt_cv_prog_compiler_c_o \
13538need_locks \
13539MANIFEST_TOOL \
13540DSYMUTIL \
13541NMEDIT \
13542LIPO \
13543OTOOL \
13544OTOOL64 \
13545shrext_cmds \
13546export_dynamic_flag_spec \
13547whole_archive_flag_spec \
13548compiler_needs_object \
13549with_gnu_ld \
13550allow_undefined_flag \
13551no_undefined_flag \
13552hardcode_libdir_flag_spec \
13553hardcode_libdir_separator \
13554exclude_expsyms \
13555include_expsyms \
13556file_list_spec \
13557variables_saved_for_relink \
13558libname_spec \
13559library_names_spec \
13560soname_spec \
13561install_override_mode \
13562finish_eval \
13563old_striplib \
13564striplib; do
13565 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13566 *[\\\\\\\`\\"\\\$]*)
13567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13568 ;;
13569 *)
13570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13571 ;;
13572 esac
13573done
13574
13575# Double-quote double-evaled strings.
13576for var in reload_cmds \
13577old_postinstall_cmds \
13578old_postuninstall_cmds \
13579old_archive_cmds \
13580extract_expsyms_cmds \
13581old_archive_from_new_cmds \
13582old_archive_from_expsyms_cmds \
13583archive_cmds \
13584archive_expsym_cmds \
13585module_cmds \
13586module_expsym_cmds \
13587export_symbols_cmds \
13588prelink_cmds \
13589postlink_cmds \
13590postinstall_cmds \
13591postuninstall_cmds \
13592finish_cmds \
13593sys_lib_search_path_spec \
13594sys_lib_dlsearch_path_spec; do
13595 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13596 *[\\\\\\\`\\"\\\$]*)
13597 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13598 ;;
13599 *)
13600 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13601 ;;
13602 esac
13603done
13604
13605ac_aux_dir='$ac_aux_dir'
13606xsi_shell='$xsi_shell'
13607lt_shell_append='$lt_shell_append'
13608
13609# See if we are running on zsh, and set the options which allow our
13610# commands through without removal of \ escapes INIT.
13611if test -n "\${ZSH_VERSION+set}" ; then
13612 setopt NO_GLOB_SUBST
13613fi
13614
13615
13616 PACKAGE='$PACKAGE'
13617 VERSION='$VERSION'
13618 TIMESTAMP='$TIMESTAMP'
13619 RM='$RM'
13620 ofile='$ofile'
13621
13622
13623
13624
13625_ACEOF
13626
13627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13628
13629# Handling of arguments.
13630for ac_config_target in $ac_config_targets
13631do
13632 case $ac_config_target in
13633 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13634 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13635 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13636 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13637 "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
13638 "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
13639 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13640 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13641
13642 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13643 esac
13644done
13645
13646
13647# If the user did not use the arguments to specify the items to instantiate,
13648# then the envvar interface is used. Set only those that are not.
13649# We use the long form for the default assignment because of an extremely
13650# bizarre bug on SunOS 4.1.3.
13651if $ac_need_defaults; then
13652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13655fi
13656
13657# Have a temporary directory for convenience. Make it in the build tree
13658# simply because there is no reason against having it here, and in addition,
13659# creating and moving files from /tmp can sometimes cause problems.
13660# Hook for its removal unless debugging.
13661# Note that there is a small window in which the directory will not be cleaned:
13662# after its creation but before its name has been assigned to `$tmp'.
13663$debug ||
13664{
13665 tmp= ac_tmp=
13666 trap 'exit_status=$?
13667 : "${ac_tmp:=$tmp}"
13668 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13669' 0
13670 trap 'as_fn_exit 1' 1 2 13 15
13671}
13672# Create a (secure) tmp directory for tmp files.
13673
13674{
13675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13676 test -d "$tmp"
13677} ||
13678{
13679 tmp=./conf$$-$RANDOM
13680 (umask 077 && mkdir "$tmp")
13681} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13682ac_tmp=$tmp
13683
13684# Set up the scripts for CONFIG_FILES section.
13685# No need to generate them if there are no CONFIG_FILES.
13686# This happens for instance with `./config.status config.h'.
13687if test -n "$CONFIG_FILES"; then
13688
13689
13690ac_cr=`echo X | tr X '\015'`
13691# On cygwin, bash can eat \r inside `` if the user requested igncr.
13692# But we know of no other shell where ac_cr would be empty at this
13693# point, so we can use a bashism as a fallback.
13694if test "x$ac_cr" = x; then
13695 eval ac_cr=\$\'\\r\'
13696fi
13697ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13698if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13699 ac_cs_awk_cr='\\r'
13700else
13701 ac_cs_awk_cr=$ac_cr
13702fi
13703
13704echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13705_ACEOF
13706
13707
13708{
13709 echo "cat >conf$$subs.awk <<_ACEOF" &&
13710 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13711 echo "_ACEOF"
13712} >conf$$subs.sh ||
13713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13714ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13715ac_delim='%!_!# '
13716for ac_last_try in false false false false false :; do
13717 . ./conf$$subs.sh ||
13718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13719
13720 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13721 if test $ac_delim_n = $ac_delim_num; then
13722 break
13723 elif $ac_last_try; then
13724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13725 else
13726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13727 fi
13728done
13729rm -f conf$$subs.sh
13730
13731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13732cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13733_ACEOF
13734sed -n '
13735h
13736s/^/S["/; s/!.*/"]=/
13737p
13738g
13739s/^[^!]*!//
13740:repl
13741t repl
13742s/'"$ac_delim"'$//
13743t delim
13744:nl
13745h
13746s/\(.\{148\}\)..*/\1/
13747t more1
13748s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13749p
13750n
13751b repl
13752:more1
13753s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13754p
13755g
13756s/.\{148\}//
13757t nl
13758:delim
13759h
13760s/\(.\{148\}\)..*/\1/
13761t more2
13762s/["\\]/\\&/g; s/^/"/; s/$/"/
13763p
13764b
13765:more2
13766s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13767p
13768g
13769s/.\{148\}//
13770t delim
13771' <conf$$subs.awk | sed '
13772/^[^""]/{
13773 N
13774 s/\n//
13775}
13776' >>$CONFIG_STATUS || ac_write_fail=1
13777rm -f conf$$subs.awk
13778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13779_ACAWK
13780cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13781 for (key in S) S_is_set[key] = 1
13782 FS = ""
13783
13784}
13785{
13786 line = $ 0
13787 nfields = split(line, field, "@")
13788 substed = 0
13789 len = length(field[1])
13790 for (i = 2; i < nfields; i++) {
13791 key = field[i]
13792 keylen = length(key)
13793 if (S_is_set[key]) {
13794 value = S[key]
13795 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13796 len += length(value) + length(field[++i])
13797 substed = 1
13798 } else
13799 len += 1 + keylen
13800 }
13801
13802 print line
13803}
13804
13805_ACAWK
13806_ACEOF
13807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13808if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13809 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13810else
13811 cat
13812fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13813 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13814_ACEOF
13815
13816# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13817# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13818# trailing colons and then remove the whole line if VPATH becomes empty
13819# (actually we leave an empty line to preserve line numbers).
13820if test "x$srcdir" = x.; then
13821 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13822h
13823s///
13824s/^/:/
13825s/[ ]*$/:/
13826s/:\$(srcdir):/:/g
13827s/:\${srcdir}:/:/g
13828s/:@srcdir@:/:/g
13829s/^:*//
13830s/:*$//
13831x
13832s/\(=[ ]*\).*/\1/
13833G
13834s/\n//
13835s/^[^=]*=[ ]*$//
13836}'
13837fi
13838
13839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13840fi # test -n "$CONFIG_FILES"
13841
13842# Set up the scripts for CONFIG_HEADERS section.
13843# No need to generate them if there are no CONFIG_HEADERS.
13844# This happens for instance with `./config.status Makefile'.
13845if test -n "$CONFIG_HEADERS"; then
13846cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13847BEGIN {
13848_ACEOF
13849
13850# Transform confdefs.h into an awk script `defines.awk', embedded as
13851# here-document in config.status, that substitutes the proper values into
13852# config.h.in to produce config.h.
13853
13854# Create a delimiter string that does not exist in confdefs.h, to ease
13855# handling of long lines.
13856ac_delim='%!_!# '
13857for ac_last_try in false false :; do
13858 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13859 if test -z "$ac_tt"; then
13860 break
13861 elif $ac_last_try; then
13862 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13863 else
13864 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13865 fi
13866done
13867
13868# For the awk script, D is an array of macro values keyed by name,
13869# likewise P contains macro parameters if any. Preserve backslash
13870# newline sequences.
13871
13872ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13873sed -n '
13874s/.\{148\}/&'"$ac_delim"'/g
13875t rset
13876:rset
13877s/^[ ]*#[ ]*define[ ][ ]*/ /
13878t def
13879d
13880:def
13881s/\\$//
13882t bsnl
13883s/["\\]/\\&/g
13884s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13885D["\1"]=" \3"/p
13886s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13887d
13888:bsnl
13889s/["\\]/\\&/g
13890s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13891D["\1"]=" \3\\\\\\n"\\/p
13892t cont
13893s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13894t cont
13895d
13896:cont
13897n
13898s/.\{148\}/&'"$ac_delim"'/g
13899t clear
13900:clear
13901s/\\$//
13902t bsnlc
13903s/["\\]/\\&/g; s/^/"/; s/$/"/p
13904d
13905:bsnlc
13906s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13907b cont
13908' <confdefs.h | sed '
13909s/'"$ac_delim"'/"\\\
13910"/g' >>$CONFIG_STATUS || ac_write_fail=1
13911
13912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13913 for (key in D) D_is_set[key] = 1
13914 FS = ""
13915}
13916/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13917 line = \$ 0
13918 split(line, arg, " ")
13919 if (arg[1] == "#") {
13920 defundef = arg[2]
13921 mac1 = arg[3]
13922 } else {
13923 defundef = substr(arg[1], 2)
13924 mac1 = arg[2]
13925 }
13926 split(mac1, mac2, "(") #)
13927 macro = mac2[1]
13928 prefix = substr(line, 1, index(line, defundef) - 1)
13929 if (D_is_set[macro]) {
13930 # Preserve the white space surrounding the "#".
13931 print prefix "define", macro P[macro] D[macro]
13932 next
13933 } else {
13934 # Replace #undef with comments. This is necessary, for example,
13935 # in the case of _POSIX_SOURCE, which is predefined and required
13936 # on some systems where configure will not decide to define it.
13937 if (defundef == "undef") {
13938 print "/*", prefix defundef, macro, "*/"
13939 next
13940 }
13941 }
13942}
13943{ print }
13944_ACAWK
13945_ACEOF
13946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13947 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13948fi # test -n "$CONFIG_HEADERS"
13949
13950
13951eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13952shift
13953for ac_tag
13954do
13955 case $ac_tag in
13956 :[FHLC]) ac_mode=$ac_tag; continue;;
13957 esac
13958 case $ac_mode$ac_tag in
13959 :[FHL]*:*);;
13960 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13961 :[FH]-) ac_tag=-:-;;
13962 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13963 esac
13964 ac_save_IFS=$IFS
13965 IFS=:
13966 set x $ac_tag
13967 IFS=$ac_save_IFS
13968 shift
13969 ac_file=$1
13970 shift
13971
13972 case $ac_mode in
13973 :L) ac_source=$1;;
13974 :[FH])
13975 ac_file_inputs=
13976 for ac_f
13977 do
13978 case $ac_f in
13979 -) ac_f="$ac_tmp/stdin";;
13980 *) # Look for the file first in the build tree, then in the source tree
13981 # (if the path is not absolute). The absolute path cannot be DOS-style,
13982 # because $ac_f cannot contain `:'.
13983 test -f "$ac_f" ||
13984 case $ac_f in
13985 [\\/$]*) false;;
13986 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13987 esac ||
13988 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13989 esac
13990 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13991 as_fn_append ac_file_inputs " '$ac_f'"
13992 done
13993
13994 # Let's still pretend it is `configure' which instantiates (i.e., don't
13995 # use $as_me), people would be surprised to read:
13996 # /* config.h. Generated by config.status. */
13997 configure_input='Generated from '`
13998 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13999 `' by configure.'
14000 if test x"$ac_file" != x-; then
14001 configure_input="$ac_file. $configure_input"
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14003$as_echo "$as_me: creating $ac_file" >&6;}
14004 fi
14005 # Neutralize special characters interpreted by sed in replacement strings.
14006 case $configure_input in #(
14007 *\&* | *\|* | *\\* )
14008 ac_sed_conf_input=`$as_echo "$configure_input" |
14009 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14010 *) ac_sed_conf_input=$configure_input;;
14011 esac
14012
14013 case $ac_tag in
14014 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14016 esac
14017 ;;
14018 esac
14019
14020 ac_dir=`$as_dirname -- "$ac_file" ||
14021$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14022 X"$ac_file" : 'X\(//\)[^/]' \| \
14023 X"$ac_file" : 'X\(//\)$' \| \
14024 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14025$as_echo X"$ac_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="$ac_dir"; as_fn_mkdir_p
14044 ac_builddir=.
14045
14046case "$ac_dir" in
14047.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14048*)
14049 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14050 # A ".." for each directory in $ac_dir_suffix.
14051 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14052 case $ac_top_builddir_sub in
14053 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14054 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14055 esac ;;
14056esac
14057ac_abs_top_builddir=$ac_pwd
14058ac_abs_builddir=$ac_pwd$ac_dir_suffix
14059# for backward compatibility:
14060ac_top_builddir=$ac_top_build_prefix
14061
14062case $srcdir in
14063 .) # We are building in place.
14064 ac_srcdir=.
14065 ac_top_srcdir=$ac_top_builddir_sub
14066 ac_abs_top_srcdir=$ac_pwd ;;
14067 [\\/]* | ?:[\\/]* ) # Absolute name.
14068 ac_srcdir=$srcdir$ac_dir_suffix;
14069 ac_top_srcdir=$srcdir
14070 ac_abs_top_srcdir=$srcdir ;;
14071 *) # Relative name.
14072 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14073 ac_top_srcdir=$ac_top_build_prefix$srcdir
14074 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14075esac
14076ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14077
14078
14079 case $ac_mode in
14080 :F)
14081 #
14082 # CONFIG_FILE
14083 #
14084
14085 case $INSTALL in
14086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14087 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14088 esac
14089 ac_MKDIR_P=$MKDIR_P
14090 case $MKDIR_P in
14091 [\\/$]* | ?:[\\/]* ) ;;
14092 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14093 esac
14094_ACEOF
14095
14096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14097# If the template does not know about datarootdir, expand it.
14098# FIXME: This hack should be removed a few years after 2.60.
14099ac_datarootdir_hack=; ac_datarootdir_seen=
14100ac_sed_dataroot='
14101/datarootdir/ {
14102 p
14103 q
14104}
14105/@datadir@/p
14106/@docdir@/p
14107/@infodir@/p
14108/@localedir@/p
14109/@mandir@/p'
14110case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14111*datarootdir*) ac_datarootdir_seen=yes;;
14112*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14114$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14115_ACEOF
14116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14117 ac_datarootdir_hack='
14118 s&@datadir@&$datadir&g
14119 s&@docdir@&$docdir&g
14120 s&@infodir@&$infodir&g
14121 s&@localedir@&$localedir&g
14122 s&@mandir@&$mandir&g
14123 s&\\\${datarootdir}&$datarootdir&g' ;;
14124esac
14125_ACEOF
14126
14127# Neutralize VPATH when `$srcdir' = `.'.
14128# Shell code in configure.ac might set extrasub.
14129# FIXME: do we really want to maintain this feature?
14130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14131ac_sed_extra="$ac_vpsub
14132$extrasub
14133_ACEOF
14134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14135:t
14136/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14137s|@configure_input@|$ac_sed_conf_input|;t t
14138s&@top_builddir@&$ac_top_builddir_sub&;t t
14139s&@top_build_prefix@&$ac_top_build_prefix&;t t
14140s&@srcdir@&$ac_srcdir&;t t
14141s&@abs_srcdir@&$ac_abs_srcdir&;t t
14142s&@top_srcdir@&$ac_top_srcdir&;t t
14143s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14144s&@builddir@&$ac_builddir&;t t
14145s&@abs_builddir@&$ac_abs_builddir&;t t
14146s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14147s&@INSTALL@&$ac_INSTALL&;t t
14148s&@MKDIR_P@&$ac_MKDIR_P&;t t
14149$ac_datarootdir_hack
14150"
14151eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14152 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14153
14154test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14155 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14156 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14157 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14159which seems to be undefined. Please make sure it is defined" >&5
14160$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14161which seems to be undefined. Please make sure it is defined" >&2;}
14162
14163 rm -f "$ac_tmp/stdin"
14164 case $ac_file in
14165 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14166 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14167 esac \
14168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14169 ;;
14170 :H)
14171 #
14172 # CONFIG_HEADER
14173 #
14174 if test x"$ac_file" != x-; then
14175 {
14176 $as_echo "/* $configure_input */" \
14177 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14178 } >"$ac_tmp/config.h" \
14179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14180 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14182$as_echo "$as_me: $ac_file is unchanged" >&6;}
14183 else
14184 rm -f "$ac_file"
14185 mv "$ac_tmp/config.h" "$ac_file" \
14186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14187 fi
14188 else
14189 $as_echo "/* $configure_input */" \
14190 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14191 || as_fn_error $? "could not create -" "$LINENO" 5
14192 fi
14193# Compute "$ac_file"'s index in $config_headers.
14194_am_arg="$ac_file"
14195_am_stamp_count=1
14196for _am_header in $config_headers :; do
14197 case $_am_header in
14198 $_am_arg | $_am_arg:* )
14199 break ;;
14200 * )
14201 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14202 esac
14203done
14204echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14205$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14206 X"$_am_arg" : 'X\(//\)[^/]' \| \
14207 X"$_am_arg" : 'X\(//\)$' \| \
14208 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14209$as_echo X"$_am_arg" |
14210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14211 s//\1/
14212 q
14213 }
14214 /^X\(\/\/\)[^/].*/{
14215 s//\1/
14216 q
14217 }
14218 /^X\(\/\/\)$/{
14219 s//\1/
14220 q
14221 }
14222 /^X\(\/\).*/{
14223 s//\1/
14224 q
14225 }
14226 s/.*/./; q'`/stamp-h$_am_stamp_count
14227 ;;
14228
14229 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14230$as_echo "$as_me: executing $ac_file commands" >&6;}
14231 ;;
14232 esac
14233
14234
14235 case $ac_file$ac_mode in
14236 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14237 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14238 # are listed without --file. Let's play safe and only enable the eval
14239 # if we detect the quoting.
14240 case $CONFIG_FILES in
14241 *\'*) eval set x "$CONFIG_FILES" ;;
14242 *) set x $CONFIG_FILES ;;
14243 esac
14244 shift
14245 for mf
14246 do
14247 # Strip MF so we end up with the name of the file.
14248 mf=`echo "$mf" | sed -e 's/:.*$//'`
14249 # Check whether this is an Automake generated Makefile or not.
14250 # We used to match only the files named `Makefile.in', but
14251 # some people rename them; so instead we look at the file content.
14252 # Grep'ing the first line is not enough: some people post-process
14253 # each Makefile.in and add a new line on top of each file to say so.
14254 # Grep'ing the whole file is not good either: AIX grep has a line
14255 # limit of 2048, but all sed's we know have understand at least 4000.
14256 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14257 dirpart=`$as_dirname -- "$mf" ||
14258$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14259 X"$mf" : 'X\(//\)[^/]' \| \
14260 X"$mf" : 'X\(//\)$' \| \
14261 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14262$as_echo X"$mf" |
14263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14264 s//\1/
14265 q
14266 }
14267 /^X\(\/\/\)[^/].*/{
14268 s//\1/
14269 q
14270 }
14271 /^X\(\/\/\)$/{
14272 s//\1/
14273 q
14274 }
14275 /^X\(\/\).*/{
14276 s//\1/
14277 q
14278 }
14279 s/.*/./; q'`
14280 else
14281 continue
14282 fi
14283 # Extract the definition of DEPDIR, am__include, and am__quote
14284 # from the Makefile without running `make'.
14285 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14286 test -z "$DEPDIR" && continue
14287 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14288 test -z "am__include" && continue
14289 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14290 # When using ansi2knr, U may be empty or an underscore; expand it
14291 U=`sed -n 's/^U = //p' < "$mf"`
14292 # Find all dependency output files, they are included files with
14293 # $(DEPDIR) in their names. We invoke sed twice because it is the
14294 # simplest approach to changing $(DEPDIR) to its actual value in the
14295 # expansion.
14296 for file in `sed -n "
14297 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14298 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14299 # Make sure the directory exists.
14300 test -f "$dirpart/$file" && continue
14301 fdir=`$as_dirname -- "$file" ||
14302$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14303 X"$file" : 'X\(//\)[^/]' \| \
14304 X"$file" : 'X\(//\)$' \| \
14305 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14306$as_echo X"$file" |
14307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14308 s//\1/
14309 q
14310 }
14311 /^X\(\/\/\)[^/].*/{
14312 s//\1/
14313 q
14314 }
14315 /^X\(\/\/\)$/{
14316 s//\1/
14317 q
14318 }
14319 /^X\(\/\).*/{
14320 s//\1/
14321 q
14322 }
14323 s/.*/./; q'`
14324 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14325 # echo "creating $dirpart/$file"
14326 echo '# dummy' > "$dirpart/$file"
14327 done
14328 done
14329}
14330 ;;
14331 "libtool":C)
14332
14333 # See if we are running on zsh, and set the options which allow our
14334 # commands through without removal of \ escapes.
14335 if test -n "${ZSH_VERSION+set}" ; then
14336 setopt NO_GLOB_SUBST
14337 fi
14338
14339 cfgfile="${ofile}T"
14340 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14341 $RM "$cfgfile"
14342
14343 cat <<_LT_EOF >> "$cfgfile"
14344#! $SHELL
14345
14346# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14347# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14348# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14349# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14350#
14351# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14352# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14353# Foundation, Inc.
14354# Written by Gordon Matzigkeit, 1996
14355#
14356# This file is part of GNU Libtool.
14357#
14358# GNU Libtool is free software; you can redistribute it and/or
14359# modify it under the terms of the GNU General Public License as
14360# published by the Free Software Foundation; either version 2 of
14361# the License, or (at your option) any later version.
14362#
14363# As a special exception to the GNU General Public License,
14364# if you distribute this file as part of a program or library that
14365# is built using GNU Libtool, you may include this file under the
14366# same distribution terms that you use for the rest of that program.
14367#
14368# GNU Libtool is distributed in the hope that it will be useful,
14369# but WITHOUT ANY WARRANTY; without even the implied warranty of
14370# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14371# GNU General Public License for more details.
14372#
14373# You should have received a copy of the GNU General Public License
14374# along with GNU Libtool; see the file COPYING. If not, a copy
14375# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14376# obtained by writing to the Free Software Foundation, Inc.,
14377# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14378
14379
14380# The names of the tagged configurations supported by this script.
14381available_tags=""
14382
14383# ### BEGIN LIBTOOL CONFIG
14384
14385# Which release of libtool.m4 was used?
14386macro_version=$macro_version
14387macro_revision=$macro_revision
14388
14389# Whether or not to build shared libraries.
14390build_libtool_libs=$enable_shared
14391
14392# Whether or not to build static libraries.
14393build_old_libs=$enable_static
14394
14395# What type of objects to build.
14396pic_mode=$pic_mode
14397
14398# Whether or not to optimize for fast installation.
14399fast_install=$enable_fast_install
14400
14401# Shell to use when invoking shell scripts.
14402SHELL=$lt_SHELL
14403
14404# An echo program that protects backslashes.
14405ECHO=$lt_ECHO
14406
14407# The PATH separator for the build system.
14408PATH_SEPARATOR=$lt_PATH_SEPARATOR
14409
14410# The host system.
14411host_alias=$host_alias
14412host=$host
14413host_os=$host_os
14414
14415# The build system.
14416build_alias=$build_alias
14417build=$build
14418build_os=$build_os
14419
14420# A sed program that does not truncate output.
14421SED=$lt_SED
14422
14423# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14424Xsed="\$SED -e 1s/^X//"
14425
14426# A grep program that handles long lines.
14427GREP=$lt_GREP
14428
14429# An ERE matcher.
14430EGREP=$lt_EGREP
14431
14432# A literal string matcher.
14433FGREP=$lt_FGREP
14434
14435# A BSD- or MS-compatible name lister.
14436NM=$lt_NM
14437
14438# Whether we need soft or hard links.
14439LN_S=$lt_LN_S
14440
14441# What is the maximum length of a command?
14442max_cmd_len=$max_cmd_len
14443
14444# Object file suffix (normally "o").
14445objext=$ac_objext
14446
14447# Executable file suffix (normally "").
14448exeext=$exeext
14449
14450# whether the shell understands "unset".
14451lt_unset=$lt_unset
14452
14453# turn spaces into newlines.
14454SP2NL=$lt_lt_SP2NL
14455
14456# turn newlines into spaces.
14457NL2SP=$lt_lt_NL2SP
14458
14459# convert \$build file names to \$host format.
14460to_host_file_cmd=$lt_cv_to_host_file_cmd
14461
14462# convert \$build files to toolchain format.
14463to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14464
14465# An object symbol dumper.
14466OBJDUMP=$lt_OBJDUMP
14467
14468# Method to check whether dependent libraries are shared objects.
14469deplibs_check_method=$lt_deplibs_check_method
14470
14471# Command to use when deplibs_check_method = "file_magic".
14472file_magic_cmd=$lt_file_magic_cmd
14473
14474# How to find potential files when deplibs_check_method = "file_magic".
14475file_magic_glob=$lt_file_magic_glob
14476
14477# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14478want_nocaseglob=$lt_want_nocaseglob
14479
14480# DLL creation program.
14481DLLTOOL=$lt_DLLTOOL
14482
14483# Command to associate shared and link libraries.
14484sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14485
14486# The archiver.
14487AR=$lt_AR
14488
14489# Flags to create an archive.
14490AR_FLAGS=$lt_AR_FLAGS
14491
14492# How to feed a file listing to the archiver.
14493archiver_list_spec=$lt_archiver_list_spec
14494
14495# A symbol stripping program.
14496STRIP=$lt_STRIP
14497
14498# Commands used to install an old-style archive.
14499RANLIB=$lt_RANLIB
14500old_postinstall_cmds=$lt_old_postinstall_cmds
14501old_postuninstall_cmds=$lt_old_postuninstall_cmds
14502
14503# Whether to use a lock for old archive extraction.
14504lock_old_archive_extraction=$lock_old_archive_extraction
14505
14506# A C compiler.
14507LTCC=$lt_CC
14508
14509# LTCC compiler flags.
14510LTCFLAGS=$lt_CFLAGS
14511
14512# Take the output of nm and produce a listing of raw symbols and C names.
14513global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14514
14515# Transform the output of nm in a proper C declaration.
14516global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14517
14518# Transform the output of nm in a C name address pair.
14519global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14520
14521# Transform the output of nm in a C name address pair when lib prefix is needed.
14522global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14523
14524# Specify filename containing input files for \$NM.
14525nm_file_list_spec=$lt_nm_file_list_spec
14526
14527# The root where to search for dependent libraries,and in which our libraries should be installed.
14528lt_sysroot=$lt_sysroot
14529
14530# The name of the directory that contains temporary libtool files.
14531objdir=$objdir
14532
14533# Used to examine libraries when file_magic_cmd begins with "file".
14534MAGIC_CMD=$MAGIC_CMD
14535
14536# Must we lock files when doing compilation?
14537need_locks=$lt_need_locks
14538
14539# Manifest tool.
14540MANIFEST_TOOL=$lt_MANIFEST_TOOL
14541
14542# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14543DSYMUTIL=$lt_DSYMUTIL
14544
14545# Tool to change global to local symbols on Mac OS X.
14546NMEDIT=$lt_NMEDIT
14547
14548# Tool to manipulate fat objects and archives on Mac OS X.
14549LIPO=$lt_LIPO
14550
14551# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14552OTOOL=$lt_OTOOL
14553
14554# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14555OTOOL64=$lt_OTOOL64
14556
14557# Old archive suffix (normally "a").
14558libext=$libext
14559
14560# Shared library suffix (normally ".so").
14561shrext_cmds=$lt_shrext_cmds
14562
14563# The commands to extract the exported symbol list from a shared archive.
14564extract_expsyms_cmds=$lt_extract_expsyms_cmds
14565
14566# Variables whose values should be saved in libtool wrapper scripts and
14567# restored at link time.
14568variables_saved_for_relink=$lt_variables_saved_for_relink
14569
14570# Do we need the "lib" prefix for modules?
14571need_lib_prefix=$need_lib_prefix
14572
14573# Do we need a version for libraries?
14574need_version=$need_version
14575
14576# Library versioning type.
14577version_type=$version_type
14578
14579# Shared library runtime path variable.
14580runpath_var=$runpath_var
14581
14582# Shared library path variable.
14583shlibpath_var=$shlibpath_var
14584
14585# Is shlibpath searched before the hard-coded library search path?
14586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14587
14588# Format of library name prefix.
14589libname_spec=$lt_libname_spec
14590
14591# List of archive names. First name is the real one, the rest are links.
14592# The last name is the one that the linker finds with -lNAME
14593library_names_spec=$lt_library_names_spec
14594
14595# The coded name of the library, if different from the real name.
14596soname_spec=$lt_soname_spec
14597
14598# Permission mode override for installation of shared libraries.
14599install_override_mode=$lt_install_override_mode
14600
14601# Command to use after installation of a shared archive.
14602postinstall_cmds=$lt_postinstall_cmds
14603
14604# Command to use after uninstallation of a shared archive.
14605postuninstall_cmds=$lt_postuninstall_cmds
14606
14607# Commands used to finish a libtool library installation in a directory.
14608finish_cmds=$lt_finish_cmds
14609
14610# As "finish_cmds", except a single script fragment to be evaled but
14611# not shown.
14612finish_eval=$lt_finish_eval
14613
14614# Whether we should hardcode library paths into libraries.
14615hardcode_into_libs=$hardcode_into_libs
14616
14617# Compile-time system search path for libraries.
14618sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14619
14620# Run-time system search path for libraries.
14621sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14622
14623# Whether dlopen is supported.
14624dlopen_support=$enable_dlopen
14625
14626# Whether dlopen of programs is supported.
14627dlopen_self=$enable_dlopen_self
14628
14629# Whether dlopen of statically linked programs is supported.
14630dlopen_self_static=$enable_dlopen_self_static
14631
14632# Commands to strip libraries.
14633old_striplib=$lt_old_striplib
14634striplib=$lt_striplib
14635
14636
14637# The linker used to build libraries.
14638LD=$lt_LD
14639
14640# How to create reloadable object files.
14641reload_flag=$lt_reload_flag
14642reload_cmds=$lt_reload_cmds
14643
14644# Commands used to build an old-style archive.
14645old_archive_cmds=$lt_old_archive_cmds
14646
14647# A language specific compiler.
14648CC=$lt_compiler
14649
14650# Is the compiler the GNU compiler?
14651with_gcc=$GCC
14652
14653# Compiler flag to turn off builtin functions.
14654no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14655
14656# Additional compiler flags for building library objects.
14657pic_flag=$lt_lt_prog_compiler_pic
14658
14659# How to pass a linker flag through the compiler.
14660wl=$lt_lt_prog_compiler_wl
14661
14662# Compiler flag to prevent dynamic linking.
14663link_static_flag=$lt_lt_prog_compiler_static
14664
14665# Does compiler simultaneously support -c and -o options?
14666compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14667
14668# Whether or not to add -lc for building shared libraries.
14669build_libtool_need_lc=$archive_cmds_need_lc
14670
14671# Whether or not to disallow shared libs when runtime libs are static.
14672allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14673
14674# Compiler flag to allow reflexive dlopens.
14675export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14676
14677# Compiler flag to generate shared objects directly from archives.
14678whole_archive_flag_spec=$lt_whole_archive_flag_spec
14679
14680# Whether the compiler copes with passing no objects directly.
14681compiler_needs_object=$lt_compiler_needs_object
14682
14683# Create an old-style archive from a shared archive.
14684old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14685
14686# Create a temporary old-style archive to link instead of a shared archive.
14687old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14688
14689# Commands used to build a shared archive.
14690archive_cmds=$lt_archive_cmds
14691archive_expsym_cmds=$lt_archive_expsym_cmds
14692
14693# Commands used to build a loadable module if different from building
14694# a shared archive.
14695module_cmds=$lt_module_cmds
14696module_expsym_cmds=$lt_module_expsym_cmds
14697
14698# Whether we are building with GNU ld or not.
14699with_gnu_ld=$lt_with_gnu_ld
14700
14701# Flag that allows shared libraries with undefined symbols to be built.
14702allow_undefined_flag=$lt_allow_undefined_flag
14703
14704# Flag that enforces no undefined symbols.
14705no_undefined_flag=$lt_no_undefined_flag
14706
14707# Flag to hardcode \$libdir into a binary during linking.
14708# This must work even if \$libdir does not exist
14709hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14710
14711# Whether we need a single "-rpath" flag with a separated argument.
14712hardcode_libdir_separator=$lt_hardcode_libdir_separator
14713
14714# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14715# DIR into the resulting binary.
14716hardcode_direct=$hardcode_direct
14717
14718# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14719# DIR into the resulting binary and the resulting library dependency is
14720# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14721# library is relocated.
14722hardcode_direct_absolute=$hardcode_direct_absolute
14723
14724# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14725# into the resulting binary.
14726hardcode_minus_L=$hardcode_minus_L
14727
14728# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14729# into the resulting binary.
14730hardcode_shlibpath_var=$hardcode_shlibpath_var
14731
14732# Set to "yes" if building a shared library automatically hardcodes DIR
14733# into the library and all subsequent libraries and executables linked
14734# against it.
14735hardcode_automatic=$hardcode_automatic
14736
14737# Set to yes if linker adds runtime paths of dependent libraries
14738# to runtime path list.
14739inherit_rpath=$inherit_rpath
14740
14741# Whether libtool must link a program against all its dependency libraries.
14742link_all_deplibs=$link_all_deplibs
14743
14744# Set to "yes" if exported symbols are required.
14745always_export_symbols=$always_export_symbols
14746
14747# The commands to list exported symbols.
14748export_symbols_cmds=$lt_export_symbols_cmds
14749
14750# Symbols that should not be listed in the preloaded symbols.
14751exclude_expsyms=$lt_exclude_expsyms
14752
14753# Symbols that must always be exported.
14754include_expsyms=$lt_include_expsyms
14755
14756# Commands necessary for linking programs (against libraries) with templates.
14757prelink_cmds=$lt_prelink_cmds
14758
14759# Commands necessary for finishing linking programs.
14760postlink_cmds=$lt_postlink_cmds
14761
14762# Specify filename containing input files.
14763file_list_spec=$lt_file_list_spec
14764
14765# How to hardcode a shared library path into an executable.
14766hardcode_action=$hardcode_action
14767
14768# ### END LIBTOOL CONFIG
14769
14770_LT_EOF
14771
14772 case $host_os in
14773 aix3*)
14774 cat <<\_LT_EOF >> "$cfgfile"
14775# AIX sometimes has problems with the GCC collect2 program. For some
14776# reason, if we set the COLLECT_NAMES environment variable, the problems
14777# vanish in a puff of smoke.
14778if test "X${COLLECT_NAMES+set}" != Xset; then
14779 COLLECT_NAMES=
14780 export COLLECT_NAMES
14781fi
14782_LT_EOF
14783 ;;
14784 esac
14785
14786
14787ltmain="$ac_aux_dir/ltmain.sh"
14788
14789
14790 # We use sed instead of cat because bash on DJGPP gets confused if
14791 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14792 # text mode, it properly converts lines to CR/LF. This bash problem
14793 # is reportedly fixed, but why not run on old versions too?
14794 sed '$q' "$ltmain" >> "$cfgfile" \
14795 || (rm -f "$cfgfile"; exit 1)
14796
14797 if test x"$xsi_shell" = xyes; then
14798 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14799func_dirname ()\
14800{\
14801\ case ${1} in\
14802\ */*) func_dirname_result="${1%/*}${2}" ;;\
14803\ * ) func_dirname_result="${3}" ;;\
14804\ esac\
14805} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14806 && mv -f "$cfgfile.tmp" "$cfgfile" \
14807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14808test 0 -eq $? || _lt_function_replace_fail=:
14809
14810
14811 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14812func_basename ()\
14813{\
14814\ func_basename_result="${1##*/}"\
14815} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14816 && mv -f "$cfgfile.tmp" "$cfgfile" \
14817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14818test 0 -eq $? || _lt_function_replace_fail=:
14819
14820
14821 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14822func_dirname_and_basename ()\
14823{\
14824\ case ${1} in\
14825\ */*) func_dirname_result="${1%/*}${2}" ;;\
14826\ * ) func_dirname_result="${3}" ;;\
14827\ esac\
14828\ func_basename_result="${1##*/}"\
14829} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14830 && mv -f "$cfgfile.tmp" "$cfgfile" \
14831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14832test 0 -eq $? || _lt_function_replace_fail=:
14833
14834
14835 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14836func_stripname ()\
14837{\
14838\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14839\ # positional parameters, so assign one to ordinary parameter first.\
14840\ func_stripname_result=${3}\
14841\ func_stripname_result=${func_stripname_result#"${1}"}\
14842\ func_stripname_result=${func_stripname_result%"${2}"}\
14843} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14844 && mv -f "$cfgfile.tmp" "$cfgfile" \
14845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14846test 0 -eq $? || _lt_function_replace_fail=:
14847
14848
14849 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14850func_split_long_opt ()\
14851{\
14852\ func_split_long_opt_name=${1%%=*}\
14853\ func_split_long_opt_arg=${1#*=}\
14854} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14855 && mv -f "$cfgfile.tmp" "$cfgfile" \
14856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14857test 0 -eq $? || _lt_function_replace_fail=:
14858
14859
14860 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14861func_split_short_opt ()\
14862{\
14863\ func_split_short_opt_arg=${1#??}\
14864\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14865} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14866 && mv -f "$cfgfile.tmp" "$cfgfile" \
14867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14868test 0 -eq $? || _lt_function_replace_fail=:
14869
14870
14871 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14872func_lo2o ()\
14873{\
14874\ case ${1} in\
14875\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14876\ *) func_lo2o_result=${1} ;;\
14877\ esac\
14878} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14879 && mv -f "$cfgfile.tmp" "$cfgfile" \
14880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14881test 0 -eq $? || _lt_function_replace_fail=:
14882
14883
14884 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14885func_xform ()\
14886{\
14887 func_xform_result=${1%.*}.lo\
14888} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14889 && mv -f "$cfgfile.tmp" "$cfgfile" \
14890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14891test 0 -eq $? || _lt_function_replace_fail=:
14892
14893
14894 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14895func_arith ()\
14896{\
14897 func_arith_result=$(( $* ))\
14898} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14899 && mv -f "$cfgfile.tmp" "$cfgfile" \
14900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14901test 0 -eq $? || _lt_function_replace_fail=:
14902
14903
14904 sed -e '/^func_len ()$/,/^} # func_len /c\
14905func_len ()\
14906{\
14907 func_len_result=${#1}\
14908} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14909 && mv -f "$cfgfile.tmp" "$cfgfile" \
14910 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14911test 0 -eq $? || _lt_function_replace_fail=:
14912
14913fi
14914
14915if test x"$lt_shell_append" = xyes; then
14916 sed -e '/^func_append ()$/,/^} # func_append /c\
14917func_append ()\
14918{\
14919 eval "${1}+=\\${2}"\
14920} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14921 && mv -f "$cfgfile.tmp" "$cfgfile" \
14922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14923test 0 -eq $? || _lt_function_replace_fail=:
14924
14925
14926 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14927func_append_quoted ()\
14928{\
14929\ func_quote_for_eval "${2}"\
14930\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14931} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14932 && mv -f "$cfgfile.tmp" "$cfgfile" \
14933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14934test 0 -eq $? || _lt_function_replace_fail=:
14935
14936
14937 # Save a `func_append' function call where possible by direct use of '+='
14938 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14939 && mv -f "$cfgfile.tmp" "$cfgfile" \
14940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14941 test 0 -eq $? || _lt_function_replace_fail=:
14942else
14943 # Save a `func_append' function call even when '+=' is not available
14944 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14945 && mv -f "$cfgfile.tmp" "$cfgfile" \
14946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14947 test 0 -eq $? || _lt_function_replace_fail=:
14948fi
14949
14950if test x"$_lt_function_replace_fail" = x":"; then
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14952$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14953fi
14954
14955
14956 mv -f "$cfgfile" "$ofile" ||
14957 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14958 chmod +x "$ofile"
14959
14960 ;;
14961
14962 esac
14963done # for ac_tag
14964
14965
14966as_fn_exit 0
14967_ACEOF
14968ac_clean_files=$ac_clean_files_save
14969
14970test $ac_write_fail = 0 ||
14971 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14972
14973
14974# configure is writing to config.log, and then calls config.status.
14975# config.status does its own redirection, appending to config.log.
14976# Unfortunately, on DOS this fails, as config.log is still kept open
14977# by configure, so config.status won't be able to write to it; its
14978# output is simply discarded. So we exec the FD to /dev/null,
14979# effectively closing config.log, so it can be properly (re)opened and
14980# appended to by config.status. When coming back to configure, we
14981# need to make the FD available again.
14982if test "$no_create" != yes; then
14983 ac_cs_success=:
14984 ac_config_status_args=
14985 test "$silent" = yes &&
14986 ac_config_status_args="$ac_config_status_args --quiet"
14987 exec 5>/dev/null
14988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14989 exec 5>>config.log
14990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14991 # would make configure fail if this is the last instruction.
14992 $ac_cs_success || as_fn_exit 1
14993fi
14994if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14996$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14997fi
14998
14999
15000{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
15001------------------------------------------------------------------------
15002 $PACKAGE $VERSION: Automatic configuration OK.
15003
15004 Compiler support:
15005
15006 C99 var arrays: ................ ${has_var_arrays}
15007 C99 lrintf: .................... ${ac_cv_func_lrintf}
15008 Alloca: ........................ ${has_alloca}
15009
15010 General configuration:
15011
15012 Floating point support: ........ ${ac_enable_float}
15013 Fast float approximations: ..... ${float_approx}
15014 Fixed point debugging: ......... ${ac_enable_fixed_debug}
15015 Custom modes: .................. ${ac_enable_custom_modes}
15016 Assertion checking: ............ ${ac_enable_assertions}
15017 Fuzzing: ....................... ${ac_enable_fuzzing}
15018
15019 API documentation: ............. ${ac_enable_doc}
15020------------------------------------------------------------------------
15021" >&5
15022$as_echo "
15023------------------------------------------------------------------------
15024 $PACKAGE $VERSION: Automatic configuration OK.
15025
15026 Compiler support:
15027
15028 C99 var arrays: ................ ${has_var_arrays}
15029 C99 lrintf: .................... ${ac_cv_func_lrintf}
15030 Alloca: ........................ ${has_alloca}
15031
15032 General configuration:
15033
15034 Floating point support: ........ ${ac_enable_float}
15035 Fast float approximations: ..... ${float_approx}
15036 Fixed point debugging: ......... ${ac_enable_fixed_debug}
15037 Custom modes: .................. ${ac_enable_custom_modes}
15038 Assertion checking: ............ ${ac_enable_assertions}
15039 Fuzzing: ....................... ${ac_enable_fuzzing}
15040
15041 API documentation: ............. ${ac_enable_doc}
15042------------------------------------------------------------------------
15043" >&6; }
15044
15045echo "Type \"make; make install\" to compile and install";
15046echo "Type \"make check\" to run the test suite";