]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/bfin/configure
sim: drop common/cconfig.h in favor of a single config.h
[thirdparty/binutils-gdb.git] / sim / bfin / configure
CommitLineData
ef016f83
MF
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
6bb11ab3
L
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
ef016f83
MF
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
6bb11ab3
L
534SHELL=${CONFIG_SHELL-/bin/sh}
535
ef016f83
MF
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
562PACKAGE_URL=
563
564ac_unique_file="Makefile.in"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='LTLIBOBJS
602LIBOBJS
603cgen_breaks
604SDL_LIBS
605SDL_CFLAGS
606PKG_CONFIG_LIBDIR
607PKG_CONFIG_PATH
608PKG_CONFIG
ef016f83
MF
609REPORT_BUGS_TEXI
610REPORT_BUGS_TO
611PKGVERSION
612sim_profile
613sim_trace
614sim_stdio
615sim_debug
616sim_cflags
ef016f83 617MAINT
31e6ad7d
MF
618MAINTAINER_MODE_FALSE
619MAINTAINER_MODE_TRUE
6bb11ab3
L
620lt_cv_dlopen_libs
621OTOOL64
622OTOOL
623LIPO
624NMEDIT
625DSYMUTIL
626AWK
627STRIP
628OBJDUMP
629LN_S
630NM
631ac_ct_DUMPBIN
632DUMPBIN
633LD
634FGREP
635SED
636LIBTOOL
637PLUGINS_FALSE
638PLUGINS_TRUE
aadc9410
MF
639zlibinc
640zlibdir
ef016f83
MF
641CATOBJEXT
642GENCAT
643INSTOBJEXT
644DATADIRNAME
645CATALOGS
646POSUB
647GMSGFMT
648XGETTEXT
649INCINTL
650LIBINTL_DEP
651LIBINTL
652USE_NLS
db2e4d67
MF
653GMAKE_FALSE
654GMAKE_TRUE
655MAKE
656CCDEPMODE
657DEPDIR
658am__leading_dot
5f3ef9d0 659PACKAGE
ef016f83
MF
660RANLIB
661AR
662HDEFINES
663CC_FOR_BUILD
664INSTALL_DATA
665INSTALL_SCRIPT
666INSTALL_PROGRAM
2232061b
MF
667EGREP
668GREP
669CPP
ef016f83
MF
670target_os
671target_vendor
672target_cpu
673target
674host_os
675host_vendor
676host_cpu
677host
678build_os
679build_vendor
680build_cpu
681build
6ffe910a
MF
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
ef016f83
MF
689WERROR_CFLAGS
690WARN_CFLAGS
691sim_xor_endian
692sim_stdcall
693sim_smp
694sim_reserved_bits
695sim_regparm
696sim_packages
697sim_inline
698sim_hw
699sim_hw_objs
700sim_hw_cflags
701sim_default_model
702sim_scache
703sim_float
ef016f83
MF
704sim_endian
705sim_bitsize
706sim_assert
707sim_alignment
708sim_environment
709target_alias
710host_alias
711build_alias
712LIBS
713ECHO_T
714ECHO_N
715ECHO_C
716DEFS
717mandir
718localedir
719libdir
720psdir
721pdfdir
722dvidir
723htmldir
724infodir
725docdir
726oldincludedir
727includedir
728localstatedir
729sharedstatedir
730sysconfdir
731datadir
732datarootdir
733libexecdir
734sbindir
735bindir
736program_transform_name
737prefix
738exec_prefix
739PACKAGE_URL
740PACKAGE_BUGREPORT
741PACKAGE_STRING
742PACKAGE_VERSION
743PACKAGE_TARNAME
744PACKAGE_NAME
745PATH_SEPARATOR
746SHELL'
747ac_subst_files=''
748ac_user_opts='
749enable_option_checking
aadc9410 750with_system_zlib
6bb11ab3
L
751enable_plugins
752enable_shared
753enable_static
754with_pic
755enable_fast_install
756with_gnu_ld
757enable_libtool_lock
ef016f83 758enable_maintainer_mode
ef016f83
MF
759enable_sim_cflags
760enable_sim_debug
761enable_sim_stdio
762enable_sim_trace
763enable_sim_profile
764with_pkgversion
765with_bugurl
766enable_sim_endian
767enable_sim_alignment
ef016f83
MF
768enable_sim_default_model
769enable_sim_environment
770enable_sim_inline
2232061b 771enable_werror
ef016f83
MF
772enable_build_warnings
773enable_sim_build_warnings
774enable_sim_hardware
775'
776 ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784CPP
785PKG_CONFIG
786PKG_CONFIG_PATH
787PKG_CONFIG_LIBDIR
788SDL_CFLAGS
789SDL_LIBS'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *) ac_optarg=yes ;;
854 esac
855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903"enable_$ac_useropt"
904"*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929"enable_$ac_useropt"
930"*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1084
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1095
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1100
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1105
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1112
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1117
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1120
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1123
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133"with_$ac_useropt"
1134"*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1139
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149"with_$ac_useropt"
1150"*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
1174 -*) as_fn_error "unrecognized option: \`$ac_option'
1175Try \`$0 --help' for more information."
1176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 ;;
1195
1196 esac
1197done
1198
1199if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error "missing argument to $ac_option"
1202fi
1203
1204if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1210fi
1211
1212# Check all directory arguments for consistency.
1213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1217do
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1231done
1232
1233# There might be people who depend on the old broken behavior: `$host'
1234# used to hold the argument of --host etc.
1235# FIXME: To remove some day.
1236build=$build_alias
1237host=$host_alias
1238target=$target_alias
1239
1240# FIXME: To remove some day.
1241if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1245 If a cross compiler is detected then cross compile mode will be used." >&2
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296else
1297 ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331\`configure' configures this package to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1397_ACEOF
1398fi
1399
1400if test -n "$ac_init_help"; then
1401
1402 cat <<\_ACEOF
1403
1404Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1408 --enable-plugins Enable support for plugins
6bb11ab3
L
1409 --enable-shared[=PKGS] build shared libraries [default=yes]
1410 --enable-static[=PKGS] build static libraries [default=yes]
1411 --enable-fast-install[=PKGS]
1412 optimize for fast installation [default=yes]
1413 --disable-libtool-lock avoid locking (might break parallel builds)
31e6ad7d
MF
1414 --enable-maintainer-mode enable make rules and dependencies not useful
1415 (and sometimes confusing) to the casual installer
8d0978fb
MF
1416 --enable-sim-cflags=opts
1417 Extra CFLAGS for use in building simulator
1418 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1419 itself)
1420 --enable-sim-stdio Specify whether to use stdio for console
1421 input/output
1422 --enable-sim-trace=opts Enable tracing of simulated programs
1423 --enable-sim-profile=opts
1424 Enable profiling flags
1425 --enable-sim-endian=endian
1426 Specify target byte endian orientation
1427 --enable-sim-alignment=align
1428 Specify strict, nonstrict or forced alignment of
1429 memory accesses
8d0978fb
MF
1430 --enable-sim-default-model=model
1431 Specify default model to simulate
1432 --enable-sim-environment=environment
1433 Specify mixed, user, virtual or operating
1434 environment
1435 --enable-sim-inline=inlines
1436 Specify which functions should be inlined
2232061b
MF
1437 --enable-werror treat compile warnings as errors
1438 --enable-build-warnings enable build-time compiler warnings if gcc is used
1439 --enable-sim-build-warnings
1440 enable SIM specific build-time compiler warnings if
1441 gcc is used
1517bd27
MF
1442 --enable-sim-hardware=LIST
1443 Specify the hardware to be included in the build.
ef016f83
MF
1444
1445Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1448 --with-system-zlib use installed libz
6bb11ab3
L
1449 --with-pic try to use only PIC/non-PIC objects [default=use
1450 both]
1451 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1452 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
ef016f83
MF
1453 --with-bugurl=URL Direct users to URL to report a bug
1454
1455Some influential environment variables:
1456 CC C compiler command
1457 CFLAGS C compiler flags
1458 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1459 nonstandard directory <lib dir>
1460 LIBS libraries to pass to the linker, e.g. -l<library>
1461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1462 you have headers in a nonstandard directory <include dir>
1463 CPP C preprocessor
1464 PKG_CONFIG path to pkg-config utility
1465 PKG_CONFIG_PATH
1466 directories to add to pkg-config's search path
1467 PKG_CONFIG_LIBDIR
1468 path overriding pkg-config's built-in search path
1469 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1470 SDL_LIBS linker flags for SDL, overriding pkg-config
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to the package provider.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1487
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
1503
1504case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517esac
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533fi
1534
1535test -n "$ac_init_help" && exit $ac_status
1536if $ac_init_version; then
1537 cat <<\_ACEOF
1538configure
1539generated by GNU Autoconf 2.64
1540
1541Copyright (C) 2009 Free Software Foundation, Inc.
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544_ACEOF
1545 exit
1546fi
1547
1548## ------------------------ ##
1549## Autoconf initialization. ##
1550## ------------------------ ##
1551
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
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_compile") 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_objext; then :
1578 ac_retval=0
1579else
1580 $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584fi
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 return $ac_retval
1587
1588} # ac_fn_c_try_compile
1589
1590# ac_fn_c_try_cpp LINENO
1591# ----------------------
1592# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_cpp ()
1594{
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 if { { ac_try="$ac_cpp conftest.$ac_ext"
1597case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } >/dev/null && {
1612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 }; then :
1615 ac_retval=0
1616else
1617 $as_echo "$as_me: failed program was:" >&5
1618sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621fi
1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623 return $ac_retval
1624
1625} # ac_fn_c_try_cpp
1626
1627# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1628# -------------------------------------------------------
1629# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1630# the include files in INCLUDES and setting the cache variable VAR
1631# accordingly.
1632ac_fn_c_check_header_mongrel ()
1633{
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637$as_echo_n "checking for $2... " >&6; }
1638if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1639 $as_echo_n "(cached) " >&6
1640fi
1641eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643$as_echo "$ac_res" >&6; }
1644else
1645 # Is the header compilable?
1646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1647$as_echo_n "checking $2 usability... " >&6; }
1648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649/* end confdefs.h. */
1650$4
1651#include <$2>
1652_ACEOF
1653if ac_fn_c_try_compile "$LINENO"; then :
1654 ac_header_compiler=yes
1655else
1656 ac_header_compiler=no
1657fi
1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1660$as_echo "$ac_header_compiler" >&6; }
1661
1662# Is the header present?
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1664$as_echo_n "checking $2 presence... " >&6; }
1665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h. */
1667#include <$2>
1668_ACEOF
1669if ac_fn_c_try_cpp "$LINENO"; then :
1670 ac_header_preproc=yes
1671else
1672 ac_header_preproc=no
1673fi
1674rm -f conftest.err conftest.$ac_ext
1675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1676$as_echo "$ac_header_preproc" >&6; }
1677
1678# So? What about this header?
1679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1680 yes:no: )
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1682$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685 ;;
1686 no:yes:* )
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1688$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1690$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1692$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1694$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697 ;;
1698esac
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700$as_echo_n "checking for $2... " >&6; }
1701if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1702 $as_echo_n "(cached) " >&6
1703else
1704 eval "$3=\$ac_header_compiler"
1705fi
1706eval ac_res=\$$3
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708$as_echo "$ac_res" >&6; }
1709fi
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711
1712} # ac_fn_c_check_header_mongrel
1713
1714# ac_fn_c_try_run LINENO
1715# ----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717# that executables *can* be run.
1718ac_fn_c_try_run ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=$ac_status
1749fi
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 return $ac_retval
1753
1754} # ac_fn_c_try_run
1755
1756# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757# -------------------------------------------------------
1758# Tests whether HEADER exists and can be compiled using the include files in
1759# INCLUDES, setting the cache variable VAR accordingly.
1760ac_fn_c_check_header_compile ()
1761{
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1766 $as_echo_n "(cached) " >&6
1767else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h. */
1770$4
1771#include <$2>
1772_ACEOF
1773if ac_fn_c_try_compile "$LINENO"; then :
1774 eval "$3=yes"
1775else
1776 eval "$3=no"
1777fi
1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779fi
1780eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784
1785} # ac_fn_c_check_header_compile
1786
1787# ac_fn_c_try_link LINENO
1788# -----------------------
1789# Try to link conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_c_try_link ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1795case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 $as_test_x conftest$ac_exeext
1815 }; then :
1816 ac_retval=0
1817else
1818 $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822fi
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 return $ac_retval
1830
1831} # ac_fn_c_try_link
1832
1833# ac_fn_c_check_func LINENO FUNC VAR
1834# ----------------------------------
1835# Tests whether FUNC exists, setting the cache variable VAR accordingly
1836ac_fn_c_check_func ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842 $as_echo_n "(cached) " >&6
1843else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h. */
1846/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848#define $2 innocuous_$2
1849
1850/* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $2 (); below.
1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853 <limits.h> exists even on freestanding compilers. */
1854
1855#ifdef __STDC__
1856# include <limits.h>
1857#else
1858# include <assert.h>
1859#endif
1860
1861#undef $2
1862
1863/* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1866#ifdef __cplusplus
1867extern "C"
1868#endif
1869char $2 ();
1870/* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873#if defined __stub_$2 || defined __stub___$2
1874choke me
1875#endif
1876
1877int
1878main ()
1879{
1880return $2 ();
1881 ;
1882 return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_link "$LINENO"; then :
1886 eval "$3=yes"
1887else
1888 eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext \
1891 conftest$ac_exeext conftest.$ac_ext
1892fi
1893eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897
1898} # ac_fn_c_check_func
936df756
MF
1899
1900# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1901# ----------------------------------------------------
1902# Tries to find if the field MEMBER exists in type AGGR, after including
1903# INCLUDES, setting cache variable VAR accordingly.
1904ac_fn_c_check_member ()
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1908$as_echo_n "checking for $2.$3... " >&6; }
1909if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1910 $as_echo_n "(cached) " >&6
1911else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914$5
1915int
1916main ()
1917{
1918static $2 ac_aggr;
1919if (ac_aggr.$3)
1920return 0;
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926 eval "$4=yes"
1927else
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h. */
1930$5
1931int
1932main ()
1933{
1934static $2 ac_aggr;
1935if (sizeof ac_aggr.$3)
1936return 0;
1937 ;
1938 return 0;
1939}
1940_ACEOF
1941if ac_fn_c_try_compile "$LINENO"; then :
1942 eval "$4=yes"
1943else
1944 eval "$4=no"
1945fi
1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949fi
1950eval ac_res=\$$4
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954
1955} # ac_fn_c_check_member
1956
1957# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1958# -------------------------------------------
1959# Tests whether TYPE exists after having included INCLUDES, setting cache
1960# variable VAR accordingly.
1961ac_fn_c_check_type ()
1962{
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965$as_echo_n "checking for $2... " >&6; }
1966if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967 $as_echo_n "(cached) " >&6
1968else
1969 eval "$3=no"
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h. */
1972$4
1973int
1974main ()
1975{
1976if (sizeof ($2))
1977 return 0;
1978 ;
1979 return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h. */
1985$4
1986int
1987main ()
1988{
1989if (sizeof (($2)))
1990 return 0;
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996
1997else
1998 eval "$3=yes"
1999fi
2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008
2009} # ac_fn_c_check_type
ef016f83
MF
2010cat >config.log <<_ACEOF
2011This file contains any messages produced by compilers while
2012running configure, to aid debugging if configure makes a mistake.
2013
2014It was created by $as_me, which was
2015generated by GNU Autoconf 2.64. Invocation command line was
2016
2017 $ $0 $@
2018
2019_ACEOF
2020exec 5>>config.log
2021{
2022cat <<_ASUNAME
2023## --------- ##
2024## Platform. ##
2025## --------- ##
2026
2027hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2028uname -m = `(uname -m) 2>/dev/null || echo unknown`
2029uname -r = `(uname -r) 2>/dev/null || echo unknown`
2030uname -s = `(uname -s) 2>/dev/null || echo unknown`
2031uname -v = `(uname -v) 2>/dev/null || echo unknown`
2032
2033/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2034/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2035
2036/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2037/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2038/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2039/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2040/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2041/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2042/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2043
2044_ASUNAME
2045
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 $as_echo "PATH: $as_dir"
2052 done
2053IFS=$as_save_IFS
2054
2055} >&5
2056
2057cat >&5 <<_ACEOF
2058
2059
2060## ----------- ##
2061## Core tests. ##
2062## ----------- ##
2063
2064_ACEOF
2065
2066
2067# Keep a trace of the command line.
2068# Strip out --no-create and --no-recursion so they do not pile up.
2069# Strip out --silent because we don't want to record it for future runs.
2070# Also quote any args containing shell meta-characters.
2071# Make two passes to allow for proper duplicate-argument suppression.
2072ac_configure_args=
2073ac_configure_args0=
2074ac_configure_args1=
2075ac_must_keep_next=false
2076for ac_pass in 1 2
2077do
2078 for ac_arg
2079 do
2080 case $ac_arg in
2081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2083 | -silent | --silent | --silen | --sile | --sil)
2084 continue ;;
2085 *\'*)
2086 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 esac
2088 case $ac_pass in
2089 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2090 2)
2091 as_fn_append ac_configure_args1 " '$ac_arg'"
2092 if test $ac_must_keep_next = true; then
2093 ac_must_keep_next=false # Got value, back to normal.
2094 else
2095 case $ac_arg in
2096 *=* | --config-cache | -C | -disable-* | --disable-* \
2097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2099 | -with-* | --with-* | -without-* | --without-* | --x)
2100 case "$ac_configure_args0 " in
2101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102 esac
2103 ;;
2104 -* ) ac_must_keep_next=true ;;
2105 esac
2106 fi
2107 as_fn_append ac_configure_args " '$ac_arg'"
2108 ;;
2109 esac
2110 done
2111done
2112{ ac_configure_args0=; unset ac_configure_args0;}
2113{ ac_configure_args1=; unset ac_configure_args1;}
2114
2115# When interrupted or exit'd, cleanup temporary files, and complete
2116# config.log. We remove comments because anyway the quotes in there
2117# would cause problems or look ugly.
2118# WARNING: Use '\'' to represent an apostrophe within the trap.
2119# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2120trap 'exit_status=$?
2121 # Save into config.log some information that might help in debugging.
2122 {
2123 echo
2124
2125 cat <<\_ASBOX
2126## ---------------- ##
2127## Cache variables. ##
2128## ---------------- ##
2129_ASBOX
2130 echo
2131 # The following way of writing the cache mishandles newlines in values,
2132(
2133 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in #(
2136 *${as_nl}*)
2137 case $ac_var in #(
2138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140 esac
2141 case $ac_var in #(
2142 _ | IFS | as_nl) ;; #(
2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144 *) { eval $ac_var=; unset $ac_var;} ;;
2145 esac ;;
2146 esac
2147 done
2148 (set) 2>&1 |
2149 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2150 *${as_nl}ac_space=\ *)
2151 sed -n \
2152 "s/'\''/'\''\\\\'\'''\''/g;
2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154 ;; #(
2155 *)
2156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2157 ;;
2158 esac |
2159 sort
2160)
2161 echo
2162
2163 cat <<\_ASBOX
2164## ----------------- ##
2165## Output variables. ##
2166## ----------------- ##
2167_ASBOX
2168 echo
2169 for ac_var in $ac_subst_vars
2170 do
2171 eval ac_val=\$$ac_var
2172 case $ac_val in
2173 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 esac
2175 $as_echo "$ac_var='\''$ac_val'\''"
2176 done | sort
2177 echo
2178
2179 if test -n "$ac_subst_files"; then
2180 cat <<\_ASBOX
2181## ------------------- ##
2182## File substitutions. ##
2183## ------------------- ##
2184_ASBOX
2185 echo
2186 for ac_var in $ac_subst_files
2187 do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in
2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 esac
2192 $as_echo "$ac_var='\''$ac_val'\''"
2193 done | sort
2194 echo
2195 fi
2196
2197 if test -s confdefs.h; then
2198 cat <<\_ASBOX
2199## ----------- ##
2200## confdefs.h. ##
2201## ----------- ##
2202_ASBOX
2203 echo
2204 cat confdefs.h
2205 echo
2206 fi
2207 test "$ac_signal" != 0 &&
2208 $as_echo "$as_me: caught signal $ac_signal"
2209 $as_echo "$as_me: exit $exit_status"
2210 } >&5
2211 rm -f core *.core core.conftest.* &&
2212 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2213 exit $exit_status
2214' 0
2215for ac_signal in 1 2 13 15; do
2216 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2217done
2218ac_signal=0
2219
2220# confdefs.h avoids OS command line length limits that DEFS can exceed.
2221rm -f -r conftest* confdefs.h
2222
2223$as_echo "/* confdefs.h */" > confdefs.h
2224
2225# Predefined preprocessor variables.
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_NAME "$PACKAGE_NAME"
2229_ACEOF
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_VERSION "$PACKAGE_VERSION"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_STRING "$PACKAGE_STRING"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_URL "$PACKAGE_URL"
2249_ACEOF
2250
2251
2252# Let the site file select an alternate cache file if it wants to.
2253# Prefer an explicitly selected file to automatically selected ones.
2254ac_site_file1=NONE
2255ac_site_file2=NONE
2256if test -n "$CONFIG_SITE"; then
2257 ac_site_file1=$CONFIG_SITE
2258elif test "x$prefix" != xNONE; then
2259 ac_site_file1=$prefix/share/config.site
2260 ac_site_file2=$prefix/etc/config.site
2261else
2262 ac_site_file1=$ac_default_prefix/share/config.site
2263 ac_site_file2=$ac_default_prefix/etc/config.site
2264fi
2265for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2266do
2267 test "x$ac_site_file" = xNONE && continue
2268 if test -r "$ac_site_file"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2270$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2271 sed 's/^/| /' "$ac_site_file" >&5
2272 . "$ac_site_file"
2273 fi
2274done
2275
2276if test -r "$cache_file"; then
2277 # Some versions of bash will fail to source /dev/null (special
2278 # files actually), so we avoid doing that.
2279 if test -f "$cache_file"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2281$as_echo "$as_me: loading cache $cache_file" >&6;}
2282 case $cache_file in
2283 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2284 *) . "./$cache_file";;
2285 esac
2286 fi
2287else
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2289$as_echo "$as_me: creating cache $cache_file" >&6;}
2290 >$cache_file
2291fi
2292
2293# Check that the precious variables saved in the cache have kept the same
2294# value.
2295ac_cache_corrupted=false
2296for ac_var in $ac_precious_vars; do
2297 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2298 eval ac_new_set=\$ac_env_${ac_var}_set
2299 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2300 eval ac_new_val=\$ac_env_${ac_var}_value
2301 case $ac_old_set,$ac_new_set in
2302 set,)
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2304$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2305 ac_cache_corrupted=: ;;
2306 ,set)
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2308$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2309 ac_cache_corrupted=: ;;
2310 ,);;
2311 *)
2312 if test "x$ac_old_val" != "x$ac_new_val"; then
2313 # differences in whitespace do not lead to failure.
2314 ac_old_val_w=`echo x $ac_old_val`
2315 ac_new_val_w=`echo x $ac_new_val`
2316 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2318$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2319 ac_cache_corrupted=:
2320 else
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2322$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2323 eval $ac_var=\$ac_old_val
2324 fi
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2326$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2328$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2329 fi;;
2330 esac
2331 # Pass precious variables to config.status.
2332 if test "$ac_new_set" = set; then
2333 case $ac_new_val in
2334 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 *) ac_arg=$ac_var=$ac_new_val ;;
2336 esac
2337 case " $ac_configure_args " in
2338 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2339 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2340 esac
2341 fi
2342done
2343if $ac_cache_corrupted; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2347$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2348 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2349fi
2350## -------------------- ##
2351## Main body of script. ##
2352## -------------------- ##
2353
2354ac_ext=c
2355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359
2360
ef016f83
MF
2361# This file contains common code used by all simulators.
2362#
2363# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2364# directory. It is intended to be invoked before any target specific stuff.
2365# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2366# It is intended to be invoked last.
2367#
306f4178 2368# The simulator's configure.ac should look like:
ef016f83
MF
2369#
2370# dnl Process this file with autoconf to produce a configure script.
6ffe910a 2371# AC_PREREQ(2.64)dnl
ef016f83 2372# AC_INIT(Makefile.in)
6ffe910a 2373# sinclude(../common/aclocal.m4)
ef016f83
MF
2374#
2375# SIM_AC_COMMON
2376#
2377# ... target specific stuff ...
2378#
2379# SIM_AC_OUTPUT
2380
2381# Include global overrides and fixes for Autoconf.
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
6ffe910a
MF
2401
2402
2403
ef016f83
MF
2404
2405
2406
2407
2408# _AC_CHECK_DECL_BODY
2409# -------------------
2410# Shell function body for AC_CHECK_DECL.
2411# _AC_CHECK_DECL_BODY
2412
2413# _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2414# INCLUDES)
2415# -------------------------------------------------------------
2416# Helper to AC_CHECK_DECLS, which generates the check for a single
2417# SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2418# ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
db2e4d67 2429
6bb11ab3 2430# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
db2e4d67 2431#
6bb11ab3
L
2432# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2433# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2434# Written by Gordon Matzigkeit, 1996
2435#
2436# This file is free software; the Free Software Foundation gives
2437# unlimited permission to copy and/or distribute it, with or without
2438# modifications, as long as this notice is preserved.
db2e4d67 2439
db2e4d67 2440
db2e4d67 2441
6bb11ab3 2442# serial 56 LT_INIT
db2e4d67
MF
2443
2444
6bb11ab3
L
2445# LT_PREREQ(VERSION)
2446# ------------------
2447# Complain and exit if this libtool version is less that VERSION.
db2e4d67 2448
db2e4d67
MF
2449
2450
6bb11ab3
L
2451# _LT_CHECK_BUILDDIR
2452# ------------------
2453# Complain if the absolute build directory name contains unusual characters
db2e4d67
MF
2454
2455
ef016f83 2456
6bb11ab3
L
2457# LT_INIT([OPTIONS])
2458# ------------------
2459# LT_INIT
ef016f83 2460
6bb11ab3
L
2461# Old names:
2462# This is what autoupdate's m4 run will expand. It fires
2463# the warning (with _au_warn_XXX), outputs it into the
2464# updated configure.ac (with AC_DIAGNOSE), and then outputs
2465# the replacement expansion.
ef016f83
MF
2466
2467
6bb11ab3
L
2468# This is an auxiliary macro that is also run when
2469# autoupdate runs m4. It simply calls m4_warning, but
2470# we need a wrapper so that each warning is emitted only
2471# once. We break the quoting in m4_warning's argument in
2472# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2473
2474
6bb11ab3
L
2475# Finally, this is the expansion that is picked up by
2476# autoconf. It tells the user to run autoupdate, and
2477# then outputs the replacement expansion. We do not care
2478# about autoupdate's warning because that contains
2479# information on what to do *after* running autoupdate.
ef016f83 2480
6bb11ab3
L
2481# This is what autoupdate's m4 run will expand. It fires
2482# the warning (with _au_warn_XXX), outputs it into the
2483# updated configure.ac (with AC_DIAGNOSE), and then outputs
2484# the replacement expansion.
ef016f83
MF
2485
2486
6bb11ab3
L
2487# This is an auxiliary macro that is also run when
2488# autoupdate runs m4. It simply calls m4_warning, but
2489# we need a wrapper so that each warning is emitted only
2490# once. We break the quoting in m4_warning's argument in
2491# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2492
2493
6bb11ab3
L
2494# Finally, this is the expansion that is picked up by
2495# autoconf. It tells the user to run autoupdate, and
2496# then outputs the replacement expansion. We do not care
2497# about autoupdate's warning because that contains
2498# information on what to do *after* running autoupdate.
ef016f83
MF
2499
2500
2501
6bb11ab3
L
2502# _LT_CC_BASENAME(CC)
2503# -------------------
2504# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
ef016f83
MF
2505
2506
2507
6bb11ab3
L
2508# _LT_FILEUTILS_DEFAULTS
2509# ----------------------
2510# It is okay to use these file commands and assume they have been set
2511# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2512# _LT_FILEUTILS_DEFAULTS
ef016f83
MF
2513
2514
6bb11ab3
L
2515# _LT_SETUP
2516# ---------
2517# _LT_SETUP
ef016f83
MF
2518
2519
6bb11ab3
L
2520# _LT_PREPARE_SED_QUOTE_VARS
2521# --------------------------
2522# Define a few sed substitution that help us do robust quoting.
ef016f83
MF
2523
2524
6bb11ab3
L
2525# _LT_PROG_LTMAIN
2526# ---------------
2527# Note that this code is called both from `configure', and `config.status'
2528# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2529# `config.status' has no value for ac_aux_dir unless we are using Automake,
2530# so we pass a copy along to make sure it has a sensible value anyway.
2531# _LT_PROG_LTMAIN
ef016f83
MF
2532
2533
6bb11ab3
L
2534## ------------------------------------- ##
2535## Accumulate code for creating libtool. ##
2536## ------------------------------------- ##
ef016f83 2537
6bb11ab3
L
2538# So that we can recreate a full libtool script including additional
2539# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2540# in macros and then make a single call at the end using the `libtool'
2541# label.
ef016f83
MF
2542
2543
6bb11ab3
L
2544# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2545# ----------------------------------------
2546# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
ef016f83
MF
2547
2548
6bb11ab3 2549# Initialize.
ef016f83
MF
2550
2551
2552
6bb11ab3
L
2553# _LT_CONFIG_LIBTOOL([COMMANDS])
2554# ------------------------------
2555# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
ef016f83
MF
2556
2557
6bb11ab3 2558# Initialize.
ef016f83
MF
2559
2560
2561
6bb11ab3
L
2562# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2563# -----------------------------------------------------
ef016f83
MF
2564
2565
2566
6bb11ab3
L
2567# _LT_FORMAT_COMMENT([COMMENT])
2568# -----------------------------
2569# Add leading comment marks to the start of each line, and a trailing
2570# full-stop to the whole comment if one is not present already.
ef016f83
MF
2571
2572
2573
2574
6bb11ab3
L
2575## ------------------------ ##
2576## FIXME: Eliminate VARNAME ##
2577## ------------------------ ##
ef016f83
MF
2578
2579
6bb11ab3
L
2580# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2581# -------------------------------------------------------------------
2582# CONFIGNAME is the name given to the value in the libtool script.
2583# VARNAME is the (base) name used in the configure script.
2584# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2585# VARNAME. Any other value will be used directly.
ef016f83 2586
ef016f83
MF
2587
2588
6bb11ab3
L
2589# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2590# --------------------------------------------------------
ef016f83
MF
2591
2592
2593
6bb11ab3
L
2594# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2595# ------------------------------------------------
ef016f83
MF
2596
2597
2598
6bb11ab3
L
2599# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2600# ---------------------------------------------------------
ef016f83
MF
2601
2602
2603
6bb11ab3
L
2604# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2605# --------------------------------------------------
ef016f83
MF
2606
2607
2608
6bb11ab3
L
2609# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2610# ---------------------------------------------------
ef016f83
MF
2611
2612
2613
6bb11ab3
L
2614# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2615# ---------------------------------------------------
ef016f83
MF
2616
2617
2618
2619
6bb11ab3
L
2620# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2621# ------------------------------------------------
ef016f83
MF
2622
2623
2624
2625
6bb11ab3
L
2626# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2627# ------------------------------------
2628# Quote a variable value, and forward it to `config.status' so that its
2629# declaration there will have the same value as in `configure'. VARNAME
2630# must have a single quote delimited value for this to work.
ef016f83
MF
2631
2632
2633
6bb11ab3
L
2634# _LT_CONFIG_STATUS_DECLARATIONS
2635# ------------------------------
2636# We delimit libtool config variables with single quotes, so when
2637# we write them to config.status, we have to be sure to quote all
2638# embedded single quotes properly. In configure, this macro expands
2639# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2640#
2641# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
ef016f83
MF
2642
2643
2644
6bb11ab3
L
2645# _LT_LIBTOOL_TAGS
2646# ----------------
2647# Output comment and list of tags supported by the script
ef016f83
MF
2648
2649
2650
6bb11ab3
L
2651# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2652# -----------------------------------
2653# Extract the dictionary values for VARNAME (optionally with TAG) and
2654# expand to a commented shell variable setting:
2655#
2656# # Some comment about what VAR is for.
2657# visible_name=$lt_internal_name
ef016f83
MF
2658
2659
ef016f83 2660
6bb11ab3
L
2661# _LT_LIBTOOL_CONFIG_VARS
2662# -----------------------
2663# Produce commented declarations of non-tagged libtool config variables
2664# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2665# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2666# section) are produced by _LT_LIBTOOL_TAG_VARS.
ef016f83
MF
2667
2668
2669
6bb11ab3
L
2670# _LT_LIBTOOL_TAG_VARS(TAG)
2671# -------------------------
ef016f83
MF
2672
2673
2674
6bb11ab3
L
2675# _LT_TAGVAR(VARNAME, [TAGNAME])
2676# ------------------------------
ef016f83
MF
2677
2678
2679
6bb11ab3
L
2680# _LT_CONFIG_COMMANDS
2681# -------------------
2682# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2683# variables for single and double quote escaping we saved from calls
2684# to _LT_DECL, we can put quote escaped variables declarations
2685# into `config.status', and then the shell code to quote escape them in
2686# for loops in `config.status'. Finally, any additional code accumulated
2687# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2688#_LT_CONFIG_COMMANDS
2689
2690
2691# Initialize.
2692
2693
2694# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2695# ------------------------------------
2696# Generate a child script FILE with all initialization necessary to
2697# reuse the environment learned by the parent script, and make the
2698# file executable. If COMMENT is supplied, it is inserted after the
2699# `#!' sequence but before initialization text begins. After this
2700# macro, additional text can be appended to FILE to form the body of
2701# the child script. The macro ends with non-zero status if the
2702# file could not be fully written (such as if the disk is full).
2703# _LT_GENERATED_FILE_INIT
2704
2705# LT_OUTPUT
2706# ---------
2707# This macro allows early generation of the libtool script (before
2708# AC_OUTPUT is called), incase it is used in configure for compilation
2709# tests.
2710# LT_OUTPUT
2711
2712
2713# _LT_CONFIG(TAG)
2714# ---------------
2715# If TAG is the built-in tag, create an initial libtool script with a
2716# default configuration from the untagged config vars. Otherwise add code
2717# to config.status for appending the configuration named by TAG from the
2718# matching tagged config vars.
2719# _LT_CONFIG
ef016f83
MF
2720
2721
6bb11ab3
L
2722# LT_SUPPORTED_TAG(TAG)
2723# ---------------------
2724# Trace this macro to discover what tags are supported by the libtool
2725# --tag option, using:
2726# autoconf --trace 'LT_SUPPORTED_TAG:$1'
ef016f83 2727
ef016f83 2728
ef016f83 2729
6bb11ab3 2730# C support is built-in for now
ef016f83 2731
ef016f83
MF
2732
2733
2734
6bb11ab3
L
2735# LT_LANG(LANG)
2736# -------------
2737# Enable libtool support for the given language if not already enabled.
2738# LT_LANG
ef016f83
MF
2739
2740
6bb11ab3
L
2741# _LT_LANG(LANGNAME)
2742# ------------------
2743# _LT_LANG
ef016f83
MF
2744
2745
6bb11ab3
L
2746# _LT_LANG_DEFAULT_CONFIG
2747# -----------------------
2748# _LT_LANG_DEFAULT_CONFIG
ef016f83 2749
6bb11ab3
L
2750# Obsolete macros:
2751# This is what autoupdate's m4 run will expand. It fires
2752# the warning (with _au_warn_XXX), outputs it into the
2753# updated configure.ac (with AC_DIAGNOSE), and then outputs
2754# the replacement expansion.
ef016f83 2755
ef016f83 2756
6bb11ab3
L
2757# This is an auxiliary macro that is also run when
2758# autoupdate runs m4. It simply calls m4_warning, but
2759# we need a wrapper so that each warning is emitted only
2760# once. We break the quoting in m4_warning's argument in
2761# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83 2762
ef016f83 2763
6bb11ab3
L
2764# Finally, this is the expansion that is picked up by
2765# autoconf. It tells the user to run autoupdate, and
2766# then outputs the replacement expansion. We do not care
2767# about autoupdate's warning because that contains
2768# information on what to do *after* running autoupdate.
ef016f83 2769
6bb11ab3
L
2770# This is what autoupdate's m4 run will expand. It fires
2771# the warning (with _au_warn_XXX), outputs it into the
2772# updated configure.ac (with AC_DIAGNOSE), and then outputs
2773# the replacement expansion.
ef016f83
MF
2774
2775
6bb11ab3
L
2776# This is an auxiliary macro that is also run when
2777# autoupdate runs m4. It simply calls m4_warning, but
2778# we need a wrapper so that each warning is emitted only
2779# once. We break the quoting in m4_warning's argument in
2780# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2781
2782
6bb11ab3
L
2783# Finally, this is the expansion that is picked up by
2784# autoconf. It tells the user to run autoupdate, and
2785# then outputs the replacement expansion. We do not care
2786# about autoupdate's warning because that contains
2787# information on what to do *after* running autoupdate.
ef016f83 2788
6bb11ab3
L
2789# This is what autoupdate's m4 run will expand. It fires
2790# the warning (with _au_warn_XXX), outputs it into the
2791# updated configure.ac (with AC_DIAGNOSE), and then outputs
2792# the replacement expansion.
ef016f83
MF
2793
2794
6bb11ab3
L
2795# This is an auxiliary macro that is also run when
2796# autoupdate runs m4. It simply calls m4_warning, but
2797# we need a wrapper so that each warning is emitted only
2798# once. We break the quoting in m4_warning's argument in
2799# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2800
2801
6bb11ab3
L
2802# Finally, this is the expansion that is picked up by
2803# autoconf. It tells the user to run autoupdate, and
2804# then outputs the replacement expansion. We do not care
2805# about autoupdate's warning because that contains
2806# information on what to do *after* running autoupdate.
ef016f83 2807
6bb11ab3
L
2808# This is what autoupdate's m4 run will expand. It fires
2809# the warning (with _au_warn_XXX), outputs it into the
2810# updated configure.ac (with AC_DIAGNOSE), and then outputs
2811# the replacement expansion.
ef016f83
MF
2812
2813
6bb11ab3
L
2814# This is an auxiliary macro that is also run when
2815# autoupdate runs m4. It simply calls m4_warning, but
2816# we need a wrapper so that each warning is emitted only
2817# once. We break the quoting in m4_warning's argument in
2818# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2819
2820
6bb11ab3
L
2821# Finally, this is the expansion that is picked up by
2822# autoconf. It tells the user to run autoupdate, and
2823# then outputs the replacement expansion. We do not care
2824# about autoupdate's warning because that contains
2825# information on what to do *after* running autoupdate.
ef016f83 2826
6bb11ab3
L
2827# This is what autoupdate's m4 run will expand. It fires
2828# the warning (with _au_warn_XXX), outputs it into the
2829# updated configure.ac (with AC_DIAGNOSE), and then outputs
2830# the replacement expansion.
ef016f83
MF
2831
2832
6bb11ab3
L
2833# This is an auxiliary macro that is also run when
2834# autoupdate runs m4. It simply calls m4_warning, but
2835# we need a wrapper so that each warning is emitted only
2836# once. We break the quoting in m4_warning's argument in
2837# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2838
2839
6bb11ab3
L
2840# Finally, this is the expansion that is picked up by
2841# autoconf. It tells the user to run autoupdate, and
2842# then outputs the replacement expansion. We do not care
2843# about autoupdate's warning because that contains
2844# information on what to do *after* running autoupdate.
ef016f83
MF
2845
2846
2847
6bb11ab3
L
2848# _LT_TAG_COMPILER
2849# ----------------
2850# _LT_TAG_COMPILER
ef016f83
MF
2851
2852
6bb11ab3
L
2853# _LT_COMPILER_BOILERPLATE
2854# ------------------------
2855# Check for compiler boilerplate output or warnings with
2856# the simple compiler test code.
2857# _LT_COMPILER_BOILERPLATE
ef016f83 2858
ef016f83 2859
6bb11ab3
L
2860# _LT_LINKER_BOILERPLATE
2861# ----------------------
2862# Check for linker boilerplate output or warnings with
2863# the simple link test code.
2864# _LT_LINKER_BOILERPLATE
ef016f83 2865
6bb11ab3
L
2866# _LT_REQUIRED_DARWIN_CHECKS
2867# -------------------------
ef016f83 2868
ef016f83 2869
ef016f83 2870
6bb11ab3
L
2871# _LT_DARWIN_LINKER_FEATURES
2872# --------------------------
2873# Checks for linker and compiler features on darwin
ef016f83 2874
ef016f83 2875
6bb11ab3
L
2876# _LT_SYS_MODULE_PATH_AIX
2877# -----------------------
2878# Links a minimal program and checks the executable
2879# for the system default hardcoded library path. In most cases,
2880# this is /usr/lib:/lib, but when the MPI compilers are used
2881# the location of the communication and MPI libs are included too.
2882# If we don't find anything, use the default library path according
2883# to the aix ld manual.
2884# _LT_SYS_MODULE_PATH_AIX
ef016f83
MF
2885
2886
6bb11ab3
L
2887# _LT_SHELL_INIT(ARG)
2888# -------------------
2889# _LT_SHELL_INIT
ef016f83 2890
ef016f83
MF
2891
2892
6bb11ab3
L
2893# _LT_PROG_ECHO_BACKSLASH
2894# -----------------------
2895# Find how we can fake an echo command that does not interpret backslash.
2896# In particular, with Autoconf 2.60 or later we add some code to the start
2897# of the generated configure script which will find a shell with a builtin
2898# printf (which we can use as an echo command).
2899# _LT_PROG_ECHO_BACKSLASH
ef016f83 2900
ef016f83 2901
6bb11ab3
L
2902# _LT_ENABLE_LOCK
2903# ---------------
2904# _LT_ENABLE_LOCK
ef016f83 2905
ef016f83 2906
6bb11ab3
L
2907# _LT_CMD_OLD_ARCHIVE
2908# -------------------
2909# _LT_CMD_OLD_ARCHIVE
ef016f83
MF
2910
2911
6bb11ab3
L
2912# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2913# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2914# ----------------------------------------------------------------
2915# Check whether the given compiler option works
2916# _LT_COMPILER_OPTION
ef016f83 2917
6bb11ab3
L
2918# Old name:
2919# This is what autoupdate's m4 run will expand. It fires
2920# the warning (with _au_warn_XXX), outputs it into the
2921# updated configure.ac (with AC_DIAGNOSE), and then outputs
2922# the replacement expansion.
ef016f83 2923
ef016f83 2924
6bb11ab3
L
2925# This is an auxiliary macro that is also run when
2926# autoupdate runs m4. It simply calls m4_warning, but
2927# we need a wrapper so that each warning is emitted only
2928# once. We break the quoting in m4_warning's argument in
2929# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83 2930
ef016f83 2931
6bb11ab3
L
2932# Finally, this is the expansion that is picked up by
2933# autoconf. It tells the user to run autoupdate, and
2934# then outputs the replacement expansion. We do not care
2935# about autoupdate's warning because that contains
2936# information on what to do *after* running autoupdate.
ef016f83 2937
ef016f83 2938
ef016f83 2939
6bb11ab3
L
2940# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2941# [ACTION-SUCCESS], [ACTION-FAILURE])
2942# ----------------------------------------------------
2943# Check whether the given linker option works
2944# _LT_LINKER_OPTION
ef016f83 2945
6bb11ab3
L
2946# Old name:
2947# This is what autoupdate's m4 run will expand. It fires
2948# the warning (with _au_warn_XXX), outputs it into the
2949# updated configure.ac (with AC_DIAGNOSE), and then outputs
2950# the replacement expansion.
ef016f83 2951
ef016f83 2952
6bb11ab3
L
2953# This is an auxiliary macro that is also run when
2954# autoupdate runs m4. It simply calls m4_warning, but
2955# we need a wrapper so that each warning is emitted only
2956# once. We break the quoting in m4_warning's argument in
2957# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83 2958
ef016f83 2959
6bb11ab3
L
2960# Finally, this is the expansion that is picked up by
2961# autoconf. It tells the user to run autoupdate, and
2962# then outputs the replacement expansion. We do not care
2963# about autoupdate's warning because that contains
2964# information on what to do *after* running autoupdate.
ef016f83 2965
ef016f83 2966
ef016f83 2967
6bb11ab3
L
2968# LT_CMD_MAX_LEN
2969#---------------
2970# LT_CMD_MAX_LEN
ef016f83 2971
6bb11ab3
L
2972# Old name:
2973# This is what autoupdate's m4 run will expand. It fires
2974# the warning (with _au_warn_XXX), outputs it into the
2975# updated configure.ac (with AC_DIAGNOSE), and then outputs
2976# the replacement expansion.
ef016f83 2977
ef016f83 2978
6bb11ab3
L
2979# This is an auxiliary macro that is also run when
2980# autoupdate runs m4. It simply calls m4_warning, but
2981# we need a wrapper so that each warning is emitted only
2982# once. We break the quoting in m4_warning's argument in
2983# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83 2984
ef016f83 2985
6bb11ab3
L
2986# Finally, this is the expansion that is picked up by
2987# autoconf. It tells the user to run autoupdate, and
2988# then outputs the replacement expansion. We do not care
2989# about autoupdate's warning because that contains
2990# information on what to do *after* running autoupdate.
ef016f83 2991
ef016f83 2992
ef016f83 2993
6bb11ab3
L
2994# _LT_HEADER_DLFCN
2995# ----------------
2996# _LT_HEADER_DLFCN
ef016f83 2997
ef016f83 2998
6bb11ab3
L
2999# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3000# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3001# ----------------------------------------------------------------
3002# _LT_TRY_DLOPEN_SELF
ef016f83 3003
ef016f83 3004
6bb11ab3
L
3005# LT_SYS_DLOPEN_SELF
3006# ------------------
3007# LT_SYS_DLOPEN_SELF
ef016f83 3008
6bb11ab3
L
3009# Old name:
3010# This is what autoupdate's m4 run will expand. It fires
3011# the warning (with _au_warn_XXX), outputs it into the
3012# updated configure.ac (with AC_DIAGNOSE), and then outputs
3013# the replacement expansion.
ef016f83 3014
6bb11ab3
L
3015
3016# This is an auxiliary macro that is also run when
3017# autoupdate runs m4. It simply calls m4_warning, but
3018# we need a wrapper so that each warning is emitted only
3019# once. We break the quoting in m4_warning's argument in
3020# order to expand this macro's arguments, not AU_DEFUN's.
3021
3022
3023# Finally, this is the expansion that is picked up by
3024# autoconf. It tells the user to run autoupdate, and
3025# then outputs the replacement expansion. We do not care
3026# about autoupdate's warning because that contains
3027# information on what to do *after* running autoupdate.
3028
3029
3030
3031# _LT_COMPILER_C_O([TAGNAME])
3032# ---------------------------
3033# Check to see if options -c and -o are simultaneously supported by compiler.
3034# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3035# _LT_COMPILER_C_O
3036
3037
3038# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3039# ----------------------------------
3040# Check to see if we can do hard links to lock some files if needed
3041# _LT_COMPILER_FILE_LOCKS
3042
3043
3044# _LT_CHECK_OBJDIR
3045# ----------------
3046# _LT_CHECK_OBJDIR
3047
3048
3049# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3050# --------------------------------------
3051# Check hardcoding attributes.
3052# _LT_LINKER_HARDCODE_LIBPATH
3053
3054
3055# _LT_CMD_STRIPLIB
3056# ----------------
3057# _LT_CMD_STRIPLIB
3058
3059
3060# _LT_SYS_DYNAMIC_LINKER([TAG])
3061# -----------------------------
3062# PORTME Fill in your ld.so characteristics
3063# _LT_SYS_DYNAMIC_LINKER
3064
3065
3066# _LT_PATH_TOOL_PREFIX(TOOL)
3067# --------------------------
3068# find a file program which can recognize shared library
3069# _LT_PATH_TOOL_PREFIX
3070
3071# Old name:
3072# This is what autoupdate's m4 run will expand. It fires
3073# the warning (with _au_warn_XXX), outputs it into the
3074# updated configure.ac (with AC_DIAGNOSE), and then outputs
3075# the replacement expansion.
3076
3077
3078# This is an auxiliary macro that is also run when
3079# autoupdate runs m4. It simply calls m4_warning, but
3080# we need a wrapper so that each warning is emitted only
3081# once. We break the quoting in m4_warning's argument in
3082# order to expand this macro's arguments, not AU_DEFUN's.
3083
3084
3085# Finally, this is the expansion that is picked up by
3086# autoconf. It tells the user to run autoupdate, and
3087# then outputs the replacement expansion. We do not care
3088# about autoupdate's warning because that contains
3089# information on what to do *after* running autoupdate.
3090
3091
3092
3093# _LT_PATH_MAGIC
3094# --------------
3095# find a file program which can recognize a shared library
3096# _LT_PATH_MAGIC
3097
3098
3099# LT_PATH_LD
3100# ----------
3101# find the pathname to the GNU or non-GNU linker
3102# LT_PATH_LD
3103
3104# Old names:
3105# This is what autoupdate's m4 run will expand. It fires
3106# the warning (with _au_warn_XXX), outputs it into the
3107# updated configure.ac (with AC_DIAGNOSE), and then outputs
3108# the replacement expansion.
3109
3110
3111# This is an auxiliary macro that is also run when
3112# autoupdate runs m4. It simply calls m4_warning, but
3113# we need a wrapper so that each warning is emitted only
3114# once. We break the quoting in m4_warning's argument in
3115# order to expand this macro's arguments, not AU_DEFUN's.
3116
3117
3118# Finally, this is the expansion that is picked up by
3119# autoconf. It tells the user to run autoupdate, and
3120# then outputs the replacement expansion. We do not care
3121# about autoupdate's warning because that contains
3122# information on what to do *after* running autoupdate.
3123
3124# This is what autoupdate's m4 run will expand. It fires
3125# the warning (with _au_warn_XXX), outputs it into the
3126# updated configure.ac (with AC_DIAGNOSE), and then outputs
3127# the replacement expansion.
3128
3129
3130# This is an auxiliary macro that is also run when
3131# autoupdate runs m4. It simply calls m4_warning, but
3132# we need a wrapper so that each warning is emitted only
3133# once. We break the quoting in m4_warning's argument in
3134# order to expand this macro's arguments, not AU_DEFUN's.
3135
3136
3137# Finally, this is the expansion that is picked up by
3138# autoconf. It tells the user to run autoupdate, and
3139# then outputs the replacement expansion. We do not care
3140# about autoupdate's warning because that contains
3141# information on what to do *after* running autoupdate.
3142
3143
3144
3145# _LT_PATH_LD_GNU
3146#- --------------
3147# _LT_PATH_LD_GNU
3148
3149
3150# _LT_CMD_RELOAD
3151# --------------
3152# find reload flag for linker
3153# -- PORTME Some linkers may need a different reload flag.
3154# _LT_CMD_RELOAD
3155
3156
3157# _LT_CHECK_MAGIC_METHOD
3158# ----------------------
3159# how to check for library dependencies
3160# -- PORTME fill in with the dynamic library characteristics
3161# _LT_CHECK_MAGIC_METHOD
3162
3163
3164# LT_PATH_NM
3165# ----------
3166# find the pathname to a BSD- or MS-compatible name lister
3167# LT_PATH_NM
3168
3169# Old names:
3170# This is what autoupdate's m4 run will expand. It fires
3171# the warning (with _au_warn_XXX), outputs it into the
3172# updated configure.ac (with AC_DIAGNOSE), and then outputs
3173# the replacement expansion.
3174
3175
3176# This is an auxiliary macro that is also run when
3177# autoupdate runs m4. It simply calls m4_warning, but
3178# we need a wrapper so that each warning is emitted only
3179# once. We break the quoting in m4_warning's argument in
3180# order to expand this macro's arguments, not AU_DEFUN's.
3181
3182
3183# Finally, this is the expansion that is picked up by
3184# autoconf. It tells the user to run autoupdate, and
3185# then outputs the replacement expansion. We do not care
3186# about autoupdate's warning because that contains
3187# information on what to do *after* running autoupdate.
3188
3189# This is what autoupdate's m4 run will expand. It fires
3190# the warning (with _au_warn_XXX), outputs it into the
3191# updated configure.ac (with AC_DIAGNOSE), and then outputs
3192# the replacement expansion.
3193
3194
3195# This is an auxiliary macro that is also run when
3196# autoupdate runs m4. It simply calls m4_warning, but
3197# we need a wrapper so that each warning is emitted only
3198# once. We break the quoting in m4_warning's argument in
3199# order to expand this macro's arguments, not AU_DEFUN's.
3200
3201
3202# Finally, this is the expansion that is picked up by
3203# autoconf. It tells the user to run autoupdate, and
3204# then outputs the replacement expansion. We do not care
3205# about autoupdate's warning because that contains
3206# information on what to do *after* running autoupdate.
3207
3208
3209
3210# LT_LIB_M
3211# --------
3212# check for math library
3213# LT_LIB_M
3214
3215# Old name:
3216# This is what autoupdate's m4 run will expand. It fires
3217# the warning (with _au_warn_XXX), outputs it into the
3218# updated configure.ac (with AC_DIAGNOSE), and then outputs
3219# the replacement expansion.
3220
3221
3222# This is an auxiliary macro that is also run when
3223# autoupdate runs m4. It simply calls m4_warning, but
3224# we need a wrapper so that each warning is emitted only
3225# once. We break the quoting in m4_warning's argument in
3226# order to expand this macro's arguments, not AU_DEFUN's.
3227
3228
3229# Finally, this is the expansion that is picked up by
3230# autoconf. It tells the user to run autoupdate, and
3231# then outputs the replacement expansion. We do not care
3232# about autoupdate's warning because that contains
3233# information on what to do *after* running autoupdate.
3234
3235
3236
3237# _LT_COMPILER_NO_RTTI([TAGNAME])
3238# -------------------------------
3239# _LT_COMPILER_NO_RTTI
3240
3241
3242# _LT_CMD_GLOBAL_SYMBOLS
3243# ----------------------
3244 # _LT_CMD_GLOBAL_SYMBOLS
3245
3246
3247# _LT_COMPILER_PIC([TAGNAME])
3248# ---------------------------
3249# _LT_COMPILER_PIC
3250
3251
3252# _LT_LINKER_SHLIBS([TAGNAME])
3253# ----------------------------
3254# See if the linker supports building shared libraries.
3255# _LT_LINKER_SHLIBS
3256
3257
3258# _LT_LANG_C_CONFIG([TAG])
3259# ------------------------
3260# Ensure that the configuration variables for a C compiler are suitably
3261# defined. These variables are subsequently used by _LT_CONFIG to write
3262# the compiler configuration to `libtool'.
3263# _LT_LANG_C_CONFIG
3264
3265
3266# _LT_LANG_CXX_CONFIG([TAG])
3267# --------------------------
3268# Ensure that the configuration variables for a C++ compiler are suitably
3269# defined. These variables are subsequently used by _LT_CONFIG to write
3270# the compiler configuration to `libtool'.
3271# _LT_LANG_CXX_CONFIG
3272
3273
3274# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3275# ---------------------------------
3276# Figure out "hidden" library dependencies from verbose
3277# compiler output when linking a shared library.
3278# Parse the compiler output and extract the necessary
3279# objects, libraries and library flags.
3280# _LT_SYS_HIDDEN_LIBDEPS
3281
3282
3283# _LT_LANG_F77_CONFIG([TAG])
3284# --------------------------
3285# Ensure that the configuration variables for a Fortran 77 compiler are
3286# suitably defined. These variables are subsequently used by _LT_CONFIG
3287# to write the compiler configuration to `libtool'.
3288# _LT_LANG_F77_CONFIG
3289
3290
3291# _LT_LANG_FC_CONFIG([TAG])
3292# -------------------------
3293# Ensure that the configuration variables for a Fortran compiler are
3294# suitably defined. These variables are subsequently used by _LT_CONFIG
3295# to write the compiler configuration to `libtool'.
3296# _LT_LANG_FC_CONFIG
3297
3298
3299# _LT_LANG_GCJ_CONFIG([TAG])
3300# --------------------------
3301# Ensure that the configuration variables for the GNU Java Compiler compiler
3302# are suitably defined. These variables are subsequently used by _LT_CONFIG
3303# to write the compiler configuration to `libtool'.
3304# _LT_LANG_GCJ_CONFIG
3305
3306
3307# _LT_LANG_RC_CONFIG([TAG])
3308# -------------------------
3309# Ensure that the configuration variables for the Windows resource compiler
3310# are suitably defined. These variables are subsequently used by _LT_CONFIG
3311# to write the compiler configuration to `libtool'.
3312# _LT_LANG_RC_CONFIG
3313
3314
3315# LT_PROG_GCJ
3316# -----------
3317
3318
3319# Old name:
3320# This is what autoupdate's m4 run will expand. It fires
3321# the warning (with _au_warn_XXX), outputs it into the
3322# updated configure.ac (with AC_DIAGNOSE), and then outputs
3323# the replacement expansion.
3324
3325
3326# This is an auxiliary macro that is also run when
3327# autoupdate runs m4. It simply calls m4_warning, but
3328# we need a wrapper so that each warning is emitted only
3329# once. We break the quoting in m4_warning's argument in
3330# order to expand this macro's arguments, not AU_DEFUN's.
3331
3332
3333# Finally, this is the expansion that is picked up by
3334# autoconf. It tells the user to run autoupdate, and
3335# then outputs the replacement expansion. We do not care
3336# about autoupdate's warning because that contains
3337# information on what to do *after* running autoupdate.
3338
3339
3340
3341# LT_PROG_RC
3342# ----------
3343
3344
3345# Old name:
3346# This is what autoupdate's m4 run will expand. It fires
3347# the warning (with _au_warn_XXX), outputs it into the
3348# updated configure.ac (with AC_DIAGNOSE), and then outputs
3349# the replacement expansion.
3350
3351
3352# This is an auxiliary macro that is also run when
3353# autoupdate runs m4. It simply calls m4_warning, but
3354# we need a wrapper so that each warning is emitted only
3355# once. We break the quoting in m4_warning's argument in
3356# order to expand this macro's arguments, not AU_DEFUN's.
3357
3358
3359# Finally, this is the expansion that is picked up by
3360# autoconf. It tells the user to run autoupdate, and
3361# then outputs the replacement expansion. We do not care
3362# about autoupdate's warning because that contains
3363# information on what to do *after* running autoupdate.
3364
3365
3366
3367# _LT_DECL_EGREP
3368# --------------
3369# If we don't have a new enough Autoconf to choose the best grep
3370# available, choose the one first in the user's PATH.
3371
3372
3373
3374# _LT_DECL_OBJDUMP
3375# --------------
3376# If we don't have a new enough Autoconf to choose the best objdump
3377# available, choose the one first in the user's PATH.
3378
3379
3380
3381# _LT_DECL_SED
3382# ------------
3383# Check for a fully-functional sed program, that truncates
3384# as few characters as possible. Prefer GNU sed if found.
3385# _LT_DECL_SED
3386
3387#m4_ifndef
3388
3389# Old name:
3390# This is what autoupdate's m4 run will expand. It fires
3391# the warning (with _au_warn_XXX), outputs it into the
3392# updated configure.ac (with AC_DIAGNOSE), and then outputs
3393# the replacement expansion.
3394
3395
3396# This is an auxiliary macro that is also run when
3397# autoupdate runs m4. It simply calls m4_warning, but
3398# we need a wrapper so that each warning is emitted only
3399# once. We break the quoting in m4_warning's argument in
3400# order to expand this macro's arguments, not AU_DEFUN's.
3401
3402
3403# Finally, this is the expansion that is picked up by
3404# autoconf. It tells the user to run autoupdate, and
3405# then outputs the replacement expansion. We do not care
3406# about autoupdate's warning because that contains
3407# information on what to do *after* running autoupdate.
3408
3409
3410
3411# _LT_CHECK_SHELL_FEATURES
3412# ------------------------
3413# Find out whether the shell is Bourne or XSI compatible,
3414# or has some other useful features.
3415# _LT_CHECK_SHELL_FEATURES
3416
3417
3418# _LT_PROG_XSI_SHELLFNS
3419# ---------------------
3420# Bourne and XSI compatible variants of some useful shell functions.
3421
3422
3423# Helper functions for option handling. -*- Autoconf -*-
3424#
3425# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3426# Inc.
3427# Written by Gary V. Vaughan, 2004
3428#
3429# This file is free software; the Free Software Foundation gives
3430# unlimited permission to copy and/or distribute it, with or without
3431# modifications, as long as this notice is preserved.
3432
3433# serial 6 ltoptions.m4
3434
3435# This is to help aclocal find these macros, as it can't see m4_define.
3436
3437
3438
3439# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3440# ------------------------------------------
3441
3442
3443
3444# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3445# ---------------------------------------
3446# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3447# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3448# saved as a flag.
3449
3450
3451
3452# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3453# ------------------------------------------------------------
3454# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3455
3456
3457
3458# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3459# -------------------------------------------------------
3460# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3461# are set.
3462
3463
3464
3465# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3466# ----------------------------------------
3467# OPTION-LIST is a space-separated list of Libtool options associated
3468# with MACRO-NAME. If any OPTION has a matching handler declared with
3469# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3470# the unknown option and exit.
3471# _LT_SET_OPTIONS
3472
3473
3474## --------------------------------- ##
3475## Macros to handle LT_INIT options. ##
3476## --------------------------------- ##
3477
3478# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3479# -----------------------------------------
3480
3481
3482
3483# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3484# -----------------------------------------------
3485# LT_OPTION_DEFINE
3486
3487
3488# dlopen
3489# ------
3490
3491
3492# This is what autoupdate's m4 run will expand. It fires
3493# the warning (with _au_warn_XXX), outputs it into the
3494# updated configure.ac (with AC_DIAGNOSE), and then outputs
3495# the replacement expansion.
3496
3497
3498# This is an auxiliary macro that is also run when
3499# autoupdate runs m4. It simply calls m4_warning, but
3500# we need a wrapper so that each warning is emitted only
3501# once. We break the quoting in m4_warning's argument in
3502# order to expand this macro's arguments, not AU_DEFUN's.
3503
3504
3505# Finally, this is the expansion that is picked up by
3506# autoconf. It tells the user to run autoupdate, and
3507# then outputs the replacement expansion. We do not care
3508# about autoupdate's warning because that contains
3509# information on what to do *after* running autoupdate.
3510
3511
3512
3513
3514# win32-dll
3515# ---------
3516# Declare package support for building win32 dll's.
3517# win32-dll
3518
3519# This is what autoupdate's m4 run will expand. It fires
3520# the warning (with _au_warn_XXX), outputs it into the
3521# updated configure.ac (with AC_DIAGNOSE), and then outputs
3522# the replacement expansion.
3523
3524
3525# This is an auxiliary macro that is also run when
3526# autoupdate runs m4. It simply calls m4_warning, but
3527# we need a wrapper so that each warning is emitted only
3528# once. We break the quoting in m4_warning's argument in
3529# order to expand this macro's arguments, not AU_DEFUN's.
3530
3531
3532# Finally, this is the expansion that is picked up by
3533# autoconf. It tells the user to run autoupdate, and
3534# then outputs the replacement expansion. We do not care
3535# about autoupdate's warning because that contains
3536# information on what to do *after* running autoupdate.
3537
3538
3539
3540
3541# _LT_ENABLE_SHARED([DEFAULT])
3542# ----------------------------
3543# implement the --enable-shared flag, and supports the `shared' and
3544# `disable-shared' LT_INIT options.
3545# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3546# _LT_ENABLE_SHARED
3547
3548
3549
3550
3551# Old names:
3552
3553
3554
3555
3556# This is what autoupdate's m4 run will expand. It fires
3557# the warning (with _au_warn_XXX), outputs it into the
3558# updated configure.ac (with AC_DIAGNOSE), and then outputs
3559# the replacement expansion.
3560
3561
3562# This is an auxiliary macro that is also run when
3563# autoupdate runs m4. It simply calls m4_warning, but
3564# we need a wrapper so that each warning is emitted only
3565# once. We break the quoting in m4_warning's argument in
3566# order to expand this macro's arguments, not AU_DEFUN's.
3567
3568
3569# Finally, this is the expansion that is picked up by
3570# autoconf. It tells the user to run autoupdate, and
3571# then outputs the replacement expansion. We do not care
3572# about autoupdate's warning because that contains
3573# information on what to do *after* running autoupdate.
3574
3575# This is what autoupdate's m4 run will expand. It fires
3576# the warning (with _au_warn_XXX), outputs it into the
3577# updated configure.ac (with AC_DIAGNOSE), and then outputs
3578# the replacement expansion.
3579
3580
3581# This is an auxiliary macro that is also run when
3582# autoupdate runs m4. It simply calls m4_warning, but
3583# we need a wrapper so that each warning is emitted only
3584# once. We break the quoting in m4_warning's argument in
3585# order to expand this macro's arguments, not AU_DEFUN's.
3586
3587
3588# Finally, this is the expansion that is picked up by
3589# autoconf. It tells the user to run autoupdate, and
3590# then outputs the replacement expansion. We do not care
3591# about autoupdate's warning because that contains
3592# information on what to do *after* running autoupdate.
3593
3594
3595
3596
3597
3598# _LT_ENABLE_STATIC([DEFAULT])
3599# ----------------------------
3600# implement the --enable-static flag, and support the `static' and
3601# `disable-static' LT_INIT options.
3602# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3603# _LT_ENABLE_STATIC
3604
3605
3606
3607
3608# Old names:
3609
3610
3611
3612
3613# This is what autoupdate's m4 run will expand. It fires
3614# the warning (with _au_warn_XXX), outputs it into the
3615# updated configure.ac (with AC_DIAGNOSE), and then outputs
3616# the replacement expansion.
3617
3618
3619# This is an auxiliary macro that is also run when
3620# autoupdate runs m4. It simply calls m4_warning, but
3621# we need a wrapper so that each warning is emitted only
3622# once. We break the quoting in m4_warning's argument in
3623# order to expand this macro's arguments, not AU_DEFUN's.
3624
3625
3626# Finally, this is the expansion that is picked up by
3627# autoconf. It tells the user to run autoupdate, and
3628# then outputs the replacement expansion. We do not care
3629# about autoupdate's warning because that contains
3630# information on what to do *after* running autoupdate.
3631
3632# This is what autoupdate's m4 run will expand. It fires
3633# the warning (with _au_warn_XXX), outputs it into the
3634# updated configure.ac (with AC_DIAGNOSE), and then outputs
3635# the replacement expansion.
3636
3637
3638# This is an auxiliary macro that is also run when
3639# autoupdate runs m4. It simply calls m4_warning, but
3640# we need a wrapper so that each warning is emitted only
3641# once. We break the quoting in m4_warning's argument in
3642# order to expand this macro's arguments, not AU_DEFUN's.
3643
3644
3645# Finally, this is the expansion that is picked up by
3646# autoconf. It tells the user to run autoupdate, and
3647# then outputs the replacement expansion. We do not care
3648# about autoupdate's warning because that contains
3649# information on what to do *after* running autoupdate.
3650
3651
3652
3653
3654
3655# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3656# ----------------------------------
3657# implement the --enable-fast-install flag, and support the `fast-install'
3658# and `disable-fast-install' LT_INIT options.
3659# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3660# _LT_ENABLE_FAST_INSTALL
3661
3662
3663
3664
3665# Old names:
3666# This is what autoupdate's m4 run will expand. It fires
3667# the warning (with _au_warn_XXX), outputs it into the
3668# updated configure.ac (with AC_DIAGNOSE), and then outputs
3669# the replacement expansion.
3670
3671
3672# This is an auxiliary macro that is also run when
3673# autoupdate runs m4. It simply calls m4_warning, but
3674# we need a wrapper so that each warning is emitted only
3675# once. We break the quoting in m4_warning's argument in
3676# order to expand this macro's arguments, not AU_DEFUN's.
3677
3678
3679# Finally, this is the expansion that is picked up by
3680# autoconf. It tells the user to run autoupdate, and
3681# then outputs the replacement expansion. We do not care
3682# about autoupdate's warning because that contains
3683# information on what to do *after* running autoupdate.
3684
3685
3686# This is what autoupdate's m4 run will expand. It fires
3687# the warning (with _au_warn_XXX), outputs it into the
3688# updated configure.ac (with AC_DIAGNOSE), and then outputs
3689# the replacement expansion.
3690
3691
3692# This is an auxiliary macro that is also run when
3693# autoupdate runs m4. It simply calls m4_warning, but
3694# we need a wrapper so that each warning is emitted only
3695# once. We break the quoting in m4_warning's argument in
3696# order to expand this macro's arguments, not AU_DEFUN's.
3697
3698
3699# Finally, this is the expansion that is picked up by
3700# autoconf. It tells the user to run autoupdate, and
3701# then outputs the replacement expansion. We do not care
3702# about autoupdate's warning because that contains
3703# information on what to do *after* running autoupdate.
3704
3705
3706
3707
3708# _LT_WITH_PIC([MODE])
3709# --------------------
3710# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3711# LT_INIT options.
3712# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3713# _LT_WITH_PIC
3714
3715
3716
3717
3718# Old name:
3719# This is what autoupdate's m4 run will expand. It fires
3720# the warning (with _au_warn_XXX), outputs it into the
3721# updated configure.ac (with AC_DIAGNOSE), and then outputs
3722# the replacement expansion.
3723
3724
3725# This is an auxiliary macro that is also run when
3726# autoupdate runs m4. It simply calls m4_warning, but
3727# we need a wrapper so that each warning is emitted only
3728# once. We break the quoting in m4_warning's argument in
3729# order to expand this macro's arguments, not AU_DEFUN's.
3730
3731
3732# Finally, this is the expansion that is picked up by
3733# autoconf. It tells the user to run autoupdate, and
3734# then outputs the replacement expansion. We do not care
3735# about autoupdate's warning because that contains
3736# information on what to do *after* running autoupdate.
3737
3738
3739
3740## ----------------- ##
3741## LTDL_INIT Options ##
3742## ----------------- ##
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3754#
3755# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3756# Written by Gary V. Vaughan, 2004
3757#
3758# This file is free software; the Free Software Foundation gives
3759# unlimited permission to copy and/or distribute it, with or without
3760# modifications, as long as this notice is preserved.
3761
3762# serial 6 ltsugar.m4
3763
3764# This is to help aclocal find these macros, as it can't see m4_define.
3765
3766
3767
3768# lt_join(SEP, ARG1, [ARG2...])
3769# -----------------------------
3770# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3771# associated separator.
3772# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3773# versions in m4sugar had bugs.
3774
3775
3776
3777
3778# lt_car(LIST)
3779# lt_cdr(LIST)
3780# ------------
3781# Manipulate m4 lists.
3782# These macros are necessary as long as will still need to support
3783# Autoconf-2.59 which quotes differently.
3784
3785
3786
3787
3788
3789# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3790# ------------------------------------------
3791# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3792# Note that neither SEPARATOR nor STRING are expanded; they are appended
3793# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3794# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3795# than defined and empty).
3796#
3797# This macro is needed until we can rely on Autoconf 2.62, since earlier
3798# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3799
3800
3801
3802
3803# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3804# ----------------------------------------------------------
3805# Produce a SEP delimited list of all paired combinations of elements of
3806# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3807# has the form PREFIXmINFIXSUFFIXn.
3808# Needed until we can rely on m4_combine added in Autoconf 2.62.
3809
3810
3811
3812# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3813# -----------------------------------------------------------------------
3814# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3815# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3816
3817
3818
3819# lt_dict_add(DICT, KEY, VALUE)
3820# -----------------------------
3821
3822
3823
3824# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3825# --------------------------------------------
3826
3827
3828
3829# lt_dict_fetch(DICT, KEY, [SUBKEY])
3830# ----------------------------------
3831
3832
3833
3834# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3835# -----------------------------------------------------------------
3836
3837
3838
3839# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3840# --------------------------------------------------------------
3841
3842
3843# ltversion.m4 -- version numbers -*- Autoconf -*-
3844#
3845# Copyright (C) 2004 Free Software Foundation, Inc.
3846# Written by Scott James Remnant, 2004
3847#
3848# This file is free software; the Free Software Foundation gives
3849# unlimited permission to copy and/or distribute it, with or without
3850# modifications, as long as this notice is preserved.
3851
3852# Generated from ltversion.in.
3853
3854# serial 3134 ltversion.m4
3855# This file is part of GNU Libtool
3856
3857
3858
3859
3860
3861
3862# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3863#
3864# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3865# Written by Scott James Remnant, 2004.
3866#
3867# This file is free software; the Free Software Foundation gives
3868# unlimited permission to copy and/or distribute it, with or without
3869# modifications, as long as this notice is preserved.
3870
3871# serial 4 lt~obsolete.m4
3872
3873# These exist entirely to fool aclocal when bootstrapping libtool.
3874#
3875# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3876# which have later been changed to m4_define as they aren't part of the
3877# exported API, or moved to Autoconf or Automake where they belong.
3878#
3879# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3880# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3881# using a macro with the same name in our local m4/libtool.m4 it'll
3882# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3883# and doesn't know about Autoconf macros at all.)
3884#
3885# So we provide this file, which has a silly filename so it's always
3886# included after everything else. This provides aclocal with the
3887# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3888# because those macros already exist, or will be overwritten later.
3889# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3890#
3891# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3892# Yes, that means every name once taken will need to remain here until
3893# we give up compatibility with versions before 1.7, at which point
3894# we need to keep only those names which we still refer to.
3895
3896# This is to help aclocal find these macros, as it can't see m4_define.
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961## -*- Autoconf -*-
3962
3963# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3964# Free Software Foundation, Inc.
3965#
3966# This file is free software; the Free Software Foundation
3967# gives unlimited permission to copy and/or distribute it,
3968# with or without modifications, as long as this notice is preserved.
3969
3970# serial 8
3971
3972# Based on depend.m4 from automake 1.9, modified for standalone use in
3973# an environment where GNU make is required.
3974
3975# ZW_PROG_COMPILER_DEPENDENCIES
3976# -----------------------------
3977# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3978# sets fooDEPMODE accordingly. Cache-variable compatible with
3979# original; not side-effect compatible. As the users of this macro
3980# may require accurate dependencies for correct builds, it does *not*
3981# honor --disable-dependency-checking, and failure to detect a usable
3982# method is an error. depcomp is assumed to be located in
3983# $ac_aux_dir.
3984#
3985# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3986
3987
3988
3989# AM_SET_DEPDIR
3990# -------------
3991# Choose a directory name for dependency files.
3992
3993
3994# ZW_CREATE_DEPDIR
3995# ----------------
3996# As AM_SET_DEPDIR, but also create the directory at config.status time.
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
6bb11ab3
L
4038
4039
4040
4041
4042
4043sim_inline="-DDEFAULT_INLINE=0"
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080# intl sister-directory configuration rules.
4081#
4082
4083# The idea behind this macro is that there's no need to repeat all the
4084# autoconf probes done by the intl directory - it's already done them
4085# for us. In fact, there's no need even to look at the cache for the
4086# answers. All we need to do is nab a few pieces of information.
4087# The intl directory is set up to make this easy, by generating a
4088# small file which can be sourced as a shell script; then we produce
4089# the necessary substitutions and definitions for this directory.
4090
4091
4092
4093# Autoconf M4 include file defining utility macros for complex Canadian
4094# cross builds.
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104####
4105# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4106# or AC_INIT.
4107# These demand that AC_CANONICAL_SYSTEM be called beforehand.
4108
4109####
4110# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4111# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4112
4113
4114####
4115# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4116# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4117
4118
4119
4120# Backported from Autoconf 2.5x; can go away when and if
4121# we switch. Put the OS path separator in $PATH_SEPARATOR.
4122
4123
4124
4125
4126# ACX_HAVE_GCC_FOR_TARGET
4127# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4128
4129
4130# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4131# Searching for installed target binutils. We need to take extra care,
4132# else we may find the wrong assembler, linker, etc., and lose.
4133#
4134# First try --with-build-time-tools, if specified.
4135#
4136# For build != host, we ask the installed GCC for the name of the tool it
4137# uses, and accept it if it is an absolute path. This is because the
4138# only good choice for a compiler is the same GCC version that is being
4139# installed (or we couldn't make target libraries), and we assume that
4140# on the host system we'll have not only the same GCC version, but also
4141# the same binutils version.
4142#
4143# For build == host, search the same directories that the installed
4144# compiler will search. We used to do this for the assembler, linker,
4145# and nm only; for simplicity of configuration, however, we extend this
4146# criterion to tools (such as ar and ranlib) that are never invoked by
4147# the compiler, to avoid mismatches.
4148#
4149# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4150# if build == target. This makes the most sense only when bootstrapping,
4151# but we also do so when build != host. In this case, we hope that the
4152# build and host systems will have similar contents of MD_EXEC_PREFIX.
4153#
4154# If we do not find a suitable binary, then try the user's path.
4155
4156
4157###
4158# AC_PROG_CPP_WERROR
4159# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4160# triggers warnings from the preprocessor. Will be in autoconf 2.58.
4161# For now, using this also overrides header checks to use only the
4162# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4163# bit harder from here).
4164# Eventually autoconf will default to checking headers with the compiler
4165# instead, and we'll have to do this differently.
4166
4167# AC_PROG_CPP_WERROR
4168
4169# Test for GNAT.
4170# We require the gnatbind & gnatmake programs, as well as a compiler driver
4171# that understands Ada. We use the user's CC setting, already found, and
4172# possibly add $1 to the command-line parameters.
4173#
4174# Sets the shell variable have_gnat to yes or no as appropriate, and
4175# substitutes GNATBIND and GNATMAKE.
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201ac_ext=c
4202ac_cpp='$CPP $CPPFLAGS'
4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206if test -n "$ac_tool_prefix"; then
4207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4208set dummy ${ac_tool_prefix}gcc; ac_word=$2
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210$as_echo_n "checking for $ac_word... " >&6; }
4211if test "${ac_cv_prog_CC+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4213else
4214 if test -n "$CC"; then
4215 ac_cv_prog_CC="$CC" # Let the user override the test.
4216else
4217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH
4219do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4227 fi
4228done
4229 done
4230IFS=$as_save_IFS
4231
4232fi
4233fi
4234CC=$ac_cv_prog_CC
4235if test -n "$CC"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4237$as_echo "$CC" >&6; }
4238else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240$as_echo "no" >&6; }
4241fi
4242
4243
4244fi
4245if test -z "$ac_cv_prog_CC"; then
4246 ac_ct_CC=$CC
4247 # Extract the first word of "gcc", so it can be a program name with args.
4248set dummy gcc; ac_word=$2
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250$as_echo_n "checking for $ac_word... " >&6; }
4251if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4253else
4254 if test -n "$ac_ct_CC"; then
4255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4256else
4257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH
4259do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_prog_ac_ct_CC="gcc"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268done
4269 done
4270IFS=$as_save_IFS
4271
4272fi
4273fi
4274ac_ct_CC=$ac_cv_prog_ac_ct_CC
4275if test -n "$ac_ct_CC"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4277$as_echo "$ac_ct_CC" >&6; }
4278else
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280$as_echo "no" >&6; }
4281fi
4282
4283 if test "x$ac_ct_CC" = x; then
4284 CC=""
4285 else
4286 case $cross_compiling:$ac_tool_warned in
4287yes:)
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290ac_tool_warned=yes ;;
4291esac
4292 CC=$ac_ct_CC
4293 fi
4294else
4295 CC="$ac_cv_prog_CC"
4296fi
4297
4298if test -z "$CC"; then
4299 if test -n "$ac_tool_prefix"; then
4300 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4301set dummy ${ac_tool_prefix}cc; ac_word=$2
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303$as_echo_n "checking for $ac_word... " >&6; }
4304if test "${ac_cv_prog_CC+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4306else
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_CC="${ac_tool_prefix}cc"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4320 fi
4321done
4322 done
4323IFS=$as_save_IFS
4324
4325fi
4326fi
4327CC=$ac_cv_prog_CC
4328if test -n "$CC"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4330$as_echo "$CC" >&6; }
4331else
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333$as_echo "no" >&6; }
4334fi
4335
4336
4337 fi
4338fi
4339if test -z "$CC"; then
4340 # Extract the first word of "cc", so it can be a program name with args.
4341set dummy cc; ac_word=$2
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343$as_echo_n "checking for $ac_word... " >&6; }
4344if test "${ac_cv_prog_CC+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346else
4347 if test -n "$CC"; then
4348 ac_cv_prog_CC="$CC" # Let the user override the test.
4349else
4350 ac_prog_rejected=no
4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH
4353do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4359 ac_prog_rejected=yes
4360 continue
4361 fi
4362 ac_cv_prog_CC="cc"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366done
4367 done
4368IFS=$as_save_IFS
4369
4370if test $ac_prog_rejected = yes; then
4371 # We found a bogon in the path, so make sure we never use it.
4372 set dummy $ac_cv_prog_CC
4373 shift
4374 if test $# != 0; then
4375 # We chose a different compiler from the bogus one.
4376 # However, it has the same basename, so the bogon will be chosen
4377 # first if we set CC to just the basename; use the full file name.
4378 shift
4379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4380 fi
4381fi
4382fi
4383fi
4384CC=$ac_cv_prog_CC
4385if test -n "$CC"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4387$as_echo "$CC" >&6; }
4388else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390$as_echo "no" >&6; }
4391fi
4392
4393
4394fi
4395if test -z "$CC"; then
4396 if test -n "$ac_tool_prefix"; then
4397 for ac_prog in cl.exe
4398 do
4399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402$as_echo_n "checking for $ac_word... " >&6; }
4403if test "${ac_cv_prog_CC+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4405else
4406 if test -n "$CC"; then
4407 ac_cv_prog_CC="$CC" # Let the user override the test.
4408else
4409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH
4411do
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 break 2
4419 fi
4420done
4421 done
4422IFS=$as_save_IFS
4423
4424fi
4425fi
4426CC=$ac_cv_prog_CC
4427if test -n "$CC"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4429$as_echo "$CC" >&6; }
4430else
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432$as_echo "no" >&6; }
4433fi
4434
4435
4436 test -n "$CC" && break
4437 done
4438fi
4439if test -z "$CC"; then
4440 ac_ct_CC=$CC
4441 for ac_prog in cl.exe
4442do
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444set dummy $ac_prog; ac_word=$2
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446$as_echo_n "checking for $ac_word... " >&6; }
4447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449else
4450 if test -n "$ac_ct_CC"; then
4451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4452else
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_prog_ac_ct_CC="$ac_prog"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4463 fi
4464done
4465 done
4466IFS=$as_save_IFS
4467
4468fi
4469fi
4470ac_ct_CC=$ac_cv_prog_ac_ct_CC
4471if test -n "$ac_ct_CC"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4473$as_echo "$ac_ct_CC" >&6; }
4474else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476$as_echo "no" >&6; }
4477fi
4478
4479
4480 test -n "$ac_ct_CC" && break
4481done
4482
4483 if test "x$ac_ct_CC" = x; then
4484 CC=""
4485 else
4486 case $cross_compiling:$ac_tool_warned in
4487yes:)
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4490ac_tool_warned=yes ;;
4491esac
4492 CC=$ac_ct_CC
4493 fi
4494fi
4495
4496fi
4497
4498
4499test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4501as_fn_error "no acceptable C compiler found in \$PATH
4502See \`config.log' for more details." "$LINENO" 5; }
4503
4504# Provide some information about the compiler.
4505$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4506set X $ac_compile
4507ac_compiler=$2
4508for ac_option in --version -v -V -qversion; do
4509 { { ac_try="$ac_compiler $ac_option >&5"
4510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
4514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515$as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4517 ac_status=$?
4518 if test -s conftest.err; then
4519 sed '10a\
4520... rest of stderr output deleted ...
4521 10q' conftest.err >conftest.er1
4522 cat conftest.er1 >&5
4523 rm -f conftest.er1 conftest.err
4524 fi
4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; }
4527done
4528
4529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h. */
4531
4532int
4533main ()
4534{
4535
4536 ;
4537 return 0;
4538}
4539_ACEOF
4540ac_clean_files_save=$ac_clean_files
4541ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4542# Try to create an executable without -o first, disregard a.out.
4543# It will help us diagnose broken compilers, and finding out an intuition
4544# of exeext.
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4546$as_echo_n "checking for C compiler default output file name... " >&6; }
4547ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4548
4549# The possible output files:
4550ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4551
4552ac_rmfiles=
4553for ac_file in $ac_files
4554do
4555 case $ac_file in
4556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4557 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4558 esac
4559done
4560rm -f $ac_rmfiles
4561
4562if { { ac_try="$ac_link_default"
4563case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566esac
4567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4568$as_echo "$ac_try_echo"; } >&5
4569 (eval "$ac_link_default") 2>&5
4570 ac_status=$?
4571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4572 test $ac_status = 0; }; then :
4573 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4574# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4575# in a Makefile. We should not override ac_cv_exeext if it was cached,
4576# so that the user can short-circuit this test for compilers unknown to
4577# Autoconf.
4578for ac_file in $ac_files ''
4579do
4580 test -f "$ac_file" || continue
4581 case $ac_file in
4582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4583 ;;
4584 [ab].out )
4585 # We found the default executable, but exeext='' is most
4586 # certainly right.
4587 break;;
4588 *.* )
4589 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4590 then :; else
4591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4592 fi
4593 # We set ac_cv_exeext here because the later test for it is not
4594 # safe: cross compilers may not add the suffix if given an `-o'
4595 # argument, so we may need to know it at that point already.
4596 # Even if this section looks crufty: it has the advantage of
4597 # actually working.
4598 break;;
4599 * )
4600 break;;
4601 esac
4602done
4603test "$ac_cv_exeext" = no && ac_cv_exeext=
4604
4605else
4606 ac_file=''
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4609$as_echo "$ac_file" >&6; }
4610if test -z "$ac_file"; then :
4611 $as_echo "$as_me: failed program was:" >&5
4612sed 's/^/| /' conftest.$ac_ext >&5
4613
4614{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4616{ as_fn_set_status 77
4617as_fn_error "C compiler cannot create executables
4618See \`config.log' for more details." "$LINENO" 5; }; }
4619fi
4620ac_exeext=$ac_cv_exeext
4621
4622# Check that the compiler produces executables we can run. If not, either
4623# the compiler is broken, or we cross compile.
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4625$as_echo_n "checking whether the C compiler works... " >&6; }
4626# If not cross compiling, check that we can run a simple program.
4627if test "$cross_compiling" != yes; then
4628 if { ac_try='./$ac_file'
4629 { { case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632esac
4633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4634$as_echo "$ac_try_echo"; } >&5
4635 (eval "$ac_try") 2>&5
4636 ac_status=$?
4637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4638 test $ac_status = 0; }; }; then
4639 cross_compiling=no
4640 else
4641 if test "$cross_compiling" = maybe; then
4642 cross_compiling=yes
4643 else
4644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4646as_fn_error "cannot run C compiled programs.
4647If you meant to cross compile, use \`--host'.
4648See \`config.log' for more details." "$LINENO" 5; }
4649 fi
4650 fi
4651fi
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4653$as_echo "yes" >&6; }
4654
4655rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4656ac_clean_files=$ac_clean_files_save
4657# Check that the compiler produces executables we can run. If not, either
4658# the compiler is broken, or we cross compile.
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4660$as_echo_n "checking whether we are cross compiling... " >&6; }
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4662$as_echo "$cross_compiling" >&6; }
4663
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4665$as_echo_n "checking for suffix of executables... " >&6; }
4666if { { ac_try="$ac_link"
4667case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670esac
4671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4672$as_echo "$ac_try_echo"; } >&5
4673 (eval "$ac_link") 2>&5
4674 ac_status=$?
4675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676 test $ac_status = 0; }; then :
4677 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4678# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4679# work properly (i.e., refer to `conftest.exe'), while it won't with
4680# `rm'.
4681for ac_file in conftest.exe conftest conftest.*; do
4682 test -f "$ac_file" || continue
4683 case $ac_file in
4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4685 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4686 break;;
4687 * ) break;;
4688 esac
4689done
4690else
4691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4693as_fn_error "cannot compute suffix of executables: cannot compile and link
4694See \`config.log' for more details." "$LINENO" 5; }
4695fi
4696rm -f conftest$ac_cv_exeext
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4698$as_echo "$ac_cv_exeext" >&6; }
4699
4700rm -f conftest.$ac_ext
4701EXEEXT=$ac_cv_exeext
4702ac_exeext=$EXEEXT
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4704$as_echo_n "checking for suffix of object files... " >&6; }
4705if test "${ac_cv_objext+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707else
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h. */
4710
4711int
4712main ()
4713{
4714
4715 ;
4716 return 0;
4717}
4718_ACEOF
4719rm -f conftest.o conftest.obj
4720if { { ac_try="$ac_compile"
4721case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724esac
4725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726$as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_compile") 2>&5
4728 ac_status=$?
4729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }; then :
4731 for ac_file in conftest.o conftest.obj conftest.*; do
4732 test -f "$ac_file" || continue;
4733 case $ac_file in
4734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4736 break;;
4737 esac
4738done
4739else
4740 $as_echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
4742
4743{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745as_fn_error "cannot compute suffix of object files: cannot compile
4746See \`config.log' for more details." "$LINENO" 5; }
4747fi
4748rm -f conftest.$ac_cv_objext conftest.$ac_ext
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4751$as_echo "$ac_cv_objext" >&6; }
4752OBJEXT=$ac_cv_objext
4753ac_objext=$OBJEXT
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4755$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4756if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4758else
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760/* end confdefs.h. */
4761
4762int
4763main ()
4764{
4765#ifndef __GNUC__
4766 choke me
4767#endif
4768
4769 ;
4770 return 0;
4771}
4772_ACEOF
4773if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_compiler_gnu=yes
4775else
4776 ac_compiler_gnu=no
4777fi
4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779ac_cv_c_compiler_gnu=$ac_compiler_gnu
4780
4781fi
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4783$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4784if test $ac_compiler_gnu = yes; then
4785 GCC=yes
4786else
4787 GCC=
4788fi
4789ac_test_CFLAGS=${CFLAGS+set}
4790ac_save_CFLAGS=$CFLAGS
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4792$as_echo_n "checking whether $CC accepts -g... " >&6; }
4793if test "${ac_cv_prog_cc_g+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795else
4796 ac_save_c_werror_flag=$ac_c_werror_flag
4797 ac_c_werror_flag=yes
4798 ac_cv_prog_cc_g=no
4799 CFLAGS="-g"
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802
4803int
4804main ()
4805{
4806
4807 ;
4808 return 0;
4809}
4810_ACEOF
4811if ac_fn_c_try_compile "$LINENO"; then :
4812 ac_cv_prog_cc_g=yes
4813else
4814 CFLAGS=""
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h. */
4817
4818int
4819main ()
4820{
4821
4822 ;
4823 return 0;
4824}
4825_ACEOF
4826if ac_fn_c_try_compile "$LINENO"; then :
4827
4828else
4829 ac_c_werror_flag=$ac_save_c_werror_flag
4830 CFLAGS="-g"
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832/* end confdefs.h. */
4833
4834int
4835main ()
4836{
4837
4838 ;
4839 return 0;
4840}
4841_ACEOF
4842if ac_fn_c_try_compile "$LINENO"; then :
4843 ac_cv_prog_cc_g=yes
4844fi
4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846fi
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848fi
4849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 ac_c_werror_flag=$ac_save_c_werror_flag
4851fi
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4853$as_echo "$ac_cv_prog_cc_g" >&6; }
4854if test "$ac_test_CFLAGS" = set; then
4855 CFLAGS=$ac_save_CFLAGS
4856elif test $ac_cv_prog_cc_g = yes; then
4857 if test "$GCC" = yes; then
4858 CFLAGS="-g -O2"
4859 else
4860 CFLAGS="-g"
4861 fi
4862else
4863 if test "$GCC" = yes; then
4864 CFLAGS="-O2"
4865 else
4866 CFLAGS=
4867 fi
4868fi
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4870$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4871if test "${ac_cv_prog_cc_c89+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873else
4874 ac_cv_prog_cc_c89=no
4875ac_save_CC=$CC
4876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h. */
4878#include <stdarg.h>
4879#include <stdio.h>
4880#include <sys/types.h>
4881#include <sys/stat.h>
4882/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4883struct buf { int x; };
4884FILE * (*rcsopen) (struct buf *, struct stat *, int);
4885static char *e (p, i)
4886 char **p;
4887 int i;
4888{
4889 return p[i];
4890}
4891static char *f (char * (*g) (char **, int), char **p, ...)
4892{
4893 char *s;
4894 va_list v;
4895 va_start (v,p);
4896 s = g (p, va_arg (v,int));
4897 va_end (v);
4898 return s;
4899}
4900
4901/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4902 function prototypes and stuff, but not '\xHH' hex character constants.
4903 These don't provoke an error unfortunately, instead are silently treated
4904 as 'x'. The following induces an error, until -std is added to get
4905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4906 array size at least. It's necessary to write '\x00'==0 to get something
4907 that's true only with -std. */
4908int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4909
4910/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4911 inside strings and character constants. */
4912#define FOO(x) 'x'
4913int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4914
4915int test (int i, double x);
4916struct s1 {int (*f) (int a);};
4917struct s2 {int (*f) (double a);};
4918int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4919int argc;
4920char **argv;
4921int
4922main ()
4923{
4924return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4925 ;
4926 return 0;
4927}
4928_ACEOF
4929for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4930 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4931do
4932 CC="$ac_save_CC $ac_arg"
4933 if ac_fn_c_try_compile "$LINENO"; then :
4934 ac_cv_prog_cc_c89=$ac_arg
4935fi
4936rm -f core conftest.err conftest.$ac_objext
4937 test "x$ac_cv_prog_cc_c89" != "xno" && break
4938done
4939rm -f conftest.$ac_ext
4940CC=$ac_save_CC
4941
4942fi
4943# AC_CACHE_VAL
4944case "x$ac_cv_prog_cc_c89" in
4945 x)
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4947$as_echo "none needed" >&6; } ;;
4948 xno)
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4950$as_echo "unsupported" >&6; } ;;
4951 *)
4952 CC="$CC $ac_cv_prog_cc_c89"
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4954$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4955esac
4956if test "x$ac_cv_prog_cc_c89" != xno; then :
4957
4958fi
4959
4960ac_ext=c
4961ac_cpp='$CPP $CPPFLAGS'
4962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965
4966ac_aux_dir=
4967for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4968 for ac_t in install-sh install.sh shtool; do
4969 if test -f "$ac_dir/$ac_t"; then
4970 ac_aux_dir=$ac_dir
4971 ac_install_sh="$ac_aux_dir/$ac_t -c"
4972 break 2
4973 fi
4974 done
4975done
4976if test -z "$ac_aux_dir"; then
4977 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4978fi
4979
4980# These three variables are undocumented and unsupported,
4981# and are intended to be withdrawn in a future Autoconf release.
4982# They can cause serious problems if a builder's source tree is in a directory
4983# whose full name contains unusual characters.
4984ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4985ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4986ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4987
4988
4989# Make sure we can run config.sub.
4990$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4991 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4992
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4994$as_echo_n "checking build system type... " >&6; }
4995if test "${ac_cv_build+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997else
4998 ac_build_alias=$build_alias
4999test "x$ac_build_alias" = x &&
5000 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5001test "x$ac_build_alias" = x &&
5002 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5003ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5004 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5005
5006fi
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5008$as_echo "$ac_cv_build" >&6; }
5009case $ac_cv_build in
5010*-*-*) ;;
5011*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5012esac
5013build=$ac_cv_build
5014ac_save_IFS=$IFS; IFS='-'
5015set x $ac_cv_build
5016shift
5017build_cpu=$1
5018build_vendor=$2
5019shift; shift
5020# Remember, the first character of IFS is used to create $*,
5021# except with old shells:
5022build_os=$*
5023IFS=$ac_save_IFS
5024case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5025
5026
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5028$as_echo_n "checking host system type... " >&6; }
5029if test "${ac_cv_host+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5031else
5032 if test "x$host_alias" = x; then
5033 ac_cv_host=$ac_cv_build
5034else
5035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5036 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5037fi
5038
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5041$as_echo "$ac_cv_host" >&6; }
5042case $ac_cv_host in
5043*-*-*) ;;
5044*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5045esac
5046host=$ac_cv_host
5047ac_save_IFS=$IFS; IFS='-'
5048set x $ac_cv_host
5049shift
5050host_cpu=$1
5051host_vendor=$2
5052shift; shift
5053# Remember, the first character of IFS is used to create $*,
5054# except with old shells:
5055host_os=$*
5056IFS=$ac_save_IFS
5057case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5058
5059
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5061$as_echo_n "checking target system type... " >&6; }
5062if test "${ac_cv_target+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064else
5065 if test "x$target_alias" = x; then
5066 ac_cv_target=$ac_cv_host
5067else
5068 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5069 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5070fi
5071
5072fi
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5074$as_echo "$ac_cv_target" >&6; }
5075case $ac_cv_target in
5076*-*-*) ;;
5077*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5078esac
5079target=$ac_cv_target
5080ac_save_IFS=$IFS; IFS='-'
5081set x $ac_cv_target
5082shift
5083target_cpu=$1
5084target_vendor=$2
5085shift; shift
5086# Remember, the first character of IFS is used to create $*,
5087# except with old shells:
5088target_os=$*
5089IFS=$ac_save_IFS
5090case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5091
5092
5093# The aliases save the names the user supplied, while $host etc.
5094# will get canonicalized.
5095test -n "$target_alias" &&
5096 test "$program_prefix$program_suffix$program_transform_name" = \
5097 NONENONEs,x,x, &&
5098 program_prefix=${target_alias}-
5099
5100ac_ext=c
5101ac_cpp='$CPP $CPPFLAGS'
5102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5106$as_echo_n "checking how to run the C preprocessor... " >&6; }
5107# On Suns, sometimes $CPP names a directory.
5108if test -n "$CPP" && test -d "$CPP"; then
5109 CPP=
5110fi
5111if test -z "$CPP"; then
5112 if test "${ac_cv_prog_CPP+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5114else
5115 # Double quotes because CPP needs to be expanded
5116 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5117 do
5118 ac_preproc_ok=false
5119for ac_c_preproc_warn_flag in '' yes
5120do
5121 # Use a header file that comes with gcc, so configuring glibc
5122 # with a fresh cross-compiler works.
5123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124 # <limits.h> exists even on freestanding compilers.
5125 # On the NeXT, cc -E runs the code through the compiler's parser,
5126 # not just through cpp. "Syntax error" is here to catch this case.
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h. */
5129#ifdef __STDC__
5130# include <limits.h>
5131#else
5132# include <assert.h>
5133#endif
5134 Syntax error
5135_ACEOF
5136if ac_fn_c_try_cpp "$LINENO"; then :
5137
5138else
5139 # Broken: fails on valid input.
5140continue
5141fi
5142rm -f conftest.err conftest.$ac_ext
5143
5144 # OK, works on sane cases. Now check whether nonexistent headers
5145 # can be detected and how.
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h. */
5148#include <ac_nonexistent.h>
5149_ACEOF
5150if ac_fn_c_try_cpp "$LINENO"; then :
5151 # Broken: success on invalid input.
5152continue
5153else
5154 # Passes both tests.
5155ac_preproc_ok=:
5156break
5157fi
5158rm -f conftest.err conftest.$ac_ext
5159
5160done
5161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5162rm -f conftest.err conftest.$ac_ext
5163if $ac_preproc_ok; then :
5164 break
5165fi
5166
5167 done
5168 ac_cv_prog_CPP=$CPP
5169
5170fi
5171 CPP=$ac_cv_prog_CPP
5172else
5173 ac_cv_prog_CPP=$CPP
5174fi
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5176$as_echo "$CPP" >&6; }
5177ac_preproc_ok=false
5178for ac_c_preproc_warn_flag in '' yes
5179do
5180 # Use a header file that comes with gcc, so configuring glibc
5181 # with a fresh cross-compiler works.
5182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5183 # <limits.h> exists even on freestanding compilers.
5184 # On the NeXT, cc -E runs the code through the compiler's parser,
5185 # not just through cpp. "Syntax error" is here to catch this case.
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h. */
5188#ifdef __STDC__
5189# include <limits.h>
5190#else
5191# include <assert.h>
5192#endif
5193 Syntax error
5194_ACEOF
5195if ac_fn_c_try_cpp "$LINENO"; then :
5196
5197else
5198 # Broken: fails on valid input.
5199continue
5200fi
5201rm -f conftest.err conftest.$ac_ext
5202
5203 # OK, works on sane cases. Now check whether nonexistent headers
5204 # can be detected and how.
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206/* end confdefs.h. */
5207#include <ac_nonexistent.h>
5208_ACEOF
5209if ac_fn_c_try_cpp "$LINENO"; then :
5210 # Broken: success on invalid input.
5211continue
5212else
5213 # Passes both tests.
5214ac_preproc_ok=:
5215break
5216fi
5217rm -f conftest.err conftest.$ac_ext
5218
5219done
5220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5221rm -f conftest.err conftest.$ac_ext
5222if $ac_preproc_ok; then :
5223
5224else
5225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5227as_fn_error "C preprocessor \"$CPP\" fails sanity check
5228See \`config.log' for more details." "$LINENO" 5; }
5229fi
5230
5231ac_ext=c
5232ac_cpp='$CPP $CPPFLAGS'
5233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235ac_compiler_gnu=$ac_cv_c_compiler_gnu
5236
5237
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5239$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5240if test "${ac_cv_path_GREP+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5242else
5243 if test -z "$GREP"; then
5244 ac_path_GREP_found=false
5245 # Loop through the user's path and test for each of PROGNAME-LIST
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_prog in grep ggrep; do
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5254 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5255# Check for GNU ac_path_GREP and select it if it is found.
5256 # Check for GNU $ac_path_GREP
5257case `"$ac_path_GREP" --version 2>&1` in
5258*GNU*)
5259 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5260*)
5261 ac_count=0
5262 $as_echo_n 0123456789 >"conftest.in"
5263 while :
5264 do
5265 cat "conftest.in" "conftest.in" >"conftest.tmp"
5266 mv "conftest.tmp" "conftest.in"
5267 cp "conftest.in" "conftest.nl"
5268 $as_echo 'GREP' >> "conftest.nl"
5269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271 as_fn_arith $ac_count + 1 && ac_count=$as_val
5272 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5273 # Best one so far, save it but keep looking for a better one
5274 ac_cv_path_GREP="$ac_path_GREP"
5275 ac_path_GREP_max=$ac_count
5276 fi
5277 # 10*(2^10) chars as input seems more than enough
5278 test $ac_count -gt 10 && break
5279 done
5280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281esac
5282
5283 $ac_path_GREP_found && break 3
5284 done
5285 done
5286 done
5287IFS=$as_save_IFS
5288 if test -z "$ac_cv_path_GREP"; then
5289 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5290 fi
5291else
5292 ac_cv_path_GREP=$GREP
5293fi
5294
5295fi
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5297$as_echo "$ac_cv_path_GREP" >&6; }
5298 GREP="$ac_cv_path_GREP"
5299
5300
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5302$as_echo_n "checking for egrep... " >&6; }
5303if test "${ac_cv_path_EGREP+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305else
5306 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5307 then ac_cv_path_EGREP="$GREP -E"
5308 else
5309 if test -z "$EGREP"; then
5310 ac_path_EGREP_found=false
5311 # Loop through the user's path and test for each of PROGNAME-LIST
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5314do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_prog in egrep; do
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5320 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5321# Check for GNU ac_path_EGREP and select it if it is found.
5322 # Check for GNU $ac_path_EGREP
5323case `"$ac_path_EGREP" --version 2>&1` in
5324*GNU*)
5325 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5326*)
5327 ac_count=0
5328 $as_echo_n 0123456789 >"conftest.in"
5329 while :
5330 do
5331 cat "conftest.in" "conftest.in" >"conftest.tmp"
5332 mv "conftest.tmp" "conftest.in"
5333 cp "conftest.in" "conftest.nl"
5334 $as_echo 'EGREP' >> "conftest.nl"
5335 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5337 as_fn_arith $ac_count + 1 && ac_count=$as_val
5338 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5339 # Best one so far, save it but keep looking for a better one
5340 ac_cv_path_EGREP="$ac_path_EGREP"
5341 ac_path_EGREP_max=$ac_count
5342 fi
5343 # 10*(2^10) chars as input seems more than enough
5344 test $ac_count -gt 10 && break
5345 done
5346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5347esac
5348
5349 $ac_path_EGREP_found && break 3
5350 done
5351 done
5352 done
5353IFS=$as_save_IFS
5354 if test -z "$ac_cv_path_EGREP"; then
5355 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5356 fi
5357else
5358 ac_cv_path_EGREP=$EGREP
5359fi
5360
5361 fi
5362fi
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5364$as_echo "$ac_cv_path_EGREP" >&6; }
5365 EGREP="$ac_cv_path_EGREP"
5366
5367
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5369$as_echo_n "checking for ANSI C header files... " >&6; }
5370if test "${ac_cv_header_stdc+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5372else
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h. */
5375#include <stdlib.h>
5376#include <stdarg.h>
5377#include <string.h>
5378#include <float.h>
5379
5380int
5381main ()
5382{
5383
5384 ;
5385 return 0;
5386}
5387_ACEOF
5388if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_header_stdc=yes
5390else
5391 ac_cv_header_stdc=no
5392fi
5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394
5395if test $ac_cv_header_stdc = yes; then
5396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h. */
5399#include <string.h>
5400
5401_ACEOF
5402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5403 $EGREP "memchr" >/dev/null 2>&1; then :
5404
5405else
5406 ac_cv_header_stdc=no
5407fi
5408rm -f conftest*
5409
5410fi
5411
5412if test $ac_cv_header_stdc = yes; then
5413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h. */
5416#include <stdlib.h>
5417
5418_ACEOF
5419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5420 $EGREP "free" >/dev/null 2>&1; then :
5421
5422else
5423 ac_cv_header_stdc=no
5424fi
5425rm -f conftest*
5426
5427fi
5428
5429if test $ac_cv_header_stdc = yes; then
5430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5431 if test "$cross_compiling" = yes; then :
5432 :
5433else
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#include <ctype.h>
5437#include <stdlib.h>
5438#if ((' ' & 0x0FF) == 0x020)
5439# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5440# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5441#else
5442# define ISLOWER(c) \
5443 (('a' <= (c) && (c) <= 'i') \
5444 || ('j' <= (c) && (c) <= 'r') \
5445 || ('s' <= (c) && (c) <= 'z'))
5446# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5447#endif
5448
5449#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5450int
5451main ()
5452{
5453 int i;
5454 for (i = 0; i < 256; i++)
5455 if (XOR (islower (i), ISLOWER (i))
5456 || toupper (i) != TOUPPER (i))
5457 return 2;
5458 return 0;
5459}
5460_ACEOF
5461if ac_fn_c_try_run "$LINENO"; then :
5462
5463else
5464 ac_cv_header_stdc=no
5465fi
5466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5467 conftest.$ac_objext conftest.beam conftest.$ac_ext
5468fi
5469
5470fi
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5473$as_echo "$ac_cv_header_stdc" >&6; }
5474if test $ac_cv_header_stdc = yes; then
5475
5476$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5477
5478fi
5479
5480# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5481for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5482 inttypes.h stdint.h unistd.h
5483do :
5484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5486"
5487eval as_val=\$$as_ac_Header
5488 if test "x$as_val" = x""yes; then :
5489 cat >>confdefs.h <<_ACEOF
5490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491_ACEOF
5492
5493fi
5494
5495done
5496
5497
5498
5499 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5500if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5501 MINIX=yes
5502else
5503 MINIX=
5504fi
5505
5506
5507 if test "$MINIX" = yes; then
5508
5509$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5510
5511
5512$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5513
5514
5515$as_echo "#define _MINIX 1" >>confdefs.h
5516
5517 fi
5518
5519
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5521$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5522if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5523 $as_echo_n "(cached) " >&6
5524else
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h. */
5527
5528# define __EXTENSIONS__ 1
5529 $ac_includes_default
5530int
5531main ()
5532{
5533
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538if ac_fn_c_try_compile "$LINENO"; then :
5539 ac_cv_safe_to_define___extensions__=yes
5540else
5541 ac_cv_safe_to_define___extensions__=no
5542fi
5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544fi
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5546$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5547 test $ac_cv_safe_to_define___extensions__ = yes &&
5548 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5549
5550 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5551
5552 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5553
5554 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5555
5556 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5557
5558
5559test "$program_prefix" != NONE &&
5560 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5561# Use a double $ so make ignores it.
5562test "$program_suffix" != NONE &&
5563 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5564# Double any \ or $.
5565# By default was `s,x,x', remove it if useless.
5566ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5567program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5568
5569# Find a good install program. We prefer a C program (faster),
5570# so one script is as good as another. But avoid the broken or
5571# incompatible versions:
5572# SysV /etc/install, /usr/sbin/install
5573# SunOS /usr/etc/install
5574# IRIX /sbin/install
5575# AIX /bin/install
5576# AmigaOS /C/install, which installs bootblocks on floppy discs
5577# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5578# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5579# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5580# OS/2's system install, which has a completely different semantic
5581# ./install, which can be erroneously created by make from ./install.sh.
5582# Reject install programs that cannot install multiple files.
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5584$as_echo_n "checking for a BSD-compatible install... " >&6; }
5585if test -z "$INSTALL"; then
5586if test "${ac_cv_path_install+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5588else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 # Account for people who put trailing slashes in PATH elements.
5595case $as_dir/ in #((
5596 ./ | .// | /[cC]/* | \
5597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5599 /usr/ucb/* ) ;;
5600 *)
5601 # OSF1 and SCO ODT 3.0 have their own names for install.
5602 # Don't use installbsd from OSF since it installs stuff as root
5603 # by default.
5604 for ac_prog in ginstall scoinst install; do
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5607 if test $ac_prog = install &&
5608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5609 # AIX install. It has an incompatible calling convention.
5610 :
5611 elif test $ac_prog = install &&
5612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5613 # program-specific install script used by HP pwplus--don't use.
5614 :
5615 else
5616 rm -rf conftest.one conftest.two conftest.dir
5617 echo one > conftest.one
5618 echo two > conftest.two
5619 mkdir conftest.dir
5620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5621 test -s conftest.one && test -s conftest.two &&
5622 test -s conftest.dir/conftest.one &&
5623 test -s conftest.dir/conftest.two
5624 then
5625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5626 break 3
5627 fi
5628 fi
5629 fi
5630 done
5631 done
5632 ;;
5633esac
5634
5635 done
5636IFS=$as_save_IFS
5637
5638rm -rf conftest.one conftest.two conftest.dir
5639
5640fi
5641 if test "${ac_cv_path_install+set}" = set; then
5642 INSTALL=$ac_cv_path_install
5643 else
5644 # As a last resort, use the slow shell script. Don't cache a
5645 # value for INSTALL within a source directory, because that will
5646 # break other packages using the cache if that directory is
5647 # removed, or if the value is a relative name.
5648 INSTALL=$ac_install_sh
5649 fi
5650fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5652$as_echo "$INSTALL" >&6; }
5653
5654# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5655# It thinks the first close brace ends the variable substitution.
5656test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5657
5658test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5659
5660test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5661
5662rm -rf .tst 2>/dev/null
5663mkdir .tst 2>/dev/null
5664if test -d .tst; then
5665 am__leading_dot=.
5666else
5667 am__leading_dot=_
5668fi
5669rmdir .tst 2>/dev/null
5670
5671DEPDIR="${am__leading_dot}deps"
5672
5673case `pwd` in
5674 *\ * | *\ *)
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5676$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5677esac
5678
5679
5680
5681macro_version='2.2.7a'
5682macro_revision='1.3134'
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696ltmain="$ac_aux_dir/ltmain.sh"
5697
5698# Backslashify metacharacters that are still active within
5699# double-quoted strings.
5700sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5701
5702# Same as above, but do not quote variable references.
5703double_quote_subst='s/\(["`\\]\)/\\\1/g'
5704
5705# Sed substitution to delay expansion of an escaped shell variable in a
5706# double_quote_subst'ed string.
5707delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5708
5709# Sed substitution to delay expansion of an escaped single quote.
5710delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5711
5712# Sed substitution to avoid accidental globbing in evaled expressions
5713no_glob_subst='s/\*/\\\*/g'
5714
5715ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5716ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5717ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5718
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5720$as_echo_n "checking how to print strings... " >&6; }
5721# Test print first, because it will be a builtin if present.
5722if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5723 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5724 ECHO='print -r --'
5725elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5726 ECHO='printf %s\n'
5727else
5728 # Use this function as a fallback that always works.
5729 func_fallback_echo ()
5730 {
5731 eval 'cat <<_LTECHO_EOF
5732$1
5733_LTECHO_EOF'
5734 }
5735 ECHO='func_fallback_echo'
5736fi
5737
5738# func_echo_all arg...
5739# Invoke $ECHO with all args, space-separated.
5740func_echo_all ()
5741{
5742 $ECHO ""
5743}
5744
5745case "$ECHO" in
5746 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5747$as_echo "printf" >&6; } ;;
5748 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5749$as_echo "print -r" >&6; } ;;
5750 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5751$as_echo "cat" >&6; } ;;
5752esac
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5768$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5769if test "${ac_cv_path_SED+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5771else
5772 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5773 for ac_i in 1 2 3 4 5 6 7; do
5774 ac_script="$ac_script$as_nl$ac_script"
5775 done
5776 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5777 { ac_script=; unset ac_script;}
5778 if test -z "$SED"; then
5779 ac_path_SED_found=false
5780 # Loop through the user's path and test for each of PROGNAME-LIST
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_prog in sed gsed; do
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5789 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5790# Check for GNU ac_path_SED and select it if it is found.
5791 # Check for GNU $ac_path_SED
5792case `"$ac_path_SED" --version 2>&1` in
5793*GNU*)
5794 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5795*)
5796 ac_count=0
5797 $as_echo_n 0123456789 >"conftest.in"
5798 while :
5799 do
5800 cat "conftest.in" "conftest.in" >"conftest.tmp"
5801 mv "conftest.tmp" "conftest.in"
5802 cp "conftest.in" "conftest.nl"
5803 $as_echo '' >> "conftest.nl"
5804 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5806 as_fn_arith $ac_count + 1 && ac_count=$as_val
5807 if test $ac_count -gt ${ac_path_SED_max-0}; then
5808 # Best one so far, save it but keep looking for a better one
5809 ac_cv_path_SED="$ac_path_SED"
5810 ac_path_SED_max=$ac_count
5811 fi
5812 # 10*(2^10) chars as input seems more than enough
5813 test $ac_count -gt 10 && break
5814 done
5815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5816esac
5817
5818 $ac_path_SED_found && break 3
5819 done
5820 done
5821 done
5822IFS=$as_save_IFS
5823 if test -z "$ac_cv_path_SED"; then
5824 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5825 fi
5826else
5827 ac_cv_path_SED=$SED
5828fi
5829
5830fi
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5832$as_echo "$ac_cv_path_SED" >&6; }
5833 SED="$ac_cv_path_SED"
5834 rm -f conftest.sed
5835
5836test -z "$SED" && SED=sed
5837Xsed="$SED -e 1s/^X//"
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5850$as_echo_n "checking for fgrep... " >&6; }
5851if test "${ac_cv_path_FGREP+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853else
5854 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5855 then ac_cv_path_FGREP="$GREP -F"
5856 else
5857 if test -z "$FGREP"; then
5858 ac_path_FGREP_found=false
5859 # Loop through the user's path and test for each of PROGNAME-LIST
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5862do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_prog in fgrep; do
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5868 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5869# Check for GNU ac_path_FGREP and select it if it is found.
5870 # Check for GNU $ac_path_FGREP
5871case `"$ac_path_FGREP" --version 2>&1` in
5872*GNU*)
5873 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5874*)
5875 ac_count=0
5876 $as_echo_n 0123456789 >"conftest.in"
5877 while :
5878 do
5879 cat "conftest.in" "conftest.in" >"conftest.tmp"
5880 mv "conftest.tmp" "conftest.in"
5881 cp "conftest.in" "conftest.nl"
5882 $as_echo 'FGREP' >> "conftest.nl"
5883 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5885 as_fn_arith $ac_count + 1 && ac_count=$as_val
5886 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5887 # Best one so far, save it but keep looking for a better one
5888 ac_cv_path_FGREP="$ac_path_FGREP"
5889 ac_path_FGREP_max=$ac_count
5890 fi
5891 # 10*(2^10) chars as input seems more than enough
5892 test $ac_count -gt 10 && break
5893 done
5894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5895esac
5896
5897 $ac_path_FGREP_found && break 3
5898 done
5899 done
5900 done
5901IFS=$as_save_IFS
5902 if test -z "$ac_cv_path_FGREP"; then
5903 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5904 fi
5905else
5906 ac_cv_path_FGREP=$FGREP
5907fi
5908
5909 fi
5910fi
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5912$as_echo "$ac_cv_path_FGREP" >&6; }
5913 FGREP="$ac_cv_path_FGREP"
5914
5915
5916test -z "$GREP" && GREP=grep
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936# Check whether --with-gnu-ld was given.
5937if test "${with_gnu_ld+set}" = set; then :
5938 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5939else
5940 with_gnu_ld=no
5941fi
5942
5943ac_prog=ld
5944if test "$GCC" = yes; then
5945 # Check if gcc -print-prog-name=ld gives a path.
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5947$as_echo_n "checking for ld used by $CC... " >&6; }
5948 case $host in
5949 *-*-mingw*)
5950 # gcc leaves a trailing carriage return which upsets mingw
5951 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5952 *)
5953 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5954 esac
5955 case $ac_prog in
5956 # Accept absolute paths.
5957 [\\/]* | ?:[\\/]*)
5958 re_direlt='/[^/][^/]*/\.\./'
5959 # Canonicalize the pathname of ld
5960 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5961 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5962 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5963 done
5964 test -z "$LD" && LD="$ac_prog"
5965 ;;
5966 "")
5967 # If it fails, then pretend we aren't using GCC.
5968 ac_prog=ld
5969 ;;
5970 *)
5971 # If it is relative, then search for the first ld in PATH.
5972 with_gnu_ld=unknown
5973 ;;
5974 esac
5975elif test "$with_gnu_ld" = yes; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5977$as_echo_n "checking for GNU ld... " >&6; }
5978else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5980$as_echo_n "checking for non-GNU ld... " >&6; }
5981fi
5982if test "${lt_cv_path_LD+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5984else
5985 if test -z "$LD"; then
5986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5987 for ac_dir in $PATH; do
5988 IFS="$lt_save_ifs"
5989 test -z "$ac_dir" && ac_dir=.
5990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5991 lt_cv_path_LD="$ac_dir/$ac_prog"
5992 # Check to see if the program is GNU ld. I'd rather use --version,
5993 # but apparently some variants of GNU ld only accept -v.
5994 # Break only if it was the GNU/non-GNU ld that we prefer.
5995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5996 *GNU* | *'with BFD'*)
5997 test "$with_gnu_ld" != no && break
5998 ;;
5999 *)
6000 test "$with_gnu_ld" != yes && break
6001 ;;
6002 esac
6003 fi
6004 done
6005 IFS="$lt_save_ifs"
6006else
6007 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6008fi
6009fi
6010
6011LD="$lt_cv_path_LD"
6012if test -n "$LD"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6014$as_echo "$LD" >&6; }
6015else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017$as_echo "no" >&6; }
6018fi
6019test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6021$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6022if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024else
6025 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6026case `$LD -v 2>&1 </dev/null` in
6027*GNU* | *'with BFD'*)
6028 lt_cv_prog_gnu_ld=yes
6029 ;;
6030*)
6031 lt_cv_prog_gnu_ld=no
6032 ;;
6033esac
6034fi
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6036$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6037with_gnu_ld=$lt_cv_prog_gnu_ld
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6048$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6049if test "${lt_cv_path_NM+set}" = set; then :
6050 $as_echo_n "(cached) " >&6
6051else
6052 if test -n "$NM"; then
6053 # Let the user override the test.
6054 lt_cv_path_NM="$NM"
6055else
6056 lt_nm_to_check="${ac_tool_prefix}nm"
6057 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6058 lt_nm_to_check="$lt_nm_to_check nm"
6059 fi
6060 for lt_tmp_nm in $lt_nm_to_check; do
6061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6062 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6063 IFS="$lt_save_ifs"
6064 test -z "$ac_dir" && ac_dir=.
6065 tmp_nm="$ac_dir/$lt_tmp_nm"
6066 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6067 # Check to see if the nm accepts a BSD-compat flag.
6068 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6069 # nm: unknown option "B" ignored
6070 # Tru64's nm complains that /dev/null is an invalid object file
6071 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6072 */dev/null* | *'Invalid file or object type'*)
6073 lt_cv_path_NM="$tmp_nm -B"
6074 break
6075 ;;
6076 *)
6077 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6078 */dev/null*)
6079 lt_cv_path_NM="$tmp_nm -p"
6080 break
6081 ;;
6082 *)
6083 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6084 continue # so that we can try to find one that supports BSD flags
6085 ;;
6086 esac
6087 ;;
6088 esac
6089 fi
6090 done
6091 IFS="$lt_save_ifs"
6092 done
6093 : ${lt_cv_path_NM=no}
6094fi
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6097$as_echo "$lt_cv_path_NM" >&6; }
6098if test "$lt_cv_path_NM" != "no"; then
6099 NM="$lt_cv_path_NM"
6100else
6101 # Didn't find any BSD compatible name lister, look for dumpbin.
6102 if test -n "$DUMPBIN"; then :
6103 # Let the user override the test.
6104 else
6105 if test -n "$ac_tool_prefix"; then
6106 for ac_prog in dumpbin "link -dump"
6107 do
6108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111$as_echo_n "checking for $ac_word... " >&6; }
6112if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114else
6115 if test -n "$DUMPBIN"; then
6116 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129done
6130 done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135DUMPBIN=$ac_cv_prog_DUMPBIN
6136if test -n "$DUMPBIN"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6138$as_echo "$DUMPBIN" >&6; }
6139else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141$as_echo "no" >&6; }
6142fi
6143
6144
6145 test -n "$DUMPBIN" && break
6146 done
6147fi
6148if test -z "$DUMPBIN"; then
6149 ac_ct_DUMPBIN=$DUMPBIN
6150 for ac_prog in dumpbin "link -dump"
6151do
6152 # Extract the first word of "$ac_prog", so it can be a program name with args.
6153set dummy $ac_prog; ac_word=$2
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155$as_echo_n "checking for $ac_word... " >&6; }
6156if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6157 $as_echo_n "(cached) " >&6
6158else
6159 if test -n "$ac_ct_DUMPBIN"; then
6160 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6161else
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
6174 done
6175IFS=$as_save_IFS
6176
6177fi
6178fi
6179ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6180if test -n "$ac_ct_DUMPBIN"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6182$as_echo "$ac_ct_DUMPBIN" >&6; }
6183else
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185$as_echo "no" >&6; }
6186fi
6187
6188
6189 test -n "$ac_ct_DUMPBIN" && break
6190done
6191
6192 if test "x$ac_ct_DUMPBIN" = x; then
6193 DUMPBIN=":"
6194 else
6195 case $cross_compiling:$ac_tool_warned in
6196yes:)
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199ac_tool_warned=yes ;;
6200esac
6201 DUMPBIN=$ac_ct_DUMPBIN
6202 fi
6203fi
6204
6205 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6206 *COFF*)
6207 DUMPBIN="$DUMPBIN -symbols"
6208 ;;
6209 *)
6210 DUMPBIN=:
6211 ;;
6212 esac
6213 fi
6214
6215 if test "$DUMPBIN" != ":"; then
6216 NM="$DUMPBIN"
6217 fi
6218fi
6219test -z "$NM" && NM=nm
6220
6221
6222
6223
6224
6225
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6227$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6228if test "${lt_cv_nm_interface+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6230else
6231 lt_cv_nm_interface="BSD nm"
6232 echo "int some_variable = 0;" > conftest.$ac_ext
6233 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6234 (eval "$ac_compile" 2>conftest.err)
6235 cat conftest.err >&5
6236 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6237 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6238 cat conftest.err >&5
6239 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6240 cat conftest.out >&5
6241 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6242 lt_cv_nm_interface="MS dumpbin"
6243 fi
6244 rm -f conftest*
6245fi
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6247$as_echo "$lt_cv_nm_interface" >&6; }
6248
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6250$as_echo_n "checking whether ln -s works... " >&6; }
6251LN_S=$as_ln_s
6252if test "$LN_S" = "ln -s"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6254$as_echo "yes" >&6; }
6255else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6257$as_echo "no, using $LN_S" >&6; }
6258fi
6259
6260# find the maximum length of command line arguments
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6262$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6263if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6264 $as_echo_n "(cached) " >&6
6265else
6266 i=0
6267 teststring="ABCD"
6268
6269 case $build_os in
6270 msdosdjgpp*)
6271 # On DJGPP, this test can blow up pretty badly due to problems in libc
6272 # (any single argument exceeding 2000 bytes causes a buffer overrun
6273 # during glob expansion). Even if it were fixed, the result of this
6274 # check would be larger than it should be.
6275 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6276 ;;
6277
6278 gnu*)
6279 # Under GNU Hurd, this test is not required because there is
6280 # no limit to the length of command line arguments.
6281 # Libtool will interpret -1 as no limit whatsoever
6282 lt_cv_sys_max_cmd_len=-1;
6283 ;;
6284
6285 cygwin* | mingw* | cegcc*)
6286 # On Win9x/ME, this test blows up -- it succeeds, but takes
6287 # about 5 minutes as the teststring grows exponentially.
6288 # Worse, since 9x/ME are not pre-emptively multitasking,
6289 # you end up with a "frozen" computer, even though with patience
6290 # the test eventually succeeds (with a max line length of 256k).
6291 # Instead, let's just punt: use the minimum linelength reported by
6292 # all of the supported platforms: 8192 (on NT/2K/XP).
6293 lt_cv_sys_max_cmd_len=8192;
6294 ;;
6295
6296 mint*)
6297 # On MiNT this can take a long time and run out of memory.
6298 lt_cv_sys_max_cmd_len=8192;
6299 ;;
6300
6301 amigaos*)
6302 # On AmigaOS with pdksh, this test takes hours, literally.
6303 # So we just punt and use a minimum line length of 8192.
6304 lt_cv_sys_max_cmd_len=8192;
6305 ;;
6306
6307 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6308 # This has been around since 386BSD, at least. Likely further.
6309 if test -x /sbin/sysctl; then
6310 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6311 elif test -x /usr/sbin/sysctl; then
6312 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6313 else
6314 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6315 fi
6316 # And add a safety zone
6317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6319 ;;
6320
6321 interix*)
6322 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6323 lt_cv_sys_max_cmd_len=196608
6324 ;;
6325
6326 osf*)
6327 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6328 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6329 # nice to cause kernel panics so lets avoid the loop below.
6330 # First set a reasonable default.
6331 lt_cv_sys_max_cmd_len=16384
6332 #
6333 if test -x /sbin/sysconfig; then
6334 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6335 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6336 esac
6337 fi
6338 ;;
6339 sco3.2v5*)
6340 lt_cv_sys_max_cmd_len=102400
6341 ;;
6342 sysv5* | sco5v6* | sysv4.2uw2*)
6343 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6344 if test -n "$kargmax"; then
6345 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6346 else
6347 lt_cv_sys_max_cmd_len=32768
6348 fi
6349 ;;
6350 *)
6351 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6352 if test -n "$lt_cv_sys_max_cmd_len"; then
6353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6355 else
6356 # Make teststring a little bigger before we do anything with it.
6357 # a 1K string should be a reasonable start.
6358 for i in 1 2 3 4 5 6 7 8 ; do
6359 teststring=$teststring$teststring
6360 done
6361 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6362 # If test is not a shell built-in, we'll probably end up computing a
6363 # maximum length that is only half of the actual maximum length, but
6364 # we can't tell.
6365 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6366 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6367 test $i != 17 # 1/2 MB should be enough
6368 do
6369 i=`expr $i + 1`
6370 teststring=$teststring$teststring
6371 done
6372 # Only check the string length outside the loop.
6373 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6374 teststring=
6375 # Add a significant safety factor because C++ compilers can tack on
6376 # massive amounts of additional arguments before passing them to the
6377 # linker. It appears as though 1/2 is a usable value.
6378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6379 fi
6380 ;;
6381 esac
6382
6383fi
6384
6385if test -n $lt_cv_sys_max_cmd_len ; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6387$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6388else
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6390$as_echo "none" >&6; }
6391fi
6392max_cmd_len=$lt_cv_sys_max_cmd_len
6393
6394
6395
6396
6397
6398
6399: ${CP="cp -f"}
6400: ${MV="mv -f"}
6401: ${RM="rm -f"}
6402
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6404$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6405# Try some XSI features
6406xsi_shell=no
6407( _lt_dummy="a/b/c"
6408 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6409 = c,a/b,, \
6410 && eval 'test $(( 1 + 1 )) -eq 2 \
6411 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6412 && xsi_shell=yes
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6414$as_echo "$xsi_shell" >&6; }
6415
6416
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6418$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6419lt_shell_append=no
6420( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6421 >/dev/null 2>&1 \
6422 && lt_shell_append=yes
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6424$as_echo "$lt_shell_append" >&6; }
6425
6426
6427if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6428 lt_unset=unset
6429else
6430 lt_unset=false
6431fi
6432
6433
6434
6435
6436
6437# test EBCDIC or ASCII
6438case `echo X|tr X '\101'` in
6439 A) # ASCII based system
6440 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6441 lt_SP2NL='tr \040 \012'
6442 lt_NL2SP='tr \015\012 \040\040'
6443 ;;
6444 *) # EBCDIC based system
6445 lt_SP2NL='tr \100 \n'
6446 lt_NL2SP='tr \r\n \100\100'
6447 ;;
6448esac
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6459$as_echo_n "checking for $LD option to reload object files... " >&6; }
6460if test "${lt_cv_ld_reload_flag+set}" = set; then :
6461 $as_echo_n "(cached) " >&6
6462else
6463 lt_cv_ld_reload_flag='-r'
6464fi
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6466$as_echo "$lt_cv_ld_reload_flag" >&6; }
6467reload_flag=$lt_cv_ld_reload_flag
6468case $reload_flag in
6469"" | " "*) ;;
6470*) reload_flag=" $reload_flag" ;;
6471esac
6472reload_cmds='$LD$reload_flag -o $output$reload_objs'
6473case $host_os in
6474 darwin*)
6475 if test "$GCC" = yes; then
6476 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6477 else
6478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6479 fi
6480 ;;
6481esac
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6493set dummy ${ac_tool_prefix}objdump; ac_word=$2
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
6496if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498else
6499 if test -n "$OBJDUMP"; then
6500 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513done
6514 done
6515IFS=$as_save_IFS
6516
6517fi
6518fi
6519OBJDUMP=$ac_cv_prog_OBJDUMP
6520if test -n "$OBJDUMP"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6522$as_echo "$OBJDUMP" >&6; }
6523else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
6526fi
6527
6528
6529fi
6530if test -z "$ac_cv_prog_OBJDUMP"; then
6531 ac_ct_OBJDUMP=$OBJDUMP
6532 # Extract the first word of "objdump", so it can be a program name with args.
6533set dummy objdump; ac_word=$2
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
6536if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6537 $as_echo_n "(cached) " >&6
6538else
6539 if test -n "$ac_ct_OBJDUMP"; then
6540 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553done
6554 done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6560if test -n "$ac_ct_OBJDUMP"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6562$as_echo "$ac_ct_OBJDUMP" >&6; }
6563else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566fi
6567
6568 if test "x$ac_ct_OBJDUMP" = x; then
6569 OBJDUMP="false"
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572yes:)
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577 OBJDUMP=$ac_ct_OBJDUMP
6578 fi
6579else
6580 OBJDUMP="$ac_cv_prog_OBJDUMP"
6581fi
6582
6583test -z "$OBJDUMP" && OBJDUMP=objdump
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6594$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6595if test "${lt_cv_deplibs_check_method+set}" = set; then :
6596 $as_echo_n "(cached) " >&6
6597else
6598 lt_cv_file_magic_cmd='$MAGIC_CMD'
6599lt_cv_file_magic_test_file=
6600lt_cv_deplibs_check_method='unknown'
6601# Need to set the preceding variable on all platforms that support
6602# interlibrary dependencies.
6603# 'none' -- dependencies not supported.
6604# `unknown' -- same as none, but documents that we really don't know.
6605# 'pass_all' -- all dependencies passed with no checks.
6606# 'test_compile' -- check by making test program.
6607# 'file_magic [[regex]]' -- check by looking for files in library path
6608# which responds to the $file_magic_cmd with a given extended regex.
6609# If you have `file' or equivalent on your system and you're not sure
6610# whether `pass_all' will *always* work, you probably want this one.
6611
6612case $host_os in
6613aix[4-9]*)
6614 lt_cv_deplibs_check_method=pass_all
6615 ;;
6616
6617beos*)
6618 lt_cv_deplibs_check_method=pass_all
6619 ;;
6620
6621bsdi[45]*)
6622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6623 lt_cv_file_magic_cmd='/usr/bin/file -L'
6624 lt_cv_file_magic_test_file=/shlib/libc.so
6625 ;;
6626
6627cygwin*)
6628 # func_win32_libid is a shell function defined in ltmain.sh
6629 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6630 lt_cv_file_magic_cmd='func_win32_libid'
6631 ;;
6632
6633mingw* | pw32*)
6634 # Base MSYS/MinGW do not provide the 'file' command needed by
6635 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6636 # unless we find 'file', for example because we are cross-compiling.
6637 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6638 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6639 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6640 lt_cv_file_magic_cmd='func_win32_libid'
6641 else
6642 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6643 lt_cv_file_magic_cmd='$OBJDUMP -f'
6644 fi
6645 ;;
6646
6647cegcc*)
6648 # use the weaker test based on 'objdump'. See mingw*.
6649 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6650 lt_cv_file_magic_cmd='$OBJDUMP -f'
6651 ;;
6652
6653darwin* | rhapsody*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657freebsd* | dragonfly*)
6658 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6659 case $host_cpu in
6660 i*86 )
6661 # Not sure whether the presence of OpenBSD here was a mistake.
6662 # Let's accept both of them until this is cleared up.
6663 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6664 lt_cv_file_magic_cmd=/usr/bin/file
6665 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6666 ;;
6667 esac
6668 else
6669 lt_cv_deplibs_check_method=pass_all
6670 fi
6671 ;;
6672
6673gnu*)
6674 lt_cv_deplibs_check_method=pass_all
6675 ;;
6676
6677haiku*)
6678 lt_cv_deplibs_check_method=pass_all
6679 ;;
6680
6681hpux10.20* | hpux11*)
6682 lt_cv_file_magic_cmd=/usr/bin/file
6683 case $host_cpu in
6684 ia64*)
6685 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6686 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6687 ;;
6688 hppa*64*)
6689 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]'
6690 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6691 ;;
6692 *)
6693 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6694 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6695 ;;
6696 esac
6697 ;;
6698
6699interix[3-9]*)
6700 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6702 ;;
6703
6704irix5* | irix6* | nonstopux*)
6705 case $LD in
6706 *-32|*"-32 ") libmagic=32-bit;;
6707 *-n32|*"-n32 ") libmagic=N32;;
6708 *-64|*"-64 ") libmagic=64-bit;;
6709 *) libmagic=never-match;;
6710 esac
6711 lt_cv_deplibs_check_method=pass_all
6712 ;;
6713
6714# This must be Linux ELF.
6715linux* | k*bsd*-gnu | kopensolaris*-gnu)
6716 lt_cv_deplibs_check_method=pass_all
6717 ;;
6718
6719netbsd*)
6720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6722 else
6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6724 fi
6725 ;;
6726
6727newos6*)
6728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6729 lt_cv_file_magic_cmd=/usr/bin/file
6730 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6731 ;;
6732
6733*nto* | *qnx*)
6734 lt_cv_deplibs_check_method=pass_all
6735 ;;
6736
6737openbsd*)
6738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6740 else
6741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6742 fi
6743 ;;
6744
6745osf3* | osf4* | osf5*)
6746 lt_cv_deplibs_check_method=pass_all
6747 ;;
6748
6749rdos*)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752
6753solaris*)
6754 lt_cv_deplibs_check_method=pass_all
6755 ;;
6756
6757sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760
6761sysv4 | sysv4.3*)
6762 case $host_vendor in
6763 motorola)
6764 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]'
6765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6766 ;;
6767 ncr)
6768 lt_cv_deplibs_check_method=pass_all
6769 ;;
6770 sequent)
6771 lt_cv_file_magic_cmd='/bin/file'
6772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6773 ;;
6774 sni)
6775 lt_cv_file_magic_cmd='/bin/file'
6776 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6777 lt_cv_file_magic_test_file=/lib/libc.so
6778 ;;
6779 siemens)
6780 lt_cv_deplibs_check_method=pass_all
6781 ;;
6782 pc)
6783 lt_cv_deplibs_check_method=pass_all
6784 ;;
6785 esac
6786 ;;
6787
6788tpf*)
6789 lt_cv_deplibs_check_method=pass_all
6790 ;;
6791esac
6792
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6795$as_echo "$lt_cv_deplibs_check_method" >&6; }
6796file_magic_cmd=$lt_cv_file_magic_cmd
6797deplibs_check_method=$lt_cv_deplibs_check_method
6798test -z "$deplibs_check_method" && deplibs_check_method=unknown
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811if test -n "$ac_tool_prefix"; then
6812 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6813set dummy ${ac_tool_prefix}ar; ac_word=$2
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815$as_echo_n "checking for $ac_word... " >&6; }
6816if test "${ac_cv_prog_AR+set}" = set; then :
6817 $as_echo_n "(cached) " >&6
6818else
6819 if test -n "$AR"; then
6820 ac_cv_prog_AR="$AR" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_prog_AR="${ac_tool_prefix}ar"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834 done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839AR=$ac_cv_prog_AR
6840if test -n "$AR"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6842$as_echo "$AR" >&6; }
6843else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845$as_echo "no" >&6; }
6846fi
6847
6848
6849fi
6850if test -z "$ac_cv_prog_AR"; then
6851 ac_ct_AR=$AR
6852 # Extract the first word of "ar", so it can be a program name with args.
6853set dummy ar; ac_word=$2
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855$as_echo_n "checking for $ac_word... " >&6; }
6856if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6857 $as_echo_n "(cached) " >&6
6858else
6859 if test -n "$ac_ct_AR"; then
6860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6861else
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_prog_ac_ct_AR="ar"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873done
6874 done
6875IFS=$as_save_IFS
6876
6877fi
6878fi
6879ac_ct_AR=$ac_cv_prog_ac_ct_AR
6880if test -n "$ac_ct_AR"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6882$as_echo "$ac_ct_AR" >&6; }
6883else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885$as_echo "no" >&6; }
6886fi
6887
6888 if test "x$ac_ct_AR" = x; then
6889 AR="false"
6890 else
6891 case $cross_compiling:$ac_tool_warned in
6892yes:)
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895ac_tool_warned=yes ;;
6896esac
6897 AR=$ac_ct_AR
6898 fi
6899else
6900 AR="$ac_cv_prog_AR"
6901fi
6902
6903test -z "$AR" && AR=ar
6904test -z "$AR_FLAGS" && AR_FLAGS=cru
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916if test -n "$ac_tool_prefix"; then
6917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6918set dummy ${ac_tool_prefix}strip; ac_word=$2
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920$as_echo_n "checking for $ac_word... " >&6; }
6921if test "${ac_cv_prog_STRIP+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6923else
6924 if test -n "$STRIP"; then
6925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6926else
6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH
6929do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938done
6939 done
6940IFS=$as_save_IFS
6941
6942fi
6943fi
6944STRIP=$ac_cv_prog_STRIP
6945if test -n "$STRIP"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6947$as_echo "$STRIP" >&6; }
6948else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950$as_echo "no" >&6; }
6951fi
6952
6953
6954fi
6955if test -z "$ac_cv_prog_STRIP"; then
6956 ac_ct_STRIP=$STRIP
6957 # Extract the first word of "strip", so it can be a program name with args.
6958set dummy strip; ac_word=$2
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960$as_echo_n "checking for $ac_word... " >&6; }
6961if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6963else
6964 if test -n "$ac_ct_STRIP"; then
6965 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6966else
6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974 ac_cv_prog_ac_ct_STRIP="strip"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978done
6979 done
6980IFS=$as_save_IFS
6981
6982fi
6983fi
6984ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6985if test -n "$ac_ct_STRIP"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6987$as_echo "$ac_ct_STRIP" >&6; }
6988else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990$as_echo "no" >&6; }
6991fi
6992
6993 if test "x$ac_ct_STRIP" = x; then
6994 STRIP=":"
6995 else
6996 case $cross_compiling:$ac_tool_warned in
6997yes:)
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000ac_tool_warned=yes ;;
7001esac
7002 STRIP=$ac_ct_STRIP
7003 fi
7004else
7005 STRIP="$ac_cv_prog_STRIP"
7006fi
7007
7008test -z "$STRIP" && STRIP=:
7009
7010
7011
7012
7013
7014
7015if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7017set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019$as_echo_n "checking for $ac_word... " >&6; }
7020if test "${ac_cv_prog_RANLIB+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022else
7023 if test -n "$RANLIB"; then
7024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7025else
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037done
7038 done
7039IFS=$as_save_IFS
7040
7041fi
7042fi
7043RANLIB=$ac_cv_prog_RANLIB
7044if test -n "$RANLIB"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7046$as_echo "$RANLIB" >&6; }
7047else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049$as_echo "no" >&6; }
7050fi
7051
7052
7053fi
7054if test -z "$ac_cv_prog_RANLIB"; then
7055 ac_ct_RANLIB=$RANLIB
7056 # Extract the first word of "ranlib", so it can be a program name with args.
7057set dummy ranlib; ac_word=$2
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059$as_echo_n "checking for $ac_word... " >&6; }
7060if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062else
7063 if test -n "$ac_ct_RANLIB"; then
7064 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_RANLIB="ranlib"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078 done
7079IFS=$as_save_IFS
7080
7081fi
7082fi
7083ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7084if test -n "$ac_ct_RANLIB"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7086$as_echo "$ac_ct_RANLIB" >&6; }
7087else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089$as_echo "no" >&6; }
7090fi
7091
7092 if test "x$ac_ct_RANLIB" = x; then
7093 RANLIB=":"
7094 else
7095 case $cross_compiling:$ac_tool_warned in
7096yes:)
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7099ac_tool_warned=yes ;;
7100esac
7101 RANLIB=$ac_ct_RANLIB
7102 fi
7103else
7104 RANLIB="$ac_cv_prog_RANLIB"
7105fi
7106
7107test -z "$RANLIB" && RANLIB=:
7108
7109
7110
7111
7112
7113
7114# Determine commands to create old-style static archives.
7115old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7116old_postinstall_cmds='chmod 644 $oldlib'
7117old_postuninstall_cmds=
7118
7119if test -n "$RANLIB"; then
7120 case $host_os in
7121 openbsd*)
7122 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7123 ;;
7124 *)
7125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7126 ;;
7127 esac
7128 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7129fi
7130
7131case $host_os in
7132 darwin*)
7133 lock_old_archive_extraction=yes ;;
7134 *)
7135 lock_old_archive_extraction=no ;;
7136esac
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158for ac_prog in gawk mawk nawk awk
7159do
7160 # Extract the first word of "$ac_prog", so it can be a program name with args.
7161set dummy $ac_prog; ac_word=$2
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163$as_echo_n "checking for $ac_word... " >&6; }
7164if test "${ac_cv_prog_AWK+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7166else
7167 if test -n "$AWK"; then
7168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7169else
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_prog_AWK="$ac_prog"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182 done
7183IFS=$as_save_IFS
7184
7185fi
7186fi
7187AWK=$ac_cv_prog_AWK
7188if test -n "$AWK"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7190$as_echo "$AWK" >&6; }
7191else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193$as_echo "no" >&6; }
7194fi
7195
7196
7197 test -n "$AWK" && break
7198done
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218# If no C compiler was specified, use CC.
7219LTCC=${LTCC-"$CC"}
7220
7221# If no C compiler flags were specified, use CFLAGS.
7222LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7223
7224# Allow CC to be a program name with arguments.
7225compiler=$CC
7226
7227
7228# Check for command to grab the raw symbol name followed by C symbol from nm.
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7230$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7231if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7233else
7234
7235# These are sane defaults that work on at least a few old systems.
7236# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7237
7238# Character class describing NM global symbol codes.
7239symcode='[BCDEGRST]'
7240
7241# Regexp to match symbols that can be accessed directly from C.
7242sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7243
7244# Define system-specific variables.
7245case $host_os in
7246aix*)
7247 symcode='[BCDT]'
7248 ;;
7249cygwin* | mingw* | pw32* | cegcc*)
7250 symcode='[ABCDGISTW]'
7251 ;;
7252hpux*)
7253 if test "$host_cpu" = ia64; then
7254 symcode='[ABCDEGRST]'
7255 fi
7256 ;;
7257irix* | nonstopux*)
7258 symcode='[BCDEGRST]'
7259 ;;
7260osf*)
7261 symcode='[BCDEGQRST]'
7262 ;;
7263solaris*)
7264 symcode='[BDRT]'
7265 ;;
7266sco3.2v5*)
7267 symcode='[DT]'
7268 ;;
7269sysv4.2uw2*)
7270 symcode='[DT]'
7271 ;;
7272sysv5* | sco5v6* | unixware* | OpenUNIX*)
7273 symcode='[ABDT]'
7274 ;;
7275sysv4)
7276 symcode='[DFNSTU]'
7277 ;;
7278esac
7279
7280# If we're using GNU nm, then use its standard symbol codes.
7281case `$NM -V 2>&1` in
7282*GNU* | *'with BFD'*)
7283 symcode='[ABCDGIRSTW]' ;;
7284esac
7285
7286# Transform an extracted symbol line into a proper C declaration.
7287# Some systems (esp. on ia64) link data and code symbols differently,
7288# so use this general approach.
7289lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7290
7291# Transform an extracted symbol line into symbol name and symbol address
7292lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7293lt_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'"
7294
7295# Handle CRLF in mingw tool chain
7296opt_cr=
7297case $build_os in
7298mingw*)
7299 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7300 ;;
7301esac
7302
7303# Try without a prefix underscore, then with it.
7304for ac_symprfx in "" "_"; do
7305
7306 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7307 symxfrm="\\1 $ac_symprfx\\2 \\2"
7308
7309 # Write the raw and C identifiers.
7310 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7311 # Fake it for dumpbin and say T for any non-static function
7312 # and D for any global variable.
7313 # Also find C++ and __fastcall symbols from MSVC++,
7314 # which start with @ or ?.
7315 lt_cv_sys_global_symbol_pipe="$AWK '"\
7316" {last_section=section; section=\$ 3};"\
7317" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7318" \$ 0!~/External *\|/{next};"\
7319" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7320" {if(hide[section]) next};"\
7321" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7322" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7323" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7324" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7325" ' prfx=^$ac_symprfx"
7326 else
7327 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7328 fi
7329
7330 # Check to see that the pipe works correctly.
7331 pipe_works=no
7332
7333 rm -f conftest*
7334 cat > conftest.$ac_ext <<_LT_EOF
7335#ifdef __cplusplus
7336extern "C" {
7337#endif
7338char nm_test_var;
7339void nm_test_func(void);
7340void nm_test_func(void){}
7341#ifdef __cplusplus
7342}
7343#endif
7344int main(){nm_test_var='a';nm_test_func();return(0);}
7345_LT_EOF
7346
7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7348 (eval $ac_compile) 2>&5
7349 ac_status=$?
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; }; then
7352 # Now try to grab the symbols.
7353 nlist=conftest.nm
7354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7355 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7356 ac_status=$?
7357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7358 test $ac_status = 0; } && test -s "$nlist"; then
7359 # Try sorting and uniquifying the output.
7360 if sort "$nlist" | uniq > "$nlist"T; then
7361 mv -f "$nlist"T "$nlist"
7362 else
7363 rm -f "$nlist"T
7364 fi
7365
7366 # Make sure that we snagged all the symbols we need.
7367 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7368 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7369 cat <<_LT_EOF > conftest.$ac_ext
7370#ifdef __cplusplus
7371extern "C" {
7372#endif
7373
7374_LT_EOF
7375 # Now generate the symbol file.
7376 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7377
7378 cat <<_LT_EOF >> conftest.$ac_ext
7379
7380/* The mapping between symbol names and symbols. */
7381const struct {
7382 const char *name;
7383 void *address;
7384}
7385lt__PROGRAM__LTX_preloaded_symbols[] =
7386{
7387 { "@PROGRAM@", (void *) 0 },
7388_LT_EOF
7389 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7390 cat <<\_LT_EOF >> conftest.$ac_ext
7391 {0, (void *) 0}
7392};
7393
7394/* This works around a problem in FreeBSD linker */
7395#ifdef FREEBSD_WORKAROUND
7396static const void *lt_preloaded_setup() {
7397 return lt__PROGRAM__LTX_preloaded_symbols;
7398}
7399#endif
7400
7401#ifdef __cplusplus
7402}
7403#endif
7404_LT_EOF
7405 # Now try linking the two files.
7406 mv conftest.$ac_objext conftstm.$ac_objext
7407 lt_save_LIBS="$LIBS"
7408 lt_save_CFLAGS="$CFLAGS"
7409 LIBS="conftstm.$ac_objext"
7410 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7412 (eval $ac_link) 2>&5
7413 ac_status=$?
7414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7415 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7416 pipe_works=yes
7417 fi
7418 LIBS="$lt_save_LIBS"
7419 CFLAGS="$lt_save_CFLAGS"
7420 else
7421 echo "cannot find nm_test_func in $nlist" >&5
7422 fi
7423 else
7424 echo "cannot find nm_test_var in $nlist" >&5
7425 fi
7426 else
7427 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7428 fi
7429 else
7430 echo "$progname: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7432 fi
7433 rm -rf conftest* conftst*
7434
7435 # Do not use the global_symbol_pipe unless it works.
7436 if test "$pipe_works" = yes; then
7437 break
7438 else
7439 lt_cv_sys_global_symbol_pipe=
7440 fi
7441done
7442
7443fi
7444
7445if test -z "$lt_cv_sys_global_symbol_pipe"; then
7446 lt_cv_sys_global_symbol_to_cdecl=
7447fi
7448if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7450$as_echo "failed" >&6; }
7451else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7453$as_echo "ok" >&6; }
7454fi
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477# Check whether --enable-libtool-lock was given.
7478if test "${enable_libtool_lock+set}" = set; then :
7479 enableval=$enable_libtool_lock;
7480fi
7481
7482test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7483
7484# Some flags need to be propagated to the compiler or linker for good
7485# libtool support.
7486case $host in
7487ia64-*-hpux*)
7488 # Find out which ABI we are using.
7489 echo 'int i;' > conftest.$ac_ext
7490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7491 (eval $ac_compile) 2>&5
7492 ac_status=$?
7493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7494 test $ac_status = 0; }; then
7495 case `/usr/bin/file conftest.$ac_objext` in
7496 *ELF-32*)
7497 HPUX_IA64_MODE="32"
7498 ;;
7499 *ELF-64*)
7500 HPUX_IA64_MODE="64"
7501 ;;
7502 esac
7503 fi
7504 rm -rf conftest*
7505 ;;
7506*-*-irix6*)
7507 # Find out which ABI we are using.
7508 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510 (eval $ac_compile) 2>&5
7511 ac_status=$?
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513 test $ac_status = 0; }; then
7514 if test "$lt_cv_prog_gnu_ld" = yes; then
7515 case `/usr/bin/file conftest.$ac_objext` in
7516 *32-bit*)
7517 LD="${LD-ld} -melf32bsmip"
7518 ;;
7519 *N32*)
7520 LD="${LD-ld} -melf32bmipn32"
7521 ;;
7522 *64-bit*)
7523 LD="${LD-ld} -melf64bmip"
7524 ;;
7525 esac
7526 else
7527 case `/usr/bin/file conftest.$ac_objext` in
7528 *32-bit*)
7529 LD="${LD-ld} -32"
7530 ;;
7531 *N32*)
7532 LD="${LD-ld} -n32"
7533 ;;
7534 *64-bit*)
7535 LD="${LD-ld} -64"
7536 ;;
7537 esac
7538 fi
7539 fi
7540 rm -rf conftest*
7541 ;;
7542
bf3d9781 7543x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
7544s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7545 # Find out which ABI we are using.
7546 echo 'int i;' > conftest.$ac_ext
7547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7548 (eval $ac_compile) 2>&5
7549 ac_status=$?
7550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551 test $ac_status = 0; }; then
7552 case `/usr/bin/file conftest.o` in
7553 *32-bit*)
7554 case $host in
7555 x86_64-*kfreebsd*-gnu)
7556 LD="${LD-ld} -m elf_i386_fbsd"
7557 ;;
7558 x86_64-*linux*)
7559 case `/usr/bin/file conftest.o` in
7560 *x86-64*)
7561 LD="${LD-ld} -m elf32_x86_64"
7562 ;;
7563 *)
7564 LD="${LD-ld} -m elf_i386"
7565 ;;
7566 esac
7567 ;;
bf3d9781
AM
7568 powerpc64le-*linux*)
7569 LD="${LD-ld} -m elf32lppclinux"
7570 ;;
7571 powerpc64-*linux*)
6bb11ab3
L
7572 LD="${LD-ld} -m elf32ppclinux"
7573 ;;
7574 s390x-*linux*)
7575 LD="${LD-ld} -m elf_s390"
7576 ;;
7577 sparc64-*linux*)
7578 LD="${LD-ld} -m elf32_sparc"
7579 ;;
7580 esac
7581 ;;
7582 *64-bit*)
7583 case $host in
7584 x86_64-*kfreebsd*-gnu)
7585 LD="${LD-ld} -m elf_x86_64_fbsd"
7586 ;;
7587 x86_64-*linux*)
7588 LD="${LD-ld} -m elf_x86_64"
7589 ;;
bf3d9781
AM
7590 powerpcle-*linux*)
7591 LD="${LD-ld} -m elf64lppc"
7592 ;;
7593 powerpc-*linux*)
6bb11ab3
L
7594 LD="${LD-ld} -m elf64ppc"
7595 ;;
7596 s390*-*linux*|s390*-*tpf*)
7597 LD="${LD-ld} -m elf64_s390"
7598 ;;
7599 sparc*-*linux*)
7600 LD="${LD-ld} -m elf64_sparc"
7601 ;;
7602 esac
7603 ;;
7604 esac
7605 fi
7606 rm -rf conftest*
7607 ;;
7608
7609*-*-sco3.2v5*)
7610 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7611 SAVE_CFLAGS="$CFLAGS"
7612 CFLAGS="$CFLAGS -belf"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7614$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7615if test "${lt_cv_cc_needs_belf+set}" = set; then :
7616 $as_echo_n "(cached) " >&6
7617else
7618 ac_ext=c
7619ac_cpp='$CPP $CPPFLAGS'
7620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625/* end confdefs.h. */
7626
7627int
7628main ()
7629{
7630
7631 ;
7632 return 0;
7633}
7634_ACEOF
7635if ac_fn_c_try_link "$LINENO"; then :
7636 lt_cv_cc_needs_belf=yes
7637else
7638 lt_cv_cc_needs_belf=no
7639fi
7640rm -f core conftest.err conftest.$ac_objext \
7641 conftest$ac_exeext conftest.$ac_ext
7642 ac_ext=c
7643ac_cpp='$CPP $CPPFLAGS'
7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648fi
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7650$as_echo "$lt_cv_cc_needs_belf" >&6; }
7651 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7652 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7653 CFLAGS="$SAVE_CFLAGS"
7654 fi
7655 ;;
7656sparc*-*solaris*)
7657 # Find out which ABI we are using.
7658 echo 'int i;' > conftest.$ac_ext
7659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7660 (eval $ac_compile) 2>&5
7661 ac_status=$?
7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7663 test $ac_status = 0; }; then
7664 case `/usr/bin/file conftest.o` in
7665 *64-bit*)
7666 case $lt_cv_prog_gnu_ld in
7667 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7668 *)
7669 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7670 LD="${LD-ld} -64"
7671 fi
7672 ;;
7673 esac
7674 ;;
7675 esac
7676 fi
7677 rm -rf conftest*
7678 ;;
7679esac
7680
7681need_locks="$enable_libtool_lock"
7682
7683
7684 case $host_os in
7685 rhapsody* | darwin*)
7686 if test -n "$ac_tool_prefix"; then
7687 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7688set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690$as_echo_n "checking for $ac_word... " >&6; }
7691if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
7693else
7694 if test -n "$DSYMUTIL"; then
7695 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7696else
7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698for as_dir in $PATH
7699do
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7707 fi
7708done
7709 done
7710IFS=$as_save_IFS
7711
7712fi
7713fi
7714DSYMUTIL=$ac_cv_prog_DSYMUTIL
7715if test -n "$DSYMUTIL"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7717$as_echo "$DSYMUTIL" >&6; }
7718else
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720$as_echo "no" >&6; }
7721fi
7722
7723
7724fi
7725if test -z "$ac_cv_prog_DSYMUTIL"; then
7726 ac_ct_DSYMUTIL=$DSYMUTIL
7727 # Extract the first word of "dsymutil", so it can be a program name with args.
7728set dummy dsymutil; ac_word=$2
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730$as_echo_n "checking for $ac_word... " >&6; }
7731if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733else
7734 if test -n "$ac_ct_DSYMUTIL"; then
7735 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7736else
7737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 break 2
7747 fi
7748done
7749 done
7750IFS=$as_save_IFS
7751
7752fi
7753fi
7754ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7755if test -n "$ac_ct_DSYMUTIL"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7757$as_echo "$ac_ct_DSYMUTIL" >&6; }
7758else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760$as_echo "no" >&6; }
7761fi
7762
7763 if test "x$ac_ct_DSYMUTIL" = x; then
7764 DSYMUTIL=":"
7765 else
7766 case $cross_compiling:$ac_tool_warned in
7767yes:)
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770ac_tool_warned=yes ;;
7771esac
7772 DSYMUTIL=$ac_ct_DSYMUTIL
7773 fi
7774else
7775 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7776fi
7777
7778 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7780set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782$as_echo_n "checking for $ac_word... " >&6; }
7783if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7785else
7786 if test -n "$NMEDIT"; then
7787 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7788else
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 break 2
7799 fi
7800done
7801 done
7802IFS=$as_save_IFS
7803
7804fi
7805fi
7806NMEDIT=$ac_cv_prog_NMEDIT
7807if test -n "$NMEDIT"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7809$as_echo "$NMEDIT" >&6; }
7810else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812$as_echo "no" >&6; }
7813fi
7814
7815
7816fi
7817if test -z "$ac_cv_prog_NMEDIT"; then
7818 ac_ct_NMEDIT=$NMEDIT
7819 # Extract the first word of "nmedit", so it can be a program name with args.
7820set dummy nmedit; ac_word=$2
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822$as_echo_n "checking for $ac_word... " >&6; }
7823if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825else
7826 if test -n "$ac_ct_NMEDIT"; then
7827 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7828else
7829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830for as_dir in $PATH
7831do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7839 fi
7840done
7841 done
7842IFS=$as_save_IFS
7843
7844fi
7845fi
7846ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7847if test -n "$ac_ct_NMEDIT"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7849$as_echo "$ac_ct_NMEDIT" >&6; }
7850else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852$as_echo "no" >&6; }
7853fi
7854
7855 if test "x$ac_ct_NMEDIT" = x; then
7856 NMEDIT=":"
7857 else
7858 case $cross_compiling:$ac_tool_warned in
7859yes:)
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862ac_tool_warned=yes ;;
7863esac
7864 NMEDIT=$ac_ct_NMEDIT
7865 fi
7866else
7867 NMEDIT="$ac_cv_prog_NMEDIT"
7868fi
7869
7870 if test -n "$ac_tool_prefix"; then
7871 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7872set dummy ${ac_tool_prefix}lipo; ac_word=$2
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874$as_echo_n "checking for $ac_word... " >&6; }
7875if test "${ac_cv_prog_LIPO+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877else
7878 if test -n "$LIPO"; then
7879 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892done
7893 done
7894IFS=$as_save_IFS
7895
7896fi
7897fi
7898LIPO=$ac_cv_prog_LIPO
7899if test -n "$LIPO"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7901$as_echo "$LIPO" >&6; }
7902else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
7905fi
7906
7907
7908fi
7909if test -z "$ac_cv_prog_LIPO"; then
7910 ac_ct_LIPO=$LIPO
7911 # Extract the first word of "lipo", so it can be a program name with args.
7912set dummy lipo; ac_word=$2
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914$as_echo_n "checking for $ac_word... " >&6; }
7915if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7917else
7918 if test -n "$ac_ct_LIPO"; then
7919 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7920else
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_prog_ac_ct_LIPO="lipo"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932done
7933 done
7934IFS=$as_save_IFS
7935
7936fi
7937fi
7938ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7939if test -n "$ac_ct_LIPO"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7941$as_echo "$ac_ct_LIPO" >&6; }
7942else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
7945fi
7946
7947 if test "x$ac_ct_LIPO" = x; then
7948 LIPO=":"
7949 else
7950 case $cross_compiling:$ac_tool_warned in
7951yes:)
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954ac_tool_warned=yes ;;
7955esac
7956 LIPO=$ac_ct_LIPO
7957 fi
7958else
7959 LIPO="$ac_cv_prog_LIPO"
7960fi
7961
7962 if test -n "$ac_tool_prefix"; then
7963 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7964set dummy ${ac_tool_prefix}otool; ac_word=$2
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966$as_echo_n "checking for $ac_word... " >&6; }
7967if test "${ac_cv_prog_OTOOL+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7969else
7970 if test -n "$OTOOL"; then
7971 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7972else
7973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974for as_dir in $PATH
7975do
7976 IFS=$as_save_IFS
7977 test -z "$as_dir" && as_dir=.
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7980 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 break 2
7983 fi
7984done
7985 done
7986IFS=$as_save_IFS
7987
7988fi
7989fi
7990OTOOL=$ac_cv_prog_OTOOL
7991if test -n "$OTOOL"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7993$as_echo "$OTOOL" >&6; }
7994else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997fi
7998
7999
8000fi
8001if test -z "$ac_cv_prog_OTOOL"; then
8002 ac_ct_OTOOL=$OTOOL
8003 # Extract the first word of "otool", so it can be a program name with args.
8004set dummy otool; ac_word=$2
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006$as_echo_n "checking for $ac_word... " >&6; }
8007if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
8009else
8010 if test -n "$ac_ct_OTOOL"; then
8011 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8012else
8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014for as_dir in $PATH
8015do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020 ac_cv_prog_ac_ct_OTOOL="otool"
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8023 fi
8024done
8025 done
8026IFS=$as_save_IFS
8027
8028fi
8029fi
8030ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8031if test -n "$ac_ct_OTOOL"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8033$as_echo "$ac_ct_OTOOL" >&6; }
8034else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036$as_echo "no" >&6; }
8037fi
8038
8039 if test "x$ac_ct_OTOOL" = x; then
8040 OTOOL=":"
8041 else
8042 case $cross_compiling:$ac_tool_warned in
8043yes:)
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8046ac_tool_warned=yes ;;
8047esac
8048 OTOOL=$ac_ct_OTOOL
8049 fi
8050else
8051 OTOOL="$ac_cv_prog_OTOOL"
8052fi
8053
8054 if test -n "$ac_tool_prefix"; then
8055 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8056set dummy ${ac_tool_prefix}otool64; ac_word=$2
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058$as_echo_n "checking for $ac_word... " >&6; }
8059if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8060 $as_echo_n "(cached) " >&6
8061else
8062 if test -n "$OTOOL64"; then
8063 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8064else
8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068 IFS=$as_save_IFS
8069 test -z "$as_dir" && as_dir=.
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8072 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 break 2
8075 fi
8076done
8077 done
8078IFS=$as_save_IFS
8079
8080fi
8081fi
8082OTOOL64=$ac_cv_prog_OTOOL64
8083if test -n "$OTOOL64"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8085$as_echo "$OTOOL64" >&6; }
8086else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088$as_echo "no" >&6; }
8089fi
8090
8091
8092fi
8093if test -z "$ac_cv_prog_OTOOL64"; then
8094 ac_ct_OTOOL64=$OTOOL64
8095 # Extract the first word of "otool64", so it can be a program name with args.
8096set dummy otool64; ac_word=$2
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098$as_echo_n "checking for $ac_word... " >&6; }
8099if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101else
8102 if test -n "$ac_ct_OTOOL64"; then
8103 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8104else
8105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106for as_dir in $PATH
8107do
8108 IFS=$as_save_IFS
8109 test -z "$as_dir" && as_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8112 ac_cv_prog_ac_ct_OTOOL64="otool64"
8113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 break 2
8115 fi
8116done
8117 done
8118IFS=$as_save_IFS
8119
8120fi
8121fi
8122ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8123if test -n "$ac_ct_OTOOL64"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8125$as_echo "$ac_ct_OTOOL64" >&6; }
8126else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128$as_echo "no" >&6; }
8129fi
8130
8131 if test "x$ac_ct_OTOOL64" = x; then
8132 OTOOL64=":"
8133 else
8134 case $cross_compiling:$ac_tool_warned in
8135yes:)
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8138ac_tool_warned=yes ;;
8139esac
8140 OTOOL64=$ac_ct_OTOOL64
8141 fi
8142else
8143 OTOOL64="$ac_cv_prog_OTOOL64"
8144fi
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8173$as_echo_n "checking for -single_module linker flag... " >&6; }
8174if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176else
8177 lt_cv_apple_cc_single_mod=no
8178 if test -z "${LT_MULTI_MODULE}"; then
8179 # By default we will add the -single_module flag. You can override
8180 # by either setting the environment variable LT_MULTI_MODULE
8181 # non-empty at configure time, or by adding -multi_module to the
8182 # link flags.
8183 rm -rf libconftest.dylib*
8184 echo "int foo(void){return 1;}" > conftest.c
8185 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8186-dynamiclib -Wl,-single_module conftest.c" >&5
8187 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8188 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8189 _lt_result=$?
8190 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8191 lt_cv_apple_cc_single_mod=yes
8192 else
8193 cat conftest.err >&5
8194 fi
8195 rm -rf libconftest.dylib*
8196 rm -f conftest.*
8197 fi
8198fi
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8200$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8202$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8203if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205else
8206 lt_cv_ld_exported_symbols_list=no
8207 save_LDFLAGS=$LDFLAGS
8208 echo "_main" > conftest.sym
8209 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211/* end confdefs.h. */
8212
8213int
8214main ()
8215{
8216
8217 ;
8218 return 0;
8219}
8220_ACEOF
8221if ac_fn_c_try_link "$LINENO"; then :
8222 lt_cv_ld_exported_symbols_list=yes
8223else
8224 lt_cv_ld_exported_symbols_list=no
8225fi
8226rm -f core conftest.err conftest.$ac_objext \
8227 conftest$ac_exeext conftest.$ac_ext
8228 LDFLAGS="$save_LDFLAGS"
8229
8230fi
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8232$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8234$as_echo_n "checking for -force_load linker flag... " >&6; }
8235if test "${lt_cv_ld_force_load+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8237else
8238 lt_cv_ld_force_load=no
8239 cat > conftest.c << _LT_EOF
8240int forced_loaded() { return 2;}
8241_LT_EOF
8242 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8243 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8244 echo "$AR cru libconftest.a conftest.o" >&5
8245 $AR cru libconftest.a conftest.o 2>&5
8246 cat > conftest.c << _LT_EOF
8247int main() { return 0;}
8248_LT_EOF
8249 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8250 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8251 _lt_result=$?
8252 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8253 lt_cv_ld_force_load=yes
8254 else
8255 cat conftest.err >&5
8256 fi
8257 rm -f conftest.err libconftest.a conftest conftest.c
8258 rm -rf conftest.dSYM
8259
8260fi
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8262$as_echo "$lt_cv_ld_force_load" >&6; }
8263 case $host_os in
8264 rhapsody* | darwin1.[012])
8265 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8266 darwin1.*)
8267 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8268 darwin*) # darwin 5.x on
8269 # if running on 10.5 or later, the deployment target defaults
8270 # to the OS version, if on x86, and 10.4, the deployment
8271 # target defaults to 10.4. Don't you love it?
8272 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8273 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8274 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ae7d0cac 8275 10.[012][,.]*)
6bb11ab3
L
8276 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8277 10.*)
8278 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8279 esac
8280 ;;
8281 esac
8282 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8283 _lt_dar_single_mod='$single_module'
8284 fi
8285 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8286 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8287 else
8288 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8289 fi
8290 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8291 _lt_dsymutil='~$DSYMUTIL $lib || :'
8292 else
8293 _lt_dsymutil=
8294 fi
8295 ;;
8296 esac
8297
8298for ac_header in dlfcn.h
8299do :
8300 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8301"
8302if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8303 cat >>confdefs.h <<_ACEOF
8304#define HAVE_DLFCN_H 1
8305_ACEOF
8306
8307fi
8308
8309done
8310
8311
8312
8313# autoconf.info says this should be called right after AC_INIT.
8314ac_config_headers="$ac_config_headers config.h:config.in"
8315
8316
8317
0cb8d851
MF
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8319$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8320if test "${ac_cv_c_bigendian+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322else
8323 ac_cv_c_bigendian=unknown
8324 # See if we're dealing with a universal compiler.
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326/* end confdefs.h. */
8327#ifndef __APPLE_CC__
8328 not a universal capable compiler
8329 #endif
8330 typedef int dummy;
8331
8332_ACEOF
8333if ac_fn_c_try_compile "$LINENO"; then :
8334
8335 # Check for potential -arch flags. It is not universal unless
8336 # there are at least two -arch flags with different values.
8337 ac_arch=
8338 ac_prev=
8339 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8340 if test -n "$ac_prev"; then
8341 case $ac_word in
8342 i?86 | x86_64 | ppc | ppc64)
8343 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8344 ac_arch=$ac_word
8345 else
8346 ac_cv_c_bigendian=universal
8347 break
8348 fi
8349 ;;
8350 esac
8351 ac_prev=
8352 elif test "x$ac_word" = "x-arch"; then
8353 ac_prev=arch
8354 fi
8355 done
8356fi
8357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 if test $ac_cv_c_bigendian = unknown; then
8359 # See if sys/param.h defines the BYTE_ORDER macro.
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361/* end confdefs.h. */
8362#include <sys/types.h>
8363 #include <sys/param.h>
8364
8365int
8366main ()
8367{
8368#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8369 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8370 && LITTLE_ENDIAN)
8371 bogus endian macros
8372 #endif
8373
8374 ;
8375 return 0;
8376}
8377_ACEOF
8378if ac_fn_c_try_compile "$LINENO"; then :
8379 # It does; now see whether it defined to BIG_ENDIAN or not.
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h. */
8382#include <sys/types.h>
8383 #include <sys/param.h>
8384
8385int
8386main ()
8387{
8388#if BYTE_ORDER != BIG_ENDIAN
8389 not big endian
8390 #endif
8391
8392 ;
8393 return 0;
8394}
8395_ACEOF
8396if ac_fn_c_try_compile "$LINENO"; then :
8397 ac_cv_c_bigendian=yes
8398else
8399 ac_cv_c_bigendian=no
8400fi
8401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402fi
8403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405 if test $ac_cv_c_bigendian = unknown; then
8406 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h. */
8409#include <limits.h>
8410
8411int
8412main ()
8413{
8414#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8415 bogus endian macros
8416 #endif
8417
8418 ;
8419 return 0;
8420}
8421_ACEOF
8422if ac_fn_c_try_compile "$LINENO"; then :
8423 # It does; now see whether it defined to _BIG_ENDIAN or not.
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425/* end confdefs.h. */
8426#include <limits.h>
8427
8428int
8429main ()
8430{
8431#ifndef _BIG_ENDIAN
8432 not big endian
8433 #endif
8434
8435 ;
8436 return 0;
8437}
8438_ACEOF
8439if ac_fn_c_try_compile "$LINENO"; then :
8440 ac_cv_c_bigendian=yes
8441else
8442 ac_cv_c_bigendian=no
8443fi
8444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445fi
8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448 if test $ac_cv_c_bigendian = unknown; then
8449 # Compile a test program.
8450 if test "$cross_compiling" = yes; then :
8451 # Try to guess by grepping values from an object file.
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h. */
8454short int ascii_mm[] =
8455 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8456 short int ascii_ii[] =
8457 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8458 int use_ascii (int i) {
8459 return ascii_mm[i] + ascii_ii[i];
8460 }
8461 short int ebcdic_ii[] =
8462 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8463 short int ebcdic_mm[] =
8464 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8465 int use_ebcdic (int i) {
8466 return ebcdic_mm[i] + ebcdic_ii[i];
8467 }
8468 extern int foo;
8469
8470int
8471main ()
8472{
8473return use_ascii (foo) == use_ebcdic (foo);
8474 ;
8475 return 0;
8476}
8477_ACEOF
8478if ac_fn_c_try_compile "$LINENO"; then :
8479 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8480 ac_cv_c_bigendian=yes
8481 fi
8482 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8483 if test "$ac_cv_c_bigendian" = unknown; then
8484 ac_cv_c_bigendian=no
8485 else
8486 # finding both strings is unlikely to happen, but who knows?
8487 ac_cv_c_bigendian=unknown
8488 fi
8489 fi
8490fi
8491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494/* end confdefs.h. */
8495$ac_includes_default
8496int
8497main ()
8498{
8499
8500 /* Are we little or big endian? From Harbison&Steele. */
8501 union
8502 {
8503 long int l;
8504 char c[sizeof (long int)];
8505 } u;
8506 u.l = 1;
8507 return u.c[sizeof (long int) - 1] == 1;
8508
8509 ;
8510 return 0;
8511}
8512_ACEOF
8513if ac_fn_c_try_run "$LINENO"; then :
8514 ac_cv_c_bigendian=no
8515else
8516 ac_cv_c_bigendian=yes
8517fi
8518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8519 conftest.$ac_objext conftest.beam conftest.$ac_ext
8520fi
8521
8522 fi
8523fi
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8525$as_echo "$ac_cv_c_bigendian" >&6; }
8526 case $ac_cv_c_bigendian in #(
8527 yes)
8528 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8529;; #(
8530 no)
8531 ;; #(
8532 universal)
8533
8534$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8535
8536 ;; #(
8537 *)
8538 as_fn_error "unknown endianness
8539 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8540 esac
8541
6bb11ab3
L
8542
8543
8544
8545# Put a plausible default for CC_FOR_BUILD in Makefile.
8546if test "x$cross_compiling" = "xno"; then
8547 CC_FOR_BUILD='$(CC)'
8548else
8549 CC_FOR_BUILD=gcc
8550fi
8551
8552
8553
8554
8555AR=${AR-ar}
8556
8557if test -n "$ac_tool_prefix"; then
8558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8559set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561$as_echo_n "checking for $ac_word... " >&6; }
8562if test "${ac_cv_prog_RANLIB+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
8564else
8565 if test -n "$RANLIB"; then
8566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8567else
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8578 fi
8579done
8580 done
8581IFS=$as_save_IFS
8582
8583fi
8584fi
8585RANLIB=$ac_cv_prog_RANLIB
8586if test -n "$RANLIB"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8588$as_echo "$RANLIB" >&6; }
8589else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
8592fi
8593
8594
8595fi
8596if test -z "$ac_cv_prog_RANLIB"; then
8597 ac_ct_RANLIB=$RANLIB
8598 # Extract the first word of "ranlib", so it can be a program name with args.
8599set dummy ranlib; ac_word=$2
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601$as_echo_n "checking for $ac_word... " >&6; }
8602if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
8604else
8605 if test -n "$ac_ct_RANLIB"; then
8606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8607else
8608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609for as_dir in $PATH
8610do
8611 IFS=$as_save_IFS
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8615 ac_cv_prog_ac_ct_RANLIB="ranlib"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 break 2
8618 fi
8619done
8620 done
8621IFS=$as_save_IFS
8622
8623fi
8624fi
8625ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8626if test -n "$ac_ct_RANLIB"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8628$as_echo "$ac_ct_RANLIB" >&6; }
8629else
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631$as_echo "no" >&6; }
8632fi
8633
8634 if test "x$ac_ct_RANLIB" = x; then
8635 RANLIB=":"
8636 else
8637 case $cross_compiling:$ac_tool_warned in
8638yes:)
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8641ac_tool_warned=yes ;;
8642esac
8643 RANLIB=$ac_ct_RANLIB
8644 fi
8645else
8646 RANLIB="$ac_cv_prog_RANLIB"
8647fi
8648
8649
8650# Some of the common include files depend on bfd.h, and bfd.h checks
8651# that config.h is included first by testing that the PACKAGE macro
8652# is defined.
8653PACKAGE=sim
8654
8655cat >>confdefs.h <<_ACEOF
8656#define PACKAGE "$PACKAGE"
8657_ACEOF
8658
8659
8660
8661# Dependency checking.
8662ac_config_commands="$ac_config_commands depdir"
8663
8664
8665depcc="$CC" am_compiler_list=
8666
8667am_depcomp=$ac_aux_dir/depcomp
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8669$as_echo_n "checking dependency style of $depcc... " >&6; }
8670if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8672else
8673 if test -f "$am_depcomp"; then
8674 # We make a subdir and do the tests there. Otherwise we can end up
8675 # making bogus files that we don't know about and never remove. For
8676 # instance it was reported that on HP-UX the gcc test will end up
8677 # making a dummy file named `D' -- because `-MD' means `put the output
8678 # in D'.
8679 mkdir conftest.dir
8680 # Copy depcomp to subdir because otherwise we won't find it if we're
8681 # using a relative directory.
8682 cp "$am_depcomp" conftest.dir
8683 cd conftest.dir
8684 # We will build objects and dependencies in a subdirectory because
8685 # it helps to detect inapplicable dependency modes. For instance
8686 # both Tru64's cc and ICC support -MD to output dependencies as a
8687 # side effect of compilation, but ICC will put the dependencies in
8688 # the current directory while Tru64 will put them in the object
8689 # directory.
8690 mkdir sub
8691
8692 am_cv_CC_dependencies_compiler_type=none
8693 if test "$am_compiler_list" = ""; then
8694 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8695 fi
8696 for depmode in $am_compiler_list; do
8697 if test $depmode = none; then break; fi
8698
8699 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8700 # Setup a source with many dependencies, because some compilers
8701 # like to wrap large dependency lists on column 80 (with \), and
8702 # we should not choose a depcomp mode which is confused by this.
8703 #
8704 # We need to recreate these files for each test, as the compiler may
8705 # overwrite some of them when testing with obscure command lines.
8706 # This happens at least with the AIX C compiler.
8707 : > sub/conftest.c
8708 for i in 1 2 3 4 5 6; do
8709 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8710 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8711 # Solaris 8's {/usr,}/bin/sh.
8712 touch sub/conftst$i.h
8713 done
8714 echo "include sub/conftest.Po" > confmf
8715
8716 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8717 # mode. It turns out that the SunPro C++ compiler does not properly
8718 # handle `-M -o', and we need to detect this.
8719 depcmd="depmode=$depmode \
8720 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8721 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8722 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8723 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8724 if env $depcmd > conftest.err 2>&1 &&
8725 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8726 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8727 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8728 # icc doesn't choke on unknown options, it will just issue warnings
8729 # or remarks (even with -Werror). So we grep stderr for any message
8730 # that says an option was ignored or not supported.
8731 # When given -MP, icc 7.0 and 7.1 complain thusly:
8732 # icc: Command line warning: ignoring option '-M'; no argument required
8733 # The diagnosis changed in icc 8.0:
8734 # icc: Command line remark: option '-MP' not supported
8735 if (grep 'ignoring option' conftest.err ||
8736 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8737 am_cv_CC_dependencies_compiler_type=$depmode
8738 $as_echo "$as_me:$LINENO: success" >&5
8739 break
8740 fi
8741 fi
8742 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8743 sed -e 's/^/| /' < conftest.err >&5
8744 done
8745
8746 cd ..
8747 rm -rf conftest.dir
8748else
8749 am_cv_CC_dependencies_compiler_type=none
8750fi
8751
8752fi
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8754$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8755if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
8756then as_fn_error "no usable dependency style found" "$LINENO" 5
8757else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8758
8759fi
8760
8761
8762# Check for the 'make' the user wants to use.
8763for ac_prog in make
8764do
8765 # Extract the first word of "$ac_prog", so it can be a program name with args.
8766set dummy $ac_prog; ac_word=$2
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768$as_echo_n "checking for $ac_word... " >&6; }
8769if test "${ac_cv_prog_MAKE+set}" = set; then :
8770 $as_echo_n "(cached) " >&6
8771else
8772 if test -n "$MAKE"; then
8773 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
8774else
8775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776for as_dir in $PATH
8777do
8778 IFS=$as_save_IFS
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8782 ac_cv_prog_MAKE="$ac_prog"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 break 2
8785 fi
8786done
8787 done
8788IFS=$as_save_IFS
8789
8790fi
8791fi
8792MAKE=$ac_cv_prog_MAKE
8793if test -n "$MAKE"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
8795$as_echo "$MAKE" >&6; }
8796else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798$as_echo "no" >&6; }
8799fi
8800
8801
8802 test -n "$MAKE" && break
8803done
8804
8805MAKE_IS_GNU=
8806case "`$MAKE --version 2>&1 | sed 1q`" in
8807 *GNU*)
8808 MAKE_IS_GNU=yes
8809 ;;
8810esac
8811 if test "$MAKE_IS_GNU" = yes; then
8812 GMAKE_TRUE=
8813 GMAKE_FALSE='#'
8814else
8815 GMAKE_TRUE='#'
8816 GMAKE_FALSE=
8817fi
8818
8819
8820ALL_LINGUAS=
8821# If we haven't got the data from the intl directory,
8822# assume NLS is disabled.
8823USE_NLS=no
8824LIBINTL=
8825LIBINTL_DEP=
8826INCINTL=
8827XGETTEXT=
8828GMSGFMT=
8829POSUB=
8830
8831if test -f ../../intl/config.intl; then
8832 . ../../intl/config.intl
8833fi
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8835$as_echo_n "checking whether NLS is requested... " >&6; }
8836if test x"$USE_NLS" != xyes; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838$as_echo "no" >&6; }
8839else
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8841$as_echo "yes" >&6; }
8842
8843$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8844
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8847$as_echo_n "checking for catalogs to be installed... " >&6; }
8848 # Look for .po and .gmo files in the source directory.
8849 CATALOGS=
8850 XLINGUAS=
8851 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8852 # If there aren't any .gmo files the shell will give us the
8853 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8854 # weeded out.
8855 case "$cat" in *\**)
8856 continue;;
8857 esac
8858 # The quadruple backslash is collapsed to a double backslash
8859 # by the backticks, then collapsed again by the double quotes,
8860 # leaving us with one backslash in the sed expression (right
8861 # before the dot that mustn't act as a wildcard).
8862 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8863 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8864 # The user is allowed to set LINGUAS to a list of languages to
8865 # install catalogs for. If it's empty that means "all of them."
8866 if test "x$LINGUAS" = x; then
8867 CATALOGS="$CATALOGS $cat"
8868 XLINGUAS="$XLINGUAS $lang"
8869 else
8870 case "$LINGUAS" in *$lang*)
8871 CATALOGS="$CATALOGS $cat"
8872 XLINGUAS="$XLINGUAS $lang"
8873 ;;
8874 esac
8875 fi
8876 done
8877 LINGUAS="$XLINGUAS"
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8879$as_echo "$LINGUAS" >&6; }
8880
8881
8882 DATADIRNAME=share
8883
8884 INSTOBJEXT=.mo
8885
8886 GENCAT=gencat
8887
8888 CATOBJEXT=.gmo
8889
8890fi
8891
8892# Check for common headers.
8893# FIXME: Seems to me this can cause problems for i386-windows hosts.
8894# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
8895for ac_header in stdlib.h string.h strings.h unistd.h time.h
8896do :
8897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8898ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8899eval as_val=\$$as_ac_Header
8900 if test "x$as_val" = x""yes; then :
8901 cat >>confdefs.h <<_ACEOF
8902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8903_ACEOF
8904
8905fi
8906
8907done
8908
936df756 8909for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
6bb11ab3
L
8910do :
8911 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8912ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8913eval as_val=\$$as_ac_Header
8914 if test "x$as_val" = x""yes; then :
8915 cat >>confdefs.h <<_ACEOF
8916#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8917_ACEOF
8918
8919fi
8920
8921done
8922
8923for ac_header in fcntl.h fpu_control.h
8924do :
8925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8926ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8927eval as_val=\$$as_ac_Header
8928 if test "x$as_val" = x""yes; then :
8929 cat >>confdefs.h <<_ACEOF
8930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8931_ACEOF
8932
8933fi
8934
8935done
8936
8937for ac_header in dlfcn.h errno.h sys/stat.h
8938do :
8939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8940ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8941eval as_val=\$$as_ac_Header
8942 if test "x$as_val" = x""yes; then :
8943 cat >>confdefs.h <<_ACEOF
8944#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8945_ACEOF
8946
8947fi
8948
8949done
8950
8951for ac_func in getrusage time sigaction __setfpucw
8952do :
8953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8954ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8955eval as_val=\$$as_ac_var
8956 if test "x$as_val" = x""yes; then :
8957 cat >>confdefs.h <<_ACEOF
8958#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8959_ACEOF
8960
8961fi
8962done
8963
936df756
MF
8964for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
8965do :
8966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8967ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8968eval as_val=\$$as_ac_var
8969 if test "x$as_val" = x""yes; then :
8970 cat >>confdefs.h <<_ACEOF
8971#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8972_ACEOF
8973
8974fi
8975done
8976
8977ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8978#include <sys/types.h>
8979#endif
8980#ifdef HAVE_SYS_STAT_H
8981#include <sys/stat.h>
8982#endif
8983"
8984if test "x$ac_cv_member_struct_stat_st_dev" = x""yes; then :
8985
8986cat >>confdefs.h <<_ACEOF
8987#define HAVE_STRUCT_STAT_ST_DEV 1
8988_ACEOF
8989
8990
8991fi
8992ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8993#include <sys/types.h>
8994#endif
8995#ifdef HAVE_SYS_STAT_H
8996#include <sys/stat.h>
8997#endif
8998"
8999if test "x$ac_cv_member_struct_stat_st_ino" = x""yes; then :
9000
9001cat >>confdefs.h <<_ACEOF
9002#define HAVE_STRUCT_STAT_ST_INO 1
9003_ACEOF
9004
9005
9006fi
9007ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
9008#include <sys/types.h>
9009#endif
9010#ifdef HAVE_SYS_STAT_H
9011#include <sys/stat.h>
9012#endif
9013"
9014if test "x$ac_cv_member_struct_stat_st_mode" = x""yes; then :
9015
9016cat >>confdefs.h <<_ACEOF
9017#define HAVE_STRUCT_STAT_ST_MODE 1
9018_ACEOF
9019
9020
9021fi
9022ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
9023#include <sys/types.h>
9024#endif
9025#ifdef HAVE_SYS_STAT_H
9026#include <sys/stat.h>
9027#endif
9028"
9029if test "x$ac_cv_member_struct_stat_st_nlink" = x""yes; then :
9030
9031cat >>confdefs.h <<_ACEOF
9032#define HAVE_STRUCT_STAT_ST_NLINK 1
9033_ACEOF
9034
9035
9036fi
9037ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
9038#include <sys/types.h>
9039#endif
9040#ifdef HAVE_SYS_STAT_H
9041#include <sys/stat.h>
9042#endif
9043"
9044if test "x$ac_cv_member_struct_stat_st_uid" = x""yes; then :
9045
9046cat >>confdefs.h <<_ACEOF
9047#define HAVE_STRUCT_STAT_ST_UID 1
9048_ACEOF
9049
9050
9051fi
9052ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
9053#include <sys/types.h>
9054#endif
9055#ifdef HAVE_SYS_STAT_H
9056#include <sys/stat.h>
9057#endif
9058"
9059if test "x$ac_cv_member_struct_stat_st_gid" = x""yes; then :
9060
9061cat >>confdefs.h <<_ACEOF
9062#define HAVE_STRUCT_STAT_ST_GID 1
9063_ACEOF
9064
9065
9066fi
9067ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
9068#include <sys/types.h>
9069#endif
9070#ifdef HAVE_SYS_STAT_H
9071#include <sys/stat.h>
9072#endif
9073"
9074if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
9075
9076cat >>confdefs.h <<_ACEOF
9077#define HAVE_STRUCT_STAT_ST_RDEV 1
9078_ACEOF
9079
9080
9081fi
9082ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
9083#include <sys/types.h>
9084#endif
9085#ifdef HAVE_SYS_STAT_H
9086#include <sys/stat.h>
9087#endif
9088"
9089if test "x$ac_cv_member_struct_stat_st_size" = x""yes; then :
9090
9091cat >>confdefs.h <<_ACEOF
9092#define HAVE_STRUCT_STAT_ST_SIZE 1
9093_ACEOF
9094
9095
9096fi
9097ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
9098#include <sys/types.h>
9099#endif
9100#ifdef HAVE_SYS_STAT_H
9101#include <sys/stat.h>
9102#endif
9103"
9104if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9105
9106cat >>confdefs.h <<_ACEOF
9107#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9108_ACEOF
9109
9110
9111fi
9112ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
9113#include <sys/types.h>
9114#endif
9115#ifdef HAVE_SYS_STAT_H
9116#include <sys/stat.h>
9117#endif
9118"
9119if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9120
9121cat >>confdefs.h <<_ACEOF
9122#define HAVE_STRUCT_STAT_ST_BLOCKS 1
9123_ACEOF
9124
9125
9126fi
9127ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
9128#include <sys/types.h>
9129#endif
9130#ifdef HAVE_SYS_STAT_H
9131#include <sys/stat.h>
9132#endif
9133"
9134if test "x$ac_cv_member_struct_stat_st_atime" = x""yes; then :
9135
9136cat >>confdefs.h <<_ACEOF
9137#define HAVE_STRUCT_STAT_ST_ATIME 1
9138_ACEOF
9139
9140
9141fi
9142ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
9143#include <sys/types.h>
9144#endif
9145#ifdef HAVE_SYS_STAT_H
9146#include <sys/stat.h>
9147#endif
9148"
9149if test "x$ac_cv_member_struct_stat_st_mtime" = x""yes; then :
9150
9151cat >>confdefs.h <<_ACEOF
9152#define HAVE_STRUCT_STAT_ST_MTIME 1
9153_ACEOF
9154
9155
9156fi
9157ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
9158#include <sys/types.h>
9159#endif
9160#ifdef HAVE_SYS_STAT_H
9161#include <sys/stat.h>
9162#endif
9163"
9164if test "x$ac_cv_member_struct_stat_st_ctime" = x""yes; then :
9165
9166cat >>confdefs.h <<_ACEOF
9167#define HAVE_STRUCT_STAT_ST_CTIME 1
9168_ACEOF
9169
9170
9171fi
9172
9173ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9174#include <sys/socket.h>
9175
9176"
9177if test "x$ac_cv_type_socklen_t" = x""yes; then :
9178
9179cat >>confdefs.h <<_ACEOF
9180#define HAVE_SOCKLEN_T 1
9181_ACEOF
9182
9183
9184fi
9185
6bb11ab3
L
9186
9187# Check for socket libraries
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
9189$as_echo_n "checking for bind in -lsocket... " >&6; }
9190if test "${ac_cv_lib_socket_bind+set}" = set; then :
9191 $as_echo_n "(cached) " >&6
9192else
9193 ac_check_lib_save_LIBS=$LIBS
9194LIBS="-lsocket $LIBS"
9195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196/* end confdefs.h. */
9197
9198/* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9201#ifdef __cplusplus
9202extern "C"
9203#endif
9204char bind ();
9205int
9206main ()
9207{
9208return bind ();
9209 ;
9210 return 0;
9211}
9212_ACEOF
9213if ac_fn_c_try_link "$LINENO"; then :
9214 ac_cv_lib_socket_bind=yes
9215else
9216 ac_cv_lib_socket_bind=no
9217fi
9218rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220LIBS=$ac_check_lib_save_LIBS
9221fi
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
9223$as_echo "$ac_cv_lib_socket_bind" >&6; }
9224if test "x$ac_cv_lib_socket_bind" = x""yes; then :
9225 cat >>confdefs.h <<_ACEOF
9226#define HAVE_LIBSOCKET 1
9227_ACEOF
9228
9229 LIBS="-lsocket $LIBS"
9230
9231fi
9232
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9234$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9235if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237else
9238 ac_check_lib_save_LIBS=$LIBS
9239LIBS="-lnsl $LIBS"
9240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241/* end confdefs.h. */
9242
9243/* Override any GCC internal prototype to avoid an error.
9244 Use char because int might match the return type of a GCC
9245 builtin and then its argument prototype would still apply. */
9246#ifdef __cplusplus
9247extern "C"
9248#endif
9249char gethostbyname ();
9250int
9251main ()
9252{
9253return gethostbyname ();
9254 ;
9255 return 0;
9256}
9257_ACEOF
9258if ac_fn_c_try_link "$LINENO"; then :
9259 ac_cv_lib_nsl_gethostbyname=yes
9260else
9261 ac_cv_lib_nsl_gethostbyname=no
9262fi
9263rm -f core conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265LIBS=$ac_check_lib_save_LIBS
9266fi
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9268$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9269if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
9270 cat >>confdefs.h <<_ACEOF
9271#define HAVE_LIBNSL 1
9272_ACEOF
9273
9274 LIBS="-lnsl $LIBS"
9275
9276fi
9277
9278
9279# BFD conditionally uses zlib, so we must link it in if libbfd does, by
9280# using the same condition.
9281
aadc9410 9282 # Use the system's zlib library.
7fed4b0b
L
9283 zlibdir="-L\$(top_builddir)/../zlib"
9284 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 9285
aadc9410
MF
9286# Check whether --with-system-zlib was given.
9287if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
9288 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9289 zlibdir=
9290 zlibinc=
9291 fi
6bb11ab3
L
9292
9293fi
9294
6bb11ab3 9295
6bb11ab3 9296
6bb11ab3
L
9297
9298
9299# BFD uses libdl when when plugins enabled.
9300
faa743bb
RM
9301 maybe_plugins=no
9302 for ac_header in dlfcn.h
9303do :
9304 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9305"
9306if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9307 cat >>confdefs.h <<_ACEOF
9308#define HAVE_DLFCN_H 1
9309_ACEOF
9310 maybe_plugins=yes
9311fi
9312
9313done
9314
9315 for ac_header in windows.h
9316do :
9317 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9318"
9319if test "x$ac_cv_header_windows_h" = x""yes; then :
9320 cat >>confdefs.h <<_ACEOF
9321#define HAVE_WINDOWS_H 1
9322_ACEOF
9323 maybe_plugins=yes
9324fi
9325
9326done
9327
9328
9329 # Check whether --enable-plugins was given.
6bb11ab3
L
9330if test "${enable_plugins+set}" = set; then :
9331 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
9332 no) plugins=no ;;
9333 *) plugins=yes
9334 if test "$maybe_plugins" != "yes" ; then
9335 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
9336 fi ;;
9337 esac
6bb11ab3 9338else
faa743bb
RM
9339 plugins=$maybe_plugins
9340
6bb11ab3
L
9341fi
9342
2974be62
AM
9343 if test "$plugins" = "yes"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9345$as_echo_n "checking for library containing dlopen... " >&6; }
9346if test "${ac_cv_search_dlopen+set}" = set; then :
9347 $as_echo_n "(cached) " >&6
9348else
9349 ac_func_search_save_LIBS=$LIBS
9350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351/* end confdefs.h. */
9352
9353/* Override any GCC internal prototype to avoid an error.
9354 Use char because int might match the return type of a GCC
9355 builtin and then its argument prototype would still apply. */
9356#ifdef __cplusplus
9357extern "C"
9358#endif
9359char dlopen ();
9360int
9361main ()
9362{
9363return dlopen ();
9364 ;
9365 return 0;
9366}
9367_ACEOF
9368for ac_lib in '' dl; do
9369 if test -z "$ac_lib"; then
9370 ac_res="none required"
9371 else
9372 ac_res=-l$ac_lib
9373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9374 fi
9375 if ac_fn_c_try_link "$LINENO"; then :
9376 ac_cv_search_dlopen=$ac_res
9377fi
9378rm -f core conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext
9380 if test "${ac_cv_search_dlopen+set}" = set; then :
9381 break
9382fi
9383done
9384if test "${ac_cv_search_dlopen+set}" = set; then :
9385
9386else
9387 ac_cv_search_dlopen=no
9388fi
9389rm conftest.$ac_ext
9390LIBS=$ac_func_search_save_LIBS
9391fi
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9393$as_echo "$ac_cv_search_dlopen" >&6; }
9394ac_res=$ac_cv_search_dlopen
9395if test "$ac_res" != no; then :
9396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9397
9398fi
9399
9400 fi
6bb11ab3
L
9401
9402 if test "$plugins" = yes; then
9403 PLUGINS_TRUE=
9404 PLUGINS_FALSE='#'
9405else
9406 PLUGINS_TRUE='#'
9407 PLUGINS_FALSE=
9408fi
9409
9410
9411
9412
9413
9414# Set options
9415enable_dlopen=yes
9416
9417
9418
9419
9420 enable_win32_dll=no
9421
9422
9423 # Check whether --enable-shared was given.
9424if test "${enable_shared+set}" = set; then :
9425 enableval=$enable_shared; p=${PACKAGE-default}
9426 case $enableval in
9427 yes) enable_shared=yes ;;
9428 no) enable_shared=no ;;
9429 *)
9430 enable_shared=no
9431 # Look at the argument we got. We use all the common list separators.
9432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9433 for pkg in $enableval; do
9434 IFS="$lt_save_ifs"
9435 if test "X$pkg" = "X$p"; then
9436 enable_shared=yes
9437 fi
9438 done
9439 IFS="$lt_save_ifs"
9440 ;;
9441 esac
9442else
9443 enable_shared=yes
9444fi
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454 # Check whether --enable-static was given.
9455if test "${enable_static+set}" = set; then :
9456 enableval=$enable_static; p=${PACKAGE-default}
9457 case $enableval in
9458 yes) enable_static=yes ;;
9459 no) enable_static=no ;;
9460 *)
9461 enable_static=no
9462 # Look at the argument we got. We use all the common list separators.
9463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9464 for pkg in $enableval; do
9465 IFS="$lt_save_ifs"
9466 if test "X$pkg" = "X$p"; then
9467 enable_static=yes
9468 fi
9469 done
9470 IFS="$lt_save_ifs"
9471 ;;
9472 esac
9473else
9474 enable_static=yes
9475fi
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486# Check whether --with-pic was given.
9487if test "${with_pic+set}" = set; then :
9488 withval=$with_pic; pic_mode="$withval"
9489else
9490 pic_mode=default
9491fi
9492
9493
9494test -z "$pic_mode" && pic_mode=default
9495
9496
9497
9498
9499
9500
9501
9502 # Check whether --enable-fast-install was given.
9503if test "${enable_fast_install+set}" = set; then :
9504 enableval=$enable_fast_install; p=${PACKAGE-default}
9505 case $enableval in
9506 yes) enable_fast_install=yes ;;
9507 no) enable_fast_install=no ;;
9508 *)
9509 enable_fast_install=no
9510 # Look at the argument we got. We use all the common list separators.
9511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9512 for pkg in $enableval; do
9513 IFS="$lt_save_ifs"
9514 if test "X$pkg" = "X$p"; then
9515 enable_fast_install=yes
9516 fi
9517 done
9518 IFS="$lt_save_ifs"
9519 ;;
9520 esac
9521else
9522 enable_fast_install=yes
9523fi
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535# This can be used to rebuild libtool when needed
9536LIBTOOL_DEPS="$ltmain"
9537
9538# Always use our own libtool.
9539LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566test -z "$LN_S" && LN_S="ln -s"
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581if test -n "${ZSH_VERSION+set}" ; then
9582 setopt NO_GLOB_SUBST
9583fi
9584
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9586$as_echo_n "checking for objdir... " >&6; }
9587if test "${lt_cv_objdir+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9589else
9590 rm -f .libs 2>/dev/null
9591mkdir .libs 2>/dev/null
9592if test -d .libs; then
9593 lt_cv_objdir=.libs
9594else
9595 # MS-DOS does not allow filenames that begin with a dot.
9596 lt_cv_objdir=_libs
9597fi
9598rmdir .libs 2>/dev/null
9599fi
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9601$as_echo "$lt_cv_objdir" >&6; }
9602objdir=$lt_cv_objdir
9603
9604
9605
9606
9607
9608cat >>confdefs.h <<_ACEOF
9609#define LT_OBJDIR "$lt_cv_objdir/"
9610_ACEOF
9611
9612
9613
9614
9615case $host_os in
9616aix3*)
9617 # AIX sometimes has problems with the GCC collect2 program. For some
9618 # reason, if we set the COLLECT_NAMES environment variable, the problems
9619 # vanish in a puff of smoke.
9620 if test "X${COLLECT_NAMES+set}" != Xset; then
9621 COLLECT_NAMES=
9622 export COLLECT_NAMES
9623 fi
9624 ;;
9625esac
9626
9627# Global variables:
9628ofile=libtool
9629can_build_shared=yes
9630
9631# All known linkers require a `.a' archive for static linking (except MSVC,
9632# which needs '.lib').
9633libext=a
9634
9635with_gnu_ld="$lt_cv_prog_gnu_ld"
9636
9637old_CC="$CC"
9638old_CFLAGS="$CFLAGS"
9639
9640# Set sane defaults for various variables
9641test -z "$CC" && CC=cc
9642test -z "$LTCC" && LTCC=$CC
9643test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9644test -z "$LD" && LD=ld
9645test -z "$ac_objext" && ac_objext=o
9646
9647for cc_temp in $compiler""; do
9648 case $cc_temp in
9649 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9650 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9651 \-*) ;;
9652 *) break;;
9653 esac
9654done
9655cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9656
9657
9658# Only perform the check for file, if the check method requires it
9659test -z "$MAGIC_CMD" && MAGIC_CMD=file
9660case $deplibs_check_method in
9661file_magic*)
9662 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9664$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9665if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9667else
9668 case $MAGIC_CMD in
9669[\\/*] | ?:[\\/]*)
9670 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9671 ;;
9672*)
9673 lt_save_MAGIC_CMD="$MAGIC_CMD"
9674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9675 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9676 for ac_dir in $ac_dummy; do
9677 IFS="$lt_save_ifs"
9678 test -z "$ac_dir" && ac_dir=.
9679 if test -f $ac_dir/${ac_tool_prefix}file; then
9680 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9681 if test -n "$file_magic_test_file"; then
9682 case $deplibs_check_method in
9683 "file_magic "*)
9684 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9686 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9687 $EGREP "$file_magic_regex" > /dev/null; then
9688 :
9689 else
9690 cat <<_LT_EOF 1>&2
9691
9692*** Warning: the command libtool uses to detect shared libraries,
9693*** $file_magic_cmd, produces output that libtool cannot recognize.
9694*** The result is that libtool may fail to recognize shared libraries
9695*** as such. This will affect the creation of libtool libraries that
9696*** depend on shared libraries, but programs linked with such libtool
9697*** libraries will work regardless of this problem. Nevertheless, you
9698*** may want to report the problem to your system manager and/or to
9699*** bug-libtool@gnu.org
9700
9701_LT_EOF
9702 fi ;;
9703 esac
9704 fi
9705 break
9706 fi
9707 done
9708 IFS="$lt_save_ifs"
9709 MAGIC_CMD="$lt_save_MAGIC_CMD"
9710 ;;
9711esac
9712fi
9713
9714MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9715if test -n "$MAGIC_CMD"; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9717$as_echo "$MAGIC_CMD" >&6; }
9718else
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720$as_echo "no" >&6; }
9721fi
9722
9723
9724
9725
9726
9727if test -z "$lt_cv_path_MAGIC_CMD"; then
9728 if test -n "$ac_tool_prefix"; then
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9730$as_echo_n "checking for file... " >&6; }
9731if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9732 $as_echo_n "(cached) " >&6
9733else
9734 case $MAGIC_CMD in
9735[\\/*] | ?:[\\/]*)
9736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9737 ;;
9738*)
9739 lt_save_MAGIC_CMD="$MAGIC_CMD"
9740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9741 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9742 for ac_dir in $ac_dummy; do
9743 IFS="$lt_save_ifs"
9744 test -z "$ac_dir" && ac_dir=.
9745 if test -f $ac_dir/file; then
9746 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9747 if test -n "$file_magic_test_file"; then
9748 case $deplibs_check_method in
9749 "file_magic "*)
9750 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9752 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9753 $EGREP "$file_magic_regex" > /dev/null; then
9754 :
9755 else
9756 cat <<_LT_EOF 1>&2
9757
9758*** Warning: the command libtool uses to detect shared libraries,
9759*** $file_magic_cmd, produces output that libtool cannot recognize.
9760*** The result is that libtool may fail to recognize shared libraries
9761*** as such. This will affect the creation of libtool libraries that
9762*** depend on shared libraries, but programs linked with such libtool
9763*** libraries will work regardless of this problem. Nevertheless, you
9764*** may want to report the problem to your system manager and/or to
9765*** bug-libtool@gnu.org
9766
9767_LT_EOF
9768 fi ;;
9769 esac
9770 fi
9771 break
9772 fi
9773 done
9774 IFS="$lt_save_ifs"
9775 MAGIC_CMD="$lt_save_MAGIC_CMD"
9776 ;;
9777esac
9778fi
9779
9780MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9781if test -n "$MAGIC_CMD"; then
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9783$as_echo "$MAGIC_CMD" >&6; }
9784else
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786$as_echo "no" >&6; }
9787fi
9788
9789
9790 else
9791 MAGIC_CMD=:
9792 fi
9793fi
9794
9795 fi
9796 ;;
9797esac
9798
9799# Use C for the default configuration in the libtool script
9800
9801lt_save_CC="$CC"
9802ac_ext=c
9803ac_cpp='$CPP $CPPFLAGS'
9804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9806ac_compiler_gnu=$ac_cv_c_compiler_gnu
9807
9808
9809# Source file extension for C test sources.
9810ac_ext=c
9811
9812# Object file extension for compiled C test sources.
9813objext=o
9814objext=$objext
9815
9816# Code to be used in simple compile tests
9817lt_simple_compile_test_code="int some_variable = 0;"
9818
9819# Code to be used in simple link tests
9820lt_simple_link_test_code='int main(){return(0);}'
9821
9822
9823
9824
9825
9826
9827
9828# If no C compiler was specified, use CC.
9829LTCC=${LTCC-"$CC"}
9830
9831# If no C compiler flags were specified, use CFLAGS.
9832LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9833
9834# Allow CC to be a program name with arguments.
9835compiler=$CC
9836
9837# Save the default compiler, since it gets overwritten when the other
9838# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9839compiler_DEFAULT=$CC
9840
9841# save warnings/boilerplate of simple test code
9842ac_outfile=conftest.$ac_objext
9843echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9844eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9845_lt_compiler_boilerplate=`cat conftest.err`
9846$RM conftest*
9847
9848ac_outfile=conftest.$ac_objext
9849echo "$lt_simple_link_test_code" >conftest.$ac_ext
9850eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9851_lt_linker_boilerplate=`cat conftest.err`
9852$RM -r conftest*
9853
9854
9855## CAVEAT EMPTOR:
9856## There is no encapsulation within the following macros, do not change
9857## the running order or otherwise move them around unless you know exactly
9858## what you are doing...
9859if test -n "$compiler"; then
9860
9861lt_prog_compiler_no_builtin_flag=
9862
9863if test "$GCC" = yes; then
9864 case $cc_basename in
9865 nvcc*)
9866 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9867 *)
9868 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9869 esac
9870
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9872$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9873if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9874 $as_echo_n "(cached) " >&6
9875else
9876 lt_cv_prog_compiler_rtti_exceptions=no
9877 ac_outfile=conftest.$ac_objext
9878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9879 lt_compiler_flag="-fno-rtti -fno-exceptions"
9880 # Insert the option either (1) after the last *FLAGS variable, or
9881 # (2) before a word containing "conftest.", or (3) at the end.
9882 # Note that $ac_compile itself does not contain backslashes and begins
9883 # with a dollar sign (not a hyphen), so the echo should work correctly.
9884 # The option is referenced via a variable to avoid confusing sed.
9885 lt_compile=`echo "$ac_compile" | $SED \
9886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9888 -e 's:$: $lt_compiler_flag:'`
9889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9890 (eval "$lt_compile" 2>conftest.err)
9891 ac_status=$?
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 if (exit $ac_status) && test -s "$ac_outfile"; then
9895 # The compiler can only warn and ignore the option if not recognized
9896 # So say no if there are warnings other than the usual output.
9897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9900 lt_cv_prog_compiler_rtti_exceptions=yes
9901 fi
9902 fi
9903 $RM conftest*
9904
9905fi
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9907$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9908
9909if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9910 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9911else
9912 :
9913fi
9914
9915fi
9916
9917
9918
9919
9920
9921
9922 lt_prog_compiler_wl=
9923lt_prog_compiler_pic=
9924lt_prog_compiler_static=
9925
9926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9927$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9928
9929 if test "$GCC" = yes; then
9930 lt_prog_compiler_wl='-Wl,'
9931 lt_prog_compiler_static='-static'
9932
9933 case $host_os in
9934 aix*)
9935 # All AIX code is PIC.
9936 if test "$host_cpu" = ia64; then
9937 # AIX 5 now supports IA64 processor
9938 lt_prog_compiler_static='-Bstatic'
9939 fi
9940 lt_prog_compiler_pic='-fPIC'
9941 ;;
9942
9943 amigaos*)
9944 case $host_cpu in
9945 powerpc)
9946 # see comment about AmigaOS4 .so support
9947 lt_prog_compiler_pic='-fPIC'
9948 ;;
9949 m68k)
9950 # FIXME: we need at least 68020 code to build shared libraries, but
9951 # adding the `-m68020' flag to GCC prevents building anything better,
9952 # like `-m68040'.
9953 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9954 ;;
9955 esac
9956 ;;
9957
9958 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9959 # PIC is the default for these OSes.
9960 ;;
9961
9962 mingw* | cygwin* | pw32* | os2* | cegcc*)
9963 # This hack is so that the source file can tell whether it is being
9964 # built for inclusion in a dll (and should export symbols for example).
9965 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9966 # (--disable-auto-import) libraries
9967 lt_prog_compiler_pic='-DDLL_EXPORT'
9968 ;;
9969
9970 darwin* | rhapsody*)
9971 # PIC is the default on this platform
9972 # Common symbols not allowed in MH_DYLIB files
9973 lt_prog_compiler_pic='-fno-common'
9974 ;;
9975
9976 haiku*)
9977 # PIC is the default for Haiku.
9978 # The "-static" flag exists, but is broken.
9979 lt_prog_compiler_static=
9980 ;;
9981
9982 hpux*)
9983 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9984 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9985 # sets the default TLS model and affects inlining.
9986 case $host_cpu in
9987 hppa*64*)
9988 # +Z the default
9989 ;;
9990 *)
9991 lt_prog_compiler_pic='-fPIC'
9992 ;;
9993 esac
9994 ;;
9995
9996 interix[3-9]*)
9997 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9998 # Instead, we relocate shared libraries at runtime.
9999 ;;
10000
10001 msdosdjgpp*)
10002 # Just because we use GCC doesn't mean we suddenly get shared libraries
10003 # on systems that don't support them.
10004 lt_prog_compiler_can_build_shared=no
10005 enable_shared=no
10006 ;;
10007
10008 *nto* | *qnx*)
10009 # QNX uses GNU C++, but need to define -shared option too, otherwise
10010 # it will coredump.
10011 lt_prog_compiler_pic='-fPIC -shared'
10012 ;;
10013
10014 sysv4*MP*)
10015 if test -d /usr/nec; then
10016 lt_prog_compiler_pic=-Kconform_pic
10017 fi
10018 ;;
10019
10020 *)
10021 lt_prog_compiler_pic='-fPIC'
10022 ;;
10023 esac
10024
10025 case $cc_basename in
10026 nvcc*) # Cuda Compiler Driver 2.2
10027 lt_prog_compiler_wl='-Xlinker '
10028 lt_prog_compiler_pic='-Xcompiler -fPIC'
10029 ;;
10030 esac
10031 else
10032 # PORTME Check for flag to pass linker flags through the system compiler.
10033 case $host_os in
10034 aix*)
10035 lt_prog_compiler_wl='-Wl,'
10036 if test "$host_cpu" = ia64; then
10037 # AIX 5 now supports IA64 processor
10038 lt_prog_compiler_static='-Bstatic'
10039 else
10040 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10041 fi
10042 ;;
10043
10044 mingw* | cygwin* | pw32* | os2* | cegcc*)
10045 # This hack is so that the source file can tell whether it is being
10046 # built for inclusion in a dll (and should export symbols for example).
10047 lt_prog_compiler_pic='-DDLL_EXPORT'
10048 ;;
10049
10050 hpux9* | hpux10* | hpux11*)
10051 lt_prog_compiler_wl='-Wl,'
10052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10053 # not for PA HP-UX.
10054 case $host_cpu in
10055 hppa*64*|ia64*)
10056 # +Z the default
10057 ;;
10058 *)
10059 lt_prog_compiler_pic='+Z'
10060 ;;
10061 esac
10062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10063 lt_prog_compiler_static='${wl}-a ${wl}archive'
10064 ;;
10065
10066 irix5* | irix6* | nonstopux*)
10067 lt_prog_compiler_wl='-Wl,'
10068 # PIC (with -KPIC) is the default.
10069 lt_prog_compiler_static='-non_shared'
10070 ;;
10071
10072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10073 case $cc_basename in
10074 # old Intel for x86_64 which still supported -KPIC.
10075 ecc*)
10076 lt_prog_compiler_wl='-Wl,'
10077 lt_prog_compiler_pic='-KPIC'
10078 lt_prog_compiler_static='-static'
10079 ;;
10080 # icc used to be incompatible with GCC.
10081 # ICC 10 doesn't accept -KPIC any more.
10082 icc* | ifort*)
10083 lt_prog_compiler_wl='-Wl,'
10084 lt_prog_compiler_pic='-fPIC'
10085 lt_prog_compiler_static='-static'
10086 ;;
10087 # Lahey Fortran 8.1.
10088 lf95*)
10089 lt_prog_compiler_wl='-Wl,'
10090 lt_prog_compiler_pic='--shared'
10091 lt_prog_compiler_static='--static'
10092 ;;
10093 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10094 # Portland Group compilers (*not* the Pentium gcc compiler,
10095 # which looks to be a dead project)
10096 lt_prog_compiler_wl='-Wl,'
10097 lt_prog_compiler_pic='-fpic'
10098 lt_prog_compiler_static='-Bstatic'
10099 ;;
10100 ccc*)
10101 lt_prog_compiler_wl='-Wl,'
10102 # All Alpha code is PIC.
10103 lt_prog_compiler_static='-non_shared'
10104 ;;
10105 xl* | bgxl* | bgf* | mpixl*)
10106 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10107 lt_prog_compiler_wl='-Wl,'
10108 lt_prog_compiler_pic='-qpic'
10109 lt_prog_compiler_static='-qstaticlink'
10110 ;;
10111 *)
10112 case `$CC -V 2>&1 | sed 5q` in
10113 *Sun\ F* | *Sun*Fortran*)
10114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10115 lt_prog_compiler_pic='-KPIC'
10116 lt_prog_compiler_static='-Bstatic'
10117 lt_prog_compiler_wl=''
10118 ;;
10119 *Sun\ C*)
10120 # Sun C 5.9
10121 lt_prog_compiler_pic='-KPIC'
10122 lt_prog_compiler_static='-Bstatic'
10123 lt_prog_compiler_wl='-Wl,'
10124 ;;
10125 esac
10126 ;;
10127 esac
10128 ;;
10129
10130 newsos6)
10131 lt_prog_compiler_pic='-KPIC'
10132 lt_prog_compiler_static='-Bstatic'
10133 ;;
10134
10135 *nto* | *qnx*)
10136 # QNX uses GNU C++, but need to define -shared option too, otherwise
10137 # it will coredump.
10138 lt_prog_compiler_pic='-fPIC -shared'
10139 ;;
10140
10141 osf3* | osf4* | osf5*)
10142 lt_prog_compiler_wl='-Wl,'
10143 # All OSF/1 code is PIC.
10144 lt_prog_compiler_static='-non_shared'
10145 ;;
10146
10147 rdos*)
10148 lt_prog_compiler_static='-non_shared'
10149 ;;
10150
10151 solaris*)
10152 lt_prog_compiler_pic='-KPIC'
10153 lt_prog_compiler_static='-Bstatic'
10154 case $cc_basename in
10155 f77* | f90* | f95*)
10156 lt_prog_compiler_wl='-Qoption ld ';;
10157 *)
10158 lt_prog_compiler_wl='-Wl,';;
10159 esac
10160 ;;
10161
10162 sunos4*)
10163 lt_prog_compiler_wl='-Qoption ld '
10164 lt_prog_compiler_pic='-PIC'
10165 lt_prog_compiler_static='-Bstatic'
10166 ;;
10167
10168 sysv4 | sysv4.2uw2* | sysv4.3*)
10169 lt_prog_compiler_wl='-Wl,'
10170 lt_prog_compiler_pic='-KPIC'
10171 lt_prog_compiler_static='-Bstatic'
10172 ;;
10173
10174 sysv4*MP*)
10175 if test -d /usr/nec ;then
10176 lt_prog_compiler_pic='-Kconform_pic'
10177 lt_prog_compiler_static='-Bstatic'
10178 fi
10179 ;;
10180
10181 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10182 lt_prog_compiler_wl='-Wl,'
10183 lt_prog_compiler_pic='-KPIC'
10184 lt_prog_compiler_static='-Bstatic'
10185 ;;
10186
10187 unicos*)
10188 lt_prog_compiler_wl='-Wl,'
10189 lt_prog_compiler_can_build_shared=no
10190 ;;
10191
10192 uts4*)
10193 lt_prog_compiler_pic='-pic'
10194 lt_prog_compiler_static='-Bstatic'
10195 ;;
10196
10197 *)
10198 lt_prog_compiler_can_build_shared=no
10199 ;;
10200 esac
10201 fi
10202
10203case $host_os in
10204 # For platforms which do not support PIC, -DPIC is meaningless:
10205 *djgpp*)
10206 lt_prog_compiler_pic=
10207 ;;
10208 *)
10209 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10210 ;;
10211esac
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10213$as_echo "$lt_prog_compiler_pic" >&6; }
10214
10215
10216
10217
10218
10219
10220#
10221# Check to make sure the PIC flag actually works.
10222#
10223if test -n "$lt_prog_compiler_pic"; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10225$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10226if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10227 $as_echo_n "(cached) " >&6
10228else
10229 lt_cv_prog_compiler_pic_works=no
10230 ac_outfile=conftest.$ac_objext
10231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10232 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10233 # Insert the option either (1) after the last *FLAGS variable, or
10234 # (2) before a word containing "conftest.", or (3) at the end.
10235 # Note that $ac_compile itself does not contain backslashes and begins
10236 # with a dollar sign (not a hyphen), so the echo should work correctly.
10237 # The option is referenced via a variable to avoid confusing sed.
10238 lt_compile=`echo "$ac_compile" | $SED \
10239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10241 -e 's:$: $lt_compiler_flag:'`
10242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10243 (eval "$lt_compile" 2>conftest.err)
10244 ac_status=$?
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 if (exit $ac_status) && test -s "$ac_outfile"; then
10248 # The compiler can only warn and ignore the option if not recognized
10249 # So say no if there are warnings other than the usual output.
10250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10253 lt_cv_prog_compiler_pic_works=yes
10254 fi
10255 fi
10256 $RM conftest*
10257
10258fi
10259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10260$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10261
10262if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10263 case $lt_prog_compiler_pic in
10264 "" | " "*) ;;
10265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10266 esac
10267else
10268 lt_prog_compiler_pic=
10269 lt_prog_compiler_can_build_shared=no
10270fi
10271
10272fi
10273
10274
10275
10276
10277
10278
10279#
10280# Check to make sure the static flag actually works.
10281#
10282wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10284$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10285if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10287else
10288 lt_cv_prog_compiler_static_works=no
10289 save_LDFLAGS="$LDFLAGS"
10290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10293 # The linker can only warn and ignore the option if not recognized
10294 # So say no if there are warnings
10295 if test -s conftest.err; then
10296 # Append any errors to the config.log.
10297 cat conftest.err 1>&5
10298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10300 if diff conftest.exp conftest.er2 >/dev/null; then
10301 lt_cv_prog_compiler_static_works=yes
10302 fi
10303 else
10304 lt_cv_prog_compiler_static_works=yes
10305 fi
10306 fi
10307 $RM -r conftest*
10308 LDFLAGS="$save_LDFLAGS"
10309
10310fi
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10312$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10313
10314if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10315 :
10316else
10317 lt_prog_compiler_static=
10318fi
10319
10320
10321
10322
10323
10324
10325
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10327$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10328if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330else
10331 lt_cv_prog_compiler_c_o=no
10332 $RM -r conftest 2>/dev/null
10333 mkdir conftest
10334 cd conftest
10335 mkdir out
10336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10337
10338 lt_compiler_flag="-o out/conftest2.$ac_objext"
10339 # Insert the option either (1) after the last *FLAGS variable, or
10340 # (2) before a word containing "conftest.", or (3) at the end.
10341 # Note that $ac_compile itself does not contain backslashes and begins
10342 # with a dollar sign (not a hyphen), so the echo should work correctly.
10343 lt_compile=`echo "$ac_compile" | $SED \
10344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10346 -e 's:$: $lt_compiler_flag:'`
10347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10348 (eval "$lt_compile" 2>out/conftest.err)
10349 ac_status=$?
10350 cat out/conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10353 then
10354 # The compiler can only warn and ignore the option if not recognized
10355 # So say no if there are warnings
10356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10359 lt_cv_prog_compiler_c_o=yes
10360 fi
10361 fi
10362 chmod u+w . 2>&5
10363 $RM conftest*
10364 # SGI C++ compiler will create directory out/ii_files/ for
10365 # template instantiation
10366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10367 $RM out/* && rmdir out
10368 cd ..
10369 $RM -r conftest
10370 $RM conftest*
10371
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10374$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10375
10376
10377
10378
10379
10380
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10382$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10383if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385else
10386 lt_cv_prog_compiler_c_o=no
10387 $RM -r conftest 2>/dev/null
10388 mkdir conftest
10389 cd conftest
10390 mkdir out
10391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10392
10393 lt_compiler_flag="-o out/conftest2.$ac_objext"
10394 # Insert the option either (1) after the last *FLAGS variable, or
10395 # (2) before a word containing "conftest.", or (3) at the end.
10396 # Note that $ac_compile itself does not contain backslashes and begins
10397 # with a dollar sign (not a hyphen), so the echo should work correctly.
10398 lt_compile=`echo "$ac_compile" | $SED \
10399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10401 -e 's:$: $lt_compiler_flag:'`
10402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10403 (eval "$lt_compile" 2>out/conftest.err)
10404 ac_status=$?
10405 cat out/conftest.err >&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10408 then
10409 # The compiler can only warn and ignore the option if not recognized
10410 # So say no if there are warnings
10411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10414 lt_cv_prog_compiler_c_o=yes
10415 fi
10416 fi
10417 chmod u+w . 2>&5
10418 $RM conftest*
10419 # SGI C++ compiler will create directory out/ii_files/ for
10420 # template instantiation
10421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10422 $RM out/* && rmdir out
10423 cd ..
10424 $RM -r conftest
10425 $RM conftest*
10426
10427fi
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10429$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10430
10431
10432
10433
10434hard_links="nottested"
10435if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10436 # do not overwrite the value of need_locks provided by the user
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10438$as_echo_n "checking if we can lock with hard links... " >&6; }
10439 hard_links=yes
10440 $RM conftest*
10441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10442 touch conftest.a
10443 ln conftest.a conftest.b 2>&5 || hard_links=no
10444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10446$as_echo "$hard_links" >&6; }
10447 if test "$hard_links" = no; then
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10449$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10450 need_locks=warn
10451 fi
10452else
10453 need_locks=no
10454fi
10455
10456
10457
10458
10459
10460
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10462$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10463
10464 runpath_var=
10465 allow_undefined_flag=
10466 always_export_symbols=no
10467 archive_cmds=
10468 archive_expsym_cmds=
10469 compiler_needs_object=no
10470 enable_shared_with_static_runtimes=no
10471 export_dynamic_flag_spec=
10472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10473 hardcode_automatic=no
10474 hardcode_direct=no
10475 hardcode_direct_absolute=no
10476 hardcode_libdir_flag_spec=
10477 hardcode_libdir_flag_spec_ld=
10478 hardcode_libdir_separator=
10479 hardcode_minus_L=no
10480 hardcode_shlibpath_var=unsupported
10481 inherit_rpath=no
10482 link_all_deplibs=unknown
10483 module_cmds=
10484 module_expsym_cmds=
10485 old_archive_from_new_cmds=
10486 old_archive_from_expsyms_cmds=
10487 thread_safe_flag_spec=
10488 whole_archive_flag_spec=
10489 # include_expsyms should be a list of space-separated symbols to be *always*
10490 # included in the symbol list
10491 include_expsyms=
10492 # exclude_expsyms can be an extended regexp of symbols to exclude
10493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10495 # as well as any symbol that contains `d'.
10496 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10498 # platforms (ab)use it in PIC code, but their linkers get confused if
10499 # the symbol is explicitly referenced. Since portable code cannot
10500 # rely on this symbol name, it's probably fine to never include it in
10501 # preloaded symbol tables.
10502 # Exclude shared library initialization/finalization symbols.
10503 extract_expsyms_cmds=
10504
10505 case $host_os in
10506 cygwin* | mingw* | pw32* | cegcc*)
10507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10508 # When not using gcc, we currently assume that we are using
10509 # Microsoft Visual C++.
10510 if test "$GCC" != yes; then
10511 with_gnu_ld=no
10512 fi
10513 ;;
10514 interix*)
10515 # we just hope/assume this is gcc and not c89 (= MSVC++)
10516 with_gnu_ld=yes
10517 ;;
10518 openbsd*)
10519 with_gnu_ld=no
10520 ;;
10521 esac
10522
10523 ld_shlibs=yes
10524
10525 # On some targets, GNU ld is compatible enough with the native linker
10526 # that we're better off using the native interface for both.
10527 lt_use_gnu_ld_interface=no
10528 if test "$with_gnu_ld" = yes; then
10529 case $host_os in
10530 aix*)
10531 # The AIX port of GNU ld has always aspired to compatibility
10532 # with the native linker. However, as the warning in the GNU ld
10533 # block says, versions before 2.19.5* couldn't really create working
10534 # shared libraries, regardless of the interface used.
10535 case `$LD -v 2>&1` in
10536 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10537 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10538 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10539 *)
10540 lt_use_gnu_ld_interface=yes
10541 ;;
10542 esac
10543 ;;
10544 *)
10545 lt_use_gnu_ld_interface=yes
10546 ;;
10547 esac
10548 fi
10549
10550 if test "$lt_use_gnu_ld_interface" = yes; then
10551 # If archive_cmds runs LD, not CC, wlarc should be empty
10552 wlarc='${wl}'
10553
10554 # Set some defaults for GNU ld with shared library support. These
10555 # are reset later if shared libraries are not supported. Putting them
10556 # here allows them to be overridden if necessary.
10557 runpath_var=LD_RUN_PATH
10558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10559 export_dynamic_flag_spec='${wl}--export-dynamic'
10560 # ancient GNU ld didn't support --whole-archive et. al.
10561 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10562 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10563 else
10564 whole_archive_flag_spec=
10565 fi
10566 supports_anon_versioning=no
10567 case `$LD -v 2>&1` in
10568 *GNU\ gold*) supports_anon_versioning=yes ;;
10569 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10570 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10571 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10572 *\ 2.11.*) ;; # other 2.11 versions
10573 *) supports_anon_versioning=yes ;;
10574 esac
10575
10576 # See if GNU ld supports shared libraries.
10577 case $host_os in
10578 aix[3-9]*)
10579 # On AIX/PPC, the GNU linker is very broken
10580 if test "$host_cpu" != ia64; then
10581 ld_shlibs=no
10582 cat <<_LT_EOF 1>&2
10583
10584*** Warning: the GNU linker, at least up to release 2.19, is reported
10585*** to be unable to reliably create shared libraries on AIX.
10586*** Therefore, libtool is disabling shared libraries support. If you
10587*** really care for shared libraries, you may want to install binutils
10588*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10589*** You will then need to restart the configuration process.
10590
10591_LT_EOF
10592 fi
10593 ;;
10594
10595 amigaos*)
10596 case $host_cpu in
10597 powerpc)
10598 # see comment about AmigaOS4 .so support
10599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10600 archive_expsym_cmds=''
10601 ;;
10602 m68k)
10603 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)'
10604 hardcode_libdir_flag_spec='-L$libdir'
10605 hardcode_minus_L=yes
10606 ;;
10607 esac
10608 ;;
10609
10610 beos*)
10611 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10612 allow_undefined_flag=unsupported
10613 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10614 # support --undefined. This deserves some investigation. FIXME
10615 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10616 else
10617 ld_shlibs=no
10618 fi
10619 ;;
10620
10621 cygwin* | mingw* | pw32* | cegcc*)
10622 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10623 # as there is no search path for DLLs.
10624 hardcode_libdir_flag_spec='-L$libdir'
10625 export_dynamic_flag_spec='${wl}--export-all-symbols'
10626 allow_undefined_flag=unsupported
10627 always_export_symbols=no
10628 enable_shared_with_static_runtimes=yes
10629 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10630
10631 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10633 # If the export-symbols file already is a .def file (1st line
10634 # is EXPORTS), use it as is; otherwise, prepend...
10635 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10636 cp $export_symbols $output_objdir/$soname.def;
10637 else
10638 echo EXPORTS > $output_objdir/$soname.def;
10639 cat $export_symbols >> $output_objdir/$soname.def;
10640 fi~
10641 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10642 else
10643 ld_shlibs=no
10644 fi
10645 ;;
10646
10647 haiku*)
10648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10649 link_all_deplibs=yes
10650 ;;
10651
10652 interix[3-9]*)
10653 hardcode_direct=no
10654 hardcode_shlibpath_var=no
10655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10656 export_dynamic_flag_spec='${wl}-E'
10657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10658 # Instead, shared libraries are loaded at an image base (0x10000000 by
10659 # default) and relocated if they conflict, which is a slow very memory
10660 # consuming and fragmenting process. To avoid this, we pick a random,
10661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10662 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10663 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10664 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'
10665 ;;
10666
10667 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10668 tmp_diet=no
10669 if test "$host_os" = linux-dietlibc; then
10670 case $cc_basename in
10671 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10672 esac
10673 fi
10674 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10675 && test "$tmp_diet" = no
10676 then
ae7d0cac 10677 tmp_addflag=' $pic_flag'
6bb11ab3
L
10678 tmp_sharedflag='-shared'
10679 case $cc_basename,$host_cpu in
10680 pgcc*) # Portland Group C compiler
10681 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'
10682 tmp_addflag=' $pic_flag'
10683 ;;
10684 pgf77* | pgf90* | pgf95* | pgfortran*)
10685 # Portland Group f77 and f90 compilers
10686 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'
10687 tmp_addflag=' $pic_flag -Mnomain' ;;
10688 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10689 tmp_addflag=' -i_dynamic' ;;
10690 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10691 tmp_addflag=' -i_dynamic -nofor_main' ;;
10692 ifc* | ifort*) # Intel Fortran compiler
10693 tmp_addflag=' -nofor_main' ;;
10694 lf95*) # Lahey Fortran 8.1
10695 whole_archive_flag_spec=
10696 tmp_sharedflag='--shared' ;;
10697 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10698 tmp_sharedflag='-qmkshrobj'
10699 tmp_addflag= ;;
10700 nvcc*) # Cuda Compiler Driver 2.2
10701 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'
10702 compiler_needs_object=yes
10703 ;;
10704 esac
10705 case `$CC -V 2>&1 | sed 5q` in
10706 *Sun\ C*) # Sun C 5.9
10707 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'
10708 compiler_needs_object=yes
10709 tmp_sharedflag='-G' ;;
10710 *Sun\ F*) # Sun Fortran 8.3
10711 tmp_sharedflag='-G' ;;
10712 esac
10713 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10714
10715 if test "x$supports_anon_versioning" = xyes; then
10716 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10718 echo "local: *; };" >> $output_objdir/$libname.ver~
10719 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10720 fi
10721
10722 case $cc_basename in
10723 xlf* | bgf* | bgxlf* | mpixlf*)
10724 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10725 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10726 hardcode_libdir_flag_spec=
10727 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10728 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10729 if test "x$supports_anon_versioning" = xyes; then
10730 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10732 echo "local: *; };" >> $output_objdir/$libname.ver~
10733 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10734 fi
10735 ;;
10736 esac
10737 else
10738 ld_shlibs=no
10739 fi
10740 ;;
10741
10742 netbsd*)
10743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10744 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10745 wlarc=
10746 else
10747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10749 fi
10750 ;;
10751
10752 solaris*)
10753 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10754 ld_shlibs=no
10755 cat <<_LT_EOF 1>&2
10756
10757*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10758*** create shared libraries on Solaris systems. Therefore, libtool
10759*** is disabling shared libraries support. We urge you to upgrade GNU
10760*** binutils to release 2.9.1 or newer. Another option is to modify
10761*** your PATH or compiler configuration so that the native linker is
10762*** used, and then restart.
10763
10764_LT_EOF
10765 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10768 else
10769 ld_shlibs=no
10770 fi
10771 ;;
10772
10773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10774 case `$LD -v 2>&1` in
10775 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10776 ld_shlibs=no
10777 cat <<_LT_EOF 1>&2
10778
10779*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10780*** reliably create shared libraries on SCO systems. Therefore, libtool
10781*** is disabling shared libraries support. We urge you to upgrade GNU
10782*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10783*** your PATH or compiler configuration so that the native linker is
10784*** used, and then restart.
10785
10786_LT_EOF
10787 ;;
10788 *)
10789 # For security reasons, it is highly recommended that you always
10790 # use absolute paths for naming shared libraries, and exclude the
10791 # DT_RUNPATH tag from executables and libraries. But doing so
10792 # requires that you compile everything twice, which is a pain.
10793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10797 else
10798 ld_shlibs=no
10799 fi
10800 ;;
10801 esac
10802 ;;
10803
10804 sunos4*)
10805 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10806 wlarc=
10807 hardcode_direct=yes
10808 hardcode_shlibpath_var=no
10809 ;;
10810
10811 *)
10812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10815 else
10816 ld_shlibs=no
10817 fi
10818 ;;
10819 esac
10820
10821 if test "$ld_shlibs" = no; then
10822 runpath_var=
10823 hardcode_libdir_flag_spec=
10824 export_dynamic_flag_spec=
10825 whole_archive_flag_spec=
10826 fi
10827 else
10828 # PORTME fill in a description of your system's linker (not GNU ld)
10829 case $host_os in
10830 aix3*)
10831 allow_undefined_flag=unsupported
10832 always_export_symbols=yes
10833 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'
10834 # Note: this linker hardcodes the directories in LIBPATH if there
10835 # are no directories specified by -L.
10836 hardcode_minus_L=yes
10837 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10838 # Neither direct hardcoding nor static linking is supported with a
10839 # broken collect2.
10840 hardcode_direct=unsupported
10841 fi
10842 ;;
10843
10844 aix[4-9]*)
10845 if test "$host_cpu" = ia64; then
10846 # On IA64, the linker does run time linking by default, so we don't
10847 # have to do anything special.
10848 aix_use_runtimelinking=no
10849 exp_sym_flag='-Bexport'
10850 no_entry_flag=""
10851 else
10852 # If we're using GNU nm, then we don't want the "-C" option.
10853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10854 # Also, AIX nm treats weak defined symbols like other global
10855 # defined symbols, whereas GNU nm marks them as "W".
10856 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10857 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'
10858 else
10859 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'
10860 fi
10861 aix_use_runtimelinking=no
10862
10863 # Test if we are trying to use run time linking or normal
10864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10865 # need to do runtime linking.
10866 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10867 for ld_flag in $LDFLAGS; do
10868 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10869 aix_use_runtimelinking=yes
10870 break
10871 fi
10872 done
10873 ;;
10874 esac
10875
10876 exp_sym_flag='-bexport'
10877 no_entry_flag='-bnoentry'
10878 fi
10879
10880 # When large executables or shared objects are built, AIX ld can
10881 # have problems creating the table of contents. If linking a library
10882 # or program results in "error TOC overflow" add -mminimal-toc to
10883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10885
10886 archive_cmds=''
10887 hardcode_direct=yes
10888 hardcode_direct_absolute=yes
10889 hardcode_libdir_separator=':'
10890 link_all_deplibs=yes
10891 file_list_spec='${wl}-f,'
10892
10893 if test "$GCC" = yes; then
10894 case $host_os in aix4.[012]|aix4.[012].*)
10895 # We only want to do this on AIX 4.2 and lower, the check
10896 # below for broken collect2 doesn't work under 4.3+
10897 collect2name=`${CC} -print-prog-name=collect2`
10898 if test -f "$collect2name" &&
10899 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10900 then
10901 # We have reworked collect2
10902 :
10903 else
10904 # We have old collect2
10905 hardcode_direct=unsupported
10906 # It fails to find uninstalled libraries when the uninstalled
10907 # path is not listed in the libpath. Setting hardcode_minus_L
10908 # to unsupported forces relinking
10909 hardcode_minus_L=yes
10910 hardcode_libdir_flag_spec='-L$libdir'
10911 hardcode_libdir_separator=
10912 fi
10913 ;;
10914 esac
10915 shared_flag='-shared'
10916 if test "$aix_use_runtimelinking" = yes; then
10917 shared_flag="$shared_flag "'${wl}-G'
10918 fi
10919 else
10920 # not using gcc
10921 if test "$host_cpu" = ia64; then
10922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10923 # chokes on -Wl,-G. The following line is correct:
10924 shared_flag='-G'
10925 else
10926 if test "$aix_use_runtimelinking" = yes; then
10927 shared_flag='${wl}-G'
10928 else
10929 shared_flag='${wl}-bM:SRE'
10930 fi
10931 fi
10932 fi
10933
10934 export_dynamic_flag_spec='${wl}-bexpall'
10935 # It seems that -bexpall does not export symbols beginning with
10936 # underscore (_), so it is better to generate a list of symbols to export.
10937 always_export_symbols=yes
10938 if test "$aix_use_runtimelinking" = yes; then
10939 # Warning - without using the other runtime loading flags (-brtl),
10940 # -berok will link without error, but may produce a broken library.
10941 allow_undefined_flag='-berok'
10942 # Determine the default libpath from the value encoded in an
10943 # empty executable.
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945/* end confdefs.h. */
10946
10947int
10948main ()
10949{
10950
10951 ;
10952 return 0;
ef016f83 10953}
6bb11ab3
L
10954_ACEOF
10955if ac_fn_c_try_link "$LINENO"; then :
10956
10957lt_aix_libpath_sed='
10958 /Import File Strings/,/^$/ {
10959 /^0/ {
10960 s/^0 *\(.*\)$/\1/
10961 p
10962 }
10963 }'
10964aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10965# Check for a 64-bit object if we didn't find anything.
10966if test -z "$aix_libpath"; then
10967 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10968fi
10969fi
10970rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10972if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10973
10974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10975 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"
10976 else
10977 if test "$host_cpu" = ia64; then
10978 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10979 allow_undefined_flag="-z nodefs"
10980 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"
10981 else
10982 # Determine the default libpath from the value encoded in an
10983 # empty executable.
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985/* end confdefs.h. */
10986
10987int
10988main ()
ef016f83 10989{
6bb11ab3
L
10990
10991 ;
10992 return 0;
ef016f83 10993}
6bb11ab3
L
10994_ACEOF
10995if ac_fn_c_try_link "$LINENO"; then :
10996
10997lt_aix_libpath_sed='
10998 /Import File Strings/,/^$/ {
10999 /^0/ {
11000 s/^0 *\(.*\)$/\1/
11001 p
11002 }
11003 }'
11004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11005# Check for a 64-bit object if we didn't find anything.
11006if test -z "$aix_libpath"; then
11007 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11008fi
11009fi
11010rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11013
11014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11015 # Warning - without using the other run time loading flags,
11016 # -berok will link without error, but may produce a broken library.
11017 no_undefined_flag=' ${wl}-bernotok'
11018 allow_undefined_flag=' ${wl}-berok'
11019 if test "$with_gnu_ld" = yes; then
11020 # We only use this code for GNU lds that support --whole-archive.
11021 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11022 else
11023 # Exported symbols can be pulled into shared objects from archives
11024 whole_archive_flag_spec='$convenience'
11025 fi
11026 archive_cmds_need_lc=yes
11027 # This is similar to how AIX traditionally builds its shared libraries.
11028 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'
11029 fi
11030 fi
11031 ;;
11032
11033 amigaos*)
11034 case $host_cpu in
11035 powerpc)
11036 # see comment about AmigaOS4 .so support
11037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11038 archive_expsym_cmds=''
11039 ;;
11040 m68k)
11041 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)'
11042 hardcode_libdir_flag_spec='-L$libdir'
11043 hardcode_minus_L=yes
11044 ;;
11045 esac
11046 ;;
11047
11048 bsdi[45]*)
11049 export_dynamic_flag_spec=-rdynamic
11050 ;;
11051
11052 cygwin* | mingw* | pw32* | cegcc*)
11053 # When not using gcc, we currently assume that we are using
11054 # Microsoft Visual C++.
11055 # hardcode_libdir_flag_spec is actually meaningless, as there is
11056 # no search path for DLLs.
11057 hardcode_libdir_flag_spec=' '
11058 allow_undefined_flag=unsupported
11059 # Tell ltmain to make .lib files, not .a files.
11060 libext=lib
11061 # Tell ltmain to make .dll files, not .so files.
11062 shrext_cmds=".dll"
11063 # FIXME: Setting linknames here is a bad hack.
11064 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11065 # The linker will automatically build a .lib file if we build a DLL.
11066 old_archive_from_new_cmds='true'
11067 # FIXME: Should let the user specify the lib program.
11068 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11069 fix_srcfile_path='`cygpath -w "$srcfile"`'
11070 enable_shared_with_static_runtimes=yes
11071 ;;
11072
11073 darwin* | rhapsody*)
11074
11075
11076 archive_cmds_need_lc=no
11077 hardcode_direct=no
11078 hardcode_automatic=yes
11079 hardcode_shlibpath_var=unsupported
11080 if test "$lt_cv_ld_force_load" = "yes"; then
11081 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\"`'
11082 else
11083 whole_archive_flag_spec=''
11084 fi
11085 link_all_deplibs=yes
11086 allow_undefined_flag="$_lt_dar_allow_undefined"
11087 case $cc_basename in
11088 ifort*) _lt_dar_can_shared=yes ;;
11089 *) _lt_dar_can_shared=$GCC ;;
11090 esac
11091 if test "$_lt_dar_can_shared" = "yes"; then
11092 output_verbose_link_cmd=func_echo_all
11093 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11094 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11095 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}"
11096 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}"
11097
11098 else
11099 ld_shlibs=no
11100 fi
11101
11102 ;;
11103
11104 dgux*)
11105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11106 hardcode_libdir_flag_spec='-L$libdir'
11107 hardcode_shlibpath_var=no
11108 ;;
11109
11110 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11111 # support. Future versions do this automatically, but an explicit c++rt0.o
11112 # does not break anything, and helps significantly (at the cost of a little
11113 # extra space).
11114 freebsd2.2*)
11115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11116 hardcode_libdir_flag_spec='-R$libdir'
11117 hardcode_direct=yes
11118 hardcode_shlibpath_var=no
11119 ;;
11120
11121 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11122 freebsd2.*)
11123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11124 hardcode_direct=yes
11125 hardcode_minus_L=yes
11126 hardcode_shlibpath_var=no
11127 ;;
11128
11129 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11130 freebsd* | dragonfly*)
11131 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11132 hardcode_libdir_flag_spec='-R$libdir'
11133 hardcode_direct=yes
11134 hardcode_shlibpath_var=no
11135 ;;
11136
11137 hpux9*)
11138 if test "$GCC" = yes; then
11139 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11140 else
11141 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'
11142 fi
11143 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11144 hardcode_libdir_separator=:
11145 hardcode_direct=yes
11146
11147 # hardcode_minus_L: Not really in the search PATH,
11148 # but as the default location of the library.
11149 hardcode_minus_L=yes
11150 export_dynamic_flag_spec='${wl}-E'
11151 ;;
11152
11153 hpux10*)
11154 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11155 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11156 else
11157 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11158 fi
11159 if test "$with_gnu_ld" = no; then
11160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11161 hardcode_libdir_flag_spec_ld='+b $libdir'
11162 hardcode_libdir_separator=:
11163 hardcode_direct=yes
11164 hardcode_direct_absolute=yes
11165 export_dynamic_flag_spec='${wl}-E'
11166 # hardcode_minus_L: Not really in the search PATH,
11167 # but as the default location of the library.
11168 hardcode_minus_L=yes
11169 fi
11170 ;;
11171
11172 hpux11*)
11173 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11174 case $host_cpu in
11175 hppa*64*)
11176 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11177 ;;
11178 ia64*)
11179 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11180 ;;
11181 *)
11182 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11183 ;;
11184 esac
11185 else
11186 case $host_cpu in
11187 hppa*64*)
11188 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11189 ;;
11190 ia64*)
11191 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11192 ;;
11193 *)
11194
11195 # Older versions of the 11.00 compiler do not understand -b yet
11196 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11198$as_echo_n "checking if $CC understands -b... " >&6; }
11199if test "${lt_cv_prog_compiler__b+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
11201else
11202 lt_cv_prog_compiler__b=no
11203 save_LDFLAGS="$LDFLAGS"
11204 LDFLAGS="$LDFLAGS -b"
11205 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11206 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11207 # The linker can only warn and ignore the option if not recognized
11208 # So say no if there are warnings
11209 if test -s conftest.err; then
11210 # Append any errors to the config.log.
11211 cat conftest.err 1>&5
11212 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11214 if diff conftest.exp conftest.er2 >/dev/null; then
11215 lt_cv_prog_compiler__b=yes
11216 fi
11217 else
11218 lt_cv_prog_compiler__b=yes
11219 fi
11220 fi
11221 $RM -r conftest*
11222 LDFLAGS="$save_LDFLAGS"
11223
11224fi
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11226$as_echo "$lt_cv_prog_compiler__b" >&6; }
11227
11228if test x"$lt_cv_prog_compiler__b" = xyes; then
11229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11230else
11231 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11232fi
11233
11234 ;;
11235 esac
11236 fi
11237 if test "$with_gnu_ld" = no; then
11238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11239 hardcode_libdir_separator=:
11240
11241 case $host_cpu in
11242 hppa*64*|ia64*)
11243 hardcode_direct=no
11244 hardcode_shlibpath_var=no
11245 ;;
11246 *)
11247 hardcode_direct=yes
11248 hardcode_direct_absolute=yes
11249 export_dynamic_flag_spec='${wl}-E'
11250
11251 # hardcode_minus_L: Not really in the search PATH,
11252 # but as the default location of the library.
11253 hardcode_minus_L=yes
11254 ;;
11255 esac
11256 fi
11257 ;;
11258
11259 irix5* | irix6* | nonstopux*)
11260 if test "$GCC" = yes; then
11261 archive_cmds='$CC -shared $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'
11262 # Try to use the -exported_symbol ld option, if it does not
11263 # work, assume that -exports_file does not work either and
11264 # implicitly export all symbols.
11265 save_LDFLAGS="$LDFLAGS"
11266 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268/* end confdefs.h. */
11269int foo(void) {}
11270_ACEOF
11271if ac_fn_c_try_link "$LINENO"; then :
11272 archive_expsym_cmds='$CC -shared $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'
11273
11274fi
11275rm -f core conftest.err conftest.$ac_objext \
11276 conftest$ac_exeext conftest.$ac_ext
11277 LDFLAGS="$save_LDFLAGS"
11278 else
11279 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'
11280 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'
11281 fi
11282 archive_cmds_need_lc='no'
11283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11284 hardcode_libdir_separator=:
11285 inherit_rpath=yes
11286 link_all_deplibs=yes
11287 ;;
11288
11289 netbsd*)
11290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11292 else
11293 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11294 fi
11295 hardcode_libdir_flag_spec='-R$libdir'
11296 hardcode_direct=yes
11297 hardcode_shlibpath_var=no
11298 ;;
11299
11300 newsos6)
11301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11302 hardcode_direct=yes
11303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11304 hardcode_libdir_separator=:
11305 hardcode_shlibpath_var=no
11306 ;;
11307
11308 *nto* | *qnx*)
11309 ;;
11310
11311 openbsd*)
11312 if test -f /usr/libexec/ld.so; then
11313 hardcode_direct=yes
11314 hardcode_shlibpath_var=no
11315 hardcode_direct_absolute=yes
11316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11318 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11319 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11320 export_dynamic_flag_spec='${wl}-E'
11321 else
11322 case $host_os in
11323 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11325 hardcode_libdir_flag_spec='-R$libdir'
11326 ;;
11327 *)
11328 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11330 ;;
11331 esac
11332 fi
11333 else
11334 ld_shlibs=no
11335 fi
11336 ;;
11337
11338 os2*)
11339 hardcode_libdir_flag_spec='-L$libdir'
11340 hardcode_minus_L=yes
11341 allow_undefined_flag=unsupported
11342 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'
11343 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11344 ;;
11345
11346 osf3*)
11347 if test "$GCC" = yes; then
11348 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11349 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'
11350 else
11351 allow_undefined_flag=' -expect_unresolved \*'
11352 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'
11353 fi
11354 archive_cmds_need_lc='no'
11355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11356 hardcode_libdir_separator=:
11357 ;;
11358
11359 osf4* | osf5*) # as osf3* with the addition of -msym flag
11360 if test "$GCC" = yes; then
11361 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11362 archive_cmds='$CC -shared${allow_undefined_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'
11363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11364 else
11365 allow_undefined_flag=' -expect_unresolved \*'
11366 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'
11367 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~
11368 $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'
11369
11370 # Both c and cxx compiler support -rpath directly
11371 hardcode_libdir_flag_spec='-rpath $libdir'
11372 fi
11373 archive_cmds_need_lc='no'
11374 hardcode_libdir_separator=:
11375 ;;
11376
11377 solaris*)
11378 no_undefined_flag=' -z defs'
11379 if test "$GCC" = yes; then
11380 wlarc='${wl}'
11381 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11382 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11383 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11384 else
11385 case `$CC -V 2>&1` in
11386 *"Compilers 5.0"*)
11387 wlarc=''
11388 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11389 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11390 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11391 ;;
11392 *)
11393 wlarc='${wl}'
11394 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11396 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11397 ;;
11398 esac
11399 fi
11400 hardcode_libdir_flag_spec='-R$libdir'
11401 hardcode_shlibpath_var=no
11402 case $host_os in
11403 solaris2.[0-5] | solaris2.[0-5].*) ;;
11404 *)
11405 # The compiler driver will combine and reorder linker options,
11406 # but understands `-z linker_flag'. GCC discards it without `$wl',
11407 # but is careful enough not to reorder.
11408 # Supported since Solaris 2.6 (maybe 2.5.1?)
11409 if test "$GCC" = yes; then
11410 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11411 else
11412 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11413 fi
11414 ;;
11415 esac
11416 link_all_deplibs=yes
11417 ;;
11418
11419 sunos4*)
11420 if test "x$host_vendor" = xsequent; then
11421 # Use $CC to link under sequent, because it throws in some extra .o
11422 # files that make .init and .fini sections work.
11423 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11424 else
11425 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11426 fi
11427 hardcode_libdir_flag_spec='-L$libdir'
11428 hardcode_direct=yes
11429 hardcode_minus_L=yes
11430 hardcode_shlibpath_var=no
11431 ;;
11432
11433 sysv4)
11434 case $host_vendor in
11435 sni)
11436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11437 hardcode_direct=yes # is this really true???
11438 ;;
11439 siemens)
11440 ## LD is ld it makes a PLAMLIB
11441 ## CC just makes a GrossModule.
11442 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11443 reload_cmds='$CC -r -o $output$reload_objs'
11444 hardcode_direct=no
11445 ;;
11446 motorola)
11447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11448 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11449 ;;
11450 esac
11451 runpath_var='LD_RUN_PATH'
11452 hardcode_shlibpath_var=no
11453 ;;
11454
11455 sysv4.3*)
11456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11457 hardcode_shlibpath_var=no
11458 export_dynamic_flag_spec='-Bexport'
11459 ;;
11460
11461 sysv4*MP*)
11462 if test -d /usr/nec; then
11463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11464 hardcode_shlibpath_var=no
11465 runpath_var=LD_RUN_PATH
11466 hardcode_runpath_var=yes
11467 ld_shlibs=yes
11468 fi
11469 ;;
11470
11471 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11472 no_undefined_flag='${wl}-z,text'
11473 archive_cmds_need_lc=no
11474 hardcode_shlibpath_var=no
11475 runpath_var='LD_RUN_PATH'
11476
11477 if test "$GCC" = yes; then
11478 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11479 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11480 else
11481 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11482 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 fi
11484 ;;
11485
11486 sysv5* | sco3.2v5* | sco5v6*)
11487 # Note: We can NOT use -z defs as we might desire, because we do not
11488 # link with -lc, and that would cause any symbols used from libc to
11489 # always be unresolved, which means just about no library would
11490 # ever link correctly. If we're not using GNU ld we use -z text
11491 # though, which does catch some bad symbols but isn't as heavy-handed
11492 # as -z defs.
11493 no_undefined_flag='${wl}-z,text'
11494 allow_undefined_flag='${wl}-z,nodefs'
11495 archive_cmds_need_lc=no
11496 hardcode_shlibpath_var=no
11497 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11498 hardcode_libdir_separator=':'
11499 link_all_deplibs=yes
11500 export_dynamic_flag_spec='${wl}-Bexport'
11501 runpath_var='LD_RUN_PATH'
11502
11503 if test "$GCC" = yes; then
11504 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11505 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11506 else
11507 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11508 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11509 fi
11510 ;;
11511
11512 uts4*)
11513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11514 hardcode_libdir_flag_spec='-L$libdir'
11515 hardcode_shlibpath_var=no
11516 ;;
11517
11518 *)
11519 ld_shlibs=no
11520 ;;
11521 esac
11522
11523 if test x$host_vendor = xsni; then
11524 case $host in
11525 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11526 export_dynamic_flag_spec='${wl}-Blargedynsym'
11527 ;;
11528 esac
11529 fi
11530 fi
11531
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11533$as_echo "$ld_shlibs" >&6; }
11534test "$ld_shlibs" = no && can_build_shared=no
11535
11536with_gnu_ld=$with_gnu_ld
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552#
11553# Do we need to explicitly link libc?
11554#
11555case "x$archive_cmds_need_lc" in
11556x|xyes)
11557 # Assume -lc should be added
11558 archive_cmds_need_lc=yes
11559
11560 if test "$enable_shared" = yes && test "$GCC" = yes; then
11561 case $archive_cmds in
11562 *'~'*)
11563 # FIXME: we may have to deal with multi-command sequences.
11564 ;;
11565 '$CC '*)
11566 # Test whether the compiler implicitly links with -lc since on some
11567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11568 # to ld, don't add -lc before -lgcc.
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11570$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11571if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
11573else
11574 $RM conftest*
11575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11576
11577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11578 (eval $ac_compile) 2>&5
11579 ac_status=$?
11580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11581 test $ac_status = 0; } 2>conftest.err; then
11582 soname=conftest
11583 lib=conftest
11584 libobjs=conftest.$ac_objext
11585 deplibs=
11586 wl=$lt_prog_compiler_wl
11587 pic_flag=$lt_prog_compiler_pic
11588 compiler_flags=-v
11589 linker_flags=-v
11590 verstring=
11591 output_objdir=.
11592 libname=conftest
11593 lt_save_allow_undefined_flag=$allow_undefined_flag
11594 allow_undefined_flag=
11595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11596 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11597 ac_status=$?
11598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11599 test $ac_status = 0; }
11600 then
11601 lt_cv_archive_cmds_need_lc=no
11602 else
11603 lt_cv_archive_cmds_need_lc=yes
11604 fi
11605 allow_undefined_flag=$lt_save_allow_undefined_flag
11606 else
11607 cat conftest.err 1>&5
11608 fi
11609 $RM conftest*
11610
11611fi
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11613$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11614 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11615 ;;
11616 esac
11617 fi
11618 ;;
11619esac
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
ef016f83 11740
ef016f83 11741
ef016f83 11742
ef016f83 11743
ef016f83 11744
ef016f83 11745
ef016f83 11746
6ffe910a 11747
6ffe910a
MF
11748
11749
6ffe910a 11750
ef016f83 11751
ef016f83
MF
11752
11753
ef016f83
MF
11754
11755
11756
6ffe910a 11757
ef016f83
MF
11758
11759
ef016f83 11760
ef016f83 11761
ef016f83 11762
ef016f83 11763
ef016f83 11764
ef016f83 11765
ef016f83 11766
ef016f83 11767
ef016f83 11768
ef016f83 11769
ef016f83 11770
ef016f83
MF
11771
11772
ef016f83 11773
ef016f83 11774
ef016f83
MF
11775
11776
6bb11ab3
L
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11778$as_echo_n "checking dynamic linker characteristics... " >&6; }
11779
11780if test "$GCC" = yes; then
11781 case $host_os in
11782 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11783 *) lt_awk_arg="/^libraries:/" ;;
11784 esac
11785 case $host_os in
11786 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11787 *) lt_sed_strip_eq="s,=/,/,g" ;;
11788 esac
11789 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11790 case $lt_search_path_spec in
11791 *\;*)
11792 # if the path contains ";" then we assume it to be the separator
11793 # otherwise default to the standard path separator (i.e. ":") - it is
11794 # assumed that no part of a normal pathname contains ";" but that should
11795 # okay in the real world where ";" in dirpaths is itself problematic.
11796 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11797 ;;
11798 *)
11799 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11800 ;;
11801 esac
11802 # Ok, now we have the path, separated by spaces, we can step through it
11803 # and add multilib dir if necessary.
11804 lt_tmp_lt_search_path_spec=
11805 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11806 for lt_sys_path in $lt_search_path_spec; do
11807 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11808 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11809 else
11810 test -d "$lt_sys_path" && \
11811 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
ef016f83 11812 fi
ef016f83 11813 done
6bb11ab3
L
11814 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11815BEGIN {RS=" "; FS="/|\n";} {
11816 lt_foo="";
11817 lt_count=0;
11818 for (lt_i = NF; lt_i > 0; lt_i--) {
11819 if ($lt_i != "" && $lt_i != ".") {
11820 if ($lt_i == "..") {
11821 lt_count++;
11822 } else {
11823 if (lt_count == 0) {
11824 lt_foo="/" $lt_i lt_foo;
11825 } else {
11826 lt_count--;
11827 }
11828 }
11829 }
11830 }
11831 if (lt_foo != "") { lt_freq[lt_foo]++; }
11832 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11833}'`
11834 # AWK program above erroneously prepends '/' to C:/dos/paths
11835 # for these hosts.
11836 case $host_os in
11837 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11838 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11839 esac
11840 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11841else
11842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11843fi
11844library_names_spec=
11845libname_spec='lib$name'
11846soname_spec=
11847shrext_cmds=".so"
11848postinstall_cmds=
11849postuninstall_cmds=
11850finish_cmds=
11851finish_eval=
11852shlibpath_var=
11853shlibpath_overrides_runpath=unknown
11854version_type=none
11855dynamic_linker="$host_os ld.so"
11856sys_lib_dlsearch_path_spec="/lib /usr/lib"
11857need_lib_prefix=unknown
11858hardcode_into_libs=no
11859
11860# when you set need_version to no, make sure it does not cause -set_version
11861# flags to be left without arguments
11862need_version=unknown
11863
11864case $host_os in
11865aix3*)
11866 version_type=linux
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11868 shlibpath_var=LIBPATH
11869
11870 # AIX 3 has no versioning support, so we append a major version to the name.
11871 soname_spec='${libname}${release}${shared_ext}$major'
11872 ;;
ef016f83 11873
6bb11ab3
L
11874aix[4-9]*)
11875 version_type=linux
11876 need_lib_prefix=no
11877 need_version=no
11878 hardcode_into_libs=yes
11879 if test "$host_cpu" = ia64; then
11880 # AIX 5 supports IA64
11881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 else
11884 # With GCC up to 2.95.x, collect2 would create an import file
11885 # for dependence libraries. The import file would start with
11886 # the line `#! .'. This would cause the generated library to
11887 # depend on `.', always an invalid library. This was fixed in
11888 # development snapshots of GCC prior to 3.0.
11889 case $host_os in
11890 aix4 | aix4.[01] | aix4.[01].*)
11891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11892 echo ' yes '
11893 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11894 :
11895 else
11896 can_build_shared=no
11897 fi
11898 ;;
11899 esac
11900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11901 # soname into executable. Probably we can add versioning support to
11902 # collect2, so additional links can be useful in future.
11903 if test "$aix_use_runtimelinking" = yes; then
11904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11905 # instead of lib<name>.a to let people know that these are not
11906 # typical AIX shared libraries.
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 else
11909 # We preserve .a as extension for shared libraries through AIX4.2
11910 # and later when we are not doing run time linking.
11911 library_names_spec='${libname}${release}.a $libname.a'
11912 soname_spec='${libname}${release}${shared_ext}$major'
11913 fi
11914 shlibpath_var=LIBPATH
ef016f83 11915 fi
6bb11ab3 11916 ;;
ef016f83 11917
6bb11ab3
L
11918amigaos*)
11919 case $host_cpu in
11920 powerpc)
11921 # Since July 2007 AmigaOS4 officially supports .so libraries.
11922 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11924 ;;
11925 m68k)
11926 library_names_spec='$libname.ixlibrary $libname.a'
11927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11928 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'
11929 ;;
11930 esac
11931 ;;
ef016f83 11932
6bb11ab3
L
11933beos*)
11934 library_names_spec='${libname}${shared_ext}'
11935 dynamic_linker="$host_os ld.so"
11936 shlibpath_var=LIBRARY_PATH
11937 ;;
ef016f83 11938
6bb11ab3
L
11939bsdi[45]*)
11940 version_type=linux
11941 need_version=no
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943 soname_spec='${libname}${release}${shared_ext}$major'
11944 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11945 shlibpath_var=LD_LIBRARY_PATH
11946 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11947 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11948 # the default ld.so.conf also contains /usr/contrib/lib and
11949 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11950 # libtool to hard-code these into programs
11951 ;;
ef016f83 11952
6bb11ab3
L
11953cygwin* | mingw* | pw32* | cegcc*)
11954 version_type=windows
11955 shrext_cmds=".dll"
11956 need_version=no
11957 need_lib_prefix=no
11958
11959 case $GCC,$host_os in
11960 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11961 library_names_spec='$libname.dll.a'
11962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11963 postinstall_cmds='base_file=`basename \${file}`~
11964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11965 dldir=$destdir/`dirname \$dlpath`~
11966 test -d \$dldir || mkdir -p \$dldir~
11967 $install_prog $dir/$dlname \$dldir/$dlname~
11968 chmod a+x \$dldir/$dlname~
11969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11971 fi'
11972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11973 dlpath=$dir/\$dldll~
11974 $RM \$dlpath'
11975 shlibpath_overrides_runpath=yes
11976
11977 case $host_os in
11978 cygwin*)
11979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11980 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11981
11982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11983 ;;
11984 mingw* | cegcc*)
11985 # MinGW DLLs use traditional 'lib' prefix
11986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11987 ;;
11988 pw32*)
11989 # pw32 DLLs use 'pw' prefix rather than 'lib'
11990 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11991 ;;
11992 esac
11993 ;;
ef016f83 11994
6bb11ab3
L
11995 *)
11996 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11997 ;;
11998 esac
11999 dynamic_linker='Win32 ld.exe'
12000 # FIXME: first we should search . and the directory the executable is in
12001 shlibpath_var=PATH
12002 ;;
ef016f83 12003
6bb11ab3
L
12004darwin* | rhapsody*)
12005 dynamic_linker="$host_os dyld"
12006 version_type=darwin
12007 need_lib_prefix=no
12008 need_version=no
12009 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12010 soname_spec='${libname}${release}${major}$shared_ext'
12011 shlibpath_overrides_runpath=yes
12012 shlibpath_var=DYLD_LIBRARY_PATH
12013 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12014
12015 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12016 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12017 ;;
ef016f83 12018
6bb11ab3
L
12019dgux*)
12020 version_type=linux
12021 need_lib_prefix=no
12022 need_version=no
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12024 soname_spec='${libname}${release}${shared_ext}$major'
12025 shlibpath_var=LD_LIBRARY_PATH
12026 ;;
12027
12028freebsd* | dragonfly*)
12029 # DragonFly does not have aout. When/if they implement a new
12030 # versioning mechanism, adjust this.
12031 if test -x /usr/bin/objformat; then
12032 objformat=`/usr/bin/objformat`
12033 else
12034 case $host_os in
12035 freebsd[23].*) objformat=aout ;;
12036 *) objformat=elf ;;
12037 esac
12038 fi
12039 version_type=freebsd-$objformat
12040 case $version_type in
12041 freebsd-elf*)
12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12043 need_version=no
12044 need_lib_prefix=no
12045 ;;
12046 freebsd-*)
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12048 need_version=yes
12049 ;;
12050 esac
12051 shlibpath_var=LD_LIBRARY_PATH
12052 case $host_os in
12053 freebsd2.*)
12054 shlibpath_overrides_runpath=yes
12055 ;;
12056 freebsd3.[01]* | freebsdelf3.[01]*)
12057 shlibpath_overrides_runpath=yes
12058 hardcode_into_libs=yes
12059 ;;
12060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12062 shlibpath_overrides_runpath=no
12063 hardcode_into_libs=yes
12064 ;;
12065 *) # from 4.6 on, and DragonFly
12066 shlibpath_overrides_runpath=yes
12067 hardcode_into_libs=yes
12068 ;;
12069 esac
12070 ;;
ef016f83 12071
6bb11ab3
L
12072gnu*)
12073 version_type=linux
12074 need_lib_prefix=no
12075 need_version=no
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 shlibpath_var=LD_LIBRARY_PATH
12079 hardcode_into_libs=yes
12080 ;;
ef016f83 12081
6bb11ab3
L
12082haiku*)
12083 version_type=linux
12084 need_lib_prefix=no
12085 need_version=no
12086 dynamic_linker="$host_os runtime_loader"
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12088 soname_spec='${libname}${release}${shared_ext}$major'
12089 shlibpath_var=LIBRARY_PATH
12090 shlibpath_overrides_runpath=yes
12091 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12092 hardcode_into_libs=yes
12093 ;;
ef016f83 12094
6bb11ab3
L
12095hpux9* | hpux10* | hpux11*)
12096 # Give a soname corresponding to the major version so that dld.sl refuses to
12097 # link against other versions.
12098 version_type=sunos
12099 need_lib_prefix=no
12100 need_version=no
12101 case $host_cpu in
12102 ia64*)
12103 shrext_cmds='.so'
12104 hardcode_into_libs=yes
12105 dynamic_linker="$host_os dld.so"
12106 shlibpath_var=LD_LIBRARY_PATH
12107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12109 soname_spec='${libname}${release}${shared_ext}$major'
12110 if test "X$HPUX_IA64_MODE" = X32; then
12111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12112 else
12113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12114 fi
12115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12116 ;;
12117 hppa*64*)
12118 shrext_cmds='.sl'
12119 hardcode_into_libs=yes
12120 dynamic_linker="$host_os dld.sl"
12121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12124 soname_spec='${libname}${release}${shared_ext}$major'
12125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12127 ;;
12128 *)
12129 shrext_cmds='.sl'
12130 dynamic_linker="$host_os dld.sl"
12131 shlibpath_var=SHLIB_PATH
12132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134 soname_spec='${libname}${release}${shared_ext}$major'
12135 ;;
12136 esac
12137 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12138 postinstall_cmds='chmod 555 $lib'
12139 # or fails outright, so override atomically:
12140 install_override_mode=555
12141 ;;
ef016f83 12142
6bb11ab3
L
12143interix[3-9]*)
12144 version_type=linux
12145 need_lib_prefix=no
12146 need_version=no
12147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12148 soname_spec='${libname}${release}${shared_ext}$major'
12149 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12150 shlibpath_var=LD_LIBRARY_PATH
12151 shlibpath_overrides_runpath=no
12152 hardcode_into_libs=yes
12153 ;;
ef016f83 12154
6bb11ab3
L
12155irix5* | irix6* | nonstopux*)
12156 case $host_os in
12157 nonstopux*) version_type=nonstopux ;;
12158 *)
12159 if test "$lt_cv_prog_gnu_ld" = yes; then
12160 version_type=linux
12161 else
12162 version_type=irix
12163 fi ;;
12164 esac
12165 need_lib_prefix=no
12166 need_version=no
12167 soname_spec='${libname}${release}${shared_ext}$major'
12168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12169 case $host_os in
12170 irix5* | nonstopux*)
12171 libsuff= shlibsuff=
12172 ;;
12173 *)
12174 case $LD in # libtool.m4 will add one of these switches to LD
12175 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12176 libsuff= shlibsuff= libmagic=32-bit;;
12177 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12178 libsuff=32 shlibsuff=N32 libmagic=N32;;
12179 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12180 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12181 *) libsuff= shlibsuff= libmagic=never-match;;
12182 esac
12183 ;;
12184 esac
12185 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12186 shlibpath_overrides_runpath=no
12187 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12188 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12189 hardcode_into_libs=yes
12190 ;;
ef016f83 12191
6bb11ab3
L
12192# No shared lib support for Linux oldld, aout, or coff.
12193linux*oldld* | linux*aout* | linux*coff*)
12194 dynamic_linker=no
12195 ;;
ef016f83 12196
6bb11ab3
L
12197# This must be Linux ELF.
12198linux* | k*bsd*-gnu | kopensolaris*-gnu)
12199 version_type=linux
12200 need_lib_prefix=no
12201 need_version=no
12202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12203 soname_spec='${libname}${release}${shared_ext}$major'
12204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12205 shlibpath_var=LD_LIBRARY_PATH
12206 shlibpath_overrides_runpath=no
12207
12208 # Some binutils ld are patched to set DT_RUNPATH
12209 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
ef016f83 12211else
6bb11ab3
L
12212 lt_cv_shlibpath_overrides_runpath=no
12213 save_LDFLAGS=$LDFLAGS
12214 save_libdir=$libdir
12215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef016f83 12218/* end confdefs.h. */
ef016f83 12219
ef016f83
MF
12220int
12221main ()
12222{
6bb11ab3
L
12223
12224 ;
ef016f83
MF
12225 return 0;
12226}
12227_ACEOF
6bb11ab3
L
12228if ac_fn_c_try_link "$LINENO"; then :
12229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12230 lt_cv_shlibpath_overrides_runpath=yes
ef016f83 12231fi
ef016f83 12232fi
6bb11ab3
L
12233rm -f core conftest.err conftest.$ac_objext \
12234 conftest$ac_exeext conftest.$ac_ext
12235 LDFLAGS=$save_LDFLAGS
12236 libdir=$save_libdir
ef016f83
MF
12237
12238fi
ef016f83 12239
6bb11ab3 12240 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ef016f83 12241
6bb11ab3
L
12242 # This implies no fast_install, which is unacceptable.
12243 # Some rework will be needed to allow for fast_install
12244 # before this can be enabled.
12245 hardcode_into_libs=yes
ef016f83 12246
6bb11ab3
L
12247 # Append ld.so.conf contents to the search path
12248 if test -f /etc/ld.so.conf; then
12249 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' ' '`
12250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12251 fi
ef016f83 12252
6bb11ab3
L
12253 # We used to test for /lib/ld.so.1 and disable shared libraries on
12254 # powerpc, because MkLinux only supported shared libraries with the
12255 # GNU dynamic linker. Since this was broken with cross compilers,
12256 # most powerpc-linux boxes support dynamic linking these days and
12257 # people can always --disable-shared, the test was removed, and we
12258 # assume the GNU/Linux dynamic linker is in use.
12259 dynamic_linker='GNU/Linux ld.so'
12260 ;;
ef016f83 12261
6bb11ab3
L
12262netbsd*)
12263 version_type=sunos
12264 need_lib_prefix=no
12265 need_version=no
12266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12269 dynamic_linker='NetBSD (a.out) ld.so'
12270 else
12271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12272 soname_spec='${libname}${release}${shared_ext}$major'
12273 dynamic_linker='NetBSD ld.elf_so'
12274 fi
12275 shlibpath_var=LD_LIBRARY_PATH
12276 shlibpath_overrides_runpath=yes
12277 hardcode_into_libs=yes
12278 ;;
ef016f83 12279
6bb11ab3
L
12280newsos6)
12281 version_type=linux
12282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=yes
12285 ;;
ef016f83 12286
6bb11ab3
L
12287*nto* | *qnx*)
12288 version_type=qnx
12289 need_lib_prefix=no
12290 need_version=no
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292 soname_spec='${libname}${release}${shared_ext}$major'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 shlibpath_overrides_runpath=no
12295 hardcode_into_libs=yes
12296 dynamic_linker='ldqnx.so'
12297 ;;
6ffe910a 12298
6bb11ab3
L
12299openbsd*)
12300 version_type=sunos
12301 sys_lib_dlsearch_path_spec="/usr/lib"
12302 need_lib_prefix=no
12303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12304 case $host_os in
12305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12306 *) need_version=no ;;
12307 esac
12308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12312 case $host_os in
12313 openbsd2.[89] | openbsd2.[89].*)
12314 shlibpath_overrides_runpath=no
12315 ;;
12316 *)
12317 shlibpath_overrides_runpath=yes
12318 ;;
12319 esac
12320 else
12321 shlibpath_overrides_runpath=yes
12322 fi
12323 ;;
2232061b 12324
6bb11ab3
L
12325os2*)
12326 libname_spec='$name'
12327 shrext_cmds=".dll"
12328 need_lib_prefix=no
12329 library_names_spec='$libname${shared_ext} $libname.a'
12330 dynamic_linker='OS/2 ld.exe'
12331 shlibpath_var=LIBPATH
12332 ;;
2232061b 12333
6bb11ab3
L
12334osf3* | osf4* | osf5*)
12335 version_type=osf
12336 need_lib_prefix=no
12337 need_version=no
12338 soname_spec='${libname}${release}${shared_ext}$major'
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12343 ;;
2232061b 12344
6bb11ab3
L
12345rdos*)
12346 dynamic_linker=no
12347 ;;
2232061b 12348
6bb11ab3
L
12349solaris*)
12350 version_type=linux
12351 need_lib_prefix=no
12352 need_version=no
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354 soname_spec='${libname}${release}${shared_ext}$major'
12355 shlibpath_var=LD_LIBRARY_PATH
12356 shlibpath_overrides_runpath=yes
12357 hardcode_into_libs=yes
12358 # ldd complains unless libraries are executable
12359 postinstall_cmds='chmod +x $lib'
12360 ;;
2232061b 12361
6bb11ab3
L
12362sunos4*)
12363 version_type=sunos
12364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=yes
12368 if test "$with_gnu_ld" = yes; then
12369 need_lib_prefix=no
12370 fi
12371 need_version=yes
12372 ;;
2232061b 12373
6bb11ab3
L
12374sysv4 | sysv4.3*)
12375 version_type=linux
12376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12377 soname_spec='${libname}${release}${shared_ext}$major'
12378 shlibpath_var=LD_LIBRARY_PATH
12379 case $host_vendor in
12380 sni)
12381 shlibpath_overrides_runpath=no
12382 need_lib_prefix=no
12383 runpath_var=LD_RUN_PATH
12384 ;;
12385 siemens)
12386 need_lib_prefix=no
12387 ;;
12388 motorola)
12389 need_lib_prefix=no
12390 need_version=no
12391 shlibpath_overrides_runpath=no
12392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12393 ;;
12394 esac
12395 ;;
2232061b 12396
6bb11ab3
L
12397sysv4*MP*)
12398 if test -d /usr/nec ;then
12399 version_type=linux
12400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12401 soname_spec='$libname${shared_ext}.$major'
12402 shlibpath_var=LD_LIBRARY_PATH
12403 fi
12404 ;;
2232061b 12405
6bb11ab3
L
12406sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12407 version_type=freebsd-elf
12408 need_lib_prefix=no
12409 need_version=no
12410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12411 soname_spec='${libname}${release}${shared_ext}$major'
12412 shlibpath_var=LD_LIBRARY_PATH
12413 shlibpath_overrides_runpath=yes
12414 hardcode_into_libs=yes
12415 if test "$with_gnu_ld" = yes; then
12416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12417 else
12418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12419 case $host_os in
12420 sco3.2v5*)
12421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12422 ;;
12423 esac
2232061b 12424 fi
6bb11ab3
L
12425 sys_lib_dlsearch_path_spec='/usr/lib'
12426 ;;
2232061b 12427
6bb11ab3
L
12428tpf*)
12429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12430 version_type=linux
12431 need_lib_prefix=no
12432 need_version=no
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12434 shlibpath_var=LD_LIBRARY_PATH
12435 shlibpath_overrides_runpath=no
12436 hardcode_into_libs=yes
12437 ;;
2232061b 12438
6bb11ab3
L
12439uts4*)
12440 version_type=linux
12441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12442 soname_spec='${libname}${release}${shared_ext}$major'
12443 shlibpath_var=LD_LIBRARY_PATH
12444 ;;
2232061b 12445
6bb11ab3
L
12446*)
12447 dynamic_linker=no
12448 ;;
12449esac
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12451$as_echo "$dynamic_linker" >&6; }
12452test "$dynamic_linker" = no && can_build_shared=no
2232061b 12453
6bb11ab3
L
12454variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12455if test "$GCC" = yes; then
12456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 12457fi
2232061b 12458
6bb11ab3
L
12459if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12460 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12461fi
12462if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12463 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12464fi
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
2232061b 12480
2232061b 12481
2232061b 12482
2232061b
MF
12483
12484
2232061b 12485
2232061b 12486
2232061b 12487
2232061b 12488
2232061b 12489
2232061b 12490
2232061b 12491
2232061b 12492
2232061b 12493
2232061b
MF
12494
12495
6ffe910a 12496
6ffe910a
MF
12497
12498
12499
12500
12501
2232061b 12502
6ffe910a
MF
12503
12504
12505
12506
6ffe910a 12507
6ffe910a 12508
6ffe910a
MF
12509
12510
6ffe910a 12511
6ffe910a 12512
6ffe910a
MF
12513
12514
5f3ef9d0 12515
5f3ef9d0
JB
12516
12517
12518
db2e4d67
MF
12519
12520
db2e4d67 12521
db2e4d67 12522
db2e4d67 12523
db2e4d67 12524
db2e4d67 12525
db2e4d67 12526
db2e4d67 12527
db2e4d67
MF
12528
12529
db2e4d67 12530
db2e4d67
MF
12531
12532
db2e4d67 12533
db2e4d67
MF
12534
12535
6ffe910a 12536
6ffe910a 12537
6ffe910a
MF
12538
12539
6ffe910a
MF
12540
12541
6ffe910a 12542
6ffe910a 12543
6ffe910a 12544
6ffe910a 12545
6ffe910a 12546
ef016f83 12547
ef016f83 12548
ef016f83 12549
ef016f83 12550
ef016f83 12551
ef016f83 12552
ef016f83 12553
6bb11ab3
L
12554
12555
12556
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12558$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12559hardcode_action=
12560if test -n "$hardcode_libdir_flag_spec" ||
12561 test -n "$runpath_var" ||
12562 test "X$hardcode_automatic" = "Xyes" ; then
12563
12564 # We can hardcode non-existent directories.
12565 if test "$hardcode_direct" != no &&
12566 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12567 # have to relink, otherwise we might link with an installed library
12568 # when we should be linking with a yet-to-be-installed one
12569 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12570 test "$hardcode_minus_L" != no; then
12571 # Linking always hardcodes the temporary library directory.
12572 hardcode_action=relink
12573 else
12574 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12575 hardcode_action=immediate
12576 fi
12577else
12578 # We cannot hardcode anything, or else we can only hardcode existing
12579 # directories.
12580 hardcode_action=unsupported
ef016f83 12581fi
6bb11ab3
L
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12583$as_echo "$hardcode_action" >&6; }
ef016f83 12584
6bb11ab3
L
12585if test "$hardcode_action" = relink ||
12586 test "$inherit_rpath" = yes; then
12587 # Fast installation is not supported
12588 enable_fast_install=no
12589elif test "$shlibpath_overrides_runpath" = yes ||
12590 test "$enable_shared" = no; then
12591 # Fast installation is not necessary
12592 enable_fast_install=needless
12593fi
ef016f83 12594
6bb11ab3
L
12595
12596
12597
12598
12599
12600 if test "x$enable_dlopen" != xyes; then
12601 enable_dlopen=unknown
12602 enable_dlopen_self=unknown
12603 enable_dlopen_self_static=unknown
12604else
12605 lt_cv_dlopen=no
12606 lt_cv_dlopen_libs=
12607
12608 case $host_os in
12609 beos*)
12610 lt_cv_dlopen="load_add_on"
12611 lt_cv_dlopen_libs=
12612 lt_cv_dlopen_self=yes
12613 ;;
12614
12615 mingw* | pw32* | cegcc*)
12616 lt_cv_dlopen="LoadLibrary"
12617 lt_cv_dlopen_libs=
12618 ;;
12619
12620 cygwin*)
12621 lt_cv_dlopen="dlopen"
12622 lt_cv_dlopen_libs=
12623 ;;
12624
12625 darwin*)
12626 # if libdl is installed we need to link against it
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12628$as_echo_n "checking for dlopen in -ldl... " >&6; }
12629if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12630 $as_echo_n "(cached) " >&6
12631else
12632 ac_check_lib_save_LIBS=$LIBS
12633LIBS="-ldl $LIBS"
12634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635/* end confdefs.h. */
12636
12637/* Override any GCC internal prototype to avoid an error.
12638 Use char because int might match the return type of a GCC
12639 builtin and then its argument prototype would still apply. */
12640#ifdef __cplusplus
12641extern "C"
12642#endif
12643char dlopen ();
12644int
12645main ()
12646{
12647return dlopen ();
12648 ;
12649 return 0;
12650}
ef016f83 12651_ACEOF
6bb11ab3
L
12652if ac_fn_c_try_link "$LINENO"; then :
12653 ac_cv_lib_dl_dlopen=yes
12654else
12655 ac_cv_lib_dl_dlopen=no
12656fi
12657rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659LIBS=$ac_check_lib_save_LIBS
12660fi
12661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12662$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12663if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12664 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12665else
12666
12667 lt_cv_dlopen="dyld"
12668 lt_cv_dlopen_libs=
12669 lt_cv_dlopen_self=yes
ef016f83
MF
12670
12671fi
12672
6bb11ab3 12673 ;;
ef016f83 12674
6bb11ab3
L
12675 *)
12676 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12677if test "x$ac_cv_func_shl_load" = x""yes; then :
12678 lt_cv_dlopen="shl_load"
12679else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12681$as_echo_n "checking for shl_load in -ldld... " >&6; }
12682if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
12684else
12685 ac_check_lib_save_LIBS=$LIBS
12686LIBS="-ldld $LIBS"
12687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688/* end confdefs.h. */
12689
12690/* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12693#ifdef __cplusplus
12694extern "C"
12695#endif
12696char shl_load ();
12697int
12698main ()
12699{
12700return shl_load ();
12701 ;
12702 return 0;
12703}
12704_ACEOF
12705if ac_fn_c_try_link "$LINENO"; then :
12706 ac_cv_lib_dld_shl_load=yes
12707else
12708 ac_cv_lib_dld_shl_load=no
12709fi
12710rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
12712LIBS=$ac_check_lib_save_LIBS
12713fi
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12715$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12716if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12717 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12718else
12719 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12720if test "x$ac_cv_func_dlopen" = x""yes; then :
12721 lt_cv_dlopen="dlopen"
12722else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12724$as_echo_n "checking for dlopen in -ldl... " >&6; }
12725if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12726 $as_echo_n "(cached) " >&6
12727else
12728 ac_check_lib_save_LIBS=$LIBS
12729LIBS="-ldl $LIBS"
12730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731/* end confdefs.h. */
12732
12733/* Override any GCC internal prototype to avoid an error.
12734 Use char because int might match the return type of a GCC
12735 builtin and then its argument prototype would still apply. */
12736#ifdef __cplusplus
12737extern "C"
12738#endif
12739char dlopen ();
12740int
12741main ()
12742{
12743return dlopen ();
12744 ;
12745 return 0;
12746}
ef016f83 12747_ACEOF
6bb11ab3
L
12748if ac_fn_c_try_link "$LINENO"; then :
12749 ac_cv_lib_dl_dlopen=yes
12750else
12751 ac_cv_lib_dl_dlopen=no
ef016f83 12752fi
6bb11ab3
L
12753rm -f core conftest.err conftest.$ac_objext \
12754 conftest$ac_exeext conftest.$ac_ext
12755LIBS=$ac_check_lib_save_LIBS
12756fi
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12758$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12759if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12761else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12763$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12764if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
ef016f83
MF
12765 $as_echo_n "(cached) " >&6
12766else
12767 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12768LIBS="-lsvld $LIBS"
ef016f83
MF
12769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770/* end confdefs.h. */
12771
12772/* Override any GCC internal prototype to avoid an error.
12773 Use char because int might match the return type of a GCC
12774 builtin and then its argument prototype would still apply. */
12775#ifdef __cplusplus
12776extern "C"
12777#endif
6bb11ab3 12778char dlopen ();
ef016f83
MF
12779int
12780main ()
12781{
6bb11ab3 12782return dlopen ();
ef016f83
MF
12783 ;
12784 return 0;
12785}
12786_ACEOF
12787if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12788 ac_cv_lib_svld_dlopen=yes
ef016f83 12789else
6bb11ab3 12790 ac_cv_lib_svld_dlopen=no
ef016f83
MF
12791fi
12792rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12794LIBS=$ac_check_lib_save_LIBS
12795fi
6bb11ab3
L
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12797$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12798if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12800else
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12802$as_echo_n "checking for dld_link in -ldld... " >&6; }
12803if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
ef016f83
MF
12804 $as_echo_n "(cached) " >&6
12805else
12806 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12807LIBS="-ldld $LIBS"
ef016f83
MF
12808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809/* end confdefs.h. */
12810
12811/* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
12814#ifdef __cplusplus
12815extern "C"
12816#endif
6bb11ab3 12817char dld_link ();
ef016f83
MF
12818int
12819main ()
12820{
6bb11ab3 12821return dld_link ();
ef016f83
MF
12822 ;
12823 return 0;
12824}
12825_ACEOF
12826if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12827 ac_cv_lib_dld_dld_link=yes
ef016f83 12828else
6bb11ab3 12829 ac_cv_lib_dld_dld_link=no
ef016f83
MF
12830fi
12831rm -f core conftest.err conftest.$ac_objext \
12832 conftest$ac_exeext conftest.$ac_ext
12833LIBS=$ac_check_lib_save_LIBS
12834fi
6bb11ab3
L
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12836$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12837if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12838 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12839fi
ef016f83 12840
ef016f83
MF
12841
12842fi
12843
12844
6bb11ab3 12845fi
ef016f83 12846
ef016f83 12847
ef016f83
MF
12848fi
12849
12850
6bb11ab3
L
12851fi
12852
12853
12854fi
12855
12856 ;;
12857 esac
12858
12859 if test "x$lt_cv_dlopen" != xno; then
12860 enable_dlopen=yes
12861 else
12862 enable_dlopen=no
12863 fi
12864
12865 case $lt_cv_dlopen in
12866 dlopen)
12867 save_CPPFLAGS="$CPPFLAGS"
12868 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12869
12870 save_LDFLAGS="$LDFLAGS"
12871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12872
12873 save_LIBS="$LIBS"
12874 LIBS="$lt_cv_dlopen_libs $LIBS"
12875
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12877$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12878if test "${lt_cv_dlopen_self+set}" = set; then :
ef016f83
MF
12879 $as_echo_n "(cached) " >&6
12880else
6bb11ab3
L
12881 if test "$cross_compiling" = yes; then :
12882 lt_cv_dlopen_self=cross
12883else
12884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12885 lt_status=$lt_dlunknown
12886 cat > conftest.$ac_ext <<_LT_EOF
936df756 12887#line 12887 "configure"
6bb11ab3 12888#include "confdefs.h"
ef016f83 12889
6bb11ab3
L
12890#if HAVE_DLFCN_H
12891#include <dlfcn.h>
ef016f83 12892#endif
6bb11ab3
L
12893
12894#include <stdio.h>
12895
12896#ifdef RTLD_GLOBAL
12897# define LT_DLGLOBAL RTLD_GLOBAL
12898#else
12899# ifdef DL_GLOBAL
12900# define LT_DLGLOBAL DL_GLOBAL
12901# else
12902# define LT_DLGLOBAL 0
12903# endif
12904#endif
12905
12906/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12907 find out it does not work in some platform. */
12908#ifndef LT_DLLAZY_OR_NOW
12909# ifdef RTLD_LAZY
12910# define LT_DLLAZY_OR_NOW RTLD_LAZY
12911# else
12912# ifdef DL_LAZY
12913# define LT_DLLAZY_OR_NOW DL_LAZY
12914# else
12915# ifdef RTLD_NOW
12916# define LT_DLLAZY_OR_NOW RTLD_NOW
12917# else
12918# ifdef DL_NOW
12919# define LT_DLLAZY_OR_NOW DL_NOW
12920# else
12921# define LT_DLLAZY_OR_NOW 0
12922# endif
12923# endif
12924# endif
12925# endif
12926#endif
12927
12928/* When -fvisbility=hidden is used, assume the code has been annotated
12929 correspondingly for the symbols needed. */
12930#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12931void fnord () __attribute__((visibility("default")));
12932#endif
12933
12934void fnord () { int i=42; }
12935int main ()
ef016f83 12936{
6bb11ab3
L
12937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12938 int status = $lt_dlunknown;
12939
12940 if (self)
12941 {
12942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12943 else
12944 {
12945 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12946 else puts (dlerror ());
12947 }
12948 /* dlclose (self); */
12949 }
12950 else
12951 puts (dlerror ());
12952
12953 return status;
ef016f83 12954}
6bb11ab3
L
12955_LT_EOF
12956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12957 (eval $ac_link) 2>&5
12958 ac_status=$?
12959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12960 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12961 (./conftest; exit; ) >&5 2>/dev/null
12962 lt_status=$?
12963 case x$lt_status in
12964 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12965 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12966 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12967 esac
12968 else :
12969 # compilation failed
12970 lt_cv_dlopen_self=no
12971 fi
12972fi
12973rm -fr conftest*
12974
12975
12976fi
12977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12978$as_echo "$lt_cv_dlopen_self" >&6; }
12979
12980 if test "x$lt_cv_dlopen_self" = xyes; then
12981 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12983$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12984if test "${lt_cv_dlopen_self_static+set}" = set; then :
12985 $as_echo_n "(cached) " >&6
12986else
12987 if test "$cross_compiling" = yes; then :
12988 lt_cv_dlopen_self_static=cross
12989else
12990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12991 lt_status=$lt_dlunknown
12992 cat > conftest.$ac_ext <<_LT_EOF
936df756 12993#line 12993 "configure"
6bb11ab3
L
12994#include "confdefs.h"
12995
12996#if HAVE_DLFCN_H
12997#include <dlfcn.h>
12998#endif
12999
13000#include <stdio.h>
13001
13002#ifdef RTLD_GLOBAL
13003# define LT_DLGLOBAL RTLD_GLOBAL
13004#else
13005# ifdef DL_GLOBAL
13006# define LT_DLGLOBAL DL_GLOBAL
13007# else
13008# define LT_DLGLOBAL 0
13009# endif
13010#endif
13011
13012/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13013 find out it does not work in some platform. */
13014#ifndef LT_DLLAZY_OR_NOW
13015# ifdef RTLD_LAZY
13016# define LT_DLLAZY_OR_NOW RTLD_LAZY
13017# else
13018# ifdef DL_LAZY
13019# define LT_DLLAZY_OR_NOW DL_LAZY
13020# else
13021# ifdef RTLD_NOW
13022# define LT_DLLAZY_OR_NOW RTLD_NOW
13023# else
13024# ifdef DL_NOW
13025# define LT_DLLAZY_OR_NOW DL_NOW
13026# else
13027# define LT_DLLAZY_OR_NOW 0
13028# endif
13029# endif
13030# endif
13031# endif
13032#endif
13033
13034/* When -fvisbility=hidden is used, assume the code has been annotated
13035 correspondingly for the symbols needed. */
13036#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13037void fnord () __attribute__((visibility("default")));
13038#endif
13039
13040void fnord () { int i=42; }
13041int main ()
13042{
13043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13044 int status = $lt_dlunknown;
13045
13046 if (self)
13047 {
13048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13049 else
13050 {
13051 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13052 else puts (dlerror ());
13053 }
13054 /* dlclose (self); */
13055 }
ef016f83 13056 else
6bb11ab3
L
13057 puts (dlerror ());
13058
13059 return status;
13060}
13061_LT_EOF
13062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13063 (eval $ac_link) 2>&5
13064 ac_status=$?
13065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13066 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13067 (./conftest; exit; ) >&5 2>/dev/null
13068 lt_status=$?
13069 case x$lt_status in
13070 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13071 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13072 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13073 esac
13074 else :
13075 # compilation failed
13076 lt_cv_dlopen_self_static=no
ef016f83 13077 fi
ef016f83 13078fi
6bb11ab3
L
13079rm -fr conftest*
13080
13081
ef016f83 13082fi
6bb11ab3
L
13083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13084$as_echo "$lt_cv_dlopen_self_static" >&6; }
13085 fi
13086
13087 CPPFLAGS="$save_CPPFLAGS"
13088 LDFLAGS="$save_LDFLAGS"
13089 LIBS="$save_LIBS"
13090 ;;
13091 esac
13092
13093 case $lt_cv_dlopen_self in
13094 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13095 *) enable_dlopen_self=unknown ;;
13096 esac
13097
13098 case $lt_cv_dlopen_self_static in
13099 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13100 *) enable_dlopen_self_static=unknown ;;
13101 esac
13102fi
13103
13104
ef016f83 13105
6bb11ab3
L
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120striplib=
13121old_striplib=
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13123$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13124if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13125 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13126 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13128$as_echo "yes" >&6; }
ef016f83 13129else
6bb11ab3
L
13130# FIXME - insert some real tests, host_os isn't really good enough
13131 case $host_os in
13132 darwin*)
13133 if test -n "$STRIP" ; then
13134 striplib="$STRIP -x"
13135 old_striplib="$STRIP -S"
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13137$as_echo "yes" >&6; }
13138 else
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140$as_echo "no" >&6; }
13141 fi
13142 ;;
13143 *)
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145$as_echo "no" >&6; }
13146 ;;
13147 esac
ef016f83 13148fi
6bb11ab3
L
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161 # Report which library types will actually be built
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13163$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13165$as_echo "$can_build_shared" >&6; }
13166
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13168$as_echo_n "checking whether to build shared libraries... " >&6; }
13169 test "$can_build_shared" = "no" && enable_shared=no
13170
13171 # On AIX, shared libraries and static libraries use the same namespace, and
13172 # are all built from PIC.
13173 case $host_os in
13174 aix3*)
13175 test "$enable_shared" = yes && enable_static=no
13176 if test -n "$RANLIB"; then
13177 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13178 postinstall_cmds='$RANLIB $lib'
13179 fi
13180 ;;
13181
13182 aix[4-9]*)
13183 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13184 test "$enable_shared" = yes && enable_static=no
13185 fi
13186 ;;
13187 esac
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13189$as_echo "$enable_shared" >&6; }
13190
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13192$as_echo_n "checking whether to build static libraries... " >&6; }
13193 # Make sure either enable_shared or enable_static is yes.
13194 test "$enable_shared" = yes || enable_static=yes
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13196$as_echo "$enable_static" >&6; }
13197
13198
13199
13200
ef016f83 13201fi
6bb11ab3
L
13202ac_ext=c
13203ac_cpp='$CPP $CPPFLAGS'
13204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13206ac_compiler_gnu=$ac_cv_c_compiler_gnu
13207
13208CC="$lt_save_CC"
13209
13210
13211
13212
13213
13214
13215
13216
13217
ef016f83 13218
ef016f83 13219
ef016f83 13220
ef016f83 13221
6bb11ab3
L
13222 ac_config_commands="$ac_config_commands libtool"
13223
13224
13225
13226
13227# Only expand once:
13228
13229
ef016f83
MF
13230
13231
13232. ${srcdir}/../../bfd/configure.host
13233
13234
13235
31e6ad7d
MF
13236
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13238$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13239 # Check whether --enable-maintainer-mode was given.
ef016f83 13240if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
13241 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13242else
13243 USE_MAINTAINER_MODE=no
ef016f83 13244fi
31e6ad7d
MF
13245
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13247$as_echo "$USE_MAINTAINER_MODE" >&6; }
13248 if test $USE_MAINTAINER_MODE = yes; then
13249 MAINTAINER_MODE_TRUE=
13250 MAINTAINER_MODE_FALSE='#'
ef016f83 13251else
31e6ad7d
MF
13252 MAINTAINER_MODE_TRUE='#'
13253 MAINTAINER_MODE_FALSE=
ef016f83
MF
13254fi
13255
31e6ad7d
MF
13256 MAINT=$MAINTAINER_MODE_TRUE
13257
13258
ef016f83
MF
13259
13260
ef016f83
MF
13261# Check whether --enable-sim-cflags was given.
13262if test "${enable_sim_cflags+set}" = set; then :
13263 enableval=$enable_sim_cflags; case "${enableval}" in
13264 yes) sim_cflags="-O2 -fomit-frame-pointer";;
13265 trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
13266 no) sim_cflags="";;
13267 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13268esac
13269if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
13270 echo "Setting sim cflags = $sim_cflags" 6>&1
13271fi
13272else
13273 sim_cflags=""
13274fi
13275
13276
13277
13278# Check whether --enable-sim-debug was given.
13279if test "${enable_sim_debug+set}" = set; then :
13280 enableval=$enable_sim_debug; case "${enableval}" in
13281 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
13282 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
13283 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
13284esac
13285if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
13286 echo "Setting sim debug = $sim_debug" 6>&1
13287fi
13288else
13289 sim_debug=""
13290fi
13291
13292
13293
13294# Check whether --enable-sim-stdio was given.
13295if test "${enable_sim_stdio+set}" = set; then :
13296 enableval=$enable_sim_stdio; case "${enableval}" in
13297 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
13298 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
13299 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
13300esac
13301if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
13302 echo "Setting stdio flags = $sim_stdio" 6>&1
13303fi
13304else
13305 sim_stdio=""
13306fi
13307
13308
13309
13310# Check whether --enable-sim-trace was given.
13311if test "${enable_sim_trace+set}" = set; then :
13312 enableval=$enable_sim_trace; case "${enableval}" in
a3487082
MF
13313 yes) sim_trace="-DWITH_TRACE=-1";;
13314 no) sim_trace="-DWITH_TRACE=0";;
ef016f83 13315 [-0-9]*)
a3487082 13316 sim_trace="-DWITH_TRACE='(${enableval})'";;
2232061b 13317 [[:lower:]]*)
ef016f83
MF
13318 sim_trace=""
13319 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13320 if test x"$sim_trace" = x; then
13321 sim_trace="-DWITH_TRACE='(TRACE_$x"
13322 else
13323 sim_trace="${sim_trace}|TRACE_$x"
13324 fi
13325 done
13326 sim_trace="$sim_trace)'" ;;
13327esac
13328if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
13329 echo "Setting sim trace = $sim_trace" 6>&1
13330fi
13331else
13332 sim_trace=""
13333fi
13334
13335
13336
13337# Check whether --enable-sim-profile was given.
13338if test "${enable_sim_profile+set}" = set; then :
13339 enableval=$enable_sim_profile; case "${enableval}" in
13340 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
13341 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
13342 [-0-9]*)
13343 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
13344 [a-z]*)
13345 sim_profile=""
13346 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13347 if test x"$sim_profile" = x; then
13348 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
13349 else
13350 sim_profile="${sim_profile}|PROFILE_$x"
13351 fi
13352 done
13353 sim_profile="$sim_profile)'" ;;
13354esac
13355if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
13356 echo "Setting sim profile = $sim_profile" 6>&1
13357fi
13358else
13359 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
13360fi
13361
13362
13363
13364
13365# Check whether --with-pkgversion was given.
13366if test "${with_pkgversion+set}" = set; then :
13367 withval=$with_pkgversion; case "$withval" in
13368 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
13369 no) PKGVERSION= ;;
13370 *) PKGVERSION="($withval) " ;;
13371 esac
13372else
bf12d44e 13373 PKGVERSION="(SIM) "
ef016f83
MF
13374
13375fi
13376
13377
13378
13379
13380
13381# Check whether --with-bugurl was given.
13382if test "${with_bugurl+set}" = set; then :
13383 withval=$with_bugurl; case "$withval" in
13384 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
13385 no) BUGURL=
13386 ;;
13387 *) BUGURL="$withval"
13388 ;;
13389 esac
13390else
13391 BUGURL="http://www.gnu.org/software/gdb/bugs/"
13392
13393fi
13394
13395 case ${BUGURL} in
13396 "")
13397 REPORT_BUGS_TO=
13398 REPORT_BUGS_TEXI=
13399 ;;
13400 *)
13401 REPORT_BUGS_TO="<$BUGURL>"
13402 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
13403 ;;
13404 esac;
13405
13406
13407
13408
13409cat >>confdefs.h <<_ACEOF
13410#define PKGVERSION "$PKGVERSION"
13411_ACEOF
13412
13413
13414cat >>confdefs.h <<_ACEOF
13415#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
13416_ACEOF
13417
13418
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13420$as_echo_n "checking return type of signal handlers... " >&6; }
13421if test "${ac_cv_type_signal+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423else
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425/* end confdefs.h. */
13426#include <sys/types.h>
13427#include <signal.h>
13428
13429int
13430main ()
13431{
13432return *(signal (0, 0)) (0) == 1;
13433 ;
13434 return 0;
13435}
13436_ACEOF
13437if ac_fn_c_try_compile "$LINENO"; then :
13438 ac_cv_type_signal=int
13439else
13440 ac_cv_type_signal=void
13441fi
13442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13443fi
13444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13445$as_echo "$ac_cv_type_signal" >&6; }
13446
13447cat >>confdefs.h <<_ACEOF
13448#define RETSIGTYPE $ac_cv_type_signal
13449_ACEOF
13450
13451
13452
13453
13454
13455sim_link_files=
13456sim_link_links=
13457
ef016f83
MF
13458# targ-vals.def points to the libc macro description file.
13459case "${target}" in
13460*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
13461esac
13462sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
13463sim_link_links="${sim_link_links} targ-vals.def"
13464
13465
13466
6ffe910a 13467
1ac72f06 13468wire_endian="LITTLE"
ef016f83
MF
13469default_endian=""
13470# Check whether --enable-sim-endian was given.
13471if test "${enable_sim_endian+set}" = set; then :
13472 enableval=$enable_sim_endian; case "${enableval}" in
1ac72f06
MF
13473 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
13474 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
ef016f83 13475 yes) if test x"$wire_endian" != x; then
1ac72f06 13476 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
ef016f83 13477 else
1ac72f06
MF
13478 if test x"$default_endian" != x; then
13479 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
ef016f83
MF
13480 else
13481 echo "No hard-wired endian for target $target" 1>&6
1ac72f06 13482 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
ef016f83
MF
13483 fi
13484 fi;;
13485 no) if test x"$default_endian" != x; then
1ac72f06 13486 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
ef016f83
MF
13487 else
13488 if test x"$wire_endian" != x; then
1ac72f06 13489 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
ef016f83
MF
13490 else
13491 echo "No default endian for target $target" 1>&6
1ac72f06 13492 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
ef016f83
MF
13493 fi
13494 fi;;
13495 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
13496esac
13497if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
13498 echo "Setting endian flags = $sim_endian" 6>&1
13499fi
13500else
13501 if test x"$default_endian" != x; then
1ac72f06 13502 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
ef016f83
MF
13503else
13504 if test x"$wire_endian" != x; then
1ac72f06 13505 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
ef016f83
MF
13506 else
13507 sim_endian=
13508 fi
13509fi
13510fi
13511
13512wire_alignment="STRICT_ALIGNMENT"
13513default_alignment="STRICT_ALIGNMENT"
13514
13515# Check whether --enable-sim-alignment was given.
13516if test "${enable_sim_alignment+set}" = set; then :
13517 enableval=$enable_sim_alignment; case "${enableval}" in
13518 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
13519 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
13520 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
13521 yes) if test x"$wire_alignment" != x; then
13522 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
13523 else
13524 if test x"$default_alignment" != x; then
13525 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
13526 else
13527 echo "No hard-wired alignment for target $target" 1>&6
13528 sim_alignment="-DWITH_ALIGNMENT=0"
13529 fi
13530 fi;;
13531 no) if test x"$default_alignment" != x; then
13532 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
13533 else
13534 if test x"$wire_alignment" != x; then
13535 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
13536 else
13537 echo "No default alignment for target $target" 1>&6
13538 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
13539 fi
13540 fi;;
13541 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
13542esac
13543if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
13544 echo "Setting alignment flags = $sim_alignment" 6>&1
13545fi
13546else
13547 if test x"$default_alignment" != x; then
13548 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
13549else
13550 if test x"$wire_alignment" != x; then
13551 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
13552 else
13553 sim_alignment=
13554 fi
13555fi
13556fi
13557
13558
ef016f83
MF
13559default_sim_default_model="bf537"
13560# Check whether --enable-sim-default-model was given.
13561if test "${enable_sim_default_model+set}" = set; then :
13562 enableval=$enable_sim_default_model; case "${enableval}" in
13563 yes|no) as_fn_error "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
13564 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
13565esac
13566if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
13567 echo "Setting default model = $sim_default_model" 6>&1
13568fi
13569else
13570 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
13571fi
13572
13573
13574
13575# Check whether --enable-sim-environment was given.
13576if test "${enable_sim_environment+set}" = set; then :
13577 enableval=$enable_sim_environment; case "${enableval}" in
13578 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
13579 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
13580 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
13581 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
13582 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
13583 sim_environment="";;
13584esac
13585if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
13586 echo "Setting sim environment = $sim_environment" 6>&1
13587fi
13588else
13589 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
13590fi
13591
13592
13593default_sim_inline=""
13594# Check whether --enable-sim-inline was given.
13595if test "${enable_sim_inline+set}" = set; then :
13596 enableval=$enable_sim_inline; sim_inline=""
13597case "$enableval" in
13598 no) sim_inline="-DDEFAULT_INLINE=0";;
13599 0) sim_inline="-DDEFAULT_INLINE=0";;
13600 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
13601 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
13602 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13603 new_flag=""
13604 case "$x" in
13605 *_INLINE=*) new_flag="-D$x";;
13606 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
13607 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
13608 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
13609 esac
13610 if test x"$sim_inline" = x""; then
13611 sim_inline="$new_flag"
13612 else
13613 sim_inline="$sim_inline $new_flag"
13614 fi
13615 done;;
13616esac
13617if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
13618 echo "Setting inline flags = $sim_inline" 6>&1
13619fi
13620else
13621
13622if test "x$cross_compiling" = "xno"; then
13623 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
13624 sim_inline="${default_sim_inline}"
13625 if test x"$silent" != x"yes"; then
13626 echo "Setting inline flags = $sim_inline" 6>&1
13627 fi
13628 else
13629 sim_inline=""
13630 fi
13631else
13632 sim_inline="-DDEFAULT_INLINE=0"
13633fi
13634fi
13635
13636
2232061b
MF
13637# Check whether --enable-werror was given.
13638if test "${enable_werror+set}" = set; then :
13639 enableval=$enable_werror; case "${enableval}" in
13640 yes | y) ERROR_ON_WARNING="yes" ;;
13641 no | n) ERROR_ON_WARNING="no" ;;
13642 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13643 esac
13644fi
13645
13646
13647# Enable -Werror by default when using gcc
13648if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13649 ERROR_ON_WARNING=yes
ef016f83 13650fi
2232061b
MF
13651
13652WERROR_CFLAGS=""
13653if test "${ERROR_ON_WARNING}" = yes ; then
13654# NOTE: Disabled in the sim dir due to most sims generating warnings.
13655# WERROR_CFLAGS="-Werror"
13656 true
13657fi
13658
2232061b 13659build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 13660-Wpointer-sign \
2232061b 13661-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
13662-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
13663-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
13664-Wold-style-declaration -Wold-style-definition"
2232061b
MF
13665
13666# Enable -Wno-format by default when using gcc on mingw since many
13667# GCC versions complain about %I64.
13668case "${host}" in
13669 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 13670 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
13671esac
13672
ef016f83
MF
13673# Check whether --enable-build-warnings was given.
13674if test "${enable_build_warnings+set}" = set; then :
13675 enableval=$enable_build_warnings; case "${enableval}" in
13676 yes) ;;
13677 no) build_warnings="-w";;
13678 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13679 build_warnings="${build_warnings} ${t}";;
13680 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13681 build_warnings="${t} ${build_warnings}";;
13682 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13683esac
13684if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13685 echo "Setting compiler warning flags = $build_warnings" 6>&1
13686fi
13687fi
13688# Check whether --enable-sim-build-warnings was given.
13689if test "${enable_sim_build_warnings+set}" = set; then :
13690 enableval=$enable_sim_build_warnings; case "${enableval}" in
13691 yes) ;;
13692 no) build_warnings="-w";;
13693 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13694 build_warnings="${build_warnings} ${t}";;
13695 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13696 build_warnings="${t} ${build_warnings}";;
13697 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13698esac
13699if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13700 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13701fi
13702fi
13703WARN_CFLAGS=""
ef016f83
MF
13704if test "x${build_warnings}" != x -a "x$GCC" = xyes
13705then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13707$as_echo_n "checking compiler warning flags... " >&6; }
13708 # Separate out the -Werror flag as some files just cannot be
13709 # compiled with it enabled.
13710 for w in ${build_warnings}; do
13711 case $w in
13712 -Werr*) WERROR_CFLAGS=-Werror ;;
13713 *) # Check that GCC accepts it
13714 saved_CFLAGS="$CFLAGS"
13715 CFLAGS="$CFLAGS $w"
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717/* end confdefs.h. */
13718
13719int
13720main ()
13721{
13722
13723 ;
13724 return 0;
13725}
13726_ACEOF
13727if ac_fn_c_try_compile "$LINENO"; then :
13728 WARN_CFLAGS="${WARN_CFLAGS} $w"
13729fi
13730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731 CFLAGS="$saved_CFLAGS"
13732 esac
13733 done
2232061b
MF
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13735$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
ef016f83
MF
13736fi
13737
13738
ef016f83
MF
13739if test ""; then
13740 hardware=""
13741else
6294f8ea 13742 hardware="cfi core pal glue"
ef016f83
MF
13743fi
13744hardware="$hardware \
13745 bfin_cec \
13746 bfin_ctimer \
13747 bfin_dma \
13748 bfin_dmac \
13749 bfin_ebiu_amc \
13750 bfin_ebiu_ddrc \
13751 bfin_ebiu_sdc \
13752 bfin_emac \
13753 bfin_eppi \
13754 bfin_evt \
b5215db0 13755 bfin_gpio \
07c5891d 13756 bfin_gpio2 \
ef016f83
MF
13757 bfin_gptimer \
13758 bfin_jtag \
13759 bfin_mmu \
13760 bfin_nfc \
13761 bfin_otp \
c43aadca 13762 bfin_pfmon \
050396e5 13763 bfin_pint \
ef016f83
MF
13764 bfin_pll \
13765 bfin_ppi \
13766 bfin_rtc \
13767 bfin_sic \
13768 bfin_spi \
13769 bfin_trace \
13770 bfin_twi \
13771 bfin_uart \
13772 bfin_uart2 \
13773 bfin_wdog \
13774 bfin_wp \
13775 eth_phy \
13776"
1517bd27 13777
ef016f83
MF
13778sim_hw_cflags="-DWITH_HW=1"
13779sim_hw="$hardware"
13780sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 13781
ef016f83
MF
13782# Check whether --enable-sim-hardware was given.
13783if test "${enable_sim_hardware+set}" = set; then :
13784 enableval=$enable_sim_hardware;
30452bbe
MF
13785else
13786 enable_sim_hardware="yes"
1517bd27
MF
13787fi
13788
13789case ${enable_sim_hardware} in
64dd13df
MF
13790 yes|no) ;;
13791 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
13792 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
13793 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
ef016f83 13794esac
1517bd27 13795
64dd13df 13796if test "$enable_sim_hardware" = no; then
ef016f83
MF
13797 sim_hw_objs=
13798 sim_hw_cflags="-DWITH_HW=0"
13799 sim_hw=
13800else
13801 sim_hw_cflags="-DWITH_HW=1"
13802 # remove duplicates
13803 sim_hw=""
13804 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
13805 for i in $hardware ; do
13806 case " $sim_hw " in
13807 *" $i "*) ;;
13808 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
13809 esac
13810 done
256139f5 13811 # mingw does not support sockser
256139f5
JS
13812 case ${host} in
13813 *mingw*) ;;
49cd1634
MF
13814 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
13815 # that you instatiate. Instead, other code will call into it directly.
13816 # At some point, we should convert it over.
13817 sim_hw_objs="$sim_hw_objs dv-sockser.o"
256139f5
JS
13818
13819cat >>confdefs.h <<_ACEOF
13820#define HAVE_DV_SOCKSER 1
13821_ACEOF
13822
13823 ;;
13824 esac
1517bd27
MF
13825 if test x"$silent" != x"yes"; then
13826 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
256139f5 13827 fi
1517bd27
MF
13828 case " $hardware " in
13829 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
4399a56b
MF
13830$as_echo_n "checking for log2 in -lm... " >&6; }
13831if test "${ac_cv_lib_m_log2+set}" = set; then :
13832 $as_echo_n "(cached) " >&6
13833else
13834 ac_check_lib_save_LIBS=$LIBS
13835LIBS="-lm $LIBS"
13836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837/* end confdefs.h. */
13838
13839/* Override any GCC internal prototype to avoid an error.
13840 Use char because int might match the return type of a GCC
13841 builtin and then its argument prototype would still apply. */
13842#ifdef __cplusplus
13843extern "C"
13844#endif
13845char log2 ();
13846int
13847main ()
13848{
13849return log2 ();
13850 ;
13851 return 0;
13852}
13853_ACEOF
13854if ac_fn_c_try_link "$LINENO"; then :
13855 ac_cv_lib_m_log2=yes
13856else
13857 ac_cv_lib_m_log2=no
13858fi
13859rm -f core conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13861LIBS=$ac_check_lib_save_LIBS
13862fi
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
13864$as_echo "$ac_cv_lib_m_log2" >&6; }
13865if test "x$ac_cv_lib_m_log2" = x""yes; then :
13866 cat >>confdefs.h <<_ACEOF
13867#define HAVE_LIBM 1
13868_ACEOF
13869
13870 LIBS="-lm $LIBS"
13871
13872fi
13873;;
1517bd27
MF
13874 esac
13875fi
4399a56b 13876
ef016f83 13877
9e6584c9 13878for ac_func in getuid getgid geteuid getegid setuid setgid mmap munmap kill pread
ef016f83
MF
13879do :
13880 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13881ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13882eval as_val=\$$as_ac_var
13883 if test "x$as_val" = x""yes; then :
13884 cat >>confdefs.h <<_ACEOF
13885#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13886_ACEOF
13887
13888fi
13889done
13890
84de2f06
MF
13891for ac_header in \
13892 linux/if_tun.h \
13893 linux/mii.h \
13894 linux/types.h \
13895 net/if.h \
13896 sys/ioctl.h \
13897 sys/mman.h \
13898
ef016f83
MF
13899do :
13900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13901ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13902eval as_val=\$$as_ac_Header
13903 if test "x$as_val" = x""yes; then :
13904 cat >>confdefs.h <<_ACEOF
13905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13906_ACEOF
13907
13908fi
13909
13910done
13911
13912
ef016f83
MF
13913
13914
13915
13916
13917
13918
9c082ca8 13919
ef016f83
MF
13920if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13921 if test -n "$ac_tool_prefix"; then
13922 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13923set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13925$as_echo_n "checking for $ac_word... " >&6; }
13926if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13927 $as_echo_n "(cached) " >&6
13928else
13929 case $PKG_CONFIG in
13930 [\\/]* | ?:[\\/]*)
13931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13932 ;;
13933 *)
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935for as_dir in $PATH
13936do
13937 IFS=$as_save_IFS
13938 test -z "$as_dir" && as_dir=.
13939 for ac_exec_ext in '' $ac_executable_extensions; do
13940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13941 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13943 break 2
13944 fi
13945done
13946 done
13947IFS=$as_save_IFS
13948
13949 ;;
13950esac
13951fi
13952PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13953if test -n "$PKG_CONFIG"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13955$as_echo "$PKG_CONFIG" >&6; }
13956else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958$as_echo "no" >&6; }
13959fi
13960
13961
13962fi
13963if test -z "$ac_cv_path_PKG_CONFIG"; then
13964 ac_pt_PKG_CONFIG=$PKG_CONFIG
13965 # Extract the first word of "pkg-config", so it can be a program name with args.
13966set dummy pkg-config; ac_word=$2
13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968$as_echo_n "checking for $ac_word... " >&6; }
13969if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13970 $as_echo_n "(cached) " >&6
13971else
13972 case $ac_pt_PKG_CONFIG in
13973 [\\/]* | ?:[\\/]*)
13974 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13975 ;;
13976 *)
13977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13978for as_dir in $PATH
13979do
13980 IFS=$as_save_IFS
13981 test -z "$as_dir" && as_dir=.
13982 for ac_exec_ext in '' $ac_executable_extensions; do
13983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13984 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13986 break 2
13987 fi
13988done
13989 done
13990IFS=$as_save_IFS
13991
13992 ;;
13993esac
13994fi
13995ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13996if test -n "$ac_pt_PKG_CONFIG"; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13998$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13999else
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14001$as_echo "no" >&6; }
14002fi
14003
14004 if test "x$ac_pt_PKG_CONFIG" = x; then
14005 PKG_CONFIG=""
14006 else
14007 case $cross_compiling:$ac_tool_warned in
14008yes:)
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14011ac_tool_warned=yes ;;
14012esac
14013 PKG_CONFIG=$ac_pt_PKG_CONFIG
14014 fi
14015else
14016 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14017fi
14018
14019fi
14020if test -n "$PKG_CONFIG"; then
14021 _pkg_min_version=0.9.0
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14023$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14024 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14026$as_echo "yes" >&6; }
14027 else
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029$as_echo "no" >&6; }
14030 PKG_CONFIG=""
14031 fi
14032fi
14033
14034pkg_failed=no
14035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
14036$as_echo_n "checking for SDL... " >&6; }
14037
14038if test -n "$SDL_CFLAGS"; then
14039 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
14040 elif test -n "$PKG_CONFIG"; then
14041 if test -n "$PKG_CONFIG" && \
14042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
14043 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
14044 ac_status=$?
14045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14046 test $ac_status = 0; }; then
14047 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
9c082ca8 14048 test "x$?" != "x0" && pkg_failed=yes
ef016f83
MF
14049else
14050 pkg_failed=yes
14051fi
14052 else
14053 pkg_failed=untried
14054fi
14055if test -n "$SDL_LIBS"; then
14056 pkg_cv_SDL_LIBS="$SDL_LIBS"
14057 elif test -n "$PKG_CONFIG"; then
14058 if test -n "$PKG_CONFIG" && \
14059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
14060 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
14061 ac_status=$?
14062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14063 test $ac_status = 0; }; then
14064 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
9c082ca8 14065 test "x$?" != "x0" && pkg_failed=yes
ef016f83
MF
14066else
14067 pkg_failed=yes
14068fi
14069 else
14070 pkg_failed=untried
14071fi
14072
14073
14074
14075if test $pkg_failed = yes; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077$as_echo "no" >&6; }
14078
14079if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14080 _pkg_short_errors_supported=yes
14081else
14082 _pkg_short_errors_supported=no
14083fi
14084 if test $_pkg_short_errors_supported = yes; then
9c082ca8 14085 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
ef016f83 14086 else
9c082ca8 14087 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
ef016f83
MF
14088 fi
14089 # Put the nasty error message in config.log where it belongs
14090 echo "$SDL_PKG_ERRORS" >&5
14091
14092 :
14093elif test $pkg_failed = untried; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095$as_echo "no" >&6; }
14096 :
14097else
14098 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
14099 SDL_LIBS=$pkg_cv_SDL_LIBS
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14101$as_echo "yes" >&6; }
14102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14104$as_echo_n "checking for dlopen in -ldl... " >&6; }
14105if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14107else
14108 ac_check_lib_save_LIBS=$LIBS
14109LIBS="-ldl $LIBS"
14110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111/* end confdefs.h. */
14112
14113/* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14116#ifdef __cplusplus
14117extern "C"
14118#endif
14119char dlopen ();
14120int
14121main ()
14122{
14123return dlopen ();
14124 ;
14125 return 0;
14126}
14127_ACEOF
14128if ac_fn_c_try_link "$LINENO"; then :
14129 ac_cv_lib_dl_dlopen=yes
14130else
14131 ac_cv_lib_dl_dlopen=no
14132fi
14133rm -f core conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14135LIBS=$ac_check_lib_save_LIBS
14136fi
14137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14138$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14139if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14140
14141 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
14142 SDL_LIBS="-ldl"
14143
14144else
14145 SDL_CFLAGS= SDL_LIBS=
14146fi
14147
14148
14149fi
14150
14151
14152
14153
14154ac_sources="$sim_link_files"
14155ac_dests="$sim_link_links"
14156while test -n "$ac_sources"; do
14157 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14158 set $ac_sources; ac_source=$1; shift; ac_sources=$*
14159 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14160done
14161ac_config_links="$ac_config_links $ac_config_links_1"
14162
14163cgen_breaks=""
14164if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
14165cgen_breaks="break cgen_rtx_error";
14166fi
14167
14168ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
14169
14170ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
14171
14172ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
14173
14174ac_config_commands="$ac_config_commands Makefile"
14175
14176ac_config_commands="$ac_config_commands stamp-h"
14177
14178cat >confcache <<\_ACEOF
14179# This file is a shell script that caches the results of configure
14180# tests run on this system so they can be shared between configure
14181# scripts and configure runs, see configure's option --config-cache.
14182# It is not useful on other systems. If it contains results you don't
14183# want to keep, you may remove or edit it.
14184#
14185# config.status only pays attention to the cache file if you give it
14186# the --recheck option to rerun configure.
14187#
14188# `ac_cv_env_foo' variables (set or unset) will be overridden when
14189# loading this file, other *unset* `ac_cv_foo' will be assigned the
14190# following values.
14191
14192_ACEOF
14193
14194# The following way of writing the cache mishandles newlines in values,
14195# but we know of no workaround that is simple, portable, and efficient.
14196# So, we kill variables containing newlines.
14197# Ultrix sh set writes to stderr and can't be redirected directly,
14198# and sets the high bit in the cache file unless we assign to the vars.
14199(
14200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14201 eval ac_val=\$$ac_var
14202 case $ac_val in #(
14203 *${as_nl}*)
14204 case $ac_var in #(
14205 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14206$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14207 esac
14208 case $ac_var in #(
14209 _ | IFS | as_nl) ;; #(
14210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14211 *) { eval $ac_var=; unset $ac_var;} ;;
14212 esac ;;
14213 esac
14214 done
14215
14216 (set) 2>&1 |
14217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14218 *${as_nl}ac_space=\ *)
14219 # `set' does not quote correctly, so add quotes: double-quote
14220 # substitution turns \\\\ into \\, and sed turns \\ into \.
14221 sed -n \
14222 "s/'/'\\\\''/g;
14223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14224 ;; #(
14225 *)
14226 # `set' quotes correctly as required by POSIX, so do not add quotes.
14227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14228 ;;
14229 esac |
14230 sort
14231) |
14232 sed '
14233 /^ac_cv_env_/b end
14234 t clear
14235 :clear
14236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14237 t end
14238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14239 :end' >>confcache
14240if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14241 if test -w "$cache_file"; then
14242 test "x$cache_file" != "x/dev/null" &&
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14244$as_echo "$as_me: updating cache $cache_file" >&6;}
14245 cat confcache >$cache_file
14246 else
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14248$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14249 fi
14250fi
14251rm -f confcache
14252
14253test "x$prefix" = xNONE && prefix=$ac_default_prefix
14254# Let make expand exec_prefix.
14255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14256
14257DEFS=-DHAVE_CONFIG_H
14258
14259ac_libobjs=
14260ac_ltlibobjs=
14261for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14262 # 1. Remove the extension, and $U if already installed.
14263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14264 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14266 # will be set to the directory where LIBOBJS objects are built.
14267 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14268 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14269done
14270LIBOBJS=$ac_libobjs
14271
14272LTLIBOBJS=$ac_ltlibobjs
14273
14274
0cb8d851 14275
db2e4d67
MF
14276if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14277 as_fn_error "conditional \"GMAKE\" was never defined.
14278Usually this means the macro was only invoked conditionally." "$LINENO" 5
14279fi
6bb11ab3
L
14280if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14281 as_fn_error "conditional \"PLUGINS\" was never defined.
14282Usually this means the macro was only invoked conditionally." "$LINENO" 5
14283fi
31e6ad7d
MF
14284if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14285 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14286Usually this means the macro was only invoked conditionally." "$LINENO" 5
14287fi
ef016f83 14288
ef016f83
MF
14289: ${CONFIG_STATUS=./config.status}
14290ac_write_fail=0
14291ac_clean_files_save=$ac_clean_files
14292ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14294$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14295as_write_fail=0
14296cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14297#! $SHELL
14298# Generated by $as_me.
14299# Run this file to recreate the current configuration.
14300# Compiler output produced by configure, useful for debugging
14301# configure, is in config.log if it exists.
14302
14303debug=false
14304ac_cs_recheck=false
14305ac_cs_silent=false
14306
14307SHELL=\${CONFIG_SHELL-$SHELL}
14308export SHELL
14309_ASEOF
14310cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14311## -------------------- ##
14312## M4sh Initialization. ##
14313## -------------------- ##
14314
14315# Be more Bourne compatible
14316DUALCASE=1; export DUALCASE # for MKS sh
14317if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14318 emulate sh
14319 NULLCMD=:
14320 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14321 # is contrary to our usage. Disable this feature.
14322 alias -g '${1+"$@"}'='"$@"'
14323 setopt NO_GLOB_SUBST
14324else
14325 case `(set -o) 2>/dev/null` in #(
14326 *posix*) :
14327 set -o posix ;; #(
14328 *) :
14329 ;;
14330esac
14331fi
14332
14333
14334as_nl='
14335'
14336export as_nl
14337# Printing a long string crashes Solaris 7 /usr/bin/printf.
14338as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14339as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14340as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14341# Prefer a ksh shell builtin over an external printf program on Solaris,
14342# but without wasting forks for bash or zsh.
14343if test -z "$BASH_VERSION$ZSH_VERSION" \
14344 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14345 as_echo='print -r --'
14346 as_echo_n='print -rn --'
14347elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14348 as_echo='printf %s\n'
14349 as_echo_n='printf %s'
14350else
14351 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14352 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14353 as_echo_n='/usr/ucb/echo -n'
14354 else
14355 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14356 as_echo_n_body='eval
14357 arg=$1;
14358 case $arg in #(
14359 *"$as_nl"*)
14360 expr "X$arg" : "X\\(.*\\)$as_nl";
14361 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14362 esac;
14363 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14364 '
14365 export as_echo_n_body
14366 as_echo_n='sh -c $as_echo_n_body as_echo'
14367 fi
14368 export as_echo_body
14369 as_echo='sh -c $as_echo_body as_echo'
14370fi
14371
14372# The user is always right.
14373if test "${PATH_SEPARATOR+set}" != set; then
14374 PATH_SEPARATOR=:
14375 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14376 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14377 PATH_SEPARATOR=';'
14378 }
14379fi
14380
14381
14382# IFS
14383# We need space, tab and new line, in precisely that order. Quoting is
14384# there to prevent editors from complaining about space-tab.
14385# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14386# splitting by setting IFS to empty value.)
14387IFS=" "" $as_nl"
14388
14389# Find who we are. Look in the path if we contain no directory separator.
14390case $0 in #((
14391 *[\\/]* ) as_myself=$0 ;;
14392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393for as_dir in $PATH
14394do
14395 IFS=$as_save_IFS
14396 test -z "$as_dir" && as_dir=.
14397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14398 done
14399IFS=$as_save_IFS
14400
14401 ;;
14402esac
14403# We did not find ourselves, most probably we were run as `sh COMMAND'
14404# in which case we are not to be found in the path.
14405if test "x$as_myself" = x; then
14406 as_myself=$0
14407fi
14408if test ! -f "$as_myself"; then
14409 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14410 exit 1
14411fi
14412
14413# Unset variables that we do not need and which cause bugs (e.g. in
14414# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14415# suppresses any "Segmentation fault" message there. '((' could
14416# trigger a bug in pdksh 5.2.14.
14417for as_var in BASH_ENV ENV MAIL MAILPATH
14418do eval test x\${$as_var+set} = xset \
14419 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14420done
14421PS1='$ '
14422PS2='> '
14423PS4='+ '
14424
14425# NLS nuisances.
14426LC_ALL=C
14427export LC_ALL
14428LANGUAGE=C
14429export LANGUAGE
14430
14431# CDPATH.
14432(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14433
14434
14435# as_fn_error ERROR [LINENO LOG_FD]
14436# ---------------------------------
14437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14439# script with status $?, using 1 if that was 0.
14440as_fn_error ()
14441{
14442 as_status=$?; test $as_status -eq 0 && as_status=1
14443 if test "$3"; then
14444 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14445 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14446 fi
14447 $as_echo "$as_me: error: $1" >&2
14448 as_fn_exit $as_status
14449} # as_fn_error
14450
14451
14452# as_fn_set_status STATUS
14453# -----------------------
14454# Set $? to STATUS, without forking.
14455as_fn_set_status ()
14456{
14457 return $1
14458} # as_fn_set_status
14459
14460# as_fn_exit STATUS
14461# -----------------
14462# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14463as_fn_exit ()
14464{
14465 set +e
14466 as_fn_set_status $1
14467 exit $1
14468} # as_fn_exit
14469
14470# as_fn_unset VAR
14471# ---------------
14472# Portably unset VAR.
14473as_fn_unset ()
14474{
14475 { eval $1=; unset $1;}
14476}
14477as_unset=as_fn_unset
14478# as_fn_append VAR VALUE
14479# ----------------------
14480# Append the text in VALUE to the end of the definition contained in VAR. Take
14481# advantage of any shell optimizations that allow amortized linear growth over
14482# repeated appends, instead of the typical quadratic growth present in naive
14483# implementations.
14484if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14485 eval 'as_fn_append ()
14486 {
14487 eval $1+=\$2
14488 }'
14489else
14490 as_fn_append ()
14491 {
14492 eval $1=\$$1\$2
14493 }
14494fi # as_fn_append
14495
14496# as_fn_arith ARG...
14497# ------------------
14498# Perform arithmetic evaluation on the ARGs, and store the result in the
14499# global $as_val. Take advantage of shells that can avoid forks. The arguments
14500# must be portable across $(()) and expr.
14501if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14502 eval 'as_fn_arith ()
14503 {
14504 as_val=$(( $* ))
14505 }'
14506else
14507 as_fn_arith ()
14508 {
14509 as_val=`expr "$@" || test $? -eq 1`
14510 }
14511fi # as_fn_arith
14512
14513
14514if expr a : '\(a\)' >/dev/null 2>&1 &&
14515 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14516 as_expr=expr
14517else
14518 as_expr=false
14519fi
14520
14521if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14522 as_basename=basename
14523else
14524 as_basename=false
14525fi
14526
14527if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14528 as_dirname=dirname
14529else
14530 as_dirname=false
14531fi
14532
14533as_me=`$as_basename -- "$0" ||
14534$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14535 X"$0" : 'X\(//\)$' \| \
14536 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14537$as_echo X/"$0" |
14538 sed '/^.*\/\([^/][^/]*\)\/*$/{
14539 s//\1/
14540 q
14541 }
14542 /^X\/\(\/\/\)$/{
14543 s//\1/
14544 q
14545 }
14546 /^X\/\(\/\).*/{
14547 s//\1/
14548 q
14549 }
14550 s/.*/./; q'`
14551
14552# Avoid depending upon Character Ranges.
14553as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14554as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14555as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14556as_cr_digits='0123456789'
14557as_cr_alnum=$as_cr_Letters$as_cr_digits
14558
14559ECHO_C= ECHO_N= ECHO_T=
14560case `echo -n x` in #(((((
14561-n*)
14562 case `echo 'xy\c'` in
14563 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14564 xy) ECHO_C='\c';;
14565 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14566 ECHO_T=' ';;
14567 esac;;
14568*)
14569 ECHO_N='-n';;
14570esac
14571
14572rm -f conf$$ conf$$.exe conf$$.file
14573if test -d conf$$.dir; then
14574 rm -f conf$$.dir/conf$$.file
14575else
14576 rm -f conf$$.dir
14577 mkdir conf$$.dir 2>/dev/null
14578fi
14579if (echo >conf$$.file) 2>/dev/null; then
14580 if ln -s conf$$.file conf$$ 2>/dev/null; then
14581 as_ln_s='ln -s'
14582 # ... but there are two gotchas:
14583 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14584 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14585 # In both cases, we have to default to `cp -p'.
14586 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14587 as_ln_s='cp -p'
14588 elif ln conf$$.file conf$$ 2>/dev/null; then
14589 as_ln_s=ln
14590 else
14591 as_ln_s='cp -p'
14592 fi
14593else
14594 as_ln_s='cp -p'
14595fi
14596rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14597rmdir conf$$.dir 2>/dev/null
14598
14599
14600# as_fn_mkdir_p
14601# -------------
14602# Create "$as_dir" as a directory, including parents if necessary.
14603as_fn_mkdir_p ()
14604{
14605
14606 case $as_dir in #(
14607 -*) as_dir=./$as_dir;;
14608 esac
14609 test -d "$as_dir" || eval $as_mkdir_p || {
14610 as_dirs=
14611 while :; do
14612 case $as_dir in #(
14613 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14614 *) as_qdir=$as_dir;;
14615 esac
14616 as_dirs="'$as_qdir' $as_dirs"
14617 as_dir=`$as_dirname -- "$as_dir" ||
14618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14619 X"$as_dir" : 'X\(//\)[^/]' \| \
14620 X"$as_dir" : 'X\(//\)$' \| \
14621 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14622$as_echo X"$as_dir" |
14623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14624 s//\1/
14625 q
14626 }
14627 /^X\(\/\/\)[^/].*/{
14628 s//\1/
14629 q
14630 }
14631 /^X\(\/\/\)$/{
14632 s//\1/
14633 q
14634 }
14635 /^X\(\/\).*/{
14636 s//\1/
14637 q
14638 }
14639 s/.*/./; q'`
14640 test -d "$as_dir" && break
14641 done
14642 test -z "$as_dirs" || eval "mkdir $as_dirs"
14643 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14644
14645
14646} # as_fn_mkdir_p
14647if mkdir -p . 2>/dev/null; then
14648 as_mkdir_p='mkdir -p "$as_dir"'
14649else
14650 test -d ./-p && rmdir ./-p
14651 as_mkdir_p=false
14652fi
14653
14654if test -x / >/dev/null 2>&1; then
14655 as_test_x='test -x'
14656else
14657 if ls -dL / >/dev/null 2>&1; then
14658 as_ls_L_option=L
14659 else
14660 as_ls_L_option=
14661 fi
14662 as_test_x='
14663 eval sh -c '\''
14664 if test -d "$1"; then
14665 test -d "$1/.";
14666 else
14667 case $1 in #(
14668 -*)set "./$1";;
14669 esac;
14670 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14671 ???[sx]*):;;*)false;;esac;fi
14672 '\'' sh
14673 '
14674fi
14675as_executable_p=$as_test_x
14676
14677# Sed expression to map a string onto a valid CPP name.
14678as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14679
14680# Sed expression to map a string onto a valid variable name.
14681as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14682
14683
14684exec 6>&1
14685## ----------------------------------- ##
14686## Main body of $CONFIG_STATUS script. ##
14687## ----------------------------------- ##
14688_ASEOF
14689test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14690
14691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14692# Save the log message, to keep $0 and so on meaningful, and to
14693# report actual input values of CONFIG_FILES etc. instead of their
14694# values after options handling.
14695ac_log="
14696This file was extended by $as_me, which was
14697generated by GNU Autoconf 2.64. Invocation command line was
14698
14699 CONFIG_FILES = $CONFIG_FILES
14700 CONFIG_HEADERS = $CONFIG_HEADERS
14701 CONFIG_LINKS = $CONFIG_LINKS
14702 CONFIG_COMMANDS = $CONFIG_COMMANDS
14703 $ $0 $@
14704
14705on `(hostname || uname -n) 2>/dev/null | sed 1q`
14706"
14707
14708_ACEOF
14709
14710case $ac_config_files in *"
14711"*) set x $ac_config_files; shift; ac_config_files=$*;;
14712esac
14713
14714case $ac_config_headers in *"
14715"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14716esac
14717
14718
14719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14720# Files that config.status was made for.
14721config_files="$ac_config_files"
14722config_headers="$ac_config_headers"
14723config_links="$ac_config_links"
14724config_commands="$ac_config_commands"
14725
14726_ACEOF
14727
14728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14729ac_cs_usage="\
14730\`$as_me' instantiates files and other configuration actions
14731from templates according to the current configuration. Unless the files
14732and actions are specified as TAGs, all are instantiated by default.
14733
14734Usage: $0 [OPTION]... [TAG]...
14735
14736 -h, --help print this help, then exit
14737 -V, --version print version number and configuration settings, then exit
14738 -q, --quiet, --silent
14739 do not print progress messages
14740 -d, --debug don't remove temporary files
14741 --recheck update $as_me by reconfiguring in the same conditions
14742 --file=FILE[:TEMPLATE]
14743 instantiate the configuration file FILE
14744 --header=FILE[:TEMPLATE]
14745 instantiate the configuration header FILE
14746
14747Configuration files:
14748$config_files
14749
14750Configuration headers:
14751$config_headers
14752
14753Configuration links:
14754$config_links
14755
14756Configuration commands:
14757$config_commands
14758
14759Report bugs to the package provider."
14760
14761_ACEOF
14762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14763ac_cs_version="\\
14764config.status
14765configured by $0, generated by GNU Autoconf 2.64,
14766 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14767
14768Copyright (C) 2009 Free Software Foundation, Inc.
14769This config.status script is free software; the Free Software Foundation
14770gives unlimited permission to copy, distribute and modify it."
14771
14772ac_pwd='$ac_pwd'
14773srcdir='$srcdir'
14774INSTALL='$INSTALL'
6bb11ab3 14775AWK='$AWK'
ef016f83
MF
14776test -n "\$AWK" || AWK=awk
14777_ACEOF
14778
14779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14780# The default lists apply if the user does not specify any file.
14781ac_need_defaults=:
14782while test $# != 0
14783do
14784 case $1 in
14785 --*=*)
14786 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14787 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14788 ac_shift=:
14789 ;;
14790 *)
14791 ac_option=$1
14792 ac_optarg=$2
14793 ac_shift=shift
14794 ;;
14795 esac
14796
14797 case $ac_option in
14798 # Handling of the options.
14799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14800 ac_cs_recheck=: ;;
14801 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14802 $as_echo "$ac_cs_version"; exit ;;
14803 --debug | --debu | --deb | --de | --d | -d )
14804 debug=: ;;
14805 --file | --fil | --fi | --f )
14806 $ac_shift
14807 case $ac_optarg in
14808 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14809 esac
14810 as_fn_append CONFIG_FILES " '$ac_optarg'"
14811 ac_need_defaults=false;;
14812 --header | --heade | --head | --hea )
14813 $ac_shift
14814 case $ac_optarg in
14815 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14816 esac
14817 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14818 ac_need_defaults=false;;
14819 --he | --h)
14820 # Conflict between --help and --header
14821 as_fn_error "ambiguous option: \`$1'
14822Try \`$0 --help' for more information.";;
14823 --help | --hel | -h )
14824 $as_echo "$ac_cs_usage"; exit ;;
14825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14826 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14827 ac_cs_silent=: ;;
14828
14829 # This is an error.
14830 -*) as_fn_error "unrecognized option: \`$1'
14831Try \`$0 --help' for more information." ;;
14832
14833 *) as_fn_append ac_config_targets " $1"
14834 ac_need_defaults=false ;;
14835
14836 esac
14837 shift
14838done
14839
14840ac_configure_extra_args=
14841
14842if $ac_cs_silent; then
14843 exec 6>/dev/null
14844 ac_configure_extra_args="$ac_configure_extra_args --silent"
14845fi
14846
14847_ACEOF
14848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14849if \$ac_cs_recheck; then
14850 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14851 shift
14852 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14853 CONFIG_SHELL='$SHELL'
14854 export CONFIG_SHELL
14855 exec "\$@"
14856fi
14857
14858_ACEOF
14859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14860exec 5>>config.log
14861{
14862 echo
14863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14864## Running $as_me. ##
14865_ASBOX
14866 $as_echo "$ac_log"
14867} >&5
14868
14869_ACEOF
14870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
14871#
14872# INIT-COMMANDS
14873#
14874ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14875
6bb11ab3
L
14876
14877# The HP-UX ksh and POSIX shell print the target directory to stdout
14878# if CDPATH is set.
14879(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14880
14881sed_quote_subst='$sed_quote_subst'
14882double_quote_subst='$double_quote_subst'
14883delay_variable_subst='$delay_variable_subst'
14884macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14885macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14886enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14887enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14888pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14889enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14890SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14891ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14892host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14893host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14894host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14895build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14896build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14897build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14898SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14899Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14900GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14901EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14902FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14903LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14904NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14905LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14906max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14907ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14908exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14909lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14910lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14911lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14912reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14913reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14914OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14915deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14916file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14917AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14918AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14919STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14920RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14921old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14922old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14923old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14924lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14925CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14926CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14927compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14928GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14929lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14930lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14931lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14932lt_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"`'
14933objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14934MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14935lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14936lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14937lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14938lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14939lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14940need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14941DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14942NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14943LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14944OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14945OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14946libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14947shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14948extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14949archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14950enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14951export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14952whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14953compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14954old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14955old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14956archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14957archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14958module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14959module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14960with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14961allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14962no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14963hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14964hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14965hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14966hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14967hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14968hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14969hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14970hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14971inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14972link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14973fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14974always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14975export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14976exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14977include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14978prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14979file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14980variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14981need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14982need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14983version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14984runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14985shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14986shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14987libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14988library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14989soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14990install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14991postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14992postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14993finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14994finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14995hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14996sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14997sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14998hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14999enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15000enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15001enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15002old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15003striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15004
15005LTCC='$LTCC'
15006LTCFLAGS='$LTCFLAGS'
15007compiler='$compiler_DEFAULT'
15008
15009# A function that is used when there is no print builtin or printf.
15010func_fallback_echo ()
15011{
15012 eval 'cat <<_LTECHO_EOF
15013\$1
15014_LTECHO_EOF'
15015}
15016
15017# Quote evaled strings.
15018for var in SHELL \
15019ECHO \
15020SED \
15021GREP \
15022EGREP \
15023FGREP \
15024LD \
15025NM \
15026LN_S \
15027lt_SP2NL \
15028lt_NL2SP \
15029reload_flag \
15030OBJDUMP \
15031deplibs_check_method \
15032file_magic_cmd \
15033AR \
15034AR_FLAGS \
15035STRIP \
15036RANLIB \
15037CC \
15038CFLAGS \
15039compiler \
15040lt_cv_sys_global_symbol_pipe \
15041lt_cv_sys_global_symbol_to_cdecl \
15042lt_cv_sys_global_symbol_to_c_name_address \
15043lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15044lt_prog_compiler_no_builtin_flag \
15045lt_prog_compiler_wl \
15046lt_prog_compiler_pic \
15047lt_prog_compiler_static \
15048lt_cv_prog_compiler_c_o \
15049need_locks \
15050DSYMUTIL \
15051NMEDIT \
15052LIPO \
15053OTOOL \
15054OTOOL64 \
15055shrext_cmds \
15056export_dynamic_flag_spec \
15057whole_archive_flag_spec \
15058compiler_needs_object \
15059with_gnu_ld \
15060allow_undefined_flag \
15061no_undefined_flag \
15062hardcode_libdir_flag_spec \
15063hardcode_libdir_flag_spec_ld \
15064hardcode_libdir_separator \
15065fix_srcfile_path \
15066exclude_expsyms \
15067include_expsyms \
15068file_list_spec \
15069variables_saved_for_relink \
15070libname_spec \
15071library_names_spec \
15072soname_spec \
15073install_override_mode \
15074finish_eval \
15075old_striplib \
15076striplib; do
15077 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15078 *[\\\\\\\`\\"\\\$]*)
15079 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15080 ;;
15081 *)
15082 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15083 ;;
15084 esac
15085done
15086
15087# Double-quote double-evaled strings.
15088for var in reload_cmds \
15089old_postinstall_cmds \
15090old_postuninstall_cmds \
15091old_archive_cmds \
15092extract_expsyms_cmds \
15093old_archive_from_new_cmds \
15094old_archive_from_expsyms_cmds \
15095archive_cmds \
15096archive_expsym_cmds \
15097module_cmds \
15098module_expsym_cmds \
15099export_symbols_cmds \
15100prelink_cmds \
15101postinstall_cmds \
15102postuninstall_cmds \
15103finish_cmds \
15104sys_lib_search_path_spec \
15105sys_lib_dlsearch_path_spec; do
15106 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15107 *[\\\\\\\`\\"\\\$]*)
15108 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15109 ;;
15110 *)
15111 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15112 ;;
15113 esac
15114done
15115
15116ac_aux_dir='$ac_aux_dir'
15117xsi_shell='$xsi_shell'
15118lt_shell_append='$lt_shell_append'
15119
15120# See if we are running on zsh, and set the options which allow our
15121# commands through without removal of \ escapes INIT.
15122if test -n "\${ZSH_VERSION+set}" ; then
15123 setopt NO_GLOB_SUBST
15124fi
15125
15126
15127 PACKAGE='$PACKAGE'
15128 VERSION='$VERSION'
15129 TIMESTAMP='$TIMESTAMP'
15130 RM='$RM'
15131 ofile='$ofile'
15132
15133
15134
15135
ef016f83
MF
15136_ACEOF
15137
15138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15139
15140# Handling of arguments.
15141for ac_config_target in $ac_config_targets
15142do
15143 case $ac_config_target in
15144 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 15145 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 15146 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
ef016f83
MF
15147 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
15148 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
15149 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
15150 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
15151 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15152 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
15153
15154 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15155 esac
15156done
15157
15158
15159# If the user did not use the arguments to specify the items to instantiate,
15160# then the envvar interface is used. Set only those that are not.
15161# We use the long form for the default assignment because of an extremely
15162# bizarre bug on SunOS 4.1.3.
15163if $ac_need_defaults; then
15164 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15165 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15166 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15168fi
15169
15170# Have a temporary directory for convenience. Make it in the build tree
15171# simply because there is no reason against having it here, and in addition,
15172# creating and moving files from /tmp can sometimes cause problems.
15173# Hook for its removal unless debugging.
15174# Note that there is a small window in which the directory will not be cleaned:
15175# after its creation but before its name has been assigned to `$tmp'.
15176$debug ||
15177{
15178 tmp=
15179 trap 'exit_status=$?
15180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15181' 0
15182 trap 'as_fn_exit 1' 1 2 13 15
15183}
15184# Create a (secure) tmp directory for tmp files.
15185
15186{
15187 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15188 test -n "$tmp" && test -d "$tmp"
15189} ||
15190{
15191 tmp=./conf$$-$RANDOM
15192 (umask 077 && mkdir "$tmp")
15193} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15194
15195# Set up the scripts for CONFIG_FILES section.
15196# No need to generate them if there are no CONFIG_FILES.
15197# This happens for instance with `./config.status config.h'.
15198if test -n "$CONFIG_FILES"; then
15199
15200
15201ac_cr=`echo X | tr X '\015'`
15202# On cygwin, bash can eat \r inside `` if the user requested igncr.
15203# But we know of no other shell where ac_cr would be empty at this
15204# point, so we can use a bashism as a fallback.
15205if test "x$ac_cr" = x; then
15206 eval ac_cr=\$\'\\r\'
15207fi
15208ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15209if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15210 ac_cs_awk_cr='\r'
15211else
15212 ac_cs_awk_cr=$ac_cr
15213fi
15214
15215echo 'BEGIN {' >"$tmp/subs1.awk" &&
15216_ACEOF
15217
15218
15219{
15220 echo "cat >conf$$subs.awk <<_ACEOF" &&
15221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15222 echo "_ACEOF"
15223} >conf$$subs.sh ||
15224 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15225ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15226ac_delim='%!_!# '
15227for ac_last_try in false false false false false :; do
15228 . ./conf$$subs.sh ||
15229 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15230
15231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15232 if test $ac_delim_n = $ac_delim_num; then
15233 break
15234 elif $ac_last_try; then
15235 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15236 else
15237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15238 fi
15239done
15240rm -f conf$$subs.sh
15241
15242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15243cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15244_ACEOF
15245sed -n '
15246h
15247s/^/S["/; s/!.*/"]=/
15248p
15249g
15250s/^[^!]*!//
15251:repl
15252t repl
15253s/'"$ac_delim"'$//
15254t delim
15255:nl
15256h
15257s/\(.\{148\}\).*/\1/
15258t more1
15259s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15260p
15261n
15262b repl
15263:more1
15264s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15265p
15266g
15267s/.\{148\}//
15268t nl
15269:delim
15270h
15271s/\(.\{148\}\).*/\1/
15272t more2
15273s/["\\]/\\&/g; s/^/"/; s/$/"/
15274p
15275b
15276:more2
15277s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15278p
15279g
15280s/.\{148\}//
15281t delim
15282' <conf$$subs.awk | sed '
15283/^[^""]/{
15284 N
15285 s/\n//
15286}
15287' >>$CONFIG_STATUS || ac_write_fail=1
15288rm -f conf$$subs.awk
15289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15290_ACAWK
15291cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15292 for (key in S) S_is_set[key] = 1
15293 FS = "\a"
15294
15295}
15296{
15297 line = $ 0
15298 nfields = split(line, field, "@")
15299 substed = 0
15300 len = length(field[1])
15301 for (i = 2; i < nfields; i++) {
15302 key = field[i]
15303 keylen = length(key)
15304 if (S_is_set[key]) {
15305 value = S[key]
15306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15307 len += length(value) + length(field[++i])
15308 substed = 1
15309 } else
15310 len += 1 + keylen
15311 }
15312
15313 print line
15314}
15315
15316_ACAWK
15317_ACEOF
15318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15319if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15321else
15322 cat
15323fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15324 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15325_ACEOF
15326
15327# VPATH may cause trouble with some makes, so we remove $(srcdir),
15328# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15329# trailing colons and then remove the whole line if VPATH becomes empty
15330# (actually we leave an empty line to preserve line numbers).
15331if test "x$srcdir" = x.; then
15332 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15333s/:*\$(srcdir):*/:/
15334s/:*\${srcdir}:*/:/
15335s/:*@srcdir@:*/:/
15336s/^\([^=]*=[ ]*\):*/\1/
15337s/:*$//
15338s/^[^=]*=[ ]*$//
15339}'
15340fi
15341
15342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343fi # test -n "$CONFIG_FILES"
15344
15345# Set up the scripts for CONFIG_HEADERS section.
15346# No need to generate them if there are no CONFIG_HEADERS.
15347# This happens for instance with `./config.status Makefile'.
15348if test -n "$CONFIG_HEADERS"; then
15349cat >"$tmp/defines.awk" <<\_ACAWK ||
15350BEGIN {
15351_ACEOF
15352
15353# Transform confdefs.h into an awk script `defines.awk', embedded as
15354# here-document in config.status, that substitutes the proper values into
15355# config.h.in to produce config.h.
15356
15357# Create a delimiter string that does not exist in confdefs.h, to ease
15358# handling of long lines.
15359ac_delim='%!_!# '
15360for ac_last_try in false false :; do
15361 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15362 if test -z "$ac_t"; then
15363 break
15364 elif $ac_last_try; then
15365 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15366 else
15367 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15368 fi
15369done
15370
15371# For the awk script, D is an array of macro values keyed by name,
15372# likewise P contains macro parameters if any. Preserve backslash
15373# newline sequences.
15374
15375ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15376sed -n '
15377s/.\{148\}/&'"$ac_delim"'/g
15378t rset
15379:rset
15380s/^[ ]*#[ ]*define[ ][ ]*/ /
15381t def
15382d
15383:def
15384s/\\$//
15385t bsnl
15386s/["\\]/\\&/g
15387s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15388D["\1"]=" \3"/p
15389s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15390d
15391:bsnl
15392s/["\\]/\\&/g
15393s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15394D["\1"]=" \3\\\\\\n"\\/p
15395t cont
15396s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15397t cont
15398d
15399:cont
15400n
15401s/.\{148\}/&'"$ac_delim"'/g
15402t clear
15403:clear
15404s/\\$//
15405t bsnlc
15406s/["\\]/\\&/g; s/^/"/; s/$/"/p
15407d
15408:bsnlc
15409s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15410b cont
15411' <confdefs.h | sed '
15412s/'"$ac_delim"'/"\\\
15413"/g' >>$CONFIG_STATUS || ac_write_fail=1
15414
15415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416 for (key in D) D_is_set[key] = 1
15417 FS = "\a"
15418}
15419/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15420 line = \$ 0
15421 split(line, arg, " ")
15422 if (arg[1] == "#") {
15423 defundef = arg[2]
15424 mac1 = arg[3]
15425 } else {
15426 defundef = substr(arg[1], 2)
15427 mac1 = arg[2]
15428 }
15429 split(mac1, mac2, "(") #)
15430 macro = mac2[1]
15431 prefix = substr(line, 1, index(line, defundef) - 1)
15432 if (D_is_set[macro]) {
15433 # Preserve the white space surrounding the "#".
15434 print prefix "define", macro P[macro] D[macro]
15435 next
15436 } else {
15437 # Replace #undef with comments. This is necessary, for example,
15438 # in the case of _POSIX_SOURCE, which is predefined and required
15439 # on some systems where configure will not decide to define it.
15440 if (defundef == "undef") {
15441 print "/*", prefix defundef, macro, "*/"
15442 next
15443 }
15444 }
15445}
15446{ print }
15447_ACAWK
15448_ACEOF
15449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15450 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15451fi # test -n "$CONFIG_HEADERS"
15452
15453
15454eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15455shift
15456for ac_tag
15457do
15458 case $ac_tag in
15459 :[FHLC]) ac_mode=$ac_tag; continue;;
15460 esac
15461 case $ac_mode$ac_tag in
15462 :[FHL]*:*);;
15463 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15464 :[FH]-) ac_tag=-:-;;
15465 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15466 esac
15467 ac_save_IFS=$IFS
15468 IFS=:
15469 set x $ac_tag
15470 IFS=$ac_save_IFS
15471 shift
15472 ac_file=$1
15473 shift
15474
15475 case $ac_mode in
15476 :L) ac_source=$1;;
15477 :[FH])
15478 ac_file_inputs=
15479 for ac_f
15480 do
15481 case $ac_f in
15482 -) ac_f="$tmp/stdin";;
15483 *) # Look for the file first in the build tree, then in the source tree
15484 # (if the path is not absolute). The absolute path cannot be DOS-style,
15485 # because $ac_f cannot contain `:'.
15486 test -f "$ac_f" ||
15487 case $ac_f in
15488 [\\/$]*) false;;
15489 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15490 esac ||
15491 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15492 esac
15493 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15494 as_fn_append ac_file_inputs " '$ac_f'"
15495 done
15496
15497 # Let's still pretend it is `configure' which instantiates (i.e., don't
15498 # use $as_me), people would be surprised to read:
15499 # /* config.h. Generated by config.status. */
15500 configure_input='Generated from '`
15501 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15502 `' by configure.'
15503 if test x"$ac_file" != x-; then
15504 configure_input="$ac_file. $configure_input"
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15506$as_echo "$as_me: creating $ac_file" >&6;}
15507 fi
15508 # Neutralize special characters interpreted by sed in replacement strings.
15509 case $configure_input in #(
15510 *\&* | *\|* | *\\* )
15511 ac_sed_conf_input=`$as_echo "$configure_input" |
15512 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15513 *) ac_sed_conf_input=$configure_input;;
15514 esac
15515
15516 case $ac_tag in
15517 *:-:* | *:-) cat >"$tmp/stdin" \
15518 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15519 esac
15520 ;;
15521 esac
15522
15523 ac_dir=`$as_dirname -- "$ac_file" ||
15524$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15525 X"$ac_file" : 'X\(//\)[^/]' \| \
15526 X"$ac_file" : 'X\(//\)$' \| \
15527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15528$as_echo X"$ac_file" |
15529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15530 s//\1/
15531 q
15532 }
15533 /^X\(\/\/\)[^/].*/{
15534 s//\1/
15535 q
15536 }
15537 /^X\(\/\/\)$/{
15538 s//\1/
15539 q
15540 }
15541 /^X\(\/\).*/{
15542 s//\1/
15543 q
15544 }
15545 s/.*/./; q'`
15546 as_dir="$ac_dir"; as_fn_mkdir_p
15547 ac_builddir=.
15548
15549case "$ac_dir" in
15550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15551*)
15552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15553 # A ".." for each directory in $ac_dir_suffix.
15554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15555 case $ac_top_builddir_sub in
15556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15558 esac ;;
15559esac
15560ac_abs_top_builddir=$ac_pwd
15561ac_abs_builddir=$ac_pwd$ac_dir_suffix
15562# for backward compatibility:
15563ac_top_builddir=$ac_top_build_prefix
15564
15565case $srcdir in
15566 .) # We are building in place.
15567 ac_srcdir=.
15568 ac_top_srcdir=$ac_top_builddir_sub
15569 ac_abs_top_srcdir=$ac_pwd ;;
15570 [\\/]* | ?:[\\/]* ) # Absolute name.
15571 ac_srcdir=$srcdir$ac_dir_suffix;
15572 ac_top_srcdir=$srcdir
15573 ac_abs_top_srcdir=$srcdir ;;
15574 *) # Relative name.
15575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15576 ac_top_srcdir=$ac_top_build_prefix$srcdir
15577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15578esac
15579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15580
15581
15582 case $ac_mode in
15583 :F)
15584 #
15585 # CONFIG_FILE
15586 #
15587
15588 case $INSTALL in
15589 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15590 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15591 esac
15592_ACEOF
15593
15594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15595# If the template does not know about datarootdir, expand it.
15596# FIXME: This hack should be removed a few years after 2.60.
15597ac_datarootdir_hack=; ac_datarootdir_seen=
15598ac_sed_dataroot='
15599/datarootdir/ {
15600 p
15601 q
15602}
15603/@datadir@/p
15604/@docdir@/p
15605/@infodir@/p
15606/@localedir@/p
15607/@mandir@/p'
15608case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15609*datarootdir*) ac_datarootdir_seen=yes;;
15610*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15612$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15613_ACEOF
15614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615 ac_datarootdir_hack='
15616 s&@datadir@&$datadir&g
15617 s&@docdir@&$docdir&g
15618 s&@infodir@&$infodir&g
15619 s&@localedir@&$localedir&g
15620 s&@mandir@&$mandir&g
15621 s&\\\${datarootdir}&$datarootdir&g' ;;
15622esac
15623_ACEOF
15624
15625# Neutralize VPATH when `$srcdir' = `.'.
15626# Shell code in configure.ac might set extrasub.
15627# FIXME: do we really want to maintain this feature?
15628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629ac_sed_extra="$ac_vpsub
15630$extrasub
15631_ACEOF
15632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15633:t
15634/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15635s|@configure_input@|$ac_sed_conf_input|;t t
15636s&@top_builddir@&$ac_top_builddir_sub&;t t
15637s&@top_build_prefix@&$ac_top_build_prefix&;t t
15638s&@srcdir@&$ac_srcdir&;t t
15639s&@abs_srcdir@&$ac_abs_srcdir&;t t
15640s&@top_srcdir@&$ac_top_srcdir&;t t
15641s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15642s&@builddir@&$ac_builddir&;t t
15643s&@abs_builddir@&$ac_abs_builddir&;t t
15644s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15645s&@INSTALL@&$ac_INSTALL&;t t
15646$ac_datarootdir_hack
15647"
15648eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15649 || as_fn_error "could not create $ac_file" "$LINENO" 5
15650
15651test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15652 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15653 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15655which seems to be undefined. Please make sure it is defined." >&5
15656$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15657which seems to be undefined. Please make sure it is defined." >&2;}
15658
15659 rm -f "$tmp/stdin"
15660 case $ac_file in
15661 -) cat "$tmp/out" && rm -f "$tmp/out";;
15662 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15663 esac \
15664 || as_fn_error "could not create $ac_file" "$LINENO" 5
15665 ;;
15666 :H)
15667 #
15668 # CONFIG_HEADER
15669 #
15670 if test x"$ac_file" != x-; then
15671 {
15672 $as_echo "/* $configure_input */" \
15673 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15674 } >"$tmp/config.h" \
15675 || as_fn_error "could not create $ac_file" "$LINENO" 5
15676 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15678$as_echo "$as_me: $ac_file is unchanged" >&6;}
15679 else
15680 rm -f "$ac_file"
15681 mv "$tmp/config.h" "$ac_file" \
15682 || as_fn_error "could not create $ac_file" "$LINENO" 5
15683 fi
15684 else
15685 $as_echo "/* $configure_input */" \
15686 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15687 || as_fn_error "could not create -" "$LINENO" 5
15688 fi
15689 ;;
15690 :L)
15691 #
15692 # CONFIG_LINK
15693 #
15694
15695 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15696 :
15697 else
15698 # Prefer the file from the source tree if names are identical.
15699 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15700 ac_source=$srcdir/$ac_source
15701 fi
15702
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15704$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15705
15706 if test ! -r "$ac_source"; then
15707 as_fn_error "$ac_source: file not found" "$LINENO" 5
15708 fi
15709 rm -f "$ac_file"
15710
15711 # Try a relative symlink, then a hard link, then a copy.
15712 case $srcdir in
15713 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15714 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15715 esac
15716 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15717 ln "$ac_source" "$ac_file" 2>/dev/null ||
15718 cp -p "$ac_source" "$ac_file" ||
15719 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15720 fi
15721 ;;
15722 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15723$as_echo "$as_me: executing $ac_file commands" >&6;}
15724 ;;
15725 esac
15726
15727
15728 case $ac_file$ac_mode in
db2e4d67 15729 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
15730 "libtool":C)
15731
15732 # See if we are running on zsh, and set the options which allow our
15733 # commands through without removal of \ escapes.
15734 if test -n "${ZSH_VERSION+set}" ; then
15735 setopt NO_GLOB_SUBST
15736 fi
15737
15738 cfgfile="${ofile}T"
15739 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15740 $RM "$cfgfile"
15741
15742 cat <<_LT_EOF >> "$cfgfile"
15743#! $SHELL
15744
15745# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15746# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15747# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15748# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15749#
15750# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15751# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15752# Written by Gordon Matzigkeit, 1996
15753#
15754# This file is part of GNU Libtool.
15755#
15756# GNU Libtool is free software; you can redistribute it and/or
15757# modify it under the terms of the GNU General Public License as
15758# published by the Free Software Foundation; either version 2 of
15759# the License, or (at your option) any later version.
15760#
15761# As a special exception to the GNU General Public License,
15762# if you distribute this file as part of a program or library that
15763# is built using GNU Libtool, you may include this file under the
15764# same distribution terms that you use for the rest of that program.
15765#
15766# GNU Libtool is distributed in the hope that it will be useful,
15767# but WITHOUT ANY WARRANTY; without even the implied warranty of
15768# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15769# GNU General Public License for more details.
15770#
15771# You should have received a copy of the GNU General Public License
15772# along with GNU Libtool; see the file COPYING. If not, a copy
15773# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15774# obtained by writing to the Free Software Foundation, Inc.,
15775# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15776
15777
15778# The names of the tagged configurations supported by this script.
15779available_tags=""
15780
15781# ### BEGIN LIBTOOL CONFIG
15782
15783# Which release of libtool.m4 was used?
15784macro_version=$macro_version
15785macro_revision=$macro_revision
15786
15787# Whether or not to build shared libraries.
15788build_libtool_libs=$enable_shared
15789
15790# Whether or not to build static libraries.
15791build_old_libs=$enable_static
15792
15793# What type of objects to build.
15794pic_mode=$pic_mode
15795
15796# Whether or not to optimize for fast installation.
15797fast_install=$enable_fast_install
15798
15799# Shell to use when invoking shell scripts.
15800SHELL=$lt_SHELL
15801
15802# An echo program that protects backslashes.
15803ECHO=$lt_ECHO
15804
15805# The host system.
15806host_alias=$host_alias
15807host=$host
15808host_os=$host_os
15809
15810# The build system.
15811build_alias=$build_alias
15812build=$build
15813build_os=$build_os
15814
15815# A sed program that does not truncate output.
15816SED=$lt_SED
15817
15818# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15819Xsed="\$SED -e 1s/^X//"
15820
15821# A grep program that handles long lines.
15822GREP=$lt_GREP
15823
15824# An ERE matcher.
15825EGREP=$lt_EGREP
15826
15827# A literal string matcher.
15828FGREP=$lt_FGREP
15829
15830# A BSD- or MS-compatible name lister.
15831NM=$lt_NM
15832
15833# Whether we need soft or hard links.
15834LN_S=$lt_LN_S
15835
15836# What is the maximum length of a command?
15837max_cmd_len=$max_cmd_len
15838
15839# Object file suffix (normally "o").
15840objext=$ac_objext
15841
15842# Executable file suffix (normally "").
15843exeext=$exeext
15844
15845# whether the shell understands "unset".
15846lt_unset=$lt_unset
15847
15848# turn spaces into newlines.
15849SP2NL=$lt_lt_SP2NL
15850
15851# turn newlines into spaces.
15852NL2SP=$lt_lt_NL2SP
15853
15854# An object symbol dumper.
15855OBJDUMP=$lt_OBJDUMP
15856
15857# Method to check whether dependent libraries are shared objects.
15858deplibs_check_method=$lt_deplibs_check_method
15859
15860# Command to use when deplibs_check_method == "file_magic".
15861file_magic_cmd=$lt_file_magic_cmd
15862
15863# The archiver.
15864AR=$lt_AR
15865AR_FLAGS=$lt_AR_FLAGS
15866
15867# A symbol stripping program.
15868STRIP=$lt_STRIP
15869
15870# Commands used to install an old-style archive.
15871RANLIB=$lt_RANLIB
15872old_postinstall_cmds=$lt_old_postinstall_cmds
15873old_postuninstall_cmds=$lt_old_postuninstall_cmds
15874
15875# Whether to use a lock for old archive extraction.
15876lock_old_archive_extraction=$lock_old_archive_extraction
15877
15878# A C compiler.
15879LTCC=$lt_CC
15880
15881# LTCC compiler flags.
15882LTCFLAGS=$lt_CFLAGS
15883
15884# Take the output of nm and produce a listing of raw symbols and C names.
15885global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15886
15887# Transform the output of nm in a proper C declaration.
15888global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15889
15890# Transform the output of nm in a C name address pair.
15891global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15892
15893# Transform the output of nm in a C name address pair when lib prefix is needed.
15894global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15895
15896# The name of the directory that contains temporary libtool files.
15897objdir=$objdir
15898
15899# Used to examine libraries when file_magic_cmd begins with "file".
15900MAGIC_CMD=$MAGIC_CMD
15901
15902# Must we lock files when doing compilation?
15903need_locks=$lt_need_locks
15904
15905# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15906DSYMUTIL=$lt_DSYMUTIL
15907
15908# Tool to change global to local symbols on Mac OS X.
15909NMEDIT=$lt_NMEDIT
15910
15911# Tool to manipulate fat objects and archives on Mac OS X.
15912LIPO=$lt_LIPO
15913
15914# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15915OTOOL=$lt_OTOOL
15916
15917# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15918OTOOL64=$lt_OTOOL64
15919
15920# Old archive suffix (normally "a").
15921libext=$libext
15922
15923# Shared library suffix (normally ".so").
15924shrext_cmds=$lt_shrext_cmds
15925
15926# The commands to extract the exported symbol list from a shared archive.
15927extract_expsyms_cmds=$lt_extract_expsyms_cmds
15928
15929# Variables whose values should be saved in libtool wrapper scripts and
15930# restored at link time.
15931variables_saved_for_relink=$lt_variables_saved_for_relink
15932
15933# Do we need the "lib" prefix for modules?
15934need_lib_prefix=$need_lib_prefix
15935
15936# Do we need a version for libraries?
15937need_version=$need_version
15938
15939# Library versioning type.
15940version_type=$version_type
15941
15942# Shared library runtime path variable.
15943runpath_var=$runpath_var
15944
15945# Shared library path variable.
15946shlibpath_var=$shlibpath_var
15947
15948# Is shlibpath searched before the hard-coded library search path?
15949shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15950
15951# Format of library name prefix.
15952libname_spec=$lt_libname_spec
15953
15954# List of archive names. First name is the real one, the rest are links.
15955# The last name is the one that the linker finds with -lNAME
15956library_names_spec=$lt_library_names_spec
15957
15958# The coded name of the library, if different from the real name.
15959soname_spec=$lt_soname_spec
15960
15961# Permission mode override for installation of shared libraries.
15962install_override_mode=$lt_install_override_mode
15963
15964# Command to use after installation of a shared archive.
15965postinstall_cmds=$lt_postinstall_cmds
15966
15967# Command to use after uninstallation of a shared archive.
15968postuninstall_cmds=$lt_postuninstall_cmds
15969
15970# Commands used to finish a libtool library installation in a directory.
15971finish_cmds=$lt_finish_cmds
15972
15973# As "finish_cmds", except a single script fragment to be evaled but
15974# not shown.
15975finish_eval=$lt_finish_eval
15976
15977# Whether we should hardcode library paths into libraries.
15978hardcode_into_libs=$hardcode_into_libs
15979
15980# Compile-time system search path for libraries.
15981sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15982
15983# Run-time system search path for libraries.
15984sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15985
15986# Whether dlopen is supported.
15987dlopen_support=$enable_dlopen
15988
15989# Whether dlopen of programs is supported.
15990dlopen_self=$enable_dlopen_self
15991
15992# Whether dlopen of statically linked programs is supported.
15993dlopen_self_static=$enable_dlopen_self_static
15994
15995# Commands to strip libraries.
15996old_striplib=$lt_old_striplib
15997striplib=$lt_striplib
15998
15999
16000# The linker used to build libraries.
16001LD=$lt_LD
16002
16003# How to create reloadable object files.
16004reload_flag=$lt_reload_flag
16005reload_cmds=$lt_reload_cmds
16006
16007# Commands used to build an old-style archive.
16008old_archive_cmds=$lt_old_archive_cmds
16009
16010# A language specific compiler.
16011CC=$lt_compiler
16012
16013# Is the compiler the GNU compiler?
16014with_gcc=$GCC
16015
16016# Compiler flag to turn off builtin functions.
16017no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16018
16019# How to pass a linker flag through the compiler.
16020wl=$lt_lt_prog_compiler_wl
16021
16022# Additional compiler flags for building library objects.
16023pic_flag=$lt_lt_prog_compiler_pic
16024
16025# Compiler flag to prevent dynamic linking.
16026link_static_flag=$lt_lt_prog_compiler_static
16027
16028# Does compiler simultaneously support -c and -o options?
16029compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16030
16031# Whether or not to add -lc for building shared libraries.
16032build_libtool_need_lc=$archive_cmds_need_lc
16033
16034# Whether or not to disallow shared libs when runtime libs are static.
16035allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16036
16037# Compiler flag to allow reflexive dlopens.
16038export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16039
16040# Compiler flag to generate shared objects directly from archives.
16041whole_archive_flag_spec=$lt_whole_archive_flag_spec
16042
16043# Whether the compiler copes with passing no objects directly.
16044compiler_needs_object=$lt_compiler_needs_object
16045
16046# Create an old-style archive from a shared archive.
16047old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16048
16049# Create a temporary old-style archive to link instead of a shared archive.
16050old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16051
16052# Commands used to build a shared archive.
16053archive_cmds=$lt_archive_cmds
16054archive_expsym_cmds=$lt_archive_expsym_cmds
16055
16056# Commands used to build a loadable module if different from building
16057# a shared archive.
16058module_cmds=$lt_module_cmds
16059module_expsym_cmds=$lt_module_expsym_cmds
16060
16061# Whether we are building with GNU ld or not.
16062with_gnu_ld=$lt_with_gnu_ld
16063
16064# Flag that allows shared libraries with undefined symbols to be built.
16065allow_undefined_flag=$lt_allow_undefined_flag
16066
16067# Flag that enforces no undefined symbols.
16068no_undefined_flag=$lt_no_undefined_flag
16069
16070# Flag to hardcode \$libdir into a binary during linking.
16071# This must work even if \$libdir does not exist
16072hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16073
16074# If ld is used when linking, flag to hardcode \$libdir into a binary
16075# during linking. This must work even if \$libdir does not exist.
16076hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16077
16078# Whether we need a single "-rpath" flag with a separated argument.
16079hardcode_libdir_separator=$lt_hardcode_libdir_separator
16080
16081# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16082# DIR into the resulting binary.
16083hardcode_direct=$hardcode_direct
16084
16085# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16086# DIR into the resulting binary and the resulting library dependency is
16087# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16088# library is relocated.
16089hardcode_direct_absolute=$hardcode_direct_absolute
16090
16091# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16092# into the resulting binary.
16093hardcode_minus_L=$hardcode_minus_L
16094
16095# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16096# into the resulting binary.
16097hardcode_shlibpath_var=$hardcode_shlibpath_var
16098
16099# Set to "yes" if building a shared library automatically hardcodes DIR
16100# into the library and all subsequent libraries and executables linked
16101# against it.
16102hardcode_automatic=$hardcode_automatic
16103
16104# Set to yes if linker adds runtime paths of dependent libraries
16105# to runtime path list.
16106inherit_rpath=$inherit_rpath
16107
16108# Whether libtool must link a program against all its dependency libraries.
16109link_all_deplibs=$link_all_deplibs
16110
16111# Fix the shell variable \$srcfile for the compiler.
16112fix_srcfile_path=$lt_fix_srcfile_path
16113
16114# Set to "yes" if exported symbols are required.
16115always_export_symbols=$always_export_symbols
16116
16117# The commands to list exported symbols.
16118export_symbols_cmds=$lt_export_symbols_cmds
16119
16120# Symbols that should not be listed in the preloaded symbols.
16121exclude_expsyms=$lt_exclude_expsyms
16122
16123# Symbols that must always be exported.
16124include_expsyms=$lt_include_expsyms
16125
16126# Commands necessary for linking programs (against libraries) with templates.
16127prelink_cmds=$lt_prelink_cmds
16128
16129# Specify filename containing input files.
16130file_list_spec=$lt_file_list_spec
16131
16132# How to hardcode a shared library path into an executable.
16133hardcode_action=$hardcode_action
16134
16135# ### END LIBTOOL CONFIG
16136
16137_LT_EOF
16138
16139 case $host_os in
16140 aix3*)
16141 cat <<\_LT_EOF >> "$cfgfile"
16142# AIX sometimes has problems with the GCC collect2 program. For some
16143# reason, if we set the COLLECT_NAMES environment variable, the problems
16144# vanish in a puff of smoke.
16145if test "X${COLLECT_NAMES+set}" != Xset; then
16146 COLLECT_NAMES=
16147 export COLLECT_NAMES
16148fi
16149_LT_EOF
16150 ;;
16151 esac
16152
16153
16154ltmain="$ac_aux_dir/ltmain.sh"
16155
16156
16157 # We use sed instead of cat because bash on DJGPP gets confused if
16158 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16159 # text mode, it properly converts lines to CR/LF. This bash problem
16160 # is reportedly fixed, but why not run on old versions too?
16161 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16162 || (rm -f "$cfgfile"; exit 1)
16163
16164 case $xsi_shell in
16165 yes)
16166 cat << \_LT_EOF >> "$cfgfile"
16167
16168# func_dirname file append nondir_replacement
16169# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16170# otherwise set result to NONDIR_REPLACEMENT.
16171func_dirname ()
16172{
16173 case ${1} in
16174 */*) func_dirname_result="${1%/*}${2}" ;;
16175 * ) func_dirname_result="${3}" ;;
16176 esac
16177}
16178
16179# func_basename file
16180func_basename ()
16181{
16182 func_basename_result="${1##*/}"
16183}
16184
16185# func_dirname_and_basename file append nondir_replacement
16186# perform func_basename and func_dirname in a single function
16187# call:
16188# dirname: Compute the dirname of FILE. If nonempty,
16189# add APPEND to the result, otherwise set result
16190# to NONDIR_REPLACEMENT.
16191# value returned in "$func_dirname_result"
16192# basename: Compute filename of FILE.
16193# value retuned in "$func_basename_result"
16194# Implementation must be kept synchronized with func_dirname
16195# and func_basename. For efficiency, we do not delegate to
16196# those functions but instead duplicate the functionality here.
16197func_dirname_and_basename ()
16198{
16199 case ${1} in
16200 */*) func_dirname_result="${1%/*}${2}" ;;
16201 * ) func_dirname_result="${3}" ;;
16202 esac
16203 func_basename_result="${1##*/}"
16204}
16205
16206# func_stripname prefix suffix name
16207# strip PREFIX and SUFFIX off of NAME.
16208# PREFIX and SUFFIX must not contain globbing or regex special
16209# characters, hashes, percent signs, but SUFFIX may contain a leading
16210# dot (in which case that matches only a dot).
16211func_stripname ()
16212{
16213 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16214 # positional parameters, so assign one to ordinary parameter first.
16215 func_stripname_result=${3}
16216 func_stripname_result=${func_stripname_result#"${1}"}
16217 func_stripname_result=${func_stripname_result%"${2}"}
16218}
16219
16220# func_opt_split
16221func_opt_split ()
16222{
16223 func_opt_split_opt=${1%%=*}
16224 func_opt_split_arg=${1#*=}
16225}
16226
16227# func_lo2o object
16228func_lo2o ()
16229{
16230 case ${1} in
16231 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16232 *) func_lo2o_result=${1} ;;
16233 esac
16234}
16235
16236# func_xform libobj-or-source
16237func_xform ()
16238{
16239 func_xform_result=${1%.*}.lo
16240}
16241
16242# func_arith arithmetic-term...
16243func_arith ()
16244{
16245 func_arith_result=$(( $* ))
16246}
16247
16248# func_len string
16249# STRING may not start with a hyphen.
16250func_len ()
16251{
16252 func_len_result=${#1}
16253}
16254
16255_LT_EOF
16256 ;;
16257 *) # Bourne compatible functions.
16258 cat << \_LT_EOF >> "$cfgfile"
16259
16260# func_dirname file append nondir_replacement
16261# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16262# otherwise set result to NONDIR_REPLACEMENT.
16263func_dirname ()
16264{
16265 # Extract subdirectory from the argument.
16266 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16267 if test "X$func_dirname_result" = "X${1}"; then
16268 func_dirname_result="${3}"
16269 else
16270 func_dirname_result="$func_dirname_result${2}"
16271 fi
16272}
16273
16274# func_basename file
16275func_basename ()
16276{
16277 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16278}
16279
16280
16281# func_stripname prefix suffix name
16282# strip PREFIX and SUFFIX off of NAME.
16283# PREFIX and SUFFIX must not contain globbing or regex special
16284# characters, hashes, percent signs, but SUFFIX may contain a leading
16285# dot (in which case that matches only a dot).
16286# func_strip_suffix prefix name
16287func_stripname ()
16288{
16289 case ${2} in
16290 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16291 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16292 esac
16293}
16294
16295# sed scripts:
16296my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16297my_sed_long_arg='1s/^-[^=]*=//'
16298
16299# func_opt_split
16300func_opt_split ()
16301{
16302 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16303 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16304}
16305
16306# func_lo2o object
16307func_lo2o ()
16308{
16309 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16310}
16311
16312# func_xform libobj-or-source
16313func_xform ()
16314{
16315 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16316}
16317
16318# func_arith arithmetic-term...
16319func_arith ()
16320{
16321 func_arith_result=`expr "$@"`
16322}
16323
16324# func_len string
16325# STRING may not start with a hyphen.
16326func_len ()
16327{
16328 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16329}
16330
16331_LT_EOF
16332esac
16333
16334case $lt_shell_append in
16335 yes)
16336 cat << \_LT_EOF >> "$cfgfile"
16337
16338# func_append var value
16339# Append VALUE to the end of shell variable VAR.
16340func_append ()
16341{
16342 eval "$1+=\$2"
16343}
16344_LT_EOF
16345 ;;
16346 *)
16347 cat << \_LT_EOF >> "$cfgfile"
16348
16349# func_append var value
16350# Append VALUE to the end of shell variable VAR.
16351func_append ()
16352{
16353 eval "$1=\$$1\$2"
16354}
16355
16356_LT_EOF
16357 ;;
16358 esac
16359
16360
16361 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16362 || (rm -f "$cfgfile"; exit 1)
16363
16364 mv -f "$cfgfile" "$ofile" ||
16365 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16366 chmod +x "$ofile"
16367
16368 ;;
ef016f83
MF
16369 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
16370 rm -f Makesim1.tmp Makesim2.tmp Makefile
16371 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
16372 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
16373 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
16374 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
16375 <Makefile.sim >Makefile
16376 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
16377 ;;
16378 "stamp-h":C) echo > stamp-h ;;
16379
16380 esac
16381done # for ac_tag
16382
16383
16384as_fn_exit 0
16385_ACEOF
16386ac_clean_files=$ac_clean_files_save
16387
16388test $ac_write_fail = 0 ||
16389 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16390
16391
16392# configure is writing to config.log, and then calls config.status.
16393# config.status does its own redirection, appending to config.log.
16394# Unfortunately, on DOS this fails, as config.log is still kept open
16395# by configure, so config.status won't be able to write to it; its
16396# output is simply discarded. So we exec the FD to /dev/null,
16397# effectively closing config.log, so it can be properly (re)opened and
16398# appended to by config.status. When coming back to configure, we
16399# need to make the FD available again.
16400if test "$no_create" != yes; then
16401 ac_cs_success=:
16402 ac_config_status_args=
16403 test "$silent" = yes &&
16404 ac_config_status_args="$ac_config_status_args --quiet"
16405 exec 5>/dev/null
16406 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16407 exec 5>>config.log
16408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16409 # would make configure fail if this is the last instruction.
16410 $ac_cs_success || as_fn_exit $?
16411fi
16412if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16414$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16415fi
16416
16417