]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/iq2000/configure
sim: unify bug & package settings
[thirdparty/binutils-gdb.git] / sim / iq2000 / configure
CommitLineData
edece237
CV
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
edece237 8#
edece237
CV
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
edece237 14
81ecdfbb
RW
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 :
edece237
CV
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
edece237
CV
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
edece237 31fi
edece237 32
81ecdfbb
RW
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 }
edece237
CV
79fi
80
81
81ecdfbb
RW
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.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
edece237
CV
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
6bb11ab3
L
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
edece237 219do
81ecdfbb
RW
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
81ecdfbb
RW
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
edece237 274 else
81ecdfbb
RW
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
edece237 279 fi
81ecdfbb
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
364
365
366} # as_fn_mkdir_p
d0ac1c44
SM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
81ecdfbb
RW
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
d0ac1c44
SM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
81ecdfbb
RW
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 415# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
416as_fn_error ()
417{
d0ac1c44
SM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
424 as_fn_exit $as_status
425} # as_fn_error
edece237 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
edece237
CV
429 as_expr=expr
430else
431 as_expr=false
432fi
433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
edece237
CV
435 as_basename=basename
436else
437 as_basename=false
438fi
439
81ecdfbb
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
edece237 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
edece237
CV
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
edece237 464
edece237
CV
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
edece237 472
81ecdfbb
RW
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
edece237 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
edece237 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
edece237 490 t loop
81ecdfbb 491 s/-\n.*//
edece237 492 ' >$as_me.lineno &&
81ecdfbb
RW
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
edece237 495
d0ac1c44
SM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
edece237
CV
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
edece237
CV
504 # Exit status is that of the last command.
505 exit
506}
507
81ecdfbb
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
edece237
CV
519esac
520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
edece237 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
edece237 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
edece237 530 as_ln_s='ln -s'
81ecdfbb
RW
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 534 # In both cases, we have to default to `cp -pR'.
81ecdfbb 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 536 as_ln_s='cp -pR'
81ecdfbb
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
d0ac1c44 540 as_ln_s='cp -pR'
edece237 541 fi
edece237 542else
d0ac1c44 543 as_ln_s='cp -pR'
edece237 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
edece237
CV
547
548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
edece237
CV
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
edece237
CV
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
6bb11ab3
L
564SHELL=${CONFIG_SHELL-/bin/sh}
565
edece237 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
edece237
CV
569
570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
edece237
CV
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
edece237
CV
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
edece237 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
edece237
CV
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
edece237
CV
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
81ecdfbb 593PACKAGE_URL=
edece237
CV
594
595ac_unique_file="Makefile.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
edece237
CV
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
edece237
CV
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
edece237
CV
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
edece237
CV
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
edece237
CV
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
edece237
CV
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
edece237 623# include <inttypes.h>
edece237 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
edece237
CV
629# include <unistd.h>
630#endif"
631
81ecdfbb
RW
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
760b3e8b
MF
634sim_reserved_bits
635sim_float
636sim_bitsize
81ecdfbb
RW
637cgen_breaks
638cgen
639cgendir
640CGEN_MAINT
81ecdfbb 641MAINT
31e6ad7d
MF
642MAINTAINER_MODE_FALSE
643MAINTAINER_MODE_TRUE
6bb11ab3
L
644lt_cv_dlopen_libs
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
650AWK
651STRIP
652OBJDUMP
653LN_S
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659SED
660LIBTOOL
661PLUGINS_FALSE
662PLUGINS_TRUE
aadc9410
MF
663zlibinc
664zlibdir
81ecdfbb
RW
665CATOBJEXT
666GENCAT
667INSTOBJEXT
668DATADIRNAME
669CATALOGS
670POSUB
671GMSGFMT
672XGETTEXT
673INCINTL
674LIBINTL_DEP
675LIBINTL
676USE_NLS
db2e4d67
MF
677CCDEPMODE
678DEPDIR
679am__leading_dot
46f900c0 680C_DIALECT
81ecdfbb
RW
681RANLIB
682AR
c2783492 683LDFLAGS_FOR_BUILD
c25ea03d 684CFLAGS_FOR_BUILD
aa0fca16 685RANLIB_FOR_BUILD
81ecdfbb 686CC_FOR_BUILD
aa0fca16 687AR_FOR_BUILD
81ecdfbb
RW
688INSTALL_DATA
689INSTALL_SCRIPT
690INSTALL_PROGRAM
2232061b
MF
691EGREP
692GREP
c2783492
MF
693CPP
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
81ecdfbb
RW
701target_os
702target_vendor
703target_cpu
704target
705host_os
706host_vendor
707host_cpu
708host
709build_os
710build_vendor
711build_cpu
712build
81ecdfbb
RW
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
136da8cd
MF
750SHELL
751WERROR_CFLAGS
752WARN_CFLAGS
760b3e8b 753sim_scache
136da8cd
MF
754sim_inline
755sim_hw
756sim_hw_objs
757sim_hw_cflags
136da8cd 758sim_endian
760b3e8b 759sim_default_model
136da8cd 760sim_alignment'
edece237 761ac_subst_files=''
81ecdfbb
RW
762ac_user_opts='
763enable_option_checking
aadc9410 764with_system_zlib
6bb11ab3
L
765enable_plugins
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_gnu_ld
771enable_libtool_lock
81ecdfbb 772enable_maintainer_mode
347fe5bb 773enable_sim_inline
81ecdfbb
RW
774enable_sim_endian
775enable_sim_alignment
81ecdfbb
RW
776enable_sim_scache
777enable_sim_default_model
5c1008a4
MF
778enable_werror
779enable_build_warnings
780enable_sim_build_warnings
81ecdfbb 781enable_cgen_maint
94c63d78 782enable_sim_hardware
81ecdfbb
RW
783'
784 ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792CPP'
793
edece237
CV
794
795# Initialize some variables set by options.
796ac_init_help=
797ac_init_version=false
81ecdfbb
RW
798ac_unrecognized_opts=
799ac_unrecognized_sep=
edece237
CV
800# The variables have the same names as the options, with
801# dashes changed to underlines.
802cache_file=/dev/null
803exec_prefix=NONE
804no_create=
805no_recursion=
806prefix=NONE
807program_prefix=NONE
808program_suffix=NONE
809program_transform_name=s,x,x,
810silent=
811site=
812srcdir=
813verbose=
814x_includes=NONE
815x_libraries=NONE
816
817# Installation directory options.
818# These are left unexpanded so users can "make install exec_prefix=/foo"
819# and all the variables that are supposed to be based on exec_prefix
820# by default will actually change.
821# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 822# (The list follows the same order as the GNU Coding Standards.)
edece237
CV
823bindir='${exec_prefix}/bin'
824sbindir='${exec_prefix}/sbin'
825libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
826datarootdir='${prefix}/share'
827datadir='${datarootdir}'
edece237
CV
828sysconfdir='${prefix}/etc'
829sharedstatedir='${prefix}/com'
830localstatedir='${prefix}/var'
edece237
CV
831includedir='${prefix}/include'
832oldincludedir='/usr/include'
81ecdfbb
RW
833docdir='${datarootdir}/doc/${PACKAGE}'
834infodir='${datarootdir}/info'
835htmldir='${docdir}'
836dvidir='${docdir}'
837pdfdir='${docdir}'
838psdir='${docdir}'
839libdir='${exec_prefix}/lib'
840localedir='${datarootdir}/locale'
841mandir='${datarootdir}/man'
edece237
CV
842
843ac_prev=
81ecdfbb 844ac_dashdash=
edece237
CV
845for ac_option
846do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
81ecdfbb 849 eval $ac_prev=\$ac_option
edece237
CV
850 ac_prev=
851 continue
852 fi
853
81ecdfbb 854 case $ac_option in
d0ac1c44
SM
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
81ecdfbb 858 esac
edece237
CV
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
81ecdfbb
RW
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
edece237
CV
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
81ecdfbb 886 -datadir | --datadir | --datadi | --datad)
edece237 887 ac_prev=datadir ;;
81ecdfbb 888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
edece237
CV
889 datadir=$ac_optarg ;;
890
81ecdfbb
RW
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
edece237 898 -disable-* | --disable-*)
81ecdfbb 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
edece237 900 # Reject names that are not valid shell variable names.
81ecdfbb 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 902 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907"enable_$ac_useropt"
908"*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
edece237
CV
923
924 -enable-* | --enable-*)
81ecdfbb 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
edece237 926 # Reject names that are not valid shell variable names.
81ecdfbb 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 928 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933"enable_$ac_useropt"
934"*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
edece237 937 esac
81ecdfbb 938 eval enable_$ac_useropt=\$ac_optarg ;;
edece237
CV
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
81ecdfbb
RW
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
edece237
CV
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
81ecdfbb
RW
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
edece237 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1001 | --localstate | --localstat | --localsta | --localst | --locals)
edece237
CV
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
edece237
CV
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
81ecdfbb
RW
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
edece237
CV
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1088
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1099
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1104
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1109
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1116
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1121
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1124
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1127
1128 -with-* | --with-*)
81ecdfbb 1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
edece237 1130 # Reject names that are not valid shell variable names.
81ecdfbb 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1132 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137"with_$ac_useropt"
1138"*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
edece237 1141 esac
81ecdfbb 1142 eval with_$ac_useropt=\$ac_optarg ;;
edece237
CV
1143
1144 -without-* | --without-*)
81ecdfbb 1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
edece237 1146 # Reject names that are not valid shell variable names.
81ecdfbb 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1148 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153"with_$ac_useropt"
1154"*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=no ;;
edece237
CV
1159
1160 --x)
1161 # Obsolete; use --with-x.
1162 with_x=yes ;;
1163
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1170
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1177
d0ac1c44
SM
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179Try \`$0 --help' for more information"
edece237
CV
1180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1188 esac
1189 eval $ac_envvar=\$ac_optarg
edece237
CV
1190 export $ac_envvar ;;
1191
1192 *)
1193 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
edece237 1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
edece237
CV
1198 ;;
1199
1200 esac
1201done
1202
1203if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1205 as_fn_error $? "missing argument to $ac_option"
edece237
CV
1206fi
1207
81ecdfbb
RW
1208if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1210 no) ;;
d0ac1c44 1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
edece237 1213 esac
81ecdfbb 1214fi
edece237 1215
81ecdfbb
RW
1216# Check all directory arguments for consistency.
1217for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
edece237 1221do
81ecdfbb
RW
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1224 case $ac_val in
1225 */ )
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1228 esac
1229 # Be sure to have absolute directory names.
edece237 1230 case $ac_val in
81ecdfbb
RW
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
edece237 1233 esac
d0ac1c44 1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
edece237
CV
1235done
1236
1237# There might be people who depend on the old broken behavior: `$host'
1238# used to hold the argument of --host etc.
1239# FIXME: To remove some day.
1240build=$build_alias
1241host=$host_alias
1242target=$target_alias
1243
1244# FIXME: To remove some day.
1245if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
edece237
CV
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1250 fi
1251fi
1252
1253ac_tool_prefix=
1254test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256test "$silent" = yes && exec 6>/dev/null
1257
1258
81ecdfbb
RW
1259ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260ac_ls_di=`ls -di .` &&
1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1262 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1264 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1265
1266
edece237
CV
1267# Find the source files, if location was not specified.
1268if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
81ecdfbb
RW
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276$as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\).*/{
1290 s//\1/
1291 q
1292 }
1293 s/.*/./; q'`
edece237 1294 srcdir=$ac_confdir
81ecdfbb 1295 if test ! -r "$srcdir/$ac_unique_file"; then
edece237
CV
1296 srcdir=..
1297 fi
1298else
1299 ac_srcdir_defaulted=no
1300fi
81ecdfbb
RW
1301if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1304fi
1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306ac_abs_confdir=`(
d0ac1c44 1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1308 pwd)`
1309# When building in place, set srcdir=.
1310if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312fi
1313# Remove unnecessary trailing slashes from srcdir.
1314# Double slashes in file names in object file debugging info
1315# mess up M-x gdb in Emacs.
1316case $srcdir in
1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318esac
1319for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324done
edece237
CV
1325
1326#
1327# Report the --help message.
1328#
1329if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333\`configure' configures this package to adapt to many kinds of systems.
1334
1335Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338VAR=VALUE. See below for descriptions of some of the useful variables.
1339
1340Defaults for the options are specified in brackets.
1341
1342Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
d0ac1c44 1347 -q, --quiet, --silent do not print \`checking ...' messages
edece237
CV
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352
edece237
CV
1353Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1355 [$ac_default_prefix]
edece237 1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1357 [PREFIX]
edece237
CV
1358
1359By default, \`make install' will install all the files in
1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362for instance \`--prefix=\$HOME'.
1363
1364For better control, use the options below.
1365
1366Fine tuning of the installation directories:
81ecdfbb
RW
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
edece237
CV
1386_ACEOF
1387
1388 cat <<\_ACEOF
1389
1390Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394
1395System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 --target=TARGET configure for building compilers for TARGET [HOST]
1399_ACEOF
1400fi
1401
1402if test -n "$ac_init_help"; then
1403
1404 cat <<\_ACEOF
1405
1406Optional Features:
81ecdfbb 1407 --disable-option-checking ignore unrecognized --enable/--with options
edece237
CV
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1410 --enable-plugins Enable support for plugins
6bb11ab3
L
1411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1416 --enable-maintainer-mode
1417 enable make rules and dependencies not useful (and
1418 sometimes confusing) to the casual installer
347fe5bb
MF
1419 --enable-sim-inline=inlines
1420 Specify which functions should be inlined
8d0978fb
MF
1421 --enable-sim-endian=endian
1422 Specify target byte endian orientation
1423 --enable-sim-alignment=align
1424 Specify strict, nonstrict or forced alignment of
1425 memory accesses
8d0978fb
MF
1426 --enable-sim-scache=size
1427 Specify simulator execution cache size
1428 --enable-sim-default-model=model
1429 Specify default model to simulate
5c1008a4
MF
1430 --enable-werror treat compile warnings as errors
1431 --enable-build-warnings enable build-time compiler warnings if gcc is used
1432 --enable-sim-build-warnings
1433 enable SIM specific build-time compiler warnings if
1434 gcc is used
8d0978fb 1435 --enable-cgen-maint=DIR build cgen generated files
1517bd27
MF
1436 --enable-sim-hardware=LIST
1437 Specify the hardware to be included in the build.
edece237 1438
6efef468
JM
1439Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1442 --with-system-zlib use installed libz
6bb11ab3
L
1443 --with-pic try to use only PIC/non-PIC objects [default=use
1444 both]
1445 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6efef468 1446
edece237
CV
1447Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
81ecdfbb 1452 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1454 you have headers in a nonstandard directory <include dir>
edece237
CV
1455 CPP C preprocessor
1456
1457Use these variables to override the choices made by `configure' or to help
1458it to find libraries and programs with nonstandard names/locations.
1459
81ecdfbb 1460Report bugs to the package provider.
edece237 1461_ACEOF
81ecdfbb 1462ac_status=$?
edece237
CV
1463fi
1464
1465if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
edece237 1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
edece237
CV
1471 ac_builddir=.
1472
81ecdfbb
RW
1473case "$ac_dir" in
1474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475*)
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483esac
1484ac_abs_top_builddir=$ac_pwd
1485ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486# for backward compatibility:
1487ac_top_builddir=$ac_top_build_prefix
edece237
CV
1488
1489case $srcdir in
81ecdfbb 1490 .) # We are building in place.
edece237 1491 ac_srcdir=.
81ecdfbb
RW
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
edece237 1495 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
edece237 1502esac
81ecdfbb
RW
1503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
edece237 1513 else
81ecdfbb
RW
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
edece237
CV
1517 done
1518fi
1519
81ecdfbb 1520test -n "$ac_init_help" && exit $ac_status
edece237
CV
1521if $ac_init_version; then
1522 cat <<\_ACEOF
81ecdfbb 1523configure
d0ac1c44 1524generated by GNU Autoconf 2.69
edece237 1525
d0ac1c44 1526Copyright (C) 2012 Free Software Foundation, Inc.
edece237
CV
1527This configure script is free software; the Free Software Foundation
1528gives unlimited permission to copy, distribute and modify it.
1529_ACEOF
81ecdfbb 1530 exit
edece237 1531fi
edece237 1532
81ecdfbb
RW
1533## ------------------------ ##
1534## Autoconf initialization. ##
1535## ------------------------ ##
edece237 1536
81ecdfbb
RW
1537# ac_fn_c_try_compile LINENO
1538# --------------------------
1539# Try to compile conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_c_try_compile ()
edece237 1541{
81ecdfbb
RW
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564else
1565 $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
edece237 1567
81ecdfbb
RW
1568 ac_retval=1
1569fi
d0ac1c44
SM
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
edece237 1572
81ecdfbb 1573} # ac_fn_c_try_compile
edece237 1574
81ecdfbb
RW
1575# ac_fn_c_try_cpp LINENO
1576# ----------------------
1577# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_cpp ()
1579{
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_cpp conftest.$ac_ext"
1582case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1596 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 }; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
edece237 1604
81ecdfbb
RW
1605 ac_retval=1
1606fi
d0ac1c44
SM
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
edece237 1609
81ecdfbb
RW
1610} # ac_fn_c_try_cpp
1611
1612# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1613# -------------------------------------------------------
1614# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1615# the include files in INCLUDES and setting the cache variable VAR
1616# accordingly.
1617ac_fn_c_check_header_mongrel ()
1618{
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1620 if eval \${$3+:} false; then :
81ecdfbb
RW
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1623if eval \${$3+:} false; then :
81ecdfbb
RW
1624 $as_echo_n "(cached) " >&6
1625fi
1626eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628$as_echo "$ac_res" >&6; }
1629else
1630 # Is the header compilable?
1631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1632$as_echo_n "checking $2 usability... " >&6; }
1633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634/* end confdefs.h. */
1635$4
1636#include <$2>
1637_ACEOF
1638if ac_fn_c_try_compile "$LINENO"; then :
1639 ac_header_compiler=yes
1640else
1641 ac_header_compiler=no
1642fi
1643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1645$as_echo "$ac_header_compiler" >&6; }
1646
1647# Is the header present?
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1649$as_echo_n "checking $2 presence... " >&6; }
1650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651/* end confdefs.h. */
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_cpp "$LINENO"; then :
1655 ac_header_preproc=yes
1656else
1657 ac_header_preproc=no
1658fi
d0ac1c44 1659rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1661$as_echo "$ac_header_preproc" >&6; }
1662
1663# So? What about this header?
1664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1665 yes:no: )
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1667$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 ;;
1671 no:yes:* )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1673$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1675$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1677$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1679$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1681$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1682 ;;
1683esac
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1686if eval \${$3+:} false; then :
81ecdfbb
RW
1687 $as_echo_n "(cached) " >&6
1688else
1689 eval "$3=\$ac_header_compiler"
1690fi
1691eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693$as_echo "$ac_res" >&6; }
1694fi
d0ac1c44 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1696
1697} # ac_fn_c_check_header_mongrel
1698
1699# ac_fn_c_try_run LINENO
1700# ----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702# that executables *can* be run.
1703ac_fn_c_try_run ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717 { { case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_try") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; }; }; then :
1727 ac_retval=0
1728else
1729 $as_echo "$as_me: program exited with status $ac_status" >&5
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=$ac_status
1734fi
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
81ecdfbb
RW
1738
1739} # ac_fn_c_try_run
1740
1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742# -------------------------------------------------------
1743# Tests whether HEADER exists and can be compiled using the include files in
1744# INCLUDES, setting the cache variable VAR accordingly.
1745ac_fn_c_check_header_compile ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1750if eval \${$3+:} false; then :
81ecdfbb
RW
1751 $as_echo_n "(cached) " >&6
1752else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$3=yes"
1760else
1761 eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
d0ac1c44 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1769
1770} # ac_fn_c_check_header_compile
1771
1772# ac_fn_c_try_link LINENO
1773# -----------------------
1774# Try to link conftest.$ac_ext, and return whether this succeeded.
1775ac_fn_c_try_link ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext conftest$ac_exeext
1779 if { { ac_try="$ac_link"
1780case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest$ac_exeext && {
1798 test "$cross_compiling" = yes ||
d0ac1c44 1799 test -x conftest$ac_exeext
81ecdfbb
RW
1800 }; then :
1801 ac_retval=0
1802else
1803 $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807fi
1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1810 # interfere with the next link command; also delete a directory that is
1811 # left behind by Apple's compiler. We do this before executing the actions.
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
81ecdfbb
RW
1815
1816} # ac_fn_c_try_link
1817
1818# ac_fn_c_check_func LINENO FUNC VAR
1819# ----------------------------------
1820# Tests whether FUNC exists, setting the cache variable VAR accordingly
1821ac_fn_c_check_func ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1826if eval \${$3+:} false; then :
81ecdfbb
RW
1827 $as_echo_n "(cached) " >&6
1828else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833#define $2 innocuous_$2
1834
1835/* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1839
1840#ifdef __STDC__
1841# include <limits.h>
1842#else
1843# include <assert.h>
1844#endif
1845
1846#undef $2
1847
1848/* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1851#ifdef __cplusplus
1852extern "C"
1853#endif
1854char $2 ();
1855/* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858#if defined __stub_$2 || defined __stub___$2
1859choke me
1860#endif
1861
1862int
1863main ()
1864{
1865return $2 ();
1866 ;
1867 return 0;
1868}
1869_ACEOF
1870if ac_fn_c_try_link "$LINENO"; then :
1871 eval "$3=yes"
1872else
1873 eval "$3=no"
1874fi
1875rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
d0ac1c44 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1882
1883} # ac_fn_c_check_func
1884cat >config.log <<_ACEOF
1885This file contains any messages produced by compilers while
1886running configure, to aid debugging if configure makes a mistake.
1887
1888It was created by $as_me, which was
d0ac1c44 1889generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1890
1891 $ $0 $@
1892
1893_ACEOF
1894exec 5>>config.log
1895{
1896cat <<_ASUNAME
1897## --------- ##
1898## Platform. ##
1899## --------- ##
1900
1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1902uname -m = `(uname -m) 2>/dev/null || echo unknown`
1903uname -r = `(uname -r) 2>/dev/null || echo unknown`
1904uname -s = `(uname -s) 2>/dev/null || echo unknown`
1905uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906
1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1909
1910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1917
1918_ASUNAME
1919
1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921for as_dir in $PATH
1922do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 $as_echo "PATH: $as_dir"
1926 done
1927IFS=$as_save_IFS
1928
1929} >&5
1930
1931cat >&5 <<_ACEOF
edece237
CV
1932
1933
1934## ----------- ##
1935## Core tests. ##
1936## ----------- ##
1937
1938_ACEOF
1939
1940
1941# Keep a trace of the command line.
1942# Strip out --no-create and --no-recursion so they do not pile up.
1943# Strip out --silent because we don't want to record it for future runs.
1944# Also quote any args containing shell meta-characters.
1945# Make two passes to allow for proper duplicate-argument suppression.
1946ac_configure_args=
1947ac_configure_args0=
1948ac_configure_args1=
edece237
CV
1949ac_must_keep_next=false
1950for ac_pass in 1 2
1951do
1952 for ac_arg
1953 do
1954 case $ac_arg in
1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1957 | -silent | --silent | --silen | --sile | --sil)
1958 continue ;;
81ecdfbb
RW
1959 *\'*)
1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
edece237
CV
1961 esac
1962 case $ac_pass in
81ecdfbb 1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
edece237 1964 2)
81ecdfbb 1965 as_fn_append ac_configure_args1 " '$ac_arg'"
edece237
CV
1966 if test $ac_must_keep_next = true; then
1967 ac_must_keep_next=false # Got value, back to normal.
1968 else
1969 case $ac_arg in
1970 *=* | --config-cache | -C | -disable-* | --disable-* \
1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1973 | -with-* | --with-* | -without-* | --without-* | --x)
1974 case "$ac_configure_args0 " in
1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1976 esac
1977 ;;
1978 -* ) ac_must_keep_next=true ;;
1979 esac
1980 fi
81ecdfbb 1981 as_fn_append ac_configure_args " '$ac_arg'"
edece237
CV
1982 ;;
1983 esac
1984 done
1985done
81ecdfbb
RW
1986{ ac_configure_args0=; unset ac_configure_args0;}
1987{ ac_configure_args1=; unset ac_configure_args1;}
edece237
CV
1988
1989# When interrupted or exit'd, cleanup temporary files, and complete
1990# config.log. We remove comments because anyway the quotes in there
1991# would cause problems or look ugly.
81ecdfbb
RW
1992# WARNING: Use '\'' to represent an apostrophe within the trap.
1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
edece237
CV
1994trap 'exit_status=$?
1995 # Save into config.log some information that might help in debugging.
1996 {
1997 echo
1998
d0ac1c44 1999 $as_echo "## ---------------- ##
edece237 2000## Cache variables. ##
d0ac1c44 2001## ---------------- ##"
edece237
CV
2002 echo
2003 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2004(
2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in #(
2008 *${as_nl}*)
2009 case $ac_var in #(
2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012 esac
2013 case $ac_var in #(
2014 _ | IFS | as_nl) ;; #(
2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016 *) { eval $ac_var=; unset $ac_var;} ;;
2017 esac ;;
2018 esac
2019 done
edece237 2020 (set) 2>&1 |
81ecdfbb
RW
2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022 *${as_nl}ac_space=\ *)
edece237 2023 sed -n \
81ecdfbb
RW
2024 "s/'\''/'\''\\\\'\'''\''/g;
2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026 ;; #(
edece237 2027 *)
81ecdfbb 2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
edece237 2029 ;;
81ecdfbb
RW
2030 esac |
2031 sort
2032)
edece237
CV
2033 echo
2034
d0ac1c44 2035 $as_echo "## ----------------- ##
edece237 2036## Output variables. ##
d0ac1c44 2037## ----------------- ##"
edece237
CV
2038 echo
2039 for ac_var in $ac_subst_vars
2040 do
81ecdfbb
RW
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
edece237
CV
2046 done | sort
2047 echo
2048
2049 if test -n "$ac_subst_files"; then
d0ac1c44 2050 $as_echo "## ------------------- ##
81ecdfbb 2051## File substitutions. ##
d0ac1c44 2052## ------------------- ##"
edece237
CV
2053 echo
2054 for ac_var in $ac_subst_files
2055 do
81ecdfbb
RW
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059 esac
2060 $as_echo "$ac_var='\''$ac_val'\''"
edece237
CV
2061 done | sort
2062 echo
2063 fi
2064
2065 if test -s confdefs.h; then
d0ac1c44 2066 $as_echo "## ----------- ##
edece237 2067## confdefs.h. ##
d0ac1c44 2068## ----------- ##"
edece237 2069 echo
81ecdfbb 2070 cat confdefs.h
edece237
CV
2071 echo
2072 fi
2073 test "$ac_signal" != 0 &&
81ecdfbb
RW
2074 $as_echo "$as_me: caught signal $ac_signal"
2075 $as_echo "$as_me: exit $exit_status"
edece237 2076 } >&5
81ecdfbb
RW
2077 rm -f core *.core core.conftest.* &&
2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
edece237 2079 exit $exit_status
81ecdfbb 2080' 0
edece237 2081for ac_signal in 1 2 13 15; do
81ecdfbb 2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
edece237
CV
2083done
2084ac_signal=0
2085
2086# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2087rm -f -r conftest* confdefs.h
2088
2089$as_echo "/* confdefs.h */" > confdefs.h
edece237
CV
2090
2091# Predefined preprocessor variables.
2092
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_NAME "$PACKAGE_NAME"
2095_ACEOF
2096
edece237
CV
2097cat >>confdefs.h <<_ACEOF
2098#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099_ACEOF
2100
edece237
CV
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_VERSION "$PACKAGE_VERSION"
2103_ACEOF
2104
edece237
CV
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_STRING "$PACKAGE_STRING"
2107_ACEOF
2108
edece237
CV
2109cat >>confdefs.h <<_ACEOF
2110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111_ACEOF
2112
81ecdfbb
RW
2113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_URL "$PACKAGE_URL"
2115_ACEOF
2116
edece237
CV
2117
2118# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2119# Prefer an explicitly selected file to automatically selected ones.
2120ac_site_file1=NONE
2121ac_site_file2=NONE
2122if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2123 # We do not want a PATH search for config.site.
2124 case $CONFIG_SITE in #((
2125 -*) ac_site_file1=./$CONFIG_SITE;;
2126 */*) ac_site_file1=$CONFIG_SITE;;
2127 *) ac_site_file1=./$CONFIG_SITE;;
2128 esac
81ecdfbb
RW
2129elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2132else
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
2135fi
2136for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137do
2138 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141$as_echo "$as_me: loading site script $ac_site_file" >&6;}
edece237 2142 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2143 . "$ac_site_file" \
2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146as_fn_error $? "failed to load site script $ac_site_file
2147See \`config.log' for more details" "$LINENO" 5; }
edece237
CV
2148 fi
2149done
2150
2151if test -r "$cache_file"; then
d0ac1c44
SM
2152 # Some versions of bash will fail to source /dev/null (special files
2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2156$as_echo "$as_me: loading cache $cache_file" >&6;}
edece237 2157 case $cache_file in
81ecdfbb
RW
2158 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2159 *) . "./$cache_file";;
edece237
CV
2160 esac
2161 fi
2162else
81ecdfbb
RW
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2164$as_echo "$as_me: creating cache $cache_file" >&6;}
edece237
CV
2165 >$cache_file
2166fi
2167
2168# Check that the precious variables saved in the cache have kept the same
2169# value.
2170ac_cache_corrupted=false
81ecdfbb 2171for ac_var in $ac_precious_vars; do
edece237
CV
2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2173 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2175 eval ac_new_val=\$ac_env_${ac_var}_value
edece237
CV
2176 case $ac_old_set,$ac_new_set in
2177 set,)
81ecdfbb
RW
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2179$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
edece237
CV
2180 ac_cache_corrupted=: ;;
2181 ,set)
81ecdfbb
RW
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2183$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
edece237
CV
2184 ac_cache_corrupted=: ;;
2185 ,);;
2186 *)
2187 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2188 # differences in whitespace do not lead to failure.
2189 ac_old_val_w=`echo x $ac_old_val`
2190 ac_new_val_w=`echo x $ac_new_val`
2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2193$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2194 ac_cache_corrupted=:
2195 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2197$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2198 eval $ac_var=\$ac_old_val
2199 fi
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2201$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2203$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
edece237
CV
2204 fi;;
2205 esac
2206 # Pass precious variables to config.status.
2207 if test "$ac_new_set" = set; then
2208 case $ac_new_val in
81ecdfbb 2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
edece237
CV
2210 *) ac_arg=$ac_var=$ac_new_val ;;
2211 esac
2212 case " $ac_configure_args " in
2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2214 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
edece237
CV
2215 esac
2216 fi
2217done
2218if $ac_cache_corrupted; then
81ecdfbb
RW
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2222$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
edece237 2224fi
81ecdfbb
RW
2225## -------------------- ##
2226## Main body of script. ##
2227## -------------------- ##
edece237
CV
2228
2229ac_ext=c
2230ac_cpp='$CPP $CPPFLAGS'
2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235
6bb11ab3
L
2236
2237
2238
2239
2240
c2783492
MF
2241ac_aux_dir=
2242for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2243 if test -f "$ac_dir/install-sh"; then
2244 ac_aux_dir=$ac_dir
2245 ac_install_sh="$ac_aux_dir/install-sh -c"
2246 break
2247 elif test -f "$ac_dir/install.sh"; then
2248 ac_aux_dir=$ac_dir
2249 ac_install_sh="$ac_aux_dir/install.sh -c"
2250 break
2251 elif test -f "$ac_dir/shtool"; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/shtool install -c"
2254 break
2255 fi
2256done
2257if test -z "$ac_aux_dir"; then
2258 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2259fi
2260
2261# These three variables are undocumented and unsupported,
2262# and are intended to be withdrawn in a future Autoconf release.
2263# They can cause serious problems if a builder's source tree is in a directory
2264# whose full name contains unusual characters.
2265ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2266ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2267ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2268
2269
2270# Make sure we can run config.sub.
2271$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2272 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2273
2274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2275$as_echo_n "checking build system type... " >&6; }
2276if ${ac_cv_build+:} false; then :
2277 $as_echo_n "(cached) " >&6
2278else
2279 ac_build_alias=$build_alias
2280test "x$ac_build_alias" = x &&
2281 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2282test "x$ac_build_alias" = x &&
2283 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2284ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2285 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2286
2287fi
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2289$as_echo "$ac_cv_build" >&6; }
2290case $ac_cv_build in
2291*-*-*) ;;
2292*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2293esac
2294build=$ac_cv_build
2295ac_save_IFS=$IFS; IFS='-'
2296set x $ac_cv_build
2297shift
2298build_cpu=$1
2299build_vendor=$2
2300shift; shift
2301# Remember, the first character of IFS is used to create $*,
2302# except with old shells:
2303build_os=$*
2304IFS=$ac_save_IFS
2305case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2306
2307
2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2309$as_echo_n "checking host system type... " >&6; }
2310if ${ac_cv_host+:} false; then :
2311 $as_echo_n "(cached) " >&6
2312else
2313 if test "x$host_alias" = x; then
2314 ac_cv_host=$ac_cv_build
2315else
2316 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2317 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2318fi
2319
2320fi
2321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2322$as_echo "$ac_cv_host" >&6; }
2323case $ac_cv_host in
2324*-*-*) ;;
2325*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2326esac
2327host=$ac_cv_host
2328ac_save_IFS=$IFS; IFS='-'
2329set x $ac_cv_host
2330shift
2331host_cpu=$1
2332host_vendor=$2
2333shift; shift
2334# Remember, the first character of IFS is used to create $*,
2335# except with old shells:
2336host_os=$*
2337IFS=$ac_save_IFS
2338case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2339
2340
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2342$as_echo_n "checking target system type... " >&6; }
2343if ${ac_cv_target+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345else
2346 if test "x$target_alias" = x; then
2347 ac_cv_target=$ac_cv_host
2348else
2349 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2351fi
2352
2353fi
2354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2355$as_echo "$ac_cv_target" >&6; }
2356case $ac_cv_target in
2357*-*-*) ;;
2358*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2359esac
2360target=$ac_cv_target
2361ac_save_IFS=$IFS; IFS='-'
2362set x $ac_cv_target
2363shift
2364target_cpu=$1
2365target_vendor=$2
2366shift; shift
2367# Remember, the first character of IFS is used to create $*,
2368# except with old shells:
2369target_os=$*
2370IFS=$ac_save_IFS
2371case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2372
2373
2374# The aliases save the names the user supplied, while $host etc.
2375# will get canonicalized.
2376test -n "$target_alias" &&
2377 test "$program_prefix$program_suffix$program_transform_name" = \
2378 NONENONEs,x,x, &&
2379 program_prefix=${target_alias}-
6bb11ab3
L
2380ac_ext=c
2381ac_cpp='$CPP $CPPFLAGS'
2382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385if test -n "$ac_tool_prefix"; then
2386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2387set dummy ${ac_tool_prefix}gcc; ac_word=$2
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2389$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2390if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2391 $as_echo_n "(cached) " >&6
2392else
2393 if test -n "$CC"; then
2394 ac_cv_prog_CC="$CC" # Let the user override the test.
2395else
2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 break 2
2406 fi
2407done
2408 done
2409IFS=$as_save_IFS
2410
2411fi
2412fi
2413CC=$ac_cv_prog_CC
2414if test -n "$CC"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2416$as_echo "$CC" >&6; }
2417else
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2419$as_echo "no" >&6; }
2420fi
2421
2422
2423fi
2424if test -z "$ac_cv_prog_CC"; then
2425 ac_ct_CC=$CC
2426 # Extract the first word of "gcc", so it can be a program name with args.
2427set dummy gcc; ac_word=$2
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2429$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2430if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2431 $as_echo_n "(cached) " >&6
2432else
2433 if test -n "$ac_ct_CC"; then
2434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435else
2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH
2438do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2443 ac_cv_prog_ac_ct_CC="gcc"
2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447done
2448 done
2449IFS=$as_save_IFS
2450
2451fi
2452fi
2453ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454if test -n "$ac_ct_CC"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2456$as_echo "$ac_ct_CC" >&6; }
2457else
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459$as_echo "no" >&6; }
2460fi
2461
2462 if test "x$ac_ct_CC" = x; then
2463 CC=""
2464 else
2465 case $cross_compiling:$ac_tool_warned in
2466yes:)
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2469ac_tool_warned=yes ;;
2470esac
2471 CC=$ac_ct_CC
2472 fi
2473else
2474 CC="$ac_cv_prog_CC"
2475fi
2476
2477if test -z "$CC"; then
2478 if test -n "$ac_tool_prefix"; then
2479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2480set dummy ${ac_tool_prefix}cc; ac_word=$2
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2483if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2484 $as_echo_n "(cached) " >&6
2485else
2486 if test -n "$CC"; then
2487 ac_cv_prog_CC="$CC" # Let the user override the test.
2488else
2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490for as_dir in $PATH
2491do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2496 ac_cv_prog_CC="${ac_tool_prefix}cc"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2499 fi
2500done
2501 done
2502IFS=$as_save_IFS
2503
2504fi
2505fi
2506CC=$ac_cv_prog_CC
2507if test -n "$CC"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2509$as_echo "$CC" >&6; }
2510else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512$as_echo "no" >&6; }
2513fi
2514
2515
2516 fi
2517fi
2518if test -z "$CC"; then
2519 # Extract the first word of "cc", so it can be a program name with args.
2520set dummy cc; ac_word=$2
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2523if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2524 $as_echo_n "(cached) " >&6
2525else
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2528else
2529 ac_prog_rejected=no
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2537 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2538 ac_prog_rejected=yes
2539 continue
2540 fi
2541 ac_cv_prog_CC="cc"
2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545done
2546 done
2547IFS=$as_save_IFS
2548
2549if test $ac_prog_rejected = yes; then
2550 # We found a bogon in the path, so make sure we never use it.
2551 set dummy $ac_cv_prog_CC
2552 shift
2553 if test $# != 0; then
2554 # We chose a different compiler from the bogus one.
2555 # However, it has the same basename, so the bogon will be chosen
2556 # first if we set CC to just the basename; use the full file name.
2557 shift
2558 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2559 fi
2560fi
2561fi
2562fi
2563CC=$ac_cv_prog_CC
2564if test -n "$CC"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2566$as_echo "$CC" >&6; }
2567else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569$as_echo "no" >&6; }
2570fi
2571
2572
2573fi
2574if test -z "$CC"; then
2575 if test -n "$ac_tool_prefix"; then
2576 for ac_prog in cl.exe
2577 do
2578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2579set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2582if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2583 $as_echo_n "(cached) " >&6
2584else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2595 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599done
2600 done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605CC=$ac_cv_prog_CC
2606if test -n "$CC"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2608$as_echo "$CC" >&6; }
2609else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614
2615 test -n "$CC" && break
2616 done
2617fi
2618if test -z "$CC"; then
2619 ac_ct_CC=$CC
2620 for ac_prog in cl.exe
2621do
2622 # Extract the first word of "$ac_prog", so it can be a program name with args.
2623set dummy $ac_prog; ac_word=$2
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2626if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2627 $as_echo_n "(cached) " >&6
2628else
2629 if test -n "$ac_ct_CC"; then
2630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2639 ac_cv_prog_ac_ct_CC="$ac_prog"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643done
2644 done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649ac_ct_CC=$ac_cv_prog_ac_ct_CC
2650if test -n "$ac_ct_CC"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2652$as_echo "$ac_ct_CC" >&6; }
2653else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658
2659 test -n "$ac_ct_CC" && break
2660done
2661
2662 if test "x$ac_ct_CC" = x; then
2663 CC=""
2664 else
2665 case $cross_compiling:$ac_tool_warned in
2666yes:)
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2669ac_tool_warned=yes ;;
2670esac
2671 CC=$ac_ct_CC
2672 fi
2673fi
2674
2675fi
2676
2677
2678test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2680as_fn_error $? "no acceptable C compiler found in \$PATH
2681See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2682
2683# Provide some information about the compiler.
2684$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2685set X $ac_compile
2686ac_compiler=$2
2687for ac_option in --version -v -V -qversion; do
2688 { { ac_try="$ac_compiler $ac_option >&5"
2689case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692esac
2693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694$as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2696 ac_status=$?
2697 if test -s conftest.err; then
2698 sed '10a\
2699... rest of stderr output deleted ...
2700 10q' conftest.err >conftest.er1
2701 cat conftest.er1 >&5
6bb11ab3 2702 fi
d0ac1c44 2703 rm -f conftest.er1 conftest.err
6bb11ab3
L
2704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705 test $ac_status = 0; }
2706done
2707
2708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h. */
2710
2711int
2712main ()
2713{
2714
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719ac_clean_files_save=$ac_clean_files
d0ac1c44 2720ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2721# Try to create an executable without -o first, disregard a.out.
2722# It will help us diagnose broken compilers, and finding out an intuition
2723# of exeext.
d0ac1c44
SM
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2725$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2726ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2727
2728# The possible output files:
2729ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2730
2731ac_rmfiles=
2732for ac_file in $ac_files
2733do
2734 case $ac_file in
2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2736 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2737 esac
2738done
2739rm -f $ac_rmfiles
2740
2741if { { ac_try="$ac_link_default"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747$as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_link_default") 2>&5
2749 ac_status=$?
2750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751 test $ac_status = 0; }; then :
2752 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754# in a Makefile. We should not override ac_cv_exeext if it was cached,
2755# so that the user can short-circuit this test for compilers unknown to
2756# Autoconf.
2757for ac_file in $ac_files ''
2758do
2759 test -f "$ac_file" || continue
2760 case $ac_file in
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2762 ;;
2763 [ab].out )
2764 # We found the default executable, but exeext='' is most
2765 # certainly right.
2766 break;;
2767 *.* )
2768 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769 then :; else
2770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771 fi
2772 # We set ac_cv_exeext here because the later test for it is not
2773 # safe: cross compilers may not add the suffix if given an `-o'
2774 # argument, so we may need to know it at that point already.
2775 # Even if this section looks crufty: it has the advantage of
2776 # actually working.
2777 break;;
2778 * )
2779 break;;
2780 esac
2781done
2782test "$ac_cv_exeext" = no && ac_cv_exeext=
2783
2784else
2785 ac_file=''
2786fi
6bb11ab3 2787if test -z "$ac_file"; then :
d0ac1c44
SM
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2791sed 's/^/| /' conftest.$ac_ext >&5
2792
2793{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2795as_fn_error 77 "C compiler cannot create executables
2796See \`config.log' for more details" "$LINENO" 5; }
2797else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2799$as_echo "yes" >&6; }
6bb11ab3 2800fi
d0ac1c44
SM
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2802$as_echo_n "checking for C compiler default output file name... " >&6; }
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2804$as_echo "$ac_file" >&6; }
6bb11ab3
L
2805ac_exeext=$ac_cv_exeext
2806
d0ac1c44 2807rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2808ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2810$as_echo_n "checking for suffix of executables... " >&6; }
2811if { { ac_try="$ac_link"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
2816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817$as_echo "$ac_try_echo"; } >&5
2818 (eval "$ac_link") 2>&5
2819 ac_status=$?
2820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821 test $ac_status = 0; }; then :
2822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2823# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2824# work properly (i.e., refer to `conftest.exe'), while it won't with
2825# `rm'.
2826for ac_file in conftest.exe conftest conftest.*; do
2827 test -f "$ac_file" || continue
2828 case $ac_file in
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2831 break;;
2832 * ) break;;
2833 esac
2834done
2835else
2836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2838as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2839See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2840fi
d0ac1c44 2841rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2843$as_echo "$ac_cv_exeext" >&6; }
2844
2845rm -f conftest.$ac_ext
2846EXEEXT=$ac_cv_exeext
2847ac_exeext=$EXEEXT
d0ac1c44
SM
2848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849/* end confdefs.h. */
2850#include <stdio.h>
2851int
2852main ()
2853{
2854FILE *f = fopen ("conftest.out", "w");
2855 return ferror (f) || fclose (f) != 0;
2856
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861ac_clean_files="$ac_clean_files conftest.out"
2862# Check that the compiler produces executables we can run. If not, either
2863# the compiler is broken, or we cross compile.
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2865$as_echo_n "checking whether we are cross compiling... " >&6; }
2866if test "$cross_compiling" != yes; then
2867 { { ac_try="$ac_link"
2868case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871esac
2872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2873$as_echo "$ac_try_echo"; } >&5
2874 (eval "$ac_link") 2>&5
2875 ac_status=$?
2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; }
2878 if { ac_try='./conftest$ac_cv_exeext'
2879 { { case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
2883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884$as_echo "$ac_try_echo"; } >&5
2885 (eval "$ac_try") 2>&5
2886 ac_status=$?
2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888 test $ac_status = 0; }; }; then
2889 cross_compiling=no
2890 else
2891 if test "$cross_compiling" = maybe; then
2892 cross_compiling=yes
2893 else
2894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896as_fn_error $? "cannot run C compiled programs.
2897If you meant to cross compile, use \`--host'.
2898See \`config.log' for more details" "$LINENO" 5; }
2899 fi
2900 fi
2901fi
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2903$as_echo "$cross_compiling" >&6; }
2904
2905rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2906ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2908$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2909if ${ac_cv_objext+:} false; then :
6bb11ab3
L
2910 $as_echo_n "(cached) " >&6
2911else
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913/* end confdefs.h. */
2914
2915int
2916main ()
2917{
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923rm -f conftest.o conftest.obj
2924if { { ac_try="$ac_compile"
2925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
2929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930$as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_compile") 2>&5
2932 ac_status=$?
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; then :
2935 for ac_file in conftest.o conftest.obj conftest.*; do
2936 test -f "$ac_file" || continue;
2937 case $ac_file in
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2940 break;;
2941 esac
2942done
2943else
2944 $as_echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2949as_fn_error $? "cannot compute suffix of object files: cannot compile
2950See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2951fi
2952rm -f conftest.$ac_cv_objext conftest.$ac_ext
2953fi
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2955$as_echo "$ac_cv_objext" >&6; }
2956OBJEXT=$ac_cv_objext
2957ac_objext=$OBJEXT
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2959$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2960if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
2961 $as_echo_n "(cached) " >&6
2962else
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964/* end confdefs.h. */
2965
2966int
2967main ()
2968{
2969#ifndef __GNUC__
2970 choke me
2971#endif
2972
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977if ac_fn_c_try_compile "$LINENO"; then :
2978 ac_compiler_gnu=yes
2979else
2980 ac_compiler_gnu=no
2981fi
2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983ac_cv_c_compiler_gnu=$ac_compiler_gnu
2984
2985fi
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2987$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2988if test $ac_compiler_gnu = yes; then
2989 GCC=yes
2990else
2991 GCC=
2992fi
2993ac_test_CFLAGS=${CFLAGS+set}
2994ac_save_CFLAGS=$CFLAGS
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2996$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 2997if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
2998 $as_echo_n "(cached) " >&6
2999else
3000 ac_save_c_werror_flag=$ac_c_werror_flag
3001 ac_c_werror_flag=yes
3002 ac_cv_prog_cc_g=no
3003 CFLAGS="-g"
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005/* end confdefs.h. */
3006
3007int
3008main ()
3009{
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
3015if ac_fn_c_try_compile "$LINENO"; then :
3016 ac_cv_prog_cc_g=yes
3017else
3018 CFLAGS=""
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h. */
3021
3022int
3023main ()
3024{
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030if ac_fn_c_try_compile "$LINENO"; then :
3031
3032else
3033 ac_c_werror_flag=$ac_save_c_werror_flag
3034 CFLAGS="-g"
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036/* end confdefs.h. */
3037
3038int
3039main ()
3040{
3041
3042 ;
3043 return 0;
3044}
3045_ACEOF
3046if ac_fn_c_try_compile "$LINENO"; then :
3047 ac_cv_prog_cc_g=yes
3048fi
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050fi
3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052fi
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_c_werror_flag=$ac_save_c_werror_flag
3055fi
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3057$as_echo "$ac_cv_prog_cc_g" >&6; }
3058if test "$ac_test_CFLAGS" = set; then
3059 CFLAGS=$ac_save_CFLAGS
3060elif test $ac_cv_prog_cc_g = yes; then
3061 if test "$GCC" = yes; then
3062 CFLAGS="-g -O2"
3063 else
3064 CFLAGS="-g"
3065 fi
3066else
3067 if test "$GCC" = yes; then
3068 CFLAGS="-O2"
3069 else
3070 CFLAGS=
3071 fi
3072fi
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3074$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3075if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
3076 $as_echo_n "(cached) " >&6
3077else
3078 ac_cv_prog_cc_c89=no
3079ac_save_CC=$CC
3080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081/* end confdefs.h. */
3082#include <stdarg.h>
3083#include <stdio.h>
d0ac1c44 3084struct stat;
6bb11ab3
L
3085/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3086struct buf { int x; };
3087FILE * (*rcsopen) (struct buf *, struct stat *, int);
3088static char *e (p, i)
3089 char **p;
3090 int i;
3091{
3092 return p[i];
3093}
3094static char *f (char * (*g) (char **, int), char **p, ...)
3095{
3096 char *s;
3097 va_list v;
3098 va_start (v,p);
3099 s = g (p, va_arg (v,int));
3100 va_end (v);
3101 return s;
3102}
3103
3104/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3105 function prototypes and stuff, but not '\xHH' hex character constants.
3106 These don't provoke an error unfortunately, instead are silently treated
3107 as 'x'. The following induces an error, until -std is added to get
3108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3109 array size at least. It's necessary to write '\x00'==0 to get something
3110 that's true only with -std. */
3111int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3112
3113/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3114 inside strings and character constants. */
3115#define FOO(x) 'x'
3116int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3117
3118int test (int i, double x);
3119struct s1 {int (*f) (int a);};
3120struct s2 {int (*f) (double a);};
3121int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3122int argc;
3123char **argv;
3124int
3125main ()
3126{
3127return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3134do
3135 CC="$ac_save_CC $ac_arg"
3136 if ac_fn_c_try_compile "$LINENO"; then :
3137 ac_cv_prog_cc_c89=$ac_arg
3138fi
3139rm -f core conftest.err conftest.$ac_objext
3140 test "x$ac_cv_prog_cc_c89" != "xno" && break
3141done
3142rm -f conftest.$ac_ext
3143CC=$ac_save_CC
3144
3145fi
3146# AC_CACHE_VAL
3147case "x$ac_cv_prog_cc_c89" in
3148 x)
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3150$as_echo "none needed" >&6; } ;;
3151 xno)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3153$as_echo "unsupported" >&6; } ;;
3154 *)
3155 CC="$CC $ac_cv_prog_cc_c89"
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3157$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3158esac
3159if test "x$ac_cv_prog_cc_c89" != xno; then :
3160
3161fi
3162
3163ac_ext=c
3164ac_cpp='$CPP $CPPFLAGS'
3165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168
c2783492 3169
ebe9564b
MF
3170ac_ext=c
3171ac_cpp='$CPP $CPPFLAGS'
3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3176$as_echo_n "checking how to run the C preprocessor... " >&6; }
3177# On Suns, sometimes $CPP names a directory.
3178if test -n "$CPP" && test -d "$CPP"; then
3179 CPP=
3180fi
3181if test -z "$CPP"; then
3182 if ${ac_cv_prog_CPP+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184else
3185 # Double quotes because CPP needs to be expanded
3186 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3187 do
3188 ac_preproc_ok=false
3189for ac_c_preproc_warn_flag in '' yes
3190do
3191 # Use a header file that comes with gcc, so configuring glibc
3192 # with a fresh cross-compiler works.
3193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3194 # <limits.h> exists even on freestanding compilers.
3195 # On the NeXT, cc -E runs the code through the compiler's parser,
3196 # not just through cpp. "Syntax error" is here to catch this case.
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h. */
3199#ifdef __STDC__
3200# include <limits.h>
3201#else
3202# include <assert.h>
3203#endif
3204 Syntax error
3205_ACEOF
3206if ac_fn_c_try_cpp "$LINENO"; then :
3207
3208else
3209 # Broken: fails on valid input.
3210continue
3211fi
3212rm -f conftest.err conftest.i conftest.$ac_ext
3213
3214 # OK, works on sane cases. Now check whether nonexistent headers
3215 # can be detected and how.
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217/* end confdefs.h. */
3218#include <ac_nonexistent.h>
3219_ACEOF
3220if ac_fn_c_try_cpp "$LINENO"; then :
3221 # Broken: success on invalid input.
3222continue
3223else
3224 # Passes both tests.
3225ac_preproc_ok=:
3226break
3227fi
3228rm -f conftest.err conftest.i conftest.$ac_ext
3229
3230done
3231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3232rm -f conftest.i conftest.err conftest.$ac_ext
3233if $ac_preproc_ok; then :
3234 break
3235fi
3236
3237 done
3238 ac_cv_prog_CPP=$CPP
3239
3240fi
3241 CPP=$ac_cv_prog_CPP
3242else
3243 ac_cv_prog_CPP=$CPP
3244fi
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3246$as_echo "$CPP" >&6; }
3247ac_preproc_ok=false
3248for ac_c_preproc_warn_flag in '' yes
3249do
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257/* end confdefs.h. */
3258#ifdef __STDC__
3259# include <limits.h>
3260#else
3261# include <assert.h>
3262#endif
3263 Syntax error
3264_ACEOF
3265if ac_fn_c_try_cpp "$LINENO"; then :
3266
3267else
3268 # Broken: fails on valid input.
3269continue
3270fi
3271rm -f conftest.err conftest.i conftest.$ac_ext
3272
3273 # OK, works on sane cases. Now check whether nonexistent headers
3274 # can be detected and how.
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276/* end confdefs.h. */
3277#include <ac_nonexistent.h>
3278_ACEOF
3279if ac_fn_c_try_cpp "$LINENO"; then :
3280 # Broken: success on invalid input.
3281continue
3282else
3283 # Passes both tests.
3284ac_preproc_ok=:
3285break
3286fi
3287rm -f conftest.err conftest.i conftest.$ac_ext
3288
3289done
3290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3291rm -f conftest.i conftest.err conftest.$ac_ext
3292if $ac_preproc_ok; then :
3293
3294else
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3298See \`config.log' for more details" "$LINENO" 5; }
3299fi
3300
3301ac_ext=c
3302ac_cpp='$CPP $CPPFLAGS'
3303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306
6bb11ab3
L
3307
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3309$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3310if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
3311 $as_echo_n "(cached) " >&6
3312else
3313 if test -z "$GREP"; then
3314 ac_path_GREP_found=false
3315 # Loop through the user's path and test for each of PROGNAME-LIST
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3318do
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_prog in grep ggrep; do
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3324 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
3325# Check for GNU ac_path_GREP and select it if it is found.
3326 # Check for GNU $ac_path_GREP
3327case `"$ac_path_GREP" --version 2>&1` in
3328*GNU*)
3329 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3330*)
3331 ac_count=0
3332 $as_echo_n 0123456789 >"conftest.in"
3333 while :
3334 do
3335 cat "conftest.in" "conftest.in" >"conftest.tmp"
3336 mv "conftest.tmp" "conftest.in"
3337 cp "conftest.in" "conftest.nl"
3338 $as_echo 'GREP' >> "conftest.nl"
3339 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3341 as_fn_arith $ac_count + 1 && ac_count=$as_val
3342 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3343 # Best one so far, save it but keep looking for a better one
3344 ac_cv_path_GREP="$ac_path_GREP"
3345 ac_path_GREP_max=$ac_count
3346 fi
3347 # 10*(2^10) chars as input seems more than enough
3348 test $ac_count -gt 10 && break
3349 done
3350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3351esac
3352
3353 $ac_path_GREP_found && break 3
3354 done
3355 done
3356 done
3357IFS=$as_save_IFS
3358 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3359 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3360 fi
3361else
3362 ac_cv_path_GREP=$GREP
3363fi
3364
3365fi
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3367$as_echo "$ac_cv_path_GREP" >&6; }
3368 GREP="$ac_cv_path_GREP"
3369
3370
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3372$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3373if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
3374 $as_echo_n "(cached) " >&6
3375else
3376 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3377 then ac_cv_path_EGREP="$GREP -E"
3378 else
3379 if test -z "$EGREP"; then
3380 ac_path_EGREP_found=false
3381 # Loop through the user's path and test for each of PROGNAME-LIST
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3384do
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_prog in egrep; do
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3390 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
3391# Check for GNU ac_path_EGREP and select it if it is found.
3392 # Check for GNU $ac_path_EGREP
3393case `"$ac_path_EGREP" --version 2>&1` in
3394*GNU*)
3395 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3396*)
3397 ac_count=0
3398 $as_echo_n 0123456789 >"conftest.in"
3399 while :
3400 do
3401 cat "conftest.in" "conftest.in" >"conftest.tmp"
3402 mv "conftest.tmp" "conftest.in"
3403 cp "conftest.in" "conftest.nl"
3404 $as_echo 'EGREP' >> "conftest.nl"
3405 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3407 as_fn_arith $ac_count + 1 && ac_count=$as_val
3408 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3409 # Best one so far, save it but keep looking for a better one
3410 ac_cv_path_EGREP="$ac_path_EGREP"
3411 ac_path_EGREP_max=$ac_count
3412 fi
3413 # 10*(2^10) chars as input seems more than enough
3414 test $ac_count -gt 10 && break
3415 done
3416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3417esac
3418
3419 $ac_path_EGREP_found && break 3
3420 done
3421 done
3422 done
3423IFS=$as_save_IFS
3424 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3425 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3426 fi
3427else
3428 ac_cv_path_EGREP=$EGREP
3429fi
3430
3431 fi
3432fi
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3434$as_echo "$ac_cv_path_EGREP" >&6; }
3435 EGREP="$ac_cv_path_EGREP"
3436
3437
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3439$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3440if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
3441 $as_echo_n "(cached) " >&6
3442else
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h. */
3445#include <stdlib.h>
3446#include <stdarg.h>
3447#include <string.h>
3448#include <float.h>
3449
3450int
3451main ()
3452{
3453
3454 ;
3455 return 0;
3456}
3457_ACEOF
3458if ac_fn_c_try_compile "$LINENO"; then :
3459 ac_cv_header_stdc=yes
3460else
3461 ac_cv_header_stdc=no
3462fi
3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464
3465if test $ac_cv_header_stdc = yes; then
3466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h. */
3469#include <string.h>
3470
3471_ACEOF
3472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 $EGREP "memchr" >/dev/null 2>&1; then :
3474
3475else
3476 ac_cv_header_stdc=no
3477fi
3478rm -f conftest*
3479
3480fi
3481
3482if test $ac_cv_header_stdc = yes; then
3483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h. */
3486#include <stdlib.h>
3487
3488_ACEOF
3489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 $EGREP "free" >/dev/null 2>&1; then :
3491
3492else
3493 ac_cv_header_stdc=no
3494fi
3495rm -f conftest*
3496
3497fi
3498
3499if test $ac_cv_header_stdc = yes; then
3500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3501 if test "$cross_compiling" = yes; then :
3502 :
3503else
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h. */
3506#include <ctype.h>
3507#include <stdlib.h>
3508#if ((' ' & 0x0FF) == 0x020)
3509# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3510# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3511#else
3512# define ISLOWER(c) \
3513 (('a' <= (c) && (c) <= 'i') \
3514 || ('j' <= (c) && (c) <= 'r') \
3515 || ('s' <= (c) && (c) <= 'z'))
3516# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3517#endif
3518
3519#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3520int
3521main ()
3522{
3523 int i;
3524 for (i = 0; i < 256; i++)
3525 if (XOR (islower (i), ISLOWER (i))
3526 || toupper (i) != TOUPPER (i))
3527 return 2;
3528 return 0;
3529}
3530_ACEOF
3531if ac_fn_c_try_run "$LINENO"; then :
3532
3533else
3534 ac_cv_header_stdc=no
3535fi
3536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3537 conftest.$ac_objext conftest.beam conftest.$ac_ext
3538fi
3539
3540fi
3541fi
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3543$as_echo "$ac_cv_header_stdc" >&6; }
3544if test $ac_cv_header_stdc = yes; then
3545
3546$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3547
3548fi
3549
3550# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3551for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3552 inttypes.h stdint.h unistd.h
3553do :
3554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3555ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3556"
d0ac1c44 3557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
3558 cat >>confdefs.h <<_ACEOF
3559#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3560_ACEOF
3561
3562fi
3563
3564done
3565
3566
3567
3568 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 3569if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
3570 MINIX=yes
3571else
3572 MINIX=
3573fi
3574
3575
3576 if test "$MINIX" = yes; then
3577
3578$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3579
3580
3581$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3582
3583
3584$as_echo "#define _MINIX 1" >>confdefs.h
3585
3586 fi
3587
3588
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3590$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 3591if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
3592 $as_echo_n "(cached) " >&6
3593else
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595/* end confdefs.h. */
3596
d0ac1c44
SM
3597# define __EXTENSIONS__ 1
3598 $ac_includes_default
6bb11ab3
L
3599int
3600main ()
3601{
3602
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_cv_safe_to_define___extensions__=yes
3609else
3610 ac_cv_safe_to_define___extensions__=no
3611fi
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613fi
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3615$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3616 test $ac_cv_safe_to_define___extensions__ = yes &&
3617 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3618
3619 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3620
3621 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3622
3623 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3624
3625 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3626
3627
3628test "$program_prefix" != NONE &&
3629 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3630# Use a double $ so make ignores it.
3631test "$program_suffix" != NONE &&
3632 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3633# Double any \ or $.
3634# By default was `s,x,x', remove it if useless.
3635ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3636program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3637
3638# Find a good install program. We prefer a C program (faster),
3639# so one script is as good as another. But avoid the broken or
3640# incompatible versions:
3641# SysV /etc/install, /usr/sbin/install
3642# SunOS /usr/etc/install
3643# IRIX /sbin/install
3644# AIX /bin/install
3645# AmigaOS /C/install, which installs bootblocks on floppy discs
3646# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3647# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3648# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3649# OS/2's system install, which has a completely different semantic
3650# ./install, which can be erroneously created by make from ./install.sh.
3651# Reject install programs that cannot install multiple files.
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3653$as_echo_n "checking for a BSD-compatible install... " >&6; }
3654if test -z "$INSTALL"; then
d0ac1c44 3655if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
3656 $as_echo_n "(cached) " >&6
3657else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 # Account for people who put trailing slashes in PATH elements.
3664case $as_dir/ in #((
3665 ./ | .// | /[cC]/* | \
3666 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3667 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3668 /usr/ucb/* ) ;;
3669 *)
3670 # OSF1 and SCO ODT 3.0 have their own names for install.
3671 # Don't use installbsd from OSF since it installs stuff as root
3672 # by default.
3673 for ac_prog in ginstall scoinst install; do
3674 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3675 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
3676 if test $ac_prog = install &&
3677 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3678 # AIX install. It has an incompatible calling convention.
3679 :
3680 elif test $ac_prog = install &&
3681 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3682 # program-specific install script used by HP pwplus--don't use.
3683 :
3684 else
3685 rm -rf conftest.one conftest.two conftest.dir
3686 echo one > conftest.one
3687 echo two > conftest.two
3688 mkdir conftest.dir
3689 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3690 test -s conftest.one && test -s conftest.two &&
3691 test -s conftest.dir/conftest.one &&
3692 test -s conftest.dir/conftest.two
3693 then
3694 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3695 break 3
3696 fi
3697 fi
3698 fi
3699 done
3700 done
3701 ;;
3702esac
3703
3704 done
3705IFS=$as_save_IFS
3706
3707rm -rf conftest.one conftest.two conftest.dir
3708
3709fi
3710 if test "${ac_cv_path_install+set}" = set; then
3711 INSTALL=$ac_cv_path_install
3712 else
3713 # As a last resort, use the slow shell script. Don't cache a
3714 # value for INSTALL within a source directory, because that will
3715 # break other packages using the cache if that directory is
3716 # removed, or if the value is a relative name.
3717 INSTALL=$ac_install_sh
3718 fi
3719fi
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3721$as_echo "$INSTALL" >&6; }
3722
3723# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3724# It thinks the first close brace ends the variable substitution.
3725test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3726
3727test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3728
3729test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3730
3731rm -rf .tst 2>/dev/null
3732mkdir .tst 2>/dev/null
3733if test -d .tst; then
3734 am__leading_dot=.
3735else
3736 am__leading_dot=_
3737fi
3738rmdir .tst 2>/dev/null
3739
3740DEPDIR="${am__leading_dot}deps"
3741
3742case `pwd` in
3743 *\ * | *\ *)
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3745$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3746esac
3747
3748
3749
3750macro_version='2.2.7a'
3751macro_revision='1.3134'
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765ltmain="$ac_aux_dir/ltmain.sh"
3766
3767# Backslashify metacharacters that are still active within
3768# double-quoted strings.
3769sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3770
3771# Same as above, but do not quote variable references.
3772double_quote_subst='s/\(["`\\]\)/\\\1/g'
3773
3774# Sed substitution to delay expansion of an escaped shell variable in a
3775# double_quote_subst'ed string.
3776delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3777
3778# Sed substitution to delay expansion of an escaped single quote.
3779delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3780
3781# Sed substitution to avoid accidental globbing in evaled expressions
3782no_glob_subst='s/\*/\\\*/g'
3783
3784ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3785ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3786ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3787
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3789$as_echo_n "checking how to print strings... " >&6; }
3790# Test print first, because it will be a builtin if present.
3791if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3792 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3793 ECHO='print -r --'
3794elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3795 ECHO='printf %s\n'
3796else
3797 # Use this function as a fallback that always works.
3798 func_fallback_echo ()
3799 {
3800 eval 'cat <<_LTECHO_EOF
3801$1
3802_LTECHO_EOF'
3803 }
3804 ECHO='func_fallback_echo'
3805fi
3806
3807# func_echo_all arg...
3808# Invoke $ECHO with all args, space-separated.
3809func_echo_all ()
3810{
3811 $ECHO ""
3812}
3813
3814case "$ECHO" in
3815 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3816$as_echo "printf" >&6; } ;;
3817 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3818$as_echo "print -r" >&6; } ;;
3819 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3820$as_echo "cat" >&6; } ;;
3821esac
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3837$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 3838if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
3839 $as_echo_n "(cached) " >&6
3840else
3841 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3842 for ac_i in 1 2 3 4 5 6 7; do
3843 ac_script="$ac_script$as_nl$ac_script"
3844 done
3845 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3846 { ac_script=; unset ac_script;}
3847 if test -z "$SED"; then
3848 ac_path_SED_found=false
3849 # Loop through the user's path and test for each of PROGNAME-LIST
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH
3852do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_prog in sed gsed; do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3858 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
3859# Check for GNU ac_path_SED and select it if it is found.
3860 # Check for GNU $ac_path_SED
3861case `"$ac_path_SED" --version 2>&1` in
3862*GNU*)
3863 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3864*)
3865 ac_count=0
3866 $as_echo_n 0123456789 >"conftest.in"
3867 while :
3868 do
3869 cat "conftest.in" "conftest.in" >"conftest.tmp"
3870 mv "conftest.tmp" "conftest.in"
3871 cp "conftest.in" "conftest.nl"
3872 $as_echo '' >> "conftest.nl"
3873 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3875 as_fn_arith $ac_count + 1 && ac_count=$as_val
3876 if test $ac_count -gt ${ac_path_SED_max-0}; then
3877 # Best one so far, save it but keep looking for a better one
3878 ac_cv_path_SED="$ac_path_SED"
3879 ac_path_SED_max=$ac_count
3880 fi
3881 # 10*(2^10) chars as input seems more than enough
3882 test $ac_count -gt 10 && break
3883 done
3884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3885esac
3886
3887 $ac_path_SED_found && break 3
3888 done
3889 done
3890 done
3891IFS=$as_save_IFS
3892 if test -z "$ac_cv_path_SED"; then
d0ac1c44 3893 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
3894 fi
3895else
3896 ac_cv_path_SED=$SED
3897fi
3898
3899fi
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3901$as_echo "$ac_cv_path_SED" >&6; }
3902 SED="$ac_cv_path_SED"
3903 rm -f conftest.sed
3904
3905test -z "$SED" && SED=sed
3906Xsed="$SED -e 1s/^X//"
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3919$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 3920if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
3921 $as_echo_n "(cached) " >&6
3922else
3923 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3924 then ac_cv_path_FGREP="$GREP -F"
3925 else
3926 if test -z "$FGREP"; then
3927 ac_path_FGREP_found=false
3928 # Loop through the user's path and test for each of PROGNAME-LIST
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_prog in fgrep; do
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3937 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
3938# Check for GNU ac_path_FGREP and select it if it is found.
3939 # Check for GNU $ac_path_FGREP
3940case `"$ac_path_FGREP" --version 2>&1` in
3941*GNU*)
3942 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3943*)
3944 ac_count=0
3945 $as_echo_n 0123456789 >"conftest.in"
3946 while :
3947 do
3948 cat "conftest.in" "conftest.in" >"conftest.tmp"
3949 mv "conftest.tmp" "conftest.in"
3950 cp "conftest.in" "conftest.nl"
3951 $as_echo 'FGREP' >> "conftest.nl"
3952 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3954 as_fn_arith $ac_count + 1 && ac_count=$as_val
3955 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3956 # Best one so far, save it but keep looking for a better one
3957 ac_cv_path_FGREP="$ac_path_FGREP"
3958 ac_path_FGREP_max=$ac_count
3959 fi
3960 # 10*(2^10) chars as input seems more than enough
3961 test $ac_count -gt 10 && break
3962 done
3963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3964esac
3965
3966 $ac_path_FGREP_found && break 3
3967 done
3968 done
3969 done
3970IFS=$as_save_IFS
3971 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 3972 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3973 fi
3974else
3975 ac_cv_path_FGREP=$FGREP
3976fi
3977
3978 fi
3979fi
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3981$as_echo "$ac_cv_path_FGREP" >&6; }
3982 FGREP="$ac_cv_path_FGREP"
3983
3984
3985test -z "$GREP" && GREP=grep
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005# Check whether --with-gnu-ld was given.
4006if test "${with_gnu_ld+set}" = set; then :
4007 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4008else
4009 with_gnu_ld=no
4010fi
4011
4012ac_prog=ld
4013if test "$GCC" = yes; then
4014 # Check if gcc -print-prog-name=ld gives a path.
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4016$as_echo_n "checking for ld used by $CC... " >&6; }
4017 case $host in
4018 *-*-mingw*)
4019 # gcc leaves a trailing carriage return which upsets mingw
4020 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4021 *)
4022 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4023 esac
4024 case $ac_prog in
4025 # Accept absolute paths.
4026 [\\/]* | ?:[\\/]*)
4027 re_direlt='/[^/][^/]*/\.\./'
4028 # Canonicalize the pathname of ld
4029 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4030 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4031 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4032 done
4033 test -z "$LD" && LD="$ac_prog"
4034 ;;
4035 "")
4036 # If it fails, then pretend we aren't using GCC.
4037 ac_prog=ld
4038 ;;
4039 *)
4040 # If it is relative, then search for the first ld in PATH.
4041 with_gnu_ld=unknown
4042 ;;
4043 esac
4044elif test "$with_gnu_ld" = yes; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4046$as_echo_n "checking for GNU ld... " >&6; }
4047else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4049$as_echo_n "checking for non-GNU ld... " >&6; }
4050fi
d0ac1c44 4051if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
4052 $as_echo_n "(cached) " >&6
4053else
4054 if test -z "$LD"; then
4055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4056 for ac_dir in $PATH; do
4057 IFS="$lt_save_ifs"
4058 test -z "$ac_dir" && ac_dir=.
4059 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4060 lt_cv_path_LD="$ac_dir/$ac_prog"
4061 # Check to see if the program is GNU ld. I'd rather use --version,
4062 # but apparently some variants of GNU ld only accept -v.
4063 # Break only if it was the GNU/non-GNU ld that we prefer.
4064 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4065 *GNU* | *'with BFD'*)
4066 test "$with_gnu_ld" != no && break
4067 ;;
4068 *)
4069 test "$with_gnu_ld" != yes && break
4070 ;;
4071 esac
4072 fi
4073 done
4074 IFS="$lt_save_ifs"
4075else
4076 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4077fi
4078fi
4079
4080LD="$lt_cv_path_LD"
4081if test -n "$LD"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4083$as_echo "$LD" >&6; }
4084else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
4087fi
d0ac1c44 4088test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4090$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 4091if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
4092 $as_echo_n "(cached) " >&6
4093else
4094 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4095case `$LD -v 2>&1 </dev/null` in
4096*GNU* | *'with BFD'*)
4097 lt_cv_prog_gnu_ld=yes
4098 ;;
4099*)
4100 lt_cv_prog_gnu_ld=no
4101 ;;
4102esac
4103fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4105$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4106with_gnu_ld=$lt_cv_prog_gnu_ld
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4117$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 4118if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
4119 $as_echo_n "(cached) " >&6
4120else
4121 if test -n "$NM"; then
4122 # Let the user override the test.
4123 lt_cv_path_NM="$NM"
4124else
4125 lt_nm_to_check="${ac_tool_prefix}nm"
4126 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4127 lt_nm_to_check="$lt_nm_to_check nm"
4128 fi
4129 for lt_tmp_nm in $lt_nm_to_check; do
4130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4131 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4132 IFS="$lt_save_ifs"
4133 test -z "$ac_dir" && ac_dir=.
4134 tmp_nm="$ac_dir/$lt_tmp_nm"
4135 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4136 # Check to see if the nm accepts a BSD-compat flag.
4137 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4138 # nm: unknown option "B" ignored
4139 # Tru64's nm complains that /dev/null is an invalid object file
4140 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4141 */dev/null* | *'Invalid file or object type'*)
4142 lt_cv_path_NM="$tmp_nm -B"
4143 break
4144 ;;
4145 *)
4146 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4147 */dev/null*)
4148 lt_cv_path_NM="$tmp_nm -p"
4149 break
4150 ;;
4151 *)
4152 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4153 continue # so that we can try to find one that supports BSD flags
4154 ;;
4155 esac
4156 ;;
4157 esac
4158 fi
4159 done
4160 IFS="$lt_save_ifs"
4161 done
4162 : ${lt_cv_path_NM=no}
4163fi
4164fi
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4166$as_echo "$lt_cv_path_NM" >&6; }
4167if test "$lt_cv_path_NM" != "no"; then
4168 NM="$lt_cv_path_NM"
4169else
4170 # Didn't find any BSD compatible name lister, look for dumpbin.
4171 if test -n "$DUMPBIN"; then :
4172 # Let the user override the test.
4173 else
4174 if test -n "$ac_tool_prefix"; then
4175 for ac_prog in dumpbin "link -dump"
4176 do
4177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4181if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
4182 $as_echo_n "(cached) " >&6
4183else
4184 if test -n "$DUMPBIN"; then
4185 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4186else
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4194 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4197 fi
4198done
4199 done
4200IFS=$as_save_IFS
4201
4202fi
4203fi
4204DUMPBIN=$ac_cv_prog_DUMPBIN
4205if test -n "$DUMPBIN"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4207$as_echo "$DUMPBIN" >&6; }
4208else
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210$as_echo "no" >&6; }
4211fi
4212
4213
4214 test -n "$DUMPBIN" && break
4215 done
4216fi
4217if test -z "$DUMPBIN"; then
4218 ac_ct_DUMPBIN=$DUMPBIN
4219 for ac_prog in dumpbin "link -dump"
4220do
4221 # Extract the first word of "$ac_prog", so it can be a program name with args.
4222set dummy $ac_prog; ac_word=$2
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4225if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
4226 $as_echo_n "(cached) " >&6
4227else
4228 if test -n "$ac_ct_DUMPBIN"; then
4229 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4238 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242done
4243 done
4244IFS=$as_save_IFS
4245
4246fi
4247fi
4248ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4249if test -n "$ac_ct_DUMPBIN"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4251$as_echo "$ac_ct_DUMPBIN" >&6; }
4252else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254$as_echo "no" >&6; }
4255fi
4256
4257
4258 test -n "$ac_ct_DUMPBIN" && break
4259done
4260
4261 if test "x$ac_ct_DUMPBIN" = x; then
4262 DUMPBIN=":"
4263 else
4264 case $cross_compiling:$ac_tool_warned in
4265yes:)
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4268ac_tool_warned=yes ;;
4269esac
4270 DUMPBIN=$ac_ct_DUMPBIN
4271 fi
4272fi
4273
4274 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4275 *COFF*)
4276 DUMPBIN="$DUMPBIN -symbols"
4277 ;;
4278 *)
4279 DUMPBIN=:
4280 ;;
4281 esac
4282 fi
4283
4284 if test "$DUMPBIN" != ":"; then
4285 NM="$DUMPBIN"
4286 fi
4287fi
4288test -z "$NM" && NM=nm
4289
4290
4291
4292
4293
4294
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4296$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 4297if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
4298 $as_echo_n "(cached) " >&6
4299else
4300 lt_cv_nm_interface="BSD nm"
4301 echo "int some_variable = 0;" > conftest.$ac_ext
4302 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4303 (eval "$ac_compile" 2>conftest.err)
4304 cat conftest.err >&5
4305 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4306 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4307 cat conftest.err >&5
4308 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4309 cat conftest.out >&5
4310 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4311 lt_cv_nm_interface="MS dumpbin"
4312 fi
4313 rm -f conftest*
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4316$as_echo "$lt_cv_nm_interface" >&6; }
4317
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4319$as_echo_n "checking whether ln -s works... " >&6; }
4320LN_S=$as_ln_s
4321if test "$LN_S" = "ln -s"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4323$as_echo "yes" >&6; }
4324else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4326$as_echo "no, using $LN_S" >&6; }
4327fi
4328
4329# find the maximum length of command line arguments
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4331$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 4332if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
4333 $as_echo_n "(cached) " >&6
4334else
4335 i=0
4336 teststring="ABCD"
4337
4338 case $build_os in
4339 msdosdjgpp*)
4340 # On DJGPP, this test can blow up pretty badly due to problems in libc
4341 # (any single argument exceeding 2000 bytes causes a buffer overrun
4342 # during glob expansion). Even if it were fixed, the result of this
4343 # check would be larger than it should be.
4344 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4345 ;;
4346
4347 gnu*)
4348 # Under GNU Hurd, this test is not required because there is
4349 # no limit to the length of command line arguments.
4350 # Libtool will interpret -1 as no limit whatsoever
4351 lt_cv_sys_max_cmd_len=-1;
4352 ;;
4353
4354 cygwin* | mingw* | cegcc*)
4355 # On Win9x/ME, this test blows up -- it succeeds, but takes
4356 # about 5 minutes as the teststring grows exponentially.
4357 # Worse, since 9x/ME are not pre-emptively multitasking,
4358 # you end up with a "frozen" computer, even though with patience
4359 # the test eventually succeeds (with a max line length of 256k).
4360 # Instead, let's just punt: use the minimum linelength reported by
4361 # all of the supported platforms: 8192 (on NT/2K/XP).
4362 lt_cv_sys_max_cmd_len=8192;
4363 ;;
4364
4365 mint*)
4366 # On MiNT this can take a long time and run out of memory.
4367 lt_cv_sys_max_cmd_len=8192;
4368 ;;
4369
4370 amigaos*)
4371 # On AmigaOS with pdksh, this test takes hours, literally.
4372 # So we just punt and use a minimum line length of 8192.
4373 lt_cv_sys_max_cmd_len=8192;
4374 ;;
4375
4376 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4377 # This has been around since 386BSD, at least. Likely further.
4378 if test -x /sbin/sysctl; then
4379 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4380 elif test -x /usr/sbin/sysctl; then
4381 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4382 else
4383 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4384 fi
4385 # And add a safety zone
4386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4388 ;;
4389
4390 interix*)
4391 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4392 lt_cv_sys_max_cmd_len=196608
4393 ;;
4394
4395 osf*)
4396 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4397 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4398 # nice to cause kernel panics so lets avoid the loop below.
4399 # First set a reasonable default.
4400 lt_cv_sys_max_cmd_len=16384
4401 #
4402 if test -x /sbin/sysconfig; then
4403 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4404 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4405 esac
4406 fi
4407 ;;
4408 sco3.2v5*)
4409 lt_cv_sys_max_cmd_len=102400
4410 ;;
4411 sysv5* | sco5v6* | sysv4.2uw2*)
4412 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4413 if test -n "$kargmax"; then
4414 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4415 else
4416 lt_cv_sys_max_cmd_len=32768
4417 fi
4418 ;;
4419 *)
4420 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4421 if test -n "$lt_cv_sys_max_cmd_len"; then
4422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4424 else
4425 # Make teststring a little bigger before we do anything with it.
4426 # a 1K string should be a reasonable start.
4427 for i in 1 2 3 4 5 6 7 8 ; do
4428 teststring=$teststring$teststring
4429 done
4430 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4431 # If test is not a shell built-in, we'll probably end up computing a
4432 # maximum length that is only half of the actual maximum length, but
4433 # we can't tell.
4434 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4435 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4436 test $i != 17 # 1/2 MB should be enough
4437 do
4438 i=`expr $i + 1`
4439 teststring=$teststring$teststring
4440 done
4441 # Only check the string length outside the loop.
4442 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4443 teststring=
4444 # Add a significant safety factor because C++ compilers can tack on
4445 # massive amounts of additional arguments before passing them to the
4446 # linker. It appears as though 1/2 is a usable value.
4447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4448 fi
4449 ;;
4450 esac
4451
4452fi
4453
4454if test -n $lt_cv_sys_max_cmd_len ; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4456$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4457else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4459$as_echo "none" >&6; }
4460fi
4461max_cmd_len=$lt_cv_sys_max_cmd_len
4462
4463
4464
4465
4466
4467
4468: ${CP="cp -f"}
4469: ${MV="mv -f"}
4470: ${RM="rm -f"}
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4473$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4474# Try some XSI features
4475xsi_shell=no
4476( _lt_dummy="a/b/c"
4477 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4478 = c,a/b,, \
4479 && eval 'test $(( 1 + 1 )) -eq 2 \
4480 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4481 && xsi_shell=yes
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4483$as_echo "$xsi_shell" >&6; }
4484
4485
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4487$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4488lt_shell_append=no
4489( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4490 >/dev/null 2>&1 \
4491 && lt_shell_append=yes
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4493$as_echo "$lt_shell_append" >&6; }
4494
4495
4496if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4497 lt_unset=unset
4498else
4499 lt_unset=false
4500fi
4501
4502
4503
4504
4505
4506# test EBCDIC or ASCII
4507case `echo X|tr X '\101'` in
4508 A) # ASCII based system
4509 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4510 lt_SP2NL='tr \040 \012'
4511 lt_NL2SP='tr \015\012 \040\040'
4512 ;;
4513 *) # EBCDIC based system
4514 lt_SP2NL='tr \100 \n'
4515 lt_NL2SP='tr \r\n \100\100'
4516 ;;
4517esac
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4528$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 4529if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
4530 $as_echo_n "(cached) " >&6
4531else
4532 lt_cv_ld_reload_flag='-r'
4533fi
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4535$as_echo "$lt_cv_ld_reload_flag" >&6; }
4536reload_flag=$lt_cv_ld_reload_flag
4537case $reload_flag in
4538"" | " "*) ;;
4539*) reload_flag=" $reload_flag" ;;
4540esac
4541reload_cmds='$LD$reload_flag -o $output$reload_objs'
4542case $host_os in
4543 darwin*)
4544 if test "$GCC" = yes; then
4545 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4546 else
4547 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4548 fi
4549 ;;
4550esac
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4562set dummy ${ac_tool_prefix}objdump; ac_word=$2
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4565if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
4566 $as_echo_n "(cached) " >&6
4567else
4568 if test -n "$OBJDUMP"; then
4569 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4578 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4581 fi
4582done
4583 done
4584IFS=$as_save_IFS
4585
4586fi
4587fi
4588OBJDUMP=$ac_cv_prog_OBJDUMP
4589if test -n "$OBJDUMP"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4591$as_echo "$OBJDUMP" >&6; }
4592else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594$as_echo "no" >&6; }
4595fi
4596
4597
4598fi
4599if test -z "$ac_cv_prog_OBJDUMP"; then
4600 ac_ct_OBJDUMP=$OBJDUMP
4601 # Extract the first word of "objdump", so it can be a program name with args.
4602set dummy objdump; ac_word=$2
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4605if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
4606 $as_echo_n "(cached) " >&6
4607else
4608 if test -n "$ac_ct_OBJDUMP"; then
4609 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4618 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622done
4623 done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4629if test -n "$ac_ct_OBJDUMP"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4631$as_echo "$ac_ct_OBJDUMP" >&6; }
4632else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634$as_echo "no" >&6; }
4635fi
4636
4637 if test "x$ac_ct_OBJDUMP" = x; then
4638 OBJDUMP="false"
4639 else
4640 case $cross_compiling:$ac_tool_warned in
4641yes:)
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644ac_tool_warned=yes ;;
4645esac
4646 OBJDUMP=$ac_ct_OBJDUMP
4647 fi
4648else
4649 OBJDUMP="$ac_cv_prog_OBJDUMP"
4650fi
4651
4652test -z "$OBJDUMP" && OBJDUMP=objdump
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4663$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 4664if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
4665 $as_echo_n "(cached) " >&6
4666else
4667 lt_cv_file_magic_cmd='$MAGIC_CMD'
4668lt_cv_file_magic_test_file=
4669lt_cv_deplibs_check_method='unknown'
4670# Need to set the preceding variable on all platforms that support
4671# interlibrary dependencies.
4672# 'none' -- dependencies not supported.
4673# `unknown' -- same as none, but documents that we really don't know.
4674# 'pass_all' -- all dependencies passed with no checks.
4675# 'test_compile' -- check by making test program.
4676# 'file_magic [[regex]]' -- check by looking for files in library path
4677# which responds to the $file_magic_cmd with a given extended regex.
4678# If you have `file' or equivalent on your system and you're not sure
4679# whether `pass_all' will *always* work, you probably want this one.
4680
4681case $host_os in
4682aix[4-9]*)
4683 lt_cv_deplibs_check_method=pass_all
4684 ;;
4685
4686beos*)
4687 lt_cv_deplibs_check_method=pass_all
4688 ;;
4689
4690bsdi[45]*)
4691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4692 lt_cv_file_magic_cmd='/usr/bin/file -L'
4693 lt_cv_file_magic_test_file=/shlib/libc.so
4694 ;;
4695
4696cygwin*)
4697 # func_win32_libid is a shell function defined in ltmain.sh
4698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4699 lt_cv_file_magic_cmd='func_win32_libid'
4700 ;;
4701
4702mingw* | pw32*)
4703 # Base MSYS/MinGW do not provide the 'file' command needed by
4704 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4705 # unless we find 'file', for example because we are cross-compiling.
4706 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4707 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4708 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4709 lt_cv_file_magic_cmd='func_win32_libid'
4710 else
4711 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4712 lt_cv_file_magic_cmd='$OBJDUMP -f'
4713 fi
4714 ;;
4715
4716cegcc*)
4717 # use the weaker test based on 'objdump'. See mingw*.
4718 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4719 lt_cv_file_magic_cmd='$OBJDUMP -f'
4720 ;;
4721
4722darwin* | rhapsody*)
4723 lt_cv_deplibs_check_method=pass_all
4724 ;;
4725
4726freebsd* | dragonfly*)
4727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4728 case $host_cpu in
4729 i*86 )
4730 # Not sure whether the presence of OpenBSD here was a mistake.
4731 # Let's accept both of them until this is cleared up.
4732 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4733 lt_cv_file_magic_cmd=/usr/bin/file
4734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4735 ;;
4736 esac
4737 else
4738 lt_cv_deplibs_check_method=pass_all
4739 fi
4740 ;;
4741
4742gnu*)
4743 lt_cv_deplibs_check_method=pass_all
4744 ;;
4745
4746haiku*)
4747 lt_cv_deplibs_check_method=pass_all
4748 ;;
4749
4750hpux10.20* | hpux11*)
4751 lt_cv_file_magic_cmd=/usr/bin/file
4752 case $host_cpu in
4753 ia64*)
4754 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4755 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4756 ;;
4757 hppa*64*)
4758 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]'
4759 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4760 ;;
4761 *)
4762 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4763 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4764 ;;
4765 esac
4766 ;;
4767
4768interix[3-9]*)
4769 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4771 ;;
4772
4773irix5* | irix6* | nonstopux*)
4774 case $LD in
4775 *-32|*"-32 ") libmagic=32-bit;;
4776 *-n32|*"-n32 ") libmagic=N32;;
4777 *-64|*"-64 ") libmagic=64-bit;;
4778 *) libmagic=never-match;;
4779 esac
4780 lt_cv_deplibs_check_method=pass_all
4781 ;;
4782
4783# This must be Linux ELF.
4784linux* | k*bsd*-gnu | kopensolaris*-gnu)
4785 lt_cv_deplibs_check_method=pass_all
4786 ;;
4787
4788netbsd*)
4789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4791 else
4792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4793 fi
4794 ;;
4795
4796newos6*)
4797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4798 lt_cv_file_magic_cmd=/usr/bin/file
4799 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4800 ;;
4801
4802*nto* | *qnx*)
4803 lt_cv_deplibs_check_method=pass_all
4804 ;;
4805
4806openbsd*)
4807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4809 else
4810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4811 fi
4812 ;;
4813
4814osf3* | osf4* | osf5*)
4815 lt_cv_deplibs_check_method=pass_all
4816 ;;
4817
4818rdos*)
4819 lt_cv_deplibs_check_method=pass_all
4820 ;;
4821
4822solaris*)
4823 lt_cv_deplibs_check_method=pass_all
4824 ;;
4825
4826sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4827 lt_cv_deplibs_check_method=pass_all
4828 ;;
4829
4830sysv4 | sysv4.3*)
4831 case $host_vendor in
4832 motorola)
4833 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]'
4834 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4835 ;;
4836 ncr)
4837 lt_cv_deplibs_check_method=pass_all
4838 ;;
4839 sequent)
4840 lt_cv_file_magic_cmd='/bin/file'
4841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4842 ;;
4843 sni)
4844 lt_cv_file_magic_cmd='/bin/file'
4845 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4846 lt_cv_file_magic_test_file=/lib/libc.so
4847 ;;
4848 siemens)
4849 lt_cv_deplibs_check_method=pass_all
4850 ;;
4851 pc)
4852 lt_cv_deplibs_check_method=pass_all
4853 ;;
4854 esac
4855 ;;
4856
4857tpf*)
4858 lt_cv_deplibs_check_method=pass_all
4859 ;;
4860esac
4861
4862fi
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4864$as_echo "$lt_cv_deplibs_check_method" >&6; }
4865file_magic_cmd=$lt_cv_file_magic_cmd
4866deplibs_check_method=$lt_cv_deplibs_check_method
4867test -z "$deplibs_check_method" && deplibs_check_method=unknown
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
68ed2854
MF
4880plugin_option=
4881plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
4882for plugin in $plugin_names; do
4883 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
4884 if test x$plugin_so = x$plugin; then
4885 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
4886 fi
4887 if test x$plugin_so != x$plugin; then
4888 plugin_option="--plugin $plugin_so"
4889 break
4890 fi
4891done
4892
6bb11ab3
L
4893if test -n "$ac_tool_prefix"; then
4894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4895set dummy ${ac_tool_prefix}ar; ac_word=$2
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4898if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
4899 $as_echo_n "(cached) " >&6
4900else
4901 if test -n "$AR"; then
4902 ac_cv_prog_AR="$AR" # Let the user override the test.
4903else
4904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4911 ac_cv_prog_AR="${ac_tool_prefix}ar"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4914 fi
4915done
4916 done
4917IFS=$as_save_IFS
4918
4919fi
4920fi
4921AR=$ac_cv_prog_AR
4922if test -n "$AR"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4924$as_echo "$AR" >&6; }
4925else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927$as_echo "no" >&6; }
4928fi
4929
4930
4931fi
4932if test -z "$ac_cv_prog_AR"; then
4933 ac_ct_AR=$AR
4934 # Extract the first word of "ar", so it can be a program name with args.
4935set dummy ar; ac_word=$2
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4938if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
4939 $as_echo_n "(cached) " >&6
4940else
4941 if test -n "$ac_ct_AR"; then
4942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4943else
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4951 ac_cv_prog_ac_ct_AR="ar"
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4954 fi
4955done
4956 done
4957IFS=$as_save_IFS
4958
4959fi
4960fi
4961ac_ct_AR=$ac_cv_prog_ac_ct_AR
4962if test -n "$ac_ct_AR"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4964$as_echo "$ac_ct_AR" >&6; }
4965else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967$as_echo "no" >&6; }
4968fi
4969
4970 if test "x$ac_ct_AR" = x; then
4971 AR="false"
4972 else
4973 case $cross_compiling:$ac_tool_warned in
4974yes:)
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4977ac_tool_warned=yes ;;
4978esac
4979 AR=$ac_ct_AR
4980 fi
4981else
4982 AR="$ac_cv_prog_AR"
4983fi
4984
4985test -z "$AR" && AR=ar
68ed2854
MF
4986if test -n "$plugin_option"; then
4987 if $AR --help 2>&1 | grep -q "\--plugin"; then
aa09469f
MF
4988 touch conftest.c
4989 $AR $plugin_option rc conftest.a conftest.c
4990 if test "$?" != 0; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
4992$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
4993 else
4994 AR="$AR $plugin_option"
4995 fi
4996 rm -f conftest.*
68ed2854
MF
4997 fi
4998fi
6bb11ab3
L
4999test -z "$AR_FLAGS" && AR_FLAGS=cru
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5013set dummy ${ac_tool_prefix}strip; ac_word=$2
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5016if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
5017 $as_echo_n "(cached) " >&6
5018else
5019 if test -n "$STRIP"; then
5020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5021else
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5029 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5032 fi
5033done
5034 done
5035IFS=$as_save_IFS
5036
5037fi
5038fi
5039STRIP=$ac_cv_prog_STRIP
5040if test -n "$STRIP"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5042$as_echo "$STRIP" >&6; }
5043else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045$as_echo "no" >&6; }
5046fi
5047
5048
5049fi
5050if test -z "$ac_cv_prog_STRIP"; then
5051 ac_ct_STRIP=$STRIP
5052 # Extract the first word of "strip", so it can be a program name with args.
5053set dummy strip; ac_word=$2
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5056if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
5057 $as_echo_n "(cached) " >&6
5058else
5059 if test -n "$ac_ct_STRIP"; then
5060 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5061else
5062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063for as_dir in $PATH
5064do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5069 ac_cv_prog_ac_ct_STRIP="strip"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5072 fi
5073done
5074 done
5075IFS=$as_save_IFS
5076
5077fi
5078fi
5079ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5080if test -n "$ac_ct_STRIP"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5082$as_echo "$ac_ct_STRIP" >&6; }
5083else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085$as_echo "no" >&6; }
5086fi
5087
5088 if test "x$ac_ct_STRIP" = x; then
5089 STRIP=":"
5090 else
5091 case $cross_compiling:$ac_tool_warned in
5092yes:)
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5095ac_tool_warned=yes ;;
5096esac
5097 STRIP=$ac_ct_STRIP
5098 fi
5099else
5100 STRIP="$ac_cv_prog_STRIP"
5101fi
5102
5103test -z "$STRIP" && STRIP=:
5104
5105
5106
5107
5108
5109
5110if test -n "$ac_tool_prefix"; then
5111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5112set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5115if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
5116 $as_echo_n "(cached) " >&6
5117else
5118 if test -n "$RANLIB"; then
5119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132done
5133 done
5134IFS=$as_save_IFS
5135
5136fi
5137fi
5138RANLIB=$ac_cv_prog_RANLIB
5139if test -n "$RANLIB"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5141$as_echo "$RANLIB" >&6; }
5142else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145fi
5146
5147
5148fi
5149if test -z "$ac_cv_prog_RANLIB"; then
5150 ac_ct_RANLIB=$RANLIB
5151 # Extract the first word of "ranlib", so it can be a program name with args.
5152set dummy ranlib; ac_word=$2
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5155if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
5156 $as_echo_n "(cached) " >&6
5157else
5158 if test -n "$ac_ct_RANLIB"; then
5159 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5168 ac_cv_prog_ac_ct_RANLIB="ranlib"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172done
5173 done
5174IFS=$as_save_IFS
5175
5176fi
5177fi
5178ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5179if test -n "$ac_ct_RANLIB"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5181$as_echo "$ac_ct_RANLIB" >&6; }
5182else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184$as_echo "no" >&6; }
5185fi
5186
5187 if test "x$ac_ct_RANLIB" = x; then
5188 RANLIB=":"
5189 else
5190 case $cross_compiling:$ac_tool_warned in
5191yes:)
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5194ac_tool_warned=yes ;;
5195esac
5196 RANLIB=$ac_ct_RANLIB
5197 fi
5198else
5199 RANLIB="$ac_cv_prog_RANLIB"
5200fi
5201
5202test -z "$RANLIB" && RANLIB=:
68ed2854
MF
5203if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5204 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5205 RANLIB="$RANLIB $plugin_option"
5206 fi
5207fi
6bb11ab3
L
5208
5209
5210
5211
5212
5213
5214# Determine commands to create old-style static archives.
5215old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5216old_postinstall_cmds='chmod 644 $oldlib'
5217old_postuninstall_cmds=
5218
5219if test -n "$RANLIB"; then
5220 case $host_os in
5221 openbsd*)
5222 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5223 ;;
5224 *)
5225 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5226 ;;
5227 esac
5228 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5229fi
5230
5231case $host_os in
5232 darwin*)
5233 lock_old_archive_extraction=yes ;;
5234 *)
5235 lock_old_archive_extraction=no ;;
5236esac
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258for ac_prog in gawk mawk nawk awk
5259do
5260 # Extract the first word of "$ac_prog", so it can be a program name with args.
5261set dummy $ac_prog; ac_word=$2
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5264if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
5265 $as_echo_n "(cached) " >&6
5266else
5267 if test -n "$AWK"; then
5268 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5277 ac_cv_prog_AWK="$ac_prog"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281done
5282 done
5283IFS=$as_save_IFS
5284
5285fi
5286fi
5287AWK=$ac_cv_prog_AWK
5288if test -n "$AWK"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5290$as_echo "$AWK" >&6; }
5291else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293$as_echo "no" >&6; }
5294fi
5295
5296
5297 test -n "$AWK" && break
5298done
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318# If no C compiler was specified, use CC.
5319LTCC=${LTCC-"$CC"}
5320
5321# If no C compiler flags were specified, use CFLAGS.
5322LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5323
5324# Allow CC to be a program name with arguments.
5325compiler=$CC
5326
5327
5328# Check for command to grab the raw symbol name followed by C symbol from nm.
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5330$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 5331if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
5332 $as_echo_n "(cached) " >&6
5333else
5334
5335# These are sane defaults that work on at least a few old systems.
5336# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5337
5338# Character class describing NM global symbol codes.
5339symcode='[BCDEGRST]'
5340
5341# Regexp to match symbols that can be accessed directly from C.
5342sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5343
5344# Define system-specific variables.
5345case $host_os in
5346aix*)
5347 symcode='[BCDT]'
5348 ;;
5349cygwin* | mingw* | pw32* | cegcc*)
5350 symcode='[ABCDGISTW]'
5351 ;;
5352hpux*)
5353 if test "$host_cpu" = ia64; then
5354 symcode='[ABCDEGRST]'
5355 fi
5356 ;;
5357irix* | nonstopux*)
5358 symcode='[BCDEGRST]'
5359 ;;
5360osf*)
5361 symcode='[BCDEGQRST]'
5362 ;;
5363solaris*)
5364 symcode='[BDRT]'
5365 ;;
5366sco3.2v5*)
5367 symcode='[DT]'
5368 ;;
5369sysv4.2uw2*)
5370 symcode='[DT]'
5371 ;;
5372sysv5* | sco5v6* | unixware* | OpenUNIX*)
5373 symcode='[ABDT]'
5374 ;;
5375sysv4)
5376 symcode='[DFNSTU]'
5377 ;;
5378esac
5379
5380# If we're using GNU nm, then use its standard symbol codes.
5381case `$NM -V 2>&1` in
5382*GNU* | *'with BFD'*)
5383 symcode='[ABCDGIRSTW]' ;;
5384esac
5385
5386# Transform an extracted symbol line into a proper C declaration.
5387# Some systems (esp. on ia64) link data and code symbols differently,
5388# so use this general approach.
5389lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5390
5391# Transform an extracted symbol line into symbol name and symbol address
5392lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5393lt_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'"
5394
5395# Handle CRLF in mingw tool chain
5396opt_cr=
5397case $build_os in
5398mingw*)
5399 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5400 ;;
5401esac
5402
5403# Try without a prefix underscore, then with it.
5404for ac_symprfx in "" "_"; do
5405
5406 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5407 symxfrm="\\1 $ac_symprfx\\2 \\2"
5408
5409 # Write the raw and C identifiers.
5410 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5411 # Fake it for dumpbin and say T for any non-static function
5412 # and D for any global variable.
5413 # Also find C++ and __fastcall symbols from MSVC++,
5414 # which start with @ or ?.
5415 lt_cv_sys_global_symbol_pipe="$AWK '"\
5416" {last_section=section; section=\$ 3};"\
5417" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5418" \$ 0!~/External *\|/{next};"\
5419" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5420" {if(hide[section]) next};"\
5421" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5422" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5423" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5424" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5425" ' prfx=^$ac_symprfx"
5426 else
5427 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5428 fi
5429
5430 # Check to see that the pipe works correctly.
5431 pipe_works=no
5432
5433 rm -f conftest*
5434 cat > conftest.$ac_ext <<_LT_EOF
5435#ifdef __cplusplus
5436extern "C" {
5437#endif
5438char nm_test_var;
5439void nm_test_func(void);
5440void nm_test_func(void){}
5441#ifdef __cplusplus
5442}
5443#endif
5444int main(){nm_test_var='a';nm_test_func();return(0);}
5445_LT_EOF
5446
5447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5448 (eval $ac_compile) 2>&5
5449 ac_status=$?
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }; then
5452 # Now try to grab the symbols.
5453 nlist=conftest.nm
5454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5455 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5456 ac_status=$?
5457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5458 test $ac_status = 0; } && test -s "$nlist"; then
5459 # Try sorting and uniquifying the output.
5460 if sort "$nlist" | uniq > "$nlist"T; then
5461 mv -f "$nlist"T "$nlist"
5462 else
5463 rm -f "$nlist"T
5464 fi
5465
5466 # Make sure that we snagged all the symbols we need.
5467 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5468 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5469 cat <<_LT_EOF > conftest.$ac_ext
5470#ifdef __cplusplus
5471extern "C" {
5472#endif
5473
5474_LT_EOF
5475 # Now generate the symbol file.
5476 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5477
5478 cat <<_LT_EOF >> conftest.$ac_ext
5479
5480/* The mapping between symbol names and symbols. */
5481const struct {
5482 const char *name;
5483 void *address;
5484}
5485lt__PROGRAM__LTX_preloaded_symbols[] =
5486{
5487 { "@PROGRAM@", (void *) 0 },
5488_LT_EOF
5489 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5490 cat <<\_LT_EOF >> conftest.$ac_ext
5491 {0, (void *) 0}
5492};
5493
5494/* This works around a problem in FreeBSD linker */
5495#ifdef FREEBSD_WORKAROUND
5496static const void *lt_preloaded_setup() {
5497 return lt__PROGRAM__LTX_preloaded_symbols;
5498}
5499#endif
5500
5501#ifdef __cplusplus
5502}
5503#endif
5504_LT_EOF
5505 # Now try linking the two files.
5506 mv conftest.$ac_objext conftstm.$ac_objext
5507 lt_save_LIBS="$LIBS"
5508 lt_save_CFLAGS="$CFLAGS"
5509 LIBS="conftstm.$ac_objext"
5510 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5512 (eval $ac_link) 2>&5
5513 ac_status=$?
5514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5515 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5516 pipe_works=yes
5517 fi
5518 LIBS="$lt_save_LIBS"
5519 CFLAGS="$lt_save_CFLAGS"
5520 else
5521 echo "cannot find nm_test_func in $nlist" >&5
5522 fi
5523 else
5524 echo "cannot find nm_test_var in $nlist" >&5
5525 fi
5526 else
5527 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5528 fi
5529 else
5530 echo "$progname: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5532 fi
5533 rm -rf conftest* conftst*
5534
5535 # Do not use the global_symbol_pipe unless it works.
5536 if test "$pipe_works" = yes; then
5537 break
5538 else
5539 lt_cv_sys_global_symbol_pipe=
5540 fi
5541done
5542
5543fi
5544
5545if test -z "$lt_cv_sys_global_symbol_pipe"; then
5546 lt_cv_sys_global_symbol_to_cdecl=
5547fi
5548if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5550$as_echo "failed" >&6; }
5551else
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5553$as_echo "ok" >&6; }
5554fi
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577# Check whether --enable-libtool-lock was given.
5578if test "${enable_libtool_lock+set}" = set; then :
5579 enableval=$enable_libtool_lock;
5580fi
5581
5582test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5583
5584# Some flags need to be propagated to the compiler or linker for good
5585# libtool support.
5586case $host in
5587ia64-*-hpux*)
5588 # Find out which ABI we are using.
5589 echo 'int i;' > conftest.$ac_ext
5590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5591 (eval $ac_compile) 2>&5
5592 ac_status=$?
5593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5594 test $ac_status = 0; }; then
5595 case `/usr/bin/file conftest.$ac_objext` in
5596 *ELF-32*)
5597 HPUX_IA64_MODE="32"
5598 ;;
5599 *ELF-64*)
5600 HPUX_IA64_MODE="64"
5601 ;;
5602 esac
5603 fi
5604 rm -rf conftest*
5605 ;;
5606*-*-irix6*)
5607 # Find out which ABI we are using.
5608 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5610 (eval $ac_compile) 2>&5
5611 ac_status=$?
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; }; then
5614 if test "$lt_cv_prog_gnu_ld" = yes; then
5615 case `/usr/bin/file conftest.$ac_objext` in
5616 *32-bit*)
5617 LD="${LD-ld} -melf32bsmip"
5618 ;;
5619 *N32*)
5620 LD="${LD-ld} -melf32bmipn32"
5621 ;;
5622 *64-bit*)
5623 LD="${LD-ld} -melf64bmip"
5624 ;;
5625 esac
5626 else
5627 case `/usr/bin/file conftest.$ac_objext` in
5628 *32-bit*)
5629 LD="${LD-ld} -32"
5630 ;;
5631 *N32*)
5632 LD="${LD-ld} -n32"
5633 ;;
5634 *64-bit*)
5635 LD="${LD-ld} -64"
5636 ;;
5637 esac
5638 fi
5639 fi
5640 rm -rf conftest*
5641 ;;
5642
bf3d9781 5643x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
5644s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5645 # Find out which ABI we are using.
5646 echo 'int i;' > conftest.$ac_ext
5647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5648 (eval $ac_compile) 2>&5
5649 ac_status=$?
5650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5651 test $ac_status = 0; }; then
5652 case `/usr/bin/file conftest.o` in
5653 *32-bit*)
5654 case $host in
5655 x86_64-*kfreebsd*-gnu)
5656 LD="${LD-ld} -m elf_i386_fbsd"
5657 ;;
5658 x86_64-*linux*)
5659 case `/usr/bin/file conftest.o` in
5660 *x86-64*)
5661 LD="${LD-ld} -m elf32_x86_64"
5662 ;;
5663 *)
5664 LD="${LD-ld} -m elf_i386"
5665 ;;
5666 esac
5667 ;;
bf3d9781
AM
5668 powerpc64le-*linux*)
5669 LD="${LD-ld} -m elf32lppclinux"
5670 ;;
5671 powerpc64-*linux*)
6bb11ab3
L
5672 LD="${LD-ld} -m elf32ppclinux"
5673 ;;
5674 s390x-*linux*)
5675 LD="${LD-ld} -m elf_s390"
5676 ;;
5677 sparc64-*linux*)
5678 LD="${LD-ld} -m elf32_sparc"
5679 ;;
5680 esac
5681 ;;
5682 *64-bit*)
5683 case $host in
5684 x86_64-*kfreebsd*-gnu)
5685 LD="${LD-ld} -m elf_x86_64_fbsd"
5686 ;;
5687 x86_64-*linux*)
5688 LD="${LD-ld} -m elf_x86_64"
5689 ;;
bf3d9781
AM
5690 powerpcle-*linux*)
5691 LD="${LD-ld} -m elf64lppc"
5692 ;;
5693 powerpc-*linux*)
6bb11ab3
L
5694 LD="${LD-ld} -m elf64ppc"
5695 ;;
5696 s390*-*linux*|s390*-*tpf*)
5697 LD="${LD-ld} -m elf64_s390"
5698 ;;
5699 sparc*-*linux*)
5700 LD="${LD-ld} -m elf64_sparc"
5701 ;;
5702 esac
5703 ;;
5704 esac
5705 fi
5706 rm -rf conftest*
5707 ;;
5708
5709*-*-sco3.2v5*)
5710 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5711 SAVE_CFLAGS="$CFLAGS"
5712 CFLAGS="$CFLAGS -belf"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5714$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 5715if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
5716 $as_echo_n "(cached) " >&6
5717else
5718 ac_ext=c
5719ac_cpp='$CPP $CPPFLAGS'
5720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725/* end confdefs.h. */
5726
5727int
5728main ()
5729{
5730
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735if ac_fn_c_try_link "$LINENO"; then :
5736 lt_cv_cc_needs_belf=yes
5737else
5738 lt_cv_cc_needs_belf=no
5739fi
5740rm -f core conftest.err conftest.$ac_objext \
5741 conftest$ac_exeext conftest.$ac_ext
5742 ac_ext=c
5743ac_cpp='$CPP $CPPFLAGS'
5744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747
5748fi
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5750$as_echo "$lt_cv_cc_needs_belf" >&6; }
5751 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5752 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5753 CFLAGS="$SAVE_CFLAGS"
5754 fi
5755 ;;
5756sparc*-*solaris*)
5757 # Find out which ABI we are using.
5758 echo 'int i;' > conftest.$ac_ext
5759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5760 (eval $ac_compile) 2>&5
5761 ac_status=$?
5762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5763 test $ac_status = 0; }; then
5764 case `/usr/bin/file conftest.o` in
5765 *64-bit*)
5766 case $lt_cv_prog_gnu_ld in
5767 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5768 *)
5769 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5770 LD="${LD-ld} -64"
5771 fi
5772 ;;
5773 esac
5774 ;;
5775 esac
5776 fi
5777 rm -rf conftest*
5778 ;;
5779esac
5780
5781need_locks="$enable_libtool_lock"
5782
5783
5784 case $host_os in
5785 rhapsody* | darwin*)
5786 if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5788set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5791if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
5792 $as_echo_n "(cached) " >&6
5793else
5794 if test -n "$DSYMUTIL"; then
5795 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5796else
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5804 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808done
5809 done
5810IFS=$as_save_IFS
5811
5812fi
5813fi
5814DSYMUTIL=$ac_cv_prog_DSYMUTIL
5815if test -n "$DSYMUTIL"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5817$as_echo "$DSYMUTIL" >&6; }
5818else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820$as_echo "no" >&6; }
5821fi
5822
5823
5824fi
5825if test -z "$ac_cv_prog_DSYMUTIL"; then
5826 ac_ct_DSYMUTIL=$DSYMUTIL
5827 # Extract the first word of "dsymutil", so it can be a program name with args.
5828set dummy dsymutil; ac_word=$2
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5831if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
5832 $as_echo_n "(cached) " >&6
5833else
5834 if test -n "$ac_ct_DSYMUTIL"; then
5835 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5836else
5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5844 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5847 fi
5848done
5849 done
5850IFS=$as_save_IFS
5851
5852fi
5853fi
5854ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5855if test -n "$ac_ct_DSYMUTIL"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5857$as_echo "$ac_ct_DSYMUTIL" >&6; }
5858else
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860$as_echo "no" >&6; }
5861fi
5862
5863 if test "x$ac_ct_DSYMUTIL" = x; then
5864 DSYMUTIL=":"
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867yes:)
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5870ac_tool_warned=yes ;;
5871esac
5872 DSYMUTIL=$ac_ct_DSYMUTIL
5873 fi
5874else
5875 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5876fi
5877
5878 if test -n "$ac_tool_prefix"; then
5879 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5880set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5883if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
5884 $as_echo_n "(cached) " >&6
5885else
5886 if test -n "$NMEDIT"; then
5887 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5896 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900done
5901 done
5902IFS=$as_save_IFS
5903
5904fi
5905fi
5906NMEDIT=$ac_cv_prog_NMEDIT
5907if test -n "$NMEDIT"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5909$as_echo "$NMEDIT" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
5914
5915
5916fi
5917if test -z "$ac_cv_prog_NMEDIT"; then
5918 ac_ct_NMEDIT=$NMEDIT
5919 # Extract the first word of "nmedit", so it can be a program name with args.
5920set dummy nmedit; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5923if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
5924 $as_echo_n "(cached) " >&6
5925else
5926 if test -n "$ac_ct_NMEDIT"; then
5927 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5936 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941 done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5947if test -n "$ac_ct_NMEDIT"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5949$as_echo "$ac_ct_NMEDIT" >&6; }
5950else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955 if test "x$ac_ct_NMEDIT" = x; then
5956 NMEDIT=":"
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959yes:)
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962ac_tool_warned=yes ;;
5963esac
5964 NMEDIT=$ac_ct_NMEDIT
5965 fi
5966else
5967 NMEDIT="$ac_cv_prog_NMEDIT"
5968fi
5969
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5972set dummy ${ac_tool_prefix}lipo; ac_word=$2
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5975if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
5976 $as_echo_n "(cached) " >&6
5977else
5978 if test -n "$LIPO"; then
5979 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5980else
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5988 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992done
5993 done
5994IFS=$as_save_IFS
5995
5996fi
5997fi
5998LIPO=$ac_cv_prog_LIPO
5999if test -n "$LIPO"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6001$as_echo "$LIPO" >&6; }
6002else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004$as_echo "no" >&6; }
6005fi
6006
6007
6008fi
6009if test -z "$ac_cv_prog_LIPO"; then
6010 ac_ct_LIPO=$LIPO
6011 # Extract the first word of "lipo", so it can be a program name with args.
6012set dummy lipo; ac_word=$2
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6015if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
6016 $as_echo_n "(cached) " >&6
6017else
6018 if test -n "$ac_ct_LIPO"; then
6019 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6028 ac_cv_prog_ac_ct_LIPO="lipo"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033 done
6034IFS=$as_save_IFS
6035
6036fi
6037fi
6038ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6039if test -n "$ac_ct_LIPO"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6041$as_echo "$ac_ct_LIPO" >&6; }
6042else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044$as_echo "no" >&6; }
6045fi
6046
6047 if test "x$ac_ct_LIPO" = x; then
6048 LIPO=":"
6049 else
6050 case $cross_compiling:$ac_tool_warned in
6051yes:)
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054ac_tool_warned=yes ;;
6055esac
6056 LIPO=$ac_ct_LIPO
6057 fi
6058else
6059 LIPO="$ac_cv_prog_LIPO"
6060fi
6061
6062 if test -n "$ac_tool_prefix"; then
6063 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6064set dummy ${ac_tool_prefix}otool; ac_word=$2
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6067if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
6068 $as_echo_n "(cached) " >&6
6069else
6070 if test -n "$OTOOL"; then
6071 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6072else
6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074for as_dir in $PATH
6075do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6080 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084done
6085 done
6086IFS=$as_save_IFS
6087
6088fi
6089fi
6090OTOOL=$ac_cv_prog_OTOOL
6091if test -n "$OTOOL"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6093$as_echo "$OTOOL" >&6; }
6094else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096$as_echo "no" >&6; }
6097fi
6098
6099
6100fi
6101if test -z "$ac_cv_prog_OTOOL"; then
6102 ac_ct_OTOOL=$OTOOL
6103 # Extract the first word of "otool", so it can be a program name with args.
6104set dummy otool; ac_word=$2
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6107if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
6108 $as_echo_n "(cached) " >&6
6109else
6110 if test -n "$ac_ct_OTOOL"; then
6111 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6120 ac_cv_prog_ac_ct_OTOOL="otool"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124done
6125 done
6126IFS=$as_save_IFS
6127
6128fi
6129fi
6130ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6131if test -n "$ac_ct_OTOOL"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6133$as_echo "$ac_ct_OTOOL" >&6; }
6134else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136$as_echo "no" >&6; }
6137fi
6138
6139 if test "x$ac_ct_OTOOL" = x; then
6140 OTOOL=":"
6141 else
6142 case $cross_compiling:$ac_tool_warned in
6143yes:)
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146ac_tool_warned=yes ;;
6147esac
6148 OTOOL=$ac_ct_OTOOL
6149 fi
6150else
6151 OTOOL="$ac_cv_prog_OTOOL"
6152fi
6153
6154 if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6156set dummy ${ac_tool_prefix}otool64; ac_word=$2
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6159if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
6160 $as_echo_n "(cached) " >&6
6161else
6162 if test -n "$OTOOL64"; then
6163 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6172 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176done
6177 done
6178IFS=$as_save_IFS
6179
6180fi
6181fi
6182OTOOL64=$ac_cv_prog_OTOOL64
6183if test -n "$OTOOL64"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6185$as_echo "$OTOOL64" >&6; }
6186else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
6189fi
6190
6191
6192fi
6193if test -z "$ac_cv_prog_OTOOL64"; then
6194 ac_ct_OTOOL64=$OTOOL64
6195 # Extract the first word of "otool64", so it can be a program name with args.
6196set dummy otool64; ac_word=$2
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6199if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
6200 $as_echo_n "(cached) " >&6
6201else
6202 if test -n "$ac_ct_OTOOL64"; then
6203 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6212 ac_cv_prog_ac_ct_OTOOL64="otool64"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216done
6217 done
6218IFS=$as_save_IFS
6219
6220fi
6221fi
6222ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6223if test -n "$ac_ct_OTOOL64"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6225$as_echo "$ac_ct_OTOOL64" >&6; }
6226else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228$as_echo "no" >&6; }
6229fi
6230
6231 if test "x$ac_ct_OTOOL64" = x; then
6232 OTOOL64=":"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235yes:)
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238ac_tool_warned=yes ;;
6239esac
6240 OTOOL64=$ac_ct_OTOOL64
6241 fi
6242else
6243 OTOOL64="$ac_cv_prog_OTOOL64"
6244fi
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6273$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 6274if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
6275 $as_echo_n "(cached) " >&6
6276else
6277 lt_cv_apple_cc_single_mod=no
6278 if test -z "${LT_MULTI_MODULE}"; then
6279 # By default we will add the -single_module flag. You can override
6280 # by either setting the environment variable LT_MULTI_MODULE
6281 # non-empty at configure time, or by adding -multi_module to the
6282 # link flags.
6283 rm -rf libconftest.dylib*
6284 echo "int foo(void){return 1;}" > conftest.c
6285 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6286-dynamiclib -Wl,-single_module conftest.c" >&5
6287 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6288 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6289 _lt_result=$?
6290 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6291 lt_cv_apple_cc_single_mod=yes
6292 else
6293 cat conftest.err >&5
6294 fi
6295 rm -rf libconftest.dylib*
6296 rm -f conftest.*
6297 fi
6298fi
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6300$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6302$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 6303if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
6304 $as_echo_n "(cached) " >&6
6305else
6306 lt_cv_ld_exported_symbols_list=no
6307 save_LDFLAGS=$LDFLAGS
6308 echo "_main" > conftest.sym
6309 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h. */
6312
6313int
6314main ()
6315{
6316
6317 ;
6318 return 0;
6319}
6320_ACEOF
6321if ac_fn_c_try_link "$LINENO"; then :
6322 lt_cv_ld_exported_symbols_list=yes
6323else
6324 lt_cv_ld_exported_symbols_list=no
6325fi
6326rm -f core conftest.err conftest.$ac_objext \
6327 conftest$ac_exeext conftest.$ac_ext
6328 LDFLAGS="$save_LDFLAGS"
6329
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6332$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6334$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 6335if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
6336 $as_echo_n "(cached) " >&6
6337else
6338 lt_cv_ld_force_load=no
6339 cat > conftest.c << _LT_EOF
6340int forced_loaded() { return 2;}
6341_LT_EOF
6342 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6343 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6344 echo "$AR cru libconftest.a conftest.o" >&5
6345 $AR cru libconftest.a conftest.o 2>&5
6346 cat > conftest.c << _LT_EOF
6347int main() { return 0;}
6348_LT_EOF
6349 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6350 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6351 _lt_result=$?
6352 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6353 lt_cv_ld_force_load=yes
6354 else
6355 cat conftest.err >&5
6356 fi
6357 rm -f conftest.err libconftest.a conftest conftest.c
6358 rm -rf conftest.dSYM
6359
6360fi
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6362$as_echo "$lt_cv_ld_force_load" >&6; }
6363 case $host_os in
6364 rhapsody* | darwin1.[012])
6365 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6366 darwin1.*)
6367 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6368 darwin*) # darwin 5.x on
6369 # if running on 10.5 or later, the deployment target defaults
6370 # to the OS version, if on x86, and 10.4, the deployment
6371 # target defaults to 10.4. Don't you love it?
6372 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6373 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6374 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ae7d0cac 6375 10.[012][,.]*)
6bb11ab3
L
6376 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6377 10.*)
6378 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6379 esac
6380 ;;
6381 esac
6382 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6383 _lt_dar_single_mod='$single_module'
6384 fi
6385 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6386 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6387 else
6388 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6389 fi
6390 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6391 _lt_dsymutil='~$DSYMUTIL $lib || :'
6392 else
6393 _lt_dsymutil=
6394 fi
6395 ;;
6396 esac
6397
6398for ac_header in dlfcn.h
6399do :
6400 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6401"
d0ac1c44 6402if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
6403 cat >>confdefs.h <<_ACEOF
6404#define HAVE_DLFCN_H 1
6405_ACEOF
6406
6407fi
6408
6409done
6410
6411
6412
ebe9564b 6413
6bb11ab3 6414
0cb8d851
MF
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6416$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 6417if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
6418 $as_echo_n "(cached) " >&6
6419else
6420 ac_cv_c_bigendian=unknown
6421 # See if we're dealing with a universal compiler.
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423/* end confdefs.h. */
6424#ifndef __APPLE_CC__
6425 not a universal capable compiler
6426 #endif
6427 typedef int dummy;
6428
6429_ACEOF
6430if ac_fn_c_try_compile "$LINENO"; then :
6431
6432 # Check for potential -arch flags. It is not universal unless
6433 # there are at least two -arch flags with different values.
6434 ac_arch=
6435 ac_prev=
6436 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6437 if test -n "$ac_prev"; then
6438 case $ac_word in
6439 i?86 | x86_64 | ppc | ppc64)
6440 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6441 ac_arch=$ac_word
6442 else
6443 ac_cv_c_bigendian=universal
6444 break
6445 fi
6446 ;;
6447 esac
6448 ac_prev=
6449 elif test "x$ac_word" = "x-arch"; then
6450 ac_prev=arch
6451 fi
6452 done
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 if test $ac_cv_c_bigendian = unknown; then
6456 # See if sys/param.h defines the BYTE_ORDER macro.
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458/* end confdefs.h. */
6459#include <sys/types.h>
6460 #include <sys/param.h>
6461
6462int
6463main ()
6464{
6465#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6466 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6467 && LITTLE_ENDIAN)
6468 bogus endian macros
6469 #endif
6470
6471 ;
6472 return 0;
6473}
6474_ACEOF
6475if ac_fn_c_try_compile "$LINENO"; then :
6476 # It does; now see whether it defined to BIG_ENDIAN or not.
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478/* end confdefs.h. */
6479#include <sys/types.h>
6480 #include <sys/param.h>
6481
6482int
6483main ()
6484{
6485#if BYTE_ORDER != BIG_ENDIAN
6486 not big endian
6487 #endif
6488
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493if ac_fn_c_try_compile "$LINENO"; then :
6494 ac_cv_c_bigendian=yes
6495else
6496 ac_cv_c_bigendian=no
6497fi
6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 fi
6502 if test $ac_cv_c_bigendian = unknown; then
6503 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505/* end confdefs.h. */
6506#include <limits.h>
6507
6508int
6509main ()
6510{
6511#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6512 bogus endian macros
6513 #endif
6514
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519if ac_fn_c_try_compile "$LINENO"; then :
6520 # It does; now see whether it defined to _BIG_ENDIAN or not.
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522/* end confdefs.h. */
6523#include <limits.h>
6524
6525int
6526main ()
6527{
6528#ifndef _BIG_ENDIAN
6529 not big endian
6530 #endif
6531
6532 ;
6533 return 0;
6534}
6535_ACEOF
6536if ac_fn_c_try_compile "$LINENO"; then :
6537 ac_cv_c_bigendian=yes
6538else
6539 ac_cv_c_bigendian=no
6540fi
6541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542fi
6543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 fi
6545 if test $ac_cv_c_bigendian = unknown; then
6546 # Compile a test program.
6547 if test "$cross_compiling" = yes; then :
6548 # Try to guess by grepping values from an object file.
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550/* end confdefs.h. */
6551short int ascii_mm[] =
6552 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6553 short int ascii_ii[] =
6554 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6555 int use_ascii (int i) {
6556 return ascii_mm[i] + ascii_ii[i];
6557 }
6558 short int ebcdic_ii[] =
6559 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6560 short int ebcdic_mm[] =
6561 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6562 int use_ebcdic (int i) {
6563 return ebcdic_mm[i] + ebcdic_ii[i];
6564 }
6565 extern int foo;
6566
6567int
6568main ()
6569{
6570return use_ascii (foo) == use_ebcdic (foo);
6571 ;
6572 return 0;
6573}
6574_ACEOF
6575if ac_fn_c_try_compile "$LINENO"; then :
6576 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6577 ac_cv_c_bigendian=yes
6578 fi
6579 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6580 if test "$ac_cv_c_bigendian" = unknown; then
6581 ac_cv_c_bigendian=no
6582 else
6583 # finding both strings is unlikely to happen, but who knows?
6584 ac_cv_c_bigendian=unknown
6585 fi
6586 fi
6587fi
6588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h. */
6592$ac_includes_default
6593int
6594main ()
6595{
6596
6597 /* Are we little or big endian? From Harbison&Steele. */
6598 union
6599 {
6600 long int l;
6601 char c[sizeof (long int)];
6602 } u;
6603 u.l = 1;
6604 return u.c[sizeof (long int) - 1] == 1;
6605
6606 ;
6607 return 0;
6608}
6609_ACEOF
6610if ac_fn_c_try_run "$LINENO"; then :
6611 ac_cv_c_bigendian=no
6612else
6613 ac_cv_c_bigendian=yes
6614fi
6615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6616 conftest.$ac_objext conftest.beam conftest.$ac_ext
6617fi
6618
6619 fi
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6622$as_echo "$ac_cv_c_bigendian" >&6; }
6623 case $ac_cv_c_bigendian in #(
6624 yes)
6625 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6626;; #(
6627 no)
6628 ;; #(
6629 universal)
6630
6631$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6632
6633 ;; #(
6634 *)
d0ac1c44 6635 as_fn_error $? "unknown endianness
0cb8d851
MF
6636 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6637 esac
6638
6bb11ab3
L
6639
6640
6641
c25ea03d 6642if test "x$cross_compiling" = "xno"; then
aa0fca16 6643 : "${AR_FOR_BUILD:=\$(AR)}"
c25ea03d 6644 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 6645 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c25ea03d 6646 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
c2783492 6647 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c25ea03d 6648else
aa0fca16 6649 : "${AR_FOR_BUILD:=ar}"
c25ea03d 6650 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 6651 : "${RANLIB_FOR_BUILD:=ranlib}"
c25ea03d 6652 : "${CFLAGS_FOR_BUILD:=-g -O}"
c2783492 6653 : "${LDLFAGS_FOR_BUILD:=}"
6bb11ab3
L
6654fi
6655
6656
6657
c25ea03d 6658
c2783492 6659
aa0fca16
MF
6660
6661
a3e2cc64
MF
6662if test -n "$ac_tool_prefix"; then
6663 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6664set dummy ${ac_tool_prefix}ar; ac_word=$2
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666$as_echo_n "checking for $ac_word... " >&6; }
6667if ${ac_cv_prog_AR+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669else
6670 if test -n "$AR"; then
6671 ac_cv_prog_AR="$AR" # Let the user override the test.
6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_AR="${ac_tool_prefix}ar"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684done
6685 done
6686IFS=$as_save_IFS
6687
6688fi
6689fi
6690AR=$ac_cv_prog_AR
6691if test -n "$AR"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6693$as_echo "$AR" >&6; }
6694else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696$as_echo "no" >&6; }
6697fi
6698
6699
6700fi
6701if test -z "$ac_cv_prog_AR"; then
6702 ac_ct_AR=$AR
6703 # Extract the first word of "ar", so it can be a program name with args.
6704set dummy ar; ac_word=$2
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706$as_echo_n "checking for $ac_word... " >&6; }
6707if ${ac_cv_prog_ac_ct_AR+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709else
6710 if test -n "$ac_ct_AR"; then
6711 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6712else
6713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720 ac_cv_prog_ac_ct_AR="ar"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724done
6725 done
6726IFS=$as_save_IFS
6727
6728fi
6729fi
6730ac_ct_AR=$ac_cv_prog_ac_ct_AR
6731if test -n "$ac_ct_AR"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6733$as_echo "$ac_ct_AR" >&6; }
6734else
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736$as_echo "no" >&6; }
6737fi
6738
6739 if test "x$ac_ct_AR" = x; then
6740 AR=""
6741 else
6742 case $cross_compiling:$ac_tool_warned in
6743yes:)
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746ac_tool_warned=yes ;;
6747esac
6748 AR=$ac_ct_AR
6749 fi
6750else
6751 AR="$ac_cv_prog_AR"
6752fi
6bb11ab3
L
6753
6754if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6756set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6759if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6760 $as_echo_n "(cached) " >&6
6761else
6762 if test -n "$RANLIB"; then
6763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776done
6777 done
6778IFS=$as_save_IFS
6779
6780fi
6781fi
6782RANLIB=$ac_cv_prog_RANLIB
6783if test -n "$RANLIB"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6785$as_echo "$RANLIB" >&6; }
6786else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788$as_echo "no" >&6; }
6789fi
6790
6791
6792fi
6793if test -z "$ac_cv_prog_RANLIB"; then
6794 ac_ct_RANLIB=$RANLIB
6795 # Extract the first word of "ranlib", so it can be a program name with args.
6796set dummy ranlib; ac_word=$2
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6799if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
6800 $as_echo_n "(cached) " >&6
6801else
6802 if test -n "$ac_ct_RANLIB"; then
6803 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6812 ac_cv_prog_ac_ct_RANLIB="ranlib"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816done
6817 done
6818IFS=$as_save_IFS
6819
6820fi
6821fi
6822ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6823if test -n "$ac_ct_RANLIB"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6825$as_echo "$ac_ct_RANLIB" >&6; }
6826else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828$as_echo "no" >&6; }
6829fi
6830
6831 if test "x$ac_ct_RANLIB" = x; then
6832 RANLIB=":"
6833 else
6834 case $cross_compiling:$ac_tool_warned in
6835yes:)
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838ac_tool_warned=yes ;;
6839esac
6840 RANLIB=$ac_ct_RANLIB
6841 fi
6842else
6843 RANLIB="$ac_cv_prog_RANLIB"
6844fi
6845
6846
46f900c0
MF
6847# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
6848# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
6849# is C99. So handle it ourselves.
6850:
6851C_DIALECT=
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
6853$as_echo_n "checking whether C11 is supported by default... " >&6; }
6854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855/* end confdefs.h. */
6856
6857#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6858# error "C11 support not found"
6859#endif
6860
6861_ACEOF
6862if ac_fn_c_try_compile "$LINENO"; then :
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6864$as_echo "yes" >&6; }
6865else
6866
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868$as_echo "no" >&6; }
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
6870$as_echo_n "checking for -std=c11 support... " >&6; }
6871 ac_save_CC="$CC"
6872 CC="$CC -std=c11"
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874/* end confdefs.h. */
6875
6876#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6877# error "C11 support not found"
6878#endif
6879
6880_ACEOF
6881if ac_fn_c_try_compile "$LINENO"; then :
6882
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884$as_echo "yes" >&6; }
6885 CC="$ac_save_CC"
6886 C_DIALECT="-std=c11"
6887
6888else
6889 as_fn_error $? "C11 is required" "$LINENO" 5
6890fi
6891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892fi
6893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894
6895
c2783492
MF
6896ac_config_headers="$ac_config_headers config.h:config.in"
6897
6898
6bb11ab3
L
6899# Dependency checking.
6900ac_config_commands="$ac_config_commands depdir"
6901
6902
6903depcc="$CC" am_compiler_list=
6904
6905am_depcomp=$ac_aux_dir/depcomp
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6907$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6908if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
6909 $as_echo_n "(cached) " >&6
6910else
6911 if test -f "$am_depcomp"; then
6912 # We make a subdir and do the tests there. Otherwise we can end up
6913 # making bogus files that we don't know about and never remove. For
6914 # instance it was reported that on HP-UX the gcc test will end up
6915 # making a dummy file named `D' -- because `-MD' means `put the output
6916 # in D'.
6917 mkdir conftest.dir
6918 # Copy depcomp to subdir because otherwise we won't find it if we're
6919 # using a relative directory.
6920 cp "$am_depcomp" conftest.dir
6921 cd conftest.dir
6922 # We will build objects and dependencies in a subdirectory because
6923 # it helps to detect inapplicable dependency modes. For instance
6924 # both Tru64's cc and ICC support -MD to output dependencies as a
6925 # side effect of compilation, but ICC will put the dependencies in
6926 # the current directory while Tru64 will put them in the object
6927 # directory.
6928 mkdir sub
6929
6930 am_cv_CC_dependencies_compiler_type=none
6931 if test "$am_compiler_list" = ""; then
6932 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6933 fi
6934 for depmode in $am_compiler_list; do
6935 if test $depmode = none; then break; fi
6936
6937 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6938 # Setup a source with many dependencies, because some compilers
6939 # like to wrap large dependency lists on column 80 (with \), and
6940 # we should not choose a depcomp mode which is confused by this.
6941 #
6942 # We need to recreate these files for each test, as the compiler may
6943 # overwrite some of them when testing with obscure command lines.
6944 # This happens at least with the AIX C compiler.
6945 : > sub/conftest.c
6946 for i in 1 2 3 4 5 6; do
6947 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6948 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6949 # Solaris 8's {/usr,}/bin/sh.
6950 touch sub/conftst$i.h
6951 done
6952 echo "include sub/conftest.Po" > confmf
6953
6954 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6955 # mode. It turns out that the SunPro C++ compiler does not properly
6956 # handle `-M -o', and we need to detect this.
6957 depcmd="depmode=$depmode \
6958 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6959 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6960 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6961 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6962 if env $depcmd > conftest.err 2>&1 &&
6963 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6964 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6965 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6966 # icc doesn't choke on unknown options, it will just issue warnings
6967 # or remarks (even with -Werror). So we grep stderr for any message
6968 # that says an option was ignored or not supported.
6969 # When given -MP, icc 7.0 and 7.1 complain thusly:
6970 # icc: Command line warning: ignoring option '-M'; no argument required
6971 # The diagnosis changed in icc 8.0:
6972 # icc: Command line remark: option '-MP' not supported
6973 if (grep 'ignoring option' conftest.err ||
6974 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6975 am_cv_CC_dependencies_compiler_type=$depmode
6976 $as_echo "$as_me:$LINENO: success" >&5
6977 break
6978 fi
6979 fi
6980 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6981 sed -e 's/^/| /' < conftest.err >&5
6982 done
6983
6984 cd ..
6985 rm -rf conftest.dir
6986else
6987 am_cv_CC_dependencies_compiler_type=none
6988fi
6989
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6992$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6993if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 6994then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
6995else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6996
6997fi
6998
6999
6bb11ab3
L
7000ALL_LINGUAS=
7001# If we haven't got the data from the intl directory,
7002# assume NLS is disabled.
7003USE_NLS=no
7004LIBINTL=
7005LIBINTL_DEP=
7006INCINTL=
7007XGETTEXT=
7008GMSGFMT=
7009POSUB=
7010
7011if test -f ../../intl/config.intl; then
7012 . ../../intl/config.intl
7013fi
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7015$as_echo_n "checking whether NLS is requested... " >&6; }
7016if test x"$USE_NLS" != xyes; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018$as_echo "no" >&6; }
7019else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7021$as_echo "yes" >&6; }
7022
7023$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7024
7025
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7027$as_echo_n "checking for catalogs to be installed... " >&6; }
7028 # Look for .po and .gmo files in the source directory.
7029 CATALOGS=
7030 XLINGUAS=
7031 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7032 # If there aren't any .gmo files the shell will give us the
7033 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7034 # weeded out.
7035 case "$cat" in *\**)
7036 continue;;
7037 esac
7038 # The quadruple backslash is collapsed to a double backslash
7039 # by the backticks, then collapsed again by the double quotes,
7040 # leaving us with one backslash in the sed expression (right
7041 # before the dot that mustn't act as a wildcard).
7042 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7043 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7044 # The user is allowed to set LINGUAS to a list of languages to
7045 # install catalogs for. If it's empty that means "all of them."
7046 if test "x$LINGUAS" = x; then
7047 CATALOGS="$CATALOGS $cat"
7048 XLINGUAS="$XLINGUAS $lang"
7049 else
7050 case "$LINGUAS" in *$lang*)
7051 CATALOGS="$CATALOGS $cat"
7052 XLINGUAS="$XLINGUAS $lang"
7053 ;;
7054 esac
7055 fi
7056 done
7057 LINGUAS="$XLINGUAS"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7059$as_echo "$LINGUAS" >&6; }
7060
7061
7062 DATADIRNAME=share
7063
7064 INSTOBJEXT=.mo
7065
7066 GENCAT=gencat
7067
7068 CATOBJEXT=.gmo
7069
7070fi
7071
6bb11ab3
L
7072# Check for socket libraries
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7074$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 7075if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
7076 $as_echo_n "(cached) " >&6
7077else
7078 ac_check_lib_save_LIBS=$LIBS
7079LIBS="-lsocket $LIBS"
7080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h. */
7082
7083/* Override any GCC internal prototype to avoid an error.
7084 Use char because int might match the return type of a GCC
7085 builtin and then its argument prototype would still apply. */
7086#ifdef __cplusplus
7087extern "C"
7088#endif
7089char bind ();
7090int
7091main ()
7092{
7093return bind ();
7094 ;
7095 return 0;
7096}
7097_ACEOF
7098if ac_fn_c_try_link "$LINENO"; then :
7099 ac_cv_lib_socket_bind=yes
7100else
7101 ac_cv_lib_socket_bind=no
7102fi
7103rm -f core conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105LIBS=$ac_check_lib_save_LIBS
7106fi
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7108$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 7109if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
7110 cat >>confdefs.h <<_ACEOF
7111#define HAVE_LIBSOCKET 1
7112_ACEOF
7113
7114 LIBS="-lsocket $LIBS"
7115
7116fi
7117
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7119$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 7120if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
7121 $as_echo_n "(cached) " >&6
7122else
7123 ac_check_lib_save_LIBS=$LIBS
7124LIBS="-lnsl $LIBS"
7125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h. */
7127
7128/* Override any GCC internal prototype to avoid an error.
7129 Use char because int might match the return type of a GCC
7130 builtin and then its argument prototype would still apply. */
7131#ifdef __cplusplus
7132extern "C"
7133#endif
7134char gethostbyname ();
7135int
7136main ()
7137{
7138return gethostbyname ();
7139 ;
7140 return 0;
7141}
7142_ACEOF
7143if ac_fn_c_try_link "$LINENO"; then :
7144 ac_cv_lib_nsl_gethostbyname=yes
7145else
7146 ac_cv_lib_nsl_gethostbyname=no
7147fi
7148rm -f core conftest.err conftest.$ac_objext \
7149 conftest$ac_exeext conftest.$ac_ext
7150LIBS=$ac_check_lib_save_LIBS
7151fi
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7153$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 7154if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
7155 cat >>confdefs.h <<_ACEOF
7156#define HAVE_LIBNSL 1
7157_ACEOF
7158
7159 LIBS="-lnsl $LIBS"
7160
7161fi
7162
7163
7164# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7165# using the same condition.
7166
aadc9410 7167 # Use the system's zlib library.
7fed4b0b
L
7168 zlibdir="-L\$(top_builddir)/../zlib"
7169 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 7170
aadc9410
MF
7171# Check whether --with-system-zlib was given.
7172if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
7173 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7174 zlibdir=
7175 zlibinc=
7176 fi
6bb11ab3
L
7177
7178fi
7179
6bb11ab3 7180
6bb11ab3 7181
6bb11ab3
L
7182
7183
7184# BFD uses libdl when when plugins enabled.
7185
faa743bb
RM
7186 maybe_plugins=no
7187 for ac_header in dlfcn.h
7188do :
7189 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7190"
d0ac1c44 7191if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
7192 cat >>confdefs.h <<_ACEOF
7193#define HAVE_DLFCN_H 1
7194_ACEOF
7195 maybe_plugins=yes
7196fi
7197
7198done
7199
7200 for ac_header in windows.h
7201do :
7202 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7203"
d0ac1c44 7204if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
7205 cat >>confdefs.h <<_ACEOF
7206#define HAVE_WINDOWS_H 1
7207_ACEOF
7208 maybe_plugins=yes
7209fi
7210
7211done
7212
7213
7214 # Check whether --enable-plugins was given.
6bb11ab3
L
7215if test "${enable_plugins+set}" = set; then :
7216 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
7217 no) plugins=no ;;
7218 *) plugins=yes
7219 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 7220 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
7221 fi ;;
7222 esac
6bb11ab3 7223else
faa743bb
RM
7224 plugins=$maybe_plugins
7225
6bb11ab3
L
7226fi
7227
2974be62 7228 if test "$plugins" = "yes"; then
37f980dc
SM
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7230$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 7231if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7232 $as_echo_n "(cached) " >&6
7233else
7234 ac_func_search_save_LIBS=$LIBS
7235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h. */
7237
7238/* Override any GCC internal prototype to avoid an error.
7239 Use char because int might match the return type of a GCC
7240 builtin and then its argument prototype would still apply. */
7241#ifdef __cplusplus
7242extern "C"
7243#endif
37f980dc 7244char dlsym ();
2974be62
AM
7245int
7246main ()
7247{
37f980dc 7248return dlsym ();
2974be62
AM
7249 ;
7250 return 0;
7251}
7252_ACEOF
7253for ac_lib in '' dl; do
7254 if test -z "$ac_lib"; then
7255 ac_res="none required"
7256 else
7257 ac_res=-l$ac_lib
7258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7259 fi
7260 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 7261 ac_cv_search_dlsym=$ac_res
2974be62
AM
7262fi
7263rm -f core conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext
d0ac1c44 7265 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7266 break
7267fi
7268done
d0ac1c44 7269if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7270
7271else
37f980dc 7272 ac_cv_search_dlsym=no
2974be62
AM
7273fi
7274rm conftest.$ac_ext
7275LIBS=$ac_func_search_save_LIBS
7276fi
37f980dc
SM
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7278$as_echo "$ac_cv_search_dlsym" >&6; }
7279ac_res=$ac_cv_search_dlsym
2974be62
AM
7280if test "$ac_res" != no; then :
7281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7282
7283fi
7284
7285 fi
6bb11ab3
L
7286
7287 if test "$plugins" = yes; then
7288 PLUGINS_TRUE=
7289 PLUGINS_FALSE='#'
7290else
7291 PLUGINS_TRUE='#'
7292 PLUGINS_FALSE=
7293fi
7294
7295
7296
7297
7298
7299# Set options
7300enable_dlopen=yes
7301
7302
7303
7304
7305 enable_win32_dll=no
7306
7307
7308 # Check whether --enable-shared was given.
7309if test "${enable_shared+set}" = set; then :
7310 enableval=$enable_shared; p=${PACKAGE-default}
7311 case $enableval in
7312 yes) enable_shared=yes ;;
7313 no) enable_shared=no ;;
7314 *)
7315 enable_shared=no
7316 # Look at the argument we got. We use all the common list separators.
7317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7318 for pkg in $enableval; do
7319 IFS="$lt_save_ifs"
7320 if test "X$pkg" = "X$p"; then
7321 enable_shared=yes
7322 fi
7323 done
7324 IFS="$lt_save_ifs"
7325 ;;
7326 esac
7327else
7328 enable_shared=yes
7329fi
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339 # Check whether --enable-static was given.
7340if test "${enable_static+set}" = set; then :
7341 enableval=$enable_static; p=${PACKAGE-default}
7342 case $enableval in
7343 yes) enable_static=yes ;;
7344 no) enable_static=no ;;
7345 *)
7346 enable_static=no
7347 # Look at the argument we got. We use all the common list separators.
7348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7349 for pkg in $enableval; do
7350 IFS="$lt_save_ifs"
7351 if test "X$pkg" = "X$p"; then
7352 enable_static=yes
7353 fi
7354 done
7355 IFS="$lt_save_ifs"
7356 ;;
7357 esac
7358else
7359 enable_static=yes
7360fi
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371# Check whether --with-pic was given.
7372if test "${with_pic+set}" = set; then :
7373 withval=$with_pic; pic_mode="$withval"
7374else
7375 pic_mode=default
7376fi
7377
7378
7379test -z "$pic_mode" && pic_mode=default
7380
7381
7382
7383
7384
7385
7386
7387 # Check whether --enable-fast-install was given.
7388if test "${enable_fast_install+set}" = set; then :
7389 enableval=$enable_fast_install; p=${PACKAGE-default}
7390 case $enableval in
7391 yes) enable_fast_install=yes ;;
7392 no) enable_fast_install=no ;;
7393 *)
7394 enable_fast_install=no
7395 # Look at the argument we got. We use all the common list separators.
7396 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397 for pkg in $enableval; do
7398 IFS="$lt_save_ifs"
7399 if test "X$pkg" = "X$p"; then
7400 enable_fast_install=yes
7401 fi
7402 done
7403 IFS="$lt_save_ifs"
7404 ;;
7405 esac
7406else
7407 enable_fast_install=yes
7408fi
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420# This can be used to rebuild libtool when needed
7421LIBTOOL_DEPS="$ltmain"
7422
7423# Always use our own libtool.
7424LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451test -z "$LN_S" && LN_S="ln -s"
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466if test -n "${ZSH_VERSION+set}" ; then
7467 setopt NO_GLOB_SUBST
7468fi
7469
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7471$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7472if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
7473 $as_echo_n "(cached) " >&6
7474else
7475 rm -f .libs 2>/dev/null
7476mkdir .libs 2>/dev/null
7477if test -d .libs; then
7478 lt_cv_objdir=.libs
7479else
7480 # MS-DOS does not allow filenames that begin with a dot.
7481 lt_cv_objdir=_libs
edece237 7482fi
6bb11ab3
L
7483rmdir .libs 2>/dev/null
7484fi
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7486$as_echo "$lt_cv_objdir" >&6; }
7487objdir=$lt_cv_objdir
edece237 7488
6bb11ab3
L
7489
7490
7491
7492
7493cat >>confdefs.h <<_ACEOF
7494#define LT_OBJDIR "$lt_cv_objdir/"
7495_ACEOF
7496
7497
7498
7499
7500case $host_os in
7501aix3*)
7502 # AIX sometimes has problems with the GCC collect2 program. For some
7503 # reason, if we set the COLLECT_NAMES environment variable, the problems
7504 # vanish in a puff of smoke.
7505 if test "X${COLLECT_NAMES+set}" != Xset; then
7506 COLLECT_NAMES=
7507 export COLLECT_NAMES
7508 fi
7509 ;;
81ecdfbb 7510esac
6bb11ab3
L
7511
7512# Global variables:
7513ofile=libtool
7514can_build_shared=yes
7515
7516# All known linkers require a `.a' archive for static linking (except MSVC,
7517# which needs '.lib').
7518libext=a
7519
7520with_gnu_ld="$lt_cv_prog_gnu_ld"
7521
7522old_CC="$CC"
7523old_CFLAGS="$CFLAGS"
7524
7525# Set sane defaults for various variables
7526test -z "$CC" && CC=cc
7527test -z "$LTCC" && LTCC=$CC
7528test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7529test -z "$LD" && LD=ld
7530test -z "$ac_objext" && ac_objext=o
7531
7532for cc_temp in $compiler""; do
7533 case $cc_temp in
7534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7536 \-*) ;;
7537 *) break;;
7538 esac
7539done
7540cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7541
7542
7543# Only perform the check for file, if the check method requires it
7544test -z "$MAGIC_CMD" && MAGIC_CMD=file
7545case $deplibs_check_method in
7546file_magic*)
7547 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7549$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7550if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7551 $as_echo_n "(cached) " >&6
7552else
7553 case $MAGIC_CMD in
7554[\\/*] | ?:[\\/]*)
7555 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7556 ;;
7557*)
7558 lt_save_MAGIC_CMD="$MAGIC_CMD"
7559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7560 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7561 for ac_dir in $ac_dummy; do
7562 IFS="$lt_save_ifs"
7563 test -z "$ac_dir" && ac_dir=.
7564 if test -f $ac_dir/${ac_tool_prefix}file; then
7565 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7566 if test -n "$file_magic_test_file"; then
7567 case $deplibs_check_method in
7568 "file_magic "*)
7569 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7571 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7572 $EGREP "$file_magic_regex" > /dev/null; then
7573 :
7574 else
7575 cat <<_LT_EOF 1>&2
7576
7577*** Warning: the command libtool uses to detect shared libraries,
7578*** $file_magic_cmd, produces output that libtool cannot recognize.
7579*** The result is that libtool may fail to recognize shared libraries
7580*** as such. This will affect the creation of libtool libraries that
7581*** depend on shared libraries, but programs linked with such libtool
7582*** libraries will work regardless of this problem. Nevertheless, you
7583*** may want to report the problem to your system manager and/or to
7584*** bug-libtool@gnu.org
7585
7586_LT_EOF
7587 fi ;;
7588 esac
7589 fi
7590 break
edece237 7591 fi
6bb11ab3
L
7592 done
7593 IFS="$lt_save_ifs"
7594 MAGIC_CMD="$lt_save_MAGIC_CMD"
7595 ;;
7596esac
edece237 7597fi
edece237 7598
6bb11ab3
L
7599MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7600if test -n "$MAGIC_CMD"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7602$as_echo "$MAGIC_CMD" >&6; }
7603else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605$as_echo "no" >&6; }
7606fi
81ecdfbb 7607
6bb11ab3
L
7608
7609
7610
7611
7612if test -z "$lt_cv_path_MAGIC_CMD"; then
7613 if test -n "$ac_tool_prefix"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7615$as_echo_n "checking for file... " >&6; }
d0ac1c44 7616if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7617 $as_echo_n "(cached) " >&6
7618else
7619 case $MAGIC_CMD in
7620[\\/*] | ?:[\\/]*)
7621 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7622 ;;
7623*)
7624 lt_save_MAGIC_CMD="$MAGIC_CMD"
7625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7626 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7627 for ac_dir in $ac_dummy; do
7628 IFS="$lt_save_ifs"
7629 test -z "$ac_dir" && ac_dir=.
7630 if test -f $ac_dir/file; then
7631 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7632 if test -n "$file_magic_test_file"; then
7633 case $deplibs_check_method in
7634 "file_magic "*)
7635 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7637 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7638 $EGREP "$file_magic_regex" > /dev/null; then
7639 :
7640 else
7641 cat <<_LT_EOF 1>&2
7642
7643*** Warning: the command libtool uses to detect shared libraries,
7644*** $file_magic_cmd, produces output that libtool cannot recognize.
7645*** The result is that libtool may fail to recognize shared libraries
7646*** as such. This will affect the creation of libtool libraries that
7647*** depend on shared libraries, but programs linked with such libtool
7648*** libraries will work regardless of this problem. Nevertheless, you
7649*** may want to report the problem to your system manager and/or to
7650*** bug-libtool@gnu.org
7651
7652_LT_EOF
7653 fi ;;
7654 esac
7655 fi
7656 break
7657 fi
7658 done
7659 IFS="$lt_save_ifs"
7660 MAGIC_CMD="$lt_save_MAGIC_CMD"
7661 ;;
81ecdfbb 7662esac
6bb11ab3
L
7663fi
7664
7665MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7666if test -n "$MAGIC_CMD"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7668$as_echo "$MAGIC_CMD" >&6; }
7669else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
7672fi
7673
7674
7675 else
7676 MAGIC_CMD=:
7677 fi
7678fi
7679
7680 fi
7681 ;;
7682esac
7683
7684# Use C for the default configuration in the libtool script
7685
7686lt_save_CC="$CC"
7687ac_ext=c
7688ac_cpp='$CPP $CPPFLAGS'
7689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692
7693
7694# Source file extension for C test sources.
7695ac_ext=c
7696
7697# Object file extension for compiled C test sources.
7698objext=o
7699objext=$objext
7700
7701# Code to be used in simple compile tests
7702lt_simple_compile_test_code="int some_variable = 0;"
7703
7704# Code to be used in simple link tests
7705lt_simple_link_test_code='int main(){return(0);}'
7706
7707
7708
7709
7710
7711
7712
7713# If no C compiler was specified, use CC.
7714LTCC=${LTCC-"$CC"}
7715
7716# If no C compiler flags were specified, use CFLAGS.
7717LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7718
7719# Allow CC to be a program name with arguments.
7720compiler=$CC
7721
7722# Save the default compiler, since it gets overwritten when the other
7723# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7724compiler_DEFAULT=$CC
7725
7726# save warnings/boilerplate of simple test code
7727ac_outfile=conftest.$ac_objext
7728echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7729eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7730_lt_compiler_boilerplate=`cat conftest.err`
7731$RM conftest*
7732
7733ac_outfile=conftest.$ac_objext
7734echo "$lt_simple_link_test_code" >conftest.$ac_ext
7735eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7736_lt_linker_boilerplate=`cat conftest.err`
7737$RM -r conftest*
7738
7739
7740## CAVEAT EMPTOR:
7741## There is no encapsulation within the following macros, do not change
7742## the running order or otherwise move them around unless you know exactly
7743## what you are doing...
7744if test -n "$compiler"; then
7745
7746lt_prog_compiler_no_builtin_flag=
7747
7748if test "$GCC" = yes; then
7749 case $cc_basename in
7750 nvcc*)
7751 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7752 *)
7753 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
edece237 7754 esac
6bb11ab3
L
7755
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7757$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 7758if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 7759 $as_echo_n "(cached) " >&6
edece237 7760else
6bb11ab3
L
7761 lt_cv_prog_compiler_rtti_exceptions=no
7762 ac_outfile=conftest.$ac_objext
7763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7764 lt_compiler_flag="-fno-rtti -fno-exceptions"
7765 # Insert the option either (1) after the last *FLAGS variable, or
7766 # (2) before a word containing "conftest.", or (3) at the end.
7767 # Note that $ac_compile itself does not contain backslashes and begins
7768 # with a dollar sign (not a hyphen), so the echo should work correctly.
7769 # The option is referenced via a variable to avoid confusing sed.
7770 lt_compile=`echo "$ac_compile" | $SED \
7771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7773 -e 's:$: $lt_compiler_flag:'`
7774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7775 (eval "$lt_compile" 2>conftest.err)
7776 ac_status=$?
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 if (exit $ac_status) && test -s "$ac_outfile"; then
7780 # The compiler can only warn and ignore the option if not recognized
7781 # So say no if there are warnings other than the usual output.
7782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7785 lt_cv_prog_compiler_rtti_exceptions=yes
7786 fi
7787 fi
7788 $RM conftest*
7789
edece237 7790fi
6bb11ab3
L
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7792$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7793
7794if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7795 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7796else
7797 :
7798fi
7799
7800fi
7801
7802
7803
7804
7805
7806
7807 lt_prog_compiler_wl=
7808lt_prog_compiler_pic=
7809lt_prog_compiler_static=
7810
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7812$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7813
7814 if test "$GCC" = yes; then
7815 lt_prog_compiler_wl='-Wl,'
7816 lt_prog_compiler_static='-static'
7817
7818 case $host_os in
7819 aix*)
7820 # All AIX code is PIC.
7821 if test "$host_cpu" = ia64; then
7822 # AIX 5 now supports IA64 processor
7823 lt_prog_compiler_static='-Bstatic'
7824 fi
7825 lt_prog_compiler_pic='-fPIC'
7826 ;;
7827
7828 amigaos*)
7829 case $host_cpu in
7830 powerpc)
7831 # see comment about AmigaOS4 .so support
7832 lt_prog_compiler_pic='-fPIC'
7833 ;;
7834 m68k)
7835 # FIXME: we need at least 68020 code to build shared libraries, but
7836 # adding the `-m68020' flag to GCC prevents building anything better,
7837 # like `-m68040'.
7838 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7839 ;;
7840 esac
7841 ;;
7842
7843 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7844 # PIC is the default for these OSes.
7845 ;;
7846
7847 mingw* | cygwin* | pw32* | os2* | cegcc*)
7848 # This hack is so that the source file can tell whether it is being
7849 # built for inclusion in a dll (and should export symbols for example).
7850 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7851 # (--disable-auto-import) libraries
7852 lt_prog_compiler_pic='-DDLL_EXPORT'
7853 ;;
7854
7855 darwin* | rhapsody*)
7856 # PIC is the default on this platform
7857 # Common symbols not allowed in MH_DYLIB files
7858 lt_prog_compiler_pic='-fno-common'
7859 ;;
7860
7861 haiku*)
7862 # PIC is the default for Haiku.
7863 # The "-static" flag exists, but is broken.
7864 lt_prog_compiler_static=
7865 ;;
7866
7867 hpux*)
7868 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7869 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7870 # sets the default TLS model and affects inlining.
7871 case $host_cpu in
7872 hppa*64*)
7873 # +Z the default
7874 ;;
7875 *)
7876 lt_prog_compiler_pic='-fPIC'
7877 ;;
7878 esac
7879 ;;
7880
7881 interix[3-9]*)
7882 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7883 # Instead, we relocate shared libraries at runtime.
7884 ;;
7885
7886 msdosdjgpp*)
7887 # Just because we use GCC doesn't mean we suddenly get shared libraries
7888 # on systems that don't support them.
7889 lt_prog_compiler_can_build_shared=no
7890 enable_shared=no
7891 ;;
7892
7893 *nto* | *qnx*)
7894 # QNX uses GNU C++, but need to define -shared option too, otherwise
7895 # it will coredump.
7896 lt_prog_compiler_pic='-fPIC -shared'
7897 ;;
7898
7899 sysv4*MP*)
7900 if test -d /usr/nec; then
7901 lt_prog_compiler_pic=-Kconform_pic
7902 fi
7903 ;;
7904
7905 *)
7906 lt_prog_compiler_pic='-fPIC'
7907 ;;
7908 esac
7909
7910 case $cc_basename in
7911 nvcc*) # Cuda Compiler Driver 2.2
7912 lt_prog_compiler_wl='-Xlinker '
7913 lt_prog_compiler_pic='-Xcompiler -fPIC'
7914 ;;
7915 esac
7916 else
7917 # PORTME Check for flag to pass linker flags through the system compiler.
7918 case $host_os in
7919 aix*)
7920 lt_prog_compiler_wl='-Wl,'
7921 if test "$host_cpu" = ia64; then
7922 # AIX 5 now supports IA64 processor
7923 lt_prog_compiler_static='-Bstatic'
7924 else
7925 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7926 fi
7927 ;;
7928
7929 mingw* | cygwin* | pw32* | os2* | cegcc*)
7930 # This hack is so that the source file can tell whether it is being
7931 # built for inclusion in a dll (and should export symbols for example).
7932 lt_prog_compiler_pic='-DDLL_EXPORT'
7933 ;;
7934
7935 hpux9* | hpux10* | hpux11*)
7936 lt_prog_compiler_wl='-Wl,'
7937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7938 # not for PA HP-UX.
7939 case $host_cpu in
7940 hppa*64*|ia64*)
7941 # +Z the default
7942 ;;
7943 *)
7944 lt_prog_compiler_pic='+Z'
7945 ;;
7946 esac
7947 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7948 lt_prog_compiler_static='${wl}-a ${wl}archive'
7949 ;;
7950
7951 irix5* | irix6* | nonstopux*)
7952 lt_prog_compiler_wl='-Wl,'
7953 # PIC (with -KPIC) is the default.
7954 lt_prog_compiler_static='-non_shared'
7955 ;;
7956
7957 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7958 case $cc_basename in
7959 # old Intel for x86_64 which still supported -KPIC.
7960 ecc*)
7961 lt_prog_compiler_wl='-Wl,'
7962 lt_prog_compiler_pic='-KPIC'
7963 lt_prog_compiler_static='-static'
7964 ;;
7965 # icc used to be incompatible with GCC.
7966 # ICC 10 doesn't accept -KPIC any more.
7967 icc* | ifort*)
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='-fPIC'
7970 lt_prog_compiler_static='-static'
7971 ;;
7972 # Lahey Fortran 8.1.
7973 lf95*)
7974 lt_prog_compiler_wl='-Wl,'
7975 lt_prog_compiler_pic='--shared'
7976 lt_prog_compiler_static='--static'
7977 ;;
7978 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7979 # Portland Group compilers (*not* the Pentium gcc compiler,
7980 # which looks to be a dead project)
7981 lt_prog_compiler_wl='-Wl,'
7982 lt_prog_compiler_pic='-fpic'
7983 lt_prog_compiler_static='-Bstatic'
7984 ;;
7985 ccc*)
7986 lt_prog_compiler_wl='-Wl,'
7987 # All Alpha code is PIC.
7988 lt_prog_compiler_static='-non_shared'
7989 ;;
7990 xl* | bgxl* | bgf* | mpixl*)
7991 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_pic='-qpic'
7994 lt_prog_compiler_static='-qstaticlink'
7995 ;;
7996 *)
7997 case `$CC -V 2>&1 | sed 5q` in
7998 *Sun\ F* | *Sun*Fortran*)
7999 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-Bstatic'
8002 lt_prog_compiler_wl=''
8003 ;;
8004 *Sun\ C*)
8005 # Sun C 5.9
8006 lt_prog_compiler_pic='-KPIC'
8007 lt_prog_compiler_static='-Bstatic'
8008 lt_prog_compiler_wl='-Wl,'
8009 ;;
8010 esac
8011 ;;
8012 esac
8013 ;;
8014
8015 newsos6)
8016 lt_prog_compiler_pic='-KPIC'
8017 lt_prog_compiler_static='-Bstatic'
8018 ;;
8019
8020 *nto* | *qnx*)
8021 # QNX uses GNU C++, but need to define -shared option too, otherwise
8022 # it will coredump.
8023 lt_prog_compiler_pic='-fPIC -shared'
8024 ;;
8025
8026 osf3* | osf4* | osf5*)
8027 lt_prog_compiler_wl='-Wl,'
8028 # All OSF/1 code is PIC.
8029 lt_prog_compiler_static='-non_shared'
8030 ;;
8031
8032 rdos*)
8033 lt_prog_compiler_static='-non_shared'
8034 ;;
8035
8036 solaris*)
8037 lt_prog_compiler_pic='-KPIC'
8038 lt_prog_compiler_static='-Bstatic'
8039 case $cc_basename in
8040 f77* | f90* | f95*)
8041 lt_prog_compiler_wl='-Qoption ld ';;
8042 *)
8043 lt_prog_compiler_wl='-Wl,';;
8044 esac
8045 ;;
edece237 8046
6bb11ab3
L
8047 sunos4*)
8048 lt_prog_compiler_wl='-Qoption ld '
8049 lt_prog_compiler_pic='-PIC'
8050 lt_prog_compiler_static='-Bstatic'
8051 ;;
edece237 8052
6bb11ab3
L
8053 sysv4 | sysv4.2uw2* | sysv4.3*)
8054 lt_prog_compiler_wl='-Wl,'
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-Bstatic'
8057 ;;
edece237 8058
6bb11ab3
L
8059 sysv4*MP*)
8060 if test -d /usr/nec ;then
8061 lt_prog_compiler_pic='-Kconform_pic'
8062 lt_prog_compiler_static='-Bstatic'
8063 fi
8064 ;;
8065
8066 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_pic='-KPIC'
8069 lt_prog_compiler_static='-Bstatic'
8070 ;;
8071
8072 unicos*)
8073 lt_prog_compiler_wl='-Wl,'
8074 lt_prog_compiler_can_build_shared=no
8075 ;;
8076
8077 uts4*)
8078 lt_prog_compiler_pic='-pic'
8079 lt_prog_compiler_static='-Bstatic'
8080 ;;
8081
8082 *)
8083 lt_prog_compiler_can_build_shared=no
8084 ;;
8085 esac
8086 fi
8087
8088case $host_os in
8089 # For platforms which do not support PIC, -DPIC is meaningless:
8090 *djgpp*)
8091 lt_prog_compiler_pic=
8092 ;;
8093 *)
8094 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8095 ;;
81ecdfbb 8096esac
6bb11ab3
L
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8098$as_echo "$lt_prog_compiler_pic" >&6; }
8099
8100
8101
8102
8103
8104
8105#
8106# Check to make sure the PIC flag actually works.
8107#
8108if test -n "$lt_prog_compiler_pic"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8110$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8111if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 8112 $as_echo_n "(cached) " >&6
edece237 8113else
6bb11ab3
L
8114 lt_cv_prog_compiler_pic_works=no
8115 ac_outfile=conftest.$ac_objext
8116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8117 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8118 # Insert the option either (1) after the last *FLAGS variable, or
8119 # (2) before a word containing "conftest.", or (3) at the end.
8120 # Note that $ac_compile itself does not contain backslashes and begins
8121 # with a dollar sign (not a hyphen), so the echo should work correctly.
8122 # The option is referenced via a variable to avoid confusing sed.
8123 lt_compile=`echo "$ac_compile" | $SED \
8124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8126 -e 's:$: $lt_compiler_flag:'`
8127 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8128 (eval "$lt_compile" 2>conftest.err)
8129 ac_status=$?
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 if (exit $ac_status) && test -s "$ac_outfile"; then
8133 # The compiler can only warn and ignore the option if not recognized
8134 # So say no if there are warnings other than the usual output.
8135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8138 lt_cv_prog_compiler_pic_works=yes
8139 fi
8140 fi
8141 $RM conftest*
edece237 8142
edece237 8143fi
6bb11ab3
L
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8145$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8146
8147if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8148 case $lt_prog_compiler_pic in
8149 "" | " "*) ;;
8150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8151 esac
8152else
8153 lt_prog_compiler_pic=
8154 lt_prog_compiler_can_build_shared=no
edece237 8155fi
6bb11ab3
L
8156
8157fi
8158
8159
8160
8161
8162
8163
8164#
8165# Check to make sure the static flag actually works.
8166#
8167wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8169$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8170if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8171 $as_echo_n "(cached) " >&6
edece237 8172else
6bb11ab3
L
8173 lt_cv_prog_compiler_static_works=no
8174 save_LDFLAGS="$LDFLAGS"
8175 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8176 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8178 # The linker can only warn and ignore the option if not recognized
8179 # So say no if there are warnings
8180 if test -s conftest.err; then
8181 # Append any errors to the config.log.
8182 cat conftest.err 1>&5
8183 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8185 if diff conftest.exp conftest.er2 >/dev/null; then
8186 lt_cv_prog_compiler_static_works=yes
8187 fi
8188 else
8189 lt_cv_prog_compiler_static_works=yes
8190 fi
8191 fi
8192 $RM -r conftest*
8193 LDFLAGS="$save_LDFLAGS"
edece237 8194
6bb11ab3
L
8195fi
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8197$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
edece237 8198
6bb11ab3
L
8199if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8200 :
edece237 8201else
6bb11ab3 8202 lt_prog_compiler_static=
edece237 8203fi
edece237 8204
6bb11ab3
L
8205
8206
8207
8208
8209
8210
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8212$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8213if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 8214 $as_echo_n "(cached) " >&6
81ecdfbb 8215else
6bb11ab3
L
8216 lt_cv_prog_compiler_c_o=no
8217 $RM -r conftest 2>/dev/null
8218 mkdir conftest
8219 cd conftest
8220 mkdir out
8221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8222
8223 lt_compiler_flag="-o out/conftest2.$ac_objext"
8224 # Insert the option either (1) after the last *FLAGS variable, or
8225 # (2) before a word containing "conftest.", or (3) at the end.
8226 # Note that $ac_compile itself does not contain backslashes and begins
8227 # with a dollar sign (not a hyphen), so the echo should work correctly.
8228 lt_compile=`echo "$ac_compile" | $SED \
8229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8231 -e 's:$: $lt_compiler_flag:'`
8232 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8233 (eval "$lt_compile" 2>out/conftest.err)
8234 ac_status=$?
8235 cat out/conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8238 then
8239 # The compiler can only warn and ignore the option if not recognized
8240 # So say no if there are warnings
8241 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8244 lt_cv_prog_compiler_c_o=yes
8245 fi
8246 fi
8247 chmod u+w . 2>&5
8248 $RM conftest*
8249 # SGI C++ compiler will create directory out/ii_files/ for
8250 # template instantiation
8251 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8252 $RM out/* && rmdir out
8253 cd ..
8254 $RM -r conftest
8255 $RM conftest*
8256
81ecdfbb 8257fi
6bb11ab3
L
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8259$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8260
8261
8262
8263
8264
8265
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8267$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8268if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb
RW
8269 $as_echo_n "(cached) " >&6
8270else
6bb11ab3
L
8271 lt_cv_prog_compiler_c_o=no
8272 $RM -r conftest 2>/dev/null
8273 mkdir conftest
8274 cd conftest
8275 mkdir out
8276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8277
8278 lt_compiler_flag="-o out/conftest2.$ac_objext"
8279 # Insert the option either (1) after the last *FLAGS variable, or
8280 # (2) before a word containing "conftest.", or (3) at the end.
8281 # Note that $ac_compile itself does not contain backslashes and begins
8282 # with a dollar sign (not a hyphen), so the echo should work correctly.
8283 lt_compile=`echo "$ac_compile" | $SED \
8284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8286 -e 's:$: $lt_compiler_flag:'`
8287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8288 (eval "$lt_compile" 2>out/conftest.err)
8289 ac_status=$?
8290 cat out/conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8293 then
8294 # The compiler can only warn and ignore the option if not recognized
8295 # So say no if there are warnings
8296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8299 lt_cv_prog_compiler_c_o=yes
8300 fi
8301 fi
8302 chmod u+w . 2>&5
8303 $RM conftest*
8304 # SGI C++ compiler will create directory out/ii_files/ for
8305 # template instantiation
8306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8307 $RM out/* && rmdir out
8308 cd ..
8309 $RM -r conftest
8310 $RM conftest*
8311
8312fi
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8314$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8315
8316
8317
8318
8319hard_links="nottested"
8320if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8321 # do not overwrite the value of need_locks provided by the user
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8323$as_echo_n "checking if we can lock with hard links... " >&6; }
8324 hard_links=yes
8325 $RM conftest*
8326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8327 touch conftest.a
8328 ln conftest.a conftest.b 2>&5 || hard_links=no
8329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8331$as_echo "$hard_links" >&6; }
8332 if test "$hard_links" = no; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8334$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8335 need_locks=warn
8336 fi
8337else
8338 need_locks=no
8339fi
8340
8341
8342
8343
8344
8345
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8347$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8348
8349 runpath_var=
8350 allow_undefined_flag=
8351 always_export_symbols=no
8352 archive_cmds=
8353 archive_expsym_cmds=
8354 compiler_needs_object=no
8355 enable_shared_with_static_runtimes=no
8356 export_dynamic_flag_spec=
8357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8358 hardcode_automatic=no
8359 hardcode_direct=no
8360 hardcode_direct_absolute=no
8361 hardcode_libdir_flag_spec=
8362 hardcode_libdir_flag_spec_ld=
8363 hardcode_libdir_separator=
8364 hardcode_minus_L=no
8365 hardcode_shlibpath_var=unsupported
8366 inherit_rpath=no
8367 link_all_deplibs=unknown
8368 module_cmds=
8369 module_expsym_cmds=
8370 old_archive_from_new_cmds=
8371 old_archive_from_expsyms_cmds=
8372 thread_safe_flag_spec=
8373 whole_archive_flag_spec=
8374 # include_expsyms should be a list of space-separated symbols to be *always*
8375 # included in the symbol list
8376 include_expsyms=
8377 # exclude_expsyms can be an extended regexp of symbols to exclude
8378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8380 # as well as any symbol that contains `d'.
8381 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8383 # platforms (ab)use it in PIC code, but their linkers get confused if
8384 # the symbol is explicitly referenced. Since portable code cannot
8385 # rely on this symbol name, it's probably fine to never include it in
8386 # preloaded symbol tables.
8387 # Exclude shared library initialization/finalization symbols.
8388 extract_expsyms_cmds=
8389
8390 case $host_os in
8391 cygwin* | mingw* | pw32* | cegcc*)
8392 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8393 # When not using gcc, we currently assume that we are using
8394 # Microsoft Visual C++.
8395 if test "$GCC" != yes; then
8396 with_gnu_ld=no
8397 fi
8398 ;;
8399 interix*)
8400 # we just hope/assume this is gcc and not c89 (= MSVC++)
8401 with_gnu_ld=yes
8402 ;;
8403 openbsd*)
8404 with_gnu_ld=no
8405 ;;
8406 esac
edece237 8407
6bb11ab3
L
8408 ld_shlibs=yes
8409
8410 # On some targets, GNU ld is compatible enough with the native linker
8411 # that we're better off using the native interface for both.
8412 lt_use_gnu_ld_interface=no
8413 if test "$with_gnu_ld" = yes; then
8414 case $host_os in
8415 aix*)
8416 # The AIX port of GNU ld has always aspired to compatibility
8417 # with the native linker. However, as the warning in the GNU ld
8418 # block says, versions before 2.19.5* couldn't really create working
8419 # shared libraries, regardless of the interface used.
8420 case `$LD -v 2>&1` in
8421 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8422 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8423 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8424 *)
8425 lt_use_gnu_ld_interface=yes
8426 ;;
8427 esac
8428 ;;
8429 *)
8430 lt_use_gnu_ld_interface=yes
8431 ;;
8432 esac
8433 fi
edece237 8434
6bb11ab3
L
8435 if test "$lt_use_gnu_ld_interface" = yes; then
8436 # If archive_cmds runs LD, not CC, wlarc should be empty
8437 wlarc='${wl}'
8438
8439 # Set some defaults for GNU ld with shared library support. These
8440 # are reset later if shared libraries are not supported. Putting them
8441 # here allows them to be overridden if necessary.
8442 runpath_var=LD_RUN_PATH
8443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444 export_dynamic_flag_spec='${wl}--export-dynamic'
8445 # ancient GNU ld didn't support --whole-archive et. al.
8446 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8447 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8448 else
8449 whole_archive_flag_spec=
8450 fi
8451 supports_anon_versioning=no
8452 case `$LD -v 2>&1` in
8453 *GNU\ gold*) supports_anon_versioning=yes ;;
8454 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8455 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8456 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8457 *\ 2.11.*) ;; # other 2.11 versions
8458 *) supports_anon_versioning=yes ;;
8459 esac
8460
8461 # See if GNU ld supports shared libraries.
8462 case $host_os in
8463 aix[3-9]*)
8464 # On AIX/PPC, the GNU linker is very broken
8465 if test "$host_cpu" != ia64; then
8466 ld_shlibs=no
8467 cat <<_LT_EOF 1>&2
8468
8469*** Warning: the GNU linker, at least up to release 2.19, is reported
8470*** to be unable to reliably create shared libraries on AIX.
8471*** Therefore, libtool is disabling shared libraries support. If you
8472*** really care for shared libraries, you may want to install binutils
8473*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8474*** You will then need to restart the configuration process.
8475
8476_LT_EOF
8477 fi
8478 ;;
8479
8480 amigaos*)
8481 case $host_cpu in
8482 powerpc)
8483 # see comment about AmigaOS4 .so support
8484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485 archive_expsym_cmds=''
8486 ;;
8487 m68k)
8488 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)'
8489 hardcode_libdir_flag_spec='-L$libdir'
8490 hardcode_minus_L=yes
8491 ;;
8492 esac
8493 ;;
8494
8495 beos*)
8496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8497 allow_undefined_flag=unsupported
8498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8499 # support --undefined. This deserves some investigation. FIXME
8500 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8501 else
8502 ld_shlibs=no
8503 fi
8504 ;;
8505
8506 cygwin* | mingw* | pw32* | cegcc*)
8507 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8508 # as there is no search path for DLLs.
8509 hardcode_libdir_flag_spec='-L$libdir'
8510 export_dynamic_flag_spec='${wl}--export-all-symbols'
8511 allow_undefined_flag=unsupported
8512 always_export_symbols=no
8513 enable_shared_with_static_runtimes=yes
8514 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8515
8516 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8518 # If the export-symbols file already is a .def file (1st line
8519 # is EXPORTS), use it as is; otherwise, prepend...
8520 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8521 cp $export_symbols $output_objdir/$soname.def;
8522 else
8523 echo EXPORTS > $output_objdir/$soname.def;
8524 cat $export_symbols >> $output_objdir/$soname.def;
8525 fi~
8526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8527 else
8528 ld_shlibs=no
8529 fi
8530 ;;
8531
8532 haiku*)
8533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8534 link_all_deplibs=yes
8535 ;;
8536
8537 interix[3-9]*)
8538 hardcode_direct=no
8539 hardcode_shlibpath_var=no
8540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8541 export_dynamic_flag_spec='${wl}-E'
8542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8543 # Instead, shared libraries are loaded at an image base (0x10000000 by
8544 # default) and relocated if they conflict, which is a slow very memory
8545 # consuming and fragmenting process. To avoid this, we pick a random,
8546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8549 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'
8550 ;;
8551
8552 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8553 tmp_diet=no
8554 if test "$host_os" = linux-dietlibc; then
8555 case $cc_basename in
8556 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8557 esac
8558 fi
8559 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8560 && test "$tmp_diet" = no
8561 then
ae7d0cac 8562 tmp_addflag=' $pic_flag'
6bb11ab3
L
8563 tmp_sharedflag='-shared'
8564 case $cc_basename,$host_cpu in
8565 pgcc*) # Portland Group C compiler
8566 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'
8567 tmp_addflag=' $pic_flag'
8568 ;;
8569 pgf77* | pgf90* | pgf95* | pgfortran*)
8570 # Portland Group f77 and f90 compilers
8571 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'
8572 tmp_addflag=' $pic_flag -Mnomain' ;;
8573 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8574 tmp_addflag=' -i_dynamic' ;;
8575 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8576 tmp_addflag=' -i_dynamic -nofor_main' ;;
8577 ifc* | ifort*) # Intel Fortran compiler
8578 tmp_addflag=' -nofor_main' ;;
8579 lf95*) # Lahey Fortran 8.1
8580 whole_archive_flag_spec=
8581 tmp_sharedflag='--shared' ;;
8582 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8583 tmp_sharedflag='-qmkshrobj'
8584 tmp_addflag= ;;
8585 nvcc*) # Cuda Compiler Driver 2.2
8586 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'
8587 compiler_needs_object=yes
8588 ;;
8589 esac
8590 case `$CC -V 2>&1 | sed 5q` in
8591 *Sun\ C*) # Sun C 5.9
8592 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'
8593 compiler_needs_object=yes
8594 tmp_sharedflag='-G' ;;
8595 *Sun\ F*) # Sun Fortran 8.3
8596 tmp_sharedflag='-G' ;;
8597 esac
8598 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599
8600 if test "x$supports_anon_versioning" = xyes; then
8601 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8603 echo "local: *; };" >> $output_objdir/$libname.ver~
8604 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8605 fi
8606
8607 case $cc_basename in
8608 xlf* | bgf* | bgxlf* | mpixlf*)
8609 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8610 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8611 hardcode_libdir_flag_spec=
8612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8613 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8614 if test "x$supports_anon_versioning" = xyes; then
8615 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8617 echo "local: *; };" >> $output_objdir/$libname.ver~
8618 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8619 fi
8620 ;;
8621 esac
8622 else
8623 ld_shlibs=no
8624 fi
8625 ;;
8626
8627 netbsd*)
8628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8629 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8630 wlarc=
8631 else
8632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8634 fi
8635 ;;
8636
8637 solaris*)
8638 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8639 ld_shlibs=no
8640 cat <<_LT_EOF 1>&2
8641
8642*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8643*** create shared libraries on Solaris systems. Therefore, libtool
8644*** is disabling shared libraries support. We urge you to upgrade GNU
8645*** binutils to release 2.9.1 or newer. Another option is to modify
8646*** your PATH or compiler configuration so that the native linker is
8647*** used, and then restart.
8648
8649_LT_EOF
8650 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8653 else
8654 ld_shlibs=no
8655 fi
8656 ;;
8657
8658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8659 case `$LD -v 2>&1` in
8660 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8661 ld_shlibs=no
8662 cat <<_LT_EOF 1>&2
8663
8664*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8665*** reliably create shared libraries on SCO systems. Therefore, libtool
8666*** is disabling shared libraries support. We urge you to upgrade GNU
8667*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8668*** your PATH or compiler configuration so that the native linker is
8669*** used, and then restart.
8670
8671_LT_EOF
8672 ;;
8673 *)
8674 # For security reasons, it is highly recommended that you always
8675 # use absolute paths for naming shared libraries, and exclude the
8676 # DT_RUNPATH tag from executables and libraries. But doing so
8677 # requires that you compile everything twice, which is a pain.
8678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8682 else
8683 ld_shlibs=no
8684 fi
8685 ;;
8686 esac
8687 ;;
8688
8689 sunos4*)
8690 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8691 wlarc=
8692 hardcode_direct=yes
8693 hardcode_shlibpath_var=no
8694 ;;
8695
8696 *)
8697 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
8704 esac
8705
8706 if test "$ld_shlibs" = no; then
8707 runpath_var=
8708 hardcode_libdir_flag_spec=
8709 export_dynamic_flag_spec=
8710 whole_archive_flag_spec=
8711 fi
8712 else
8713 # PORTME fill in a description of your system's linker (not GNU ld)
8714 case $host_os in
8715 aix3*)
8716 allow_undefined_flag=unsupported
8717 always_export_symbols=yes
8718 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'
8719 # Note: this linker hardcodes the directories in LIBPATH if there
8720 # are no directories specified by -L.
8721 hardcode_minus_L=yes
8722 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8723 # Neither direct hardcoding nor static linking is supported with a
8724 # broken collect2.
8725 hardcode_direct=unsupported
8726 fi
8727 ;;
8728
8729 aix[4-9]*)
8730 if test "$host_cpu" = ia64; then
8731 # On IA64, the linker does run time linking by default, so we don't
8732 # have to do anything special.
8733 aix_use_runtimelinking=no
8734 exp_sym_flag='-Bexport'
8735 no_entry_flag=""
8736 else
8737 # If we're using GNU nm, then we don't want the "-C" option.
8738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8739 # Also, AIX nm treats weak defined symbols like other global
8740 # defined symbols, whereas GNU nm marks them as "W".
8741 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8742 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'
8743 else
5c887dd5 8744 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6bb11ab3
L
8745 fi
8746 aix_use_runtimelinking=no
8747
8748 # Test if we are trying to use run time linking or normal
8749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8750 # need to do runtime linking.
8751 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8752 for ld_flag in $LDFLAGS; do
8753 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8754 aix_use_runtimelinking=yes
8755 break
8756 fi
8757 done
8758 ;;
8759 esac
8760
8761 exp_sym_flag='-bexport'
8762 no_entry_flag='-bnoentry'
8763 fi
8764
8765 # When large executables or shared objects are built, AIX ld can
8766 # have problems creating the table of contents. If linking a library
8767 # or program results in "error TOC overflow" add -mminimal-toc to
8768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8770
8771 archive_cmds=''
8772 hardcode_direct=yes
8773 hardcode_direct_absolute=yes
8774 hardcode_libdir_separator=':'
8775 link_all_deplibs=yes
8776 file_list_spec='${wl}-f,'
8777
8778 if test "$GCC" = yes; then
8779 case $host_os in aix4.[012]|aix4.[012].*)
8780 # We only want to do this on AIX 4.2 and lower, the check
8781 # below for broken collect2 doesn't work under 4.3+
8782 collect2name=`${CC} -print-prog-name=collect2`
8783 if test -f "$collect2name" &&
8784 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8785 then
8786 # We have reworked collect2
8787 :
8788 else
8789 # We have old collect2
8790 hardcode_direct=unsupported
8791 # It fails to find uninstalled libraries when the uninstalled
8792 # path is not listed in the libpath. Setting hardcode_minus_L
8793 # to unsupported forces relinking
8794 hardcode_minus_L=yes
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_libdir_separator=
8797 fi
8798 ;;
8799 esac
8800 shared_flag='-shared'
8801 if test "$aix_use_runtimelinking" = yes; then
8802 shared_flag="$shared_flag "'${wl}-G'
8803 fi
8804 else
8805 # not using gcc
8806 if test "$host_cpu" = ia64; then
8807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8808 # chokes on -Wl,-G. The following line is correct:
8809 shared_flag='-G'
8810 else
8811 if test "$aix_use_runtimelinking" = yes; then
8812 shared_flag='${wl}-G'
8813 else
8814 shared_flag='${wl}-bM:SRE'
8815 fi
8816 fi
8817 fi
8818
8819 export_dynamic_flag_spec='${wl}-bexpall'
8820 # It seems that -bexpall does not export symbols beginning with
8821 # underscore (_), so it is better to generate a list of symbols to export.
8822 always_export_symbols=yes
8823 if test "$aix_use_runtimelinking" = yes; then
8824 # Warning - without using the other runtime loading flags (-brtl),
8825 # -berok will link without error, but may produce a broken library.
8826 allow_undefined_flag='-berok'
8827 # Determine the default libpath from the value encoded in an
8828 # empty executable.
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
8830/* end confdefs.h. */
8831
8832int
8833main ()
8834{
8835
8836 ;
8837 return 0;
8838}
8839_ACEOF
6bb11ab3 8840if ac_fn_c_try_link "$LINENO"; then :
edece237 8841
6bb11ab3
L
8842lt_aix_libpath_sed='
8843 /Import File Strings/,/^$/ {
8844 /^0/ {
8845 s/^0 *\(.*\)$/\1/
8846 p
8847 }
8848 }'
8849aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8850# Check for a 64-bit object if we didn't find anything.
8851if test -z "$aix_libpath"; then
8852 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8853fi
8854fi
8855rm -f core conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8858
8859 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8860 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"
8861 else
8862 if test "$host_cpu" = ia64; then
8863 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8864 allow_undefined_flag="-z nodefs"
8865 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"
8866 else
8867 # Determine the default libpath from the value encoded in an
8868 # empty executable.
81ecdfbb
RW
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870/* end confdefs.h. */
8871
8872int
8873main ()
8874{
8875
8876 ;
8877 return 0;
8878}
8879_ACEOF
6bb11ab3
L
8880if ac_fn_c_try_link "$LINENO"; then :
8881
8882lt_aix_libpath_sed='
8883 /Import File Strings/,/^$/ {
8884 /^0/ {
8885 s/^0 *\(.*\)$/\1/
8886 p
8887 }
8888 }'
8889aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8890# Check for a 64-bit object if we didn't find anything.
8891if test -z "$aix_libpath"; then
8892 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
81ecdfbb 8893fi
81ecdfbb 8894fi
6bb11ab3
L
8895rm -f core conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext conftest.$ac_ext
8897if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8898
8899 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8900 # Warning - without using the other run time loading flags,
8901 # -berok will link without error, but may produce a broken library.
8902 no_undefined_flag=' ${wl}-bernotok'
8903 allow_undefined_flag=' ${wl}-berok'
8904 if test "$with_gnu_ld" = yes; then
8905 # We only use this code for GNU lds that support --whole-archive.
8906 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8907 else
8908 # Exported symbols can be pulled into shared objects from archives
8909 whole_archive_flag_spec='$convenience'
8910 fi
8911 archive_cmds_need_lc=yes
8912 # This is similar to how AIX traditionally builds its shared libraries.
8913 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'
8914 fi
8915 fi
8916 ;;
8917
8918 amigaos*)
8919 case $host_cpu in
8920 powerpc)
8921 # see comment about AmigaOS4 .so support
8922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8923 archive_expsym_cmds=''
8924 ;;
8925 m68k)
8926 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)'
8927 hardcode_libdir_flag_spec='-L$libdir'
8928 hardcode_minus_L=yes
8929 ;;
8930 esac
8931 ;;
8932
8933 bsdi[45]*)
8934 export_dynamic_flag_spec=-rdynamic
8935 ;;
8936
8937 cygwin* | mingw* | pw32* | cegcc*)
8938 # When not using gcc, we currently assume that we are using
8939 # Microsoft Visual C++.
8940 # hardcode_libdir_flag_spec is actually meaningless, as there is
8941 # no search path for DLLs.
8942 hardcode_libdir_flag_spec=' '
8943 allow_undefined_flag=unsupported
8944 # Tell ltmain to make .lib files, not .a files.
8945 libext=lib
8946 # Tell ltmain to make .dll files, not .so files.
8947 shrext_cmds=".dll"
8948 # FIXME: Setting linknames here is a bad hack.
8949 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8950 # The linker will automatically build a .lib file if we build a DLL.
8951 old_archive_from_new_cmds='true'
8952 # FIXME: Should let the user specify the lib program.
8953 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8954 fix_srcfile_path='`cygpath -w "$srcfile"`'
8955 enable_shared_with_static_runtimes=yes
8956 ;;
8957
8958 darwin* | rhapsody*)
8959
8960
8961 archive_cmds_need_lc=no
8962 hardcode_direct=no
8963 hardcode_automatic=yes
8964 hardcode_shlibpath_var=unsupported
8965 if test "$lt_cv_ld_force_load" = "yes"; then
8966 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\"`'
edece237 8967 else
6bb11ab3 8968 whole_archive_flag_spec=''
edece237 8969 fi
6bb11ab3
L
8970 link_all_deplibs=yes
8971 allow_undefined_flag="$_lt_dar_allow_undefined"
8972 case $cc_basename in
8973 ifort*) _lt_dar_can_shared=yes ;;
8974 *) _lt_dar_can_shared=$GCC ;;
8975 esac
8976 if test "$_lt_dar_can_shared" = "yes"; then
8977 output_verbose_link_cmd=func_echo_all
8978 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8979 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8980 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}"
8981 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}"
8982
edece237 8983 else
6bb11ab3 8984 ld_shlibs=no
edece237 8985 fi
6bb11ab3
L
8986
8987 ;;
8988
8989 dgux*)
8990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991 hardcode_libdir_flag_spec='-L$libdir'
8992 hardcode_shlibpath_var=no
8993 ;;
8994
8995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8996 # support. Future versions do this automatically, but an explicit c++rt0.o
8997 # does not break anything, and helps significantly (at the cost of a little
8998 # extra space).
8999 freebsd2.2*)
9000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9001 hardcode_libdir_flag_spec='-R$libdir'
9002 hardcode_direct=yes
9003 hardcode_shlibpath_var=no
9004 ;;
9005
9006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9007 freebsd2.*)
9008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9009 hardcode_direct=yes
9010 hardcode_minus_L=yes
9011 hardcode_shlibpath_var=no
9012 ;;
9013
9014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9015 freebsd* | dragonfly*)
9016 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9017 hardcode_libdir_flag_spec='-R$libdir'
9018 hardcode_direct=yes
9019 hardcode_shlibpath_var=no
9020 ;;
9021
9022 hpux9*)
9023 if test "$GCC" = yes; then
9024 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'
9025 else
9026 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'
9027 fi
9028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9029 hardcode_libdir_separator=:
9030 hardcode_direct=yes
9031
9032 # hardcode_minus_L: Not really in the search PATH,
9033 # but as the default location of the library.
9034 hardcode_minus_L=yes
9035 export_dynamic_flag_spec='${wl}-E'
9036 ;;
9037
9038 hpux10*)
9039 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9040 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9041 else
9042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9043 fi
9044 if test "$with_gnu_ld" = no; then
9045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9046 hardcode_libdir_flag_spec_ld='+b $libdir'
9047 hardcode_libdir_separator=:
9048 hardcode_direct=yes
9049 hardcode_direct_absolute=yes
9050 export_dynamic_flag_spec='${wl}-E'
9051 # hardcode_minus_L: Not really in the search PATH,
9052 # but as the default location of the library.
9053 hardcode_minus_L=yes
9054 fi
9055 ;;
9056
9057 hpux11*)
9058 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9059 case $host_cpu in
9060 hppa*64*)
9061 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 ;;
9063 ia64*)
9064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9065 ;;
9066 *)
9067 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9068 ;;
9069 esac
9070 else
9071 case $host_cpu in
9072 hppa*64*)
9073 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9074 ;;
9075 ia64*)
9076 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9077 ;;
9078 *)
9079
9080 # Older versions of the 11.00 compiler do not understand -b yet
9081 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9083$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9084if ${lt_cv_prog_compiler__b+:} false; then :
81ecdfbb 9085 $as_echo_n "(cached) " >&6
edece237 9086else
6bb11ab3
L
9087 lt_cv_prog_compiler__b=no
9088 save_LDFLAGS="$LDFLAGS"
9089 LDFLAGS="$LDFLAGS -b"
9090 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9091 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9092 # The linker can only warn and ignore the option if not recognized
9093 # So say no if there are warnings
9094 if test -s conftest.err; then
9095 # Append any errors to the config.log.
9096 cat conftest.err 1>&5
9097 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9099 if diff conftest.exp conftest.er2 >/dev/null; then
9100 lt_cv_prog_compiler__b=yes
9101 fi
9102 else
9103 lt_cv_prog_compiler__b=yes
9104 fi
9105 fi
9106 $RM -r conftest*
9107 LDFLAGS="$save_LDFLAGS"
edece237 9108
6bb11ab3
L
9109fi
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9111$as_echo "$lt_cv_prog_compiler__b" >&6; }
edece237 9112
6bb11ab3
L
9113if test x"$lt_cv_prog_compiler__b" = xyes; then
9114 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115else
9116 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9117fi
81ecdfbb 9118
6bb11ab3
L
9119 ;;
9120 esac
9121 fi
9122 if test "$with_gnu_ld" = no; then
9123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9124 hardcode_libdir_separator=:
9125
9126 case $host_cpu in
9127 hppa*64*|ia64*)
9128 hardcode_direct=no
9129 hardcode_shlibpath_var=no
9130 ;;
9131 *)
9132 hardcode_direct=yes
9133 hardcode_direct_absolute=yes
9134 export_dynamic_flag_spec='${wl}-E'
9135
9136 # hardcode_minus_L: Not really in the search PATH,
9137 # but as the default location of the library.
9138 hardcode_minus_L=yes
9139 ;;
9140 esac
9141 fi
9142 ;;
9143
9144 irix5* | irix6* | nonstopux*)
9145 if test "$GCC" = yes; then
9146 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'
9147 # Try to use the -exported_symbol ld option, if it does not
9148 # work, assume that -exports_file does not work either and
9149 # implicitly export all symbols.
9150 save_LDFLAGS="$LDFLAGS"
9151 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153/* end confdefs.h. */
9154int foo(void) {}
edece237 9155_ACEOF
6bb11ab3
L
9156if ac_fn_c_try_link "$LINENO"; then :
9157 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'
edece237
CV
9158
9159fi
6bb11ab3
L
9160rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 LDFLAGS="$save_LDFLAGS"
9163 else
9164 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'
9165 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'
9166 fi
9167 archive_cmds_need_lc='no'
9168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169 hardcode_libdir_separator=:
9170 inherit_rpath=yes
9171 link_all_deplibs=yes
9172 ;;
9173
9174 netbsd*)
9175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9177 else
9178 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9179 fi
9180 hardcode_libdir_flag_spec='-R$libdir'
9181 hardcode_direct=yes
9182 hardcode_shlibpath_var=no
9183 ;;
9184
9185 newsos6)
9186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187 hardcode_direct=yes
9188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189 hardcode_libdir_separator=:
9190 hardcode_shlibpath_var=no
9191 ;;
9192
9193 *nto* | *qnx*)
9194 ;;
9195
9196 openbsd*)
9197 if test -f /usr/libexec/ld.so; then
9198 hardcode_direct=yes
9199 hardcode_shlibpath_var=no
9200 hardcode_direct_absolute=yes
9201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9203 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9205 export_dynamic_flag_spec='${wl}-E'
9206 else
9207 case $host_os in
9208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_libdir_flag_spec='-R$libdir'
9211 ;;
9212 *)
9213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9215 ;;
9216 esac
9217 fi
9218 else
9219 ld_shlibs=no
9220 fi
9221 ;;
9222
9223 os2*)
9224 hardcode_libdir_flag_spec='-L$libdir'
9225 hardcode_minus_L=yes
9226 allow_undefined_flag=unsupported
9227 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'
9228 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9229 ;;
9230
9231 osf3*)
9232 if test "$GCC" = yes; then
9233 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234 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'
9235 else
9236 allow_undefined_flag=' -expect_unresolved \*'
9237 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'
9238 fi
9239 archive_cmds_need_lc='no'
9240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241 hardcode_libdir_separator=:
9242 ;;
9243
9244 osf4* | osf5*) # as osf3* with the addition of -msym flag
9245 if test "$GCC" = yes; then
9246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9247 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'
9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249 else
9250 allow_undefined_flag=' -expect_unresolved \*'
9251 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'
9252 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~
9253 $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'
9254
9255 # Both c and cxx compiler support -rpath directly
9256 hardcode_libdir_flag_spec='-rpath $libdir'
9257 fi
9258 archive_cmds_need_lc='no'
9259 hardcode_libdir_separator=:
9260 ;;
9261
9262 solaris*)
9263 no_undefined_flag=' -z defs'
9264 if test "$GCC" = yes; then
9265 wlarc='${wl}'
9266 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9268 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9269 else
9270 case `$CC -V 2>&1` in
9271 *"Compilers 5.0"*)
9272 wlarc=''
9273 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9276 ;;
9277 *)
9278 wlarc='${wl}'
9279 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9281 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9282 ;;
9283 esac
9284 fi
9285 hardcode_libdir_flag_spec='-R$libdir'
9286 hardcode_shlibpath_var=no
9287 case $host_os in
9288 solaris2.[0-5] | solaris2.[0-5].*) ;;
9289 *)
9290 # The compiler driver will combine and reorder linker options,
9291 # but understands `-z linker_flag'. GCC discards it without `$wl',
9292 # but is careful enough not to reorder.
9293 # Supported since Solaris 2.6 (maybe 2.5.1?)
9294 if test "$GCC" = yes; then
9295 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9296 else
9297 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9298 fi
9299 ;;
9300 esac
9301 link_all_deplibs=yes
9302 ;;
9303
9304 sunos4*)
9305 if test "x$host_vendor" = xsequent; then
9306 # Use $CC to link under sequent, because it throws in some extra .o
9307 # files that make .init and .fini sections work.
9308 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9309 else
9310 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9311 fi
9312 hardcode_libdir_flag_spec='-L$libdir'
9313 hardcode_direct=yes
9314 hardcode_minus_L=yes
9315 hardcode_shlibpath_var=no
9316 ;;
9317
9318 sysv4)
9319 case $host_vendor in
9320 sni)
9321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_direct=yes # is this really true???
9323 ;;
9324 siemens)
9325 ## LD is ld it makes a PLAMLIB
9326 ## CC just makes a GrossModule.
9327 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9328 reload_cmds='$CC -r -o $output$reload_objs'
9329 hardcode_direct=no
9330 ;;
9331 motorola)
9332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9334 ;;
9335 esac
9336 runpath_var='LD_RUN_PATH'
9337 hardcode_shlibpath_var=no
9338 ;;
9339
9340 sysv4.3*)
9341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_shlibpath_var=no
9343 export_dynamic_flag_spec='-Bexport'
9344 ;;
9345
9346 sysv4*MP*)
9347 if test -d /usr/nec; then
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 hardcode_shlibpath_var=no
9350 runpath_var=LD_RUN_PATH
9351 hardcode_runpath_var=yes
9352 ld_shlibs=yes
9353 fi
9354 ;;
9355
9356 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9357 no_undefined_flag='${wl}-z,text'
9358 archive_cmds_need_lc=no
9359 hardcode_shlibpath_var=no
9360 runpath_var='LD_RUN_PATH'
9361
9362 if test "$GCC" = yes; then
9363 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 else
9366 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9368 fi
9369 ;;
9370
9371 sysv5* | sco3.2v5* | sco5v6*)
9372 # Note: We can NOT use -z defs as we might desire, because we do not
9373 # link with -lc, and that would cause any symbols used from libc to
9374 # always be unresolved, which means just about no library would
9375 # ever link correctly. If we're not using GNU ld we use -z text
9376 # though, which does catch some bad symbols but isn't as heavy-handed
9377 # as -z defs.
9378 no_undefined_flag='${wl}-z,text'
9379 allow_undefined_flag='${wl}-z,nodefs'
9380 archive_cmds_need_lc=no
9381 hardcode_shlibpath_var=no
9382 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9383 hardcode_libdir_separator=':'
9384 link_all_deplibs=yes
9385 export_dynamic_flag_spec='${wl}-Bexport'
9386 runpath_var='LD_RUN_PATH'
9387
9388 if test "$GCC" = yes; then
9389 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 else
9392 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 fi
9395 ;;
9396
9397 uts4*)
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_libdir_flag_spec='-L$libdir'
9400 hardcode_shlibpath_var=no
9401 ;;
9402
9403 *)
9404 ld_shlibs=no
9405 ;;
9406 esac
9407
9408 if test x$host_vendor = xsni; then
9409 case $host in
9410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9411 export_dynamic_flag_spec='${wl}-Blargedynsym'
9412 ;;
9413 esac
9414 fi
9415 fi
9416
9417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9418$as_echo "$ld_shlibs" >&6; }
9419test "$ld_shlibs" = no && can_build_shared=no
9420
9421with_gnu_ld=$with_gnu_ld
9422
9423
9424
9425
edece237 9426
edece237 9427
edece237 9428
6ffe910a 9429
6ffe910a
MF
9430
9431
6ffe910a 9432
edece237 9433
edece237
CV
9434
9435
6bb11ab3
L
9436
9437#
9438# Do we need to explicitly link libc?
9439#
9440case "x$archive_cmds_need_lc" in
9441x|xyes)
9442 # Assume -lc should be added
9443 archive_cmds_need_lc=yes
9444
9445 if test "$enable_shared" = yes && test "$GCC" = yes; then
9446 case $archive_cmds in
9447 *'~'*)
9448 # FIXME: we may have to deal with multi-command sequences.
9449 ;;
9450 '$CC '*)
9451 # Test whether the compiler implicitly links with -lc since on some
9452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9453 # to ld, don't add -lc before -lgcc.
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9455$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9456if ${lt_cv_archive_cmds_need_lc+:} false; then :
6ffe910a 9457 $as_echo_n "(cached) " >&6
edece237 9458else
6bb11ab3
L
9459 $RM conftest*
9460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9461
9462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9463 (eval $ac_compile) 2>&5
9464 ac_status=$?
9465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9466 test $ac_status = 0; } 2>conftest.err; then
9467 soname=conftest
9468 lib=conftest
9469 libobjs=conftest.$ac_objext
9470 deplibs=
9471 wl=$lt_prog_compiler_wl
9472 pic_flag=$lt_prog_compiler_pic
9473 compiler_flags=-v
9474 linker_flags=-v
9475 verstring=
9476 output_objdir=.
9477 libname=conftest
9478 lt_save_allow_undefined_flag=$allow_undefined_flag
9479 allow_undefined_flag=
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9481 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9482 ac_status=$?
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; }
9485 then
9486 lt_cv_archive_cmds_need_lc=no
9487 else
9488 lt_cv_archive_cmds_need_lc=yes
9489 fi
9490 allow_undefined_flag=$lt_save_allow_undefined_flag
9491 else
9492 cat conftest.err 1>&5
9493 fi
9494 $RM conftest*
edece237 9495
6ffe910a 9496fi
6bb11ab3
L
9497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9498$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9499 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9500 ;;
9501 esac
9502 fi
9503 ;;
6ffe910a 9504esac
edece237
CV
9505
9506
6ffe910a 9507
edece237 9508
81ecdfbb 9509
edece237 9510
edece237 9511
edece237 9512
edece237 9513
edece237 9514
edece237 9515
edece237 9516
edece237 9517
edece237 9518
81ecdfbb 9519
edece237 9520
edece237
CV
9521
9522
81ecdfbb 9523
81ecdfbb 9524
81ecdfbb
RW
9525
9526
81ecdfbb 9527
81ecdfbb 9528
edece237
CV
9529
9530
edece237 9531
edece237 9532
edece237 9533
edece237 9534
81ecdfbb 9535
edece237 9536
edece237 9537
edece237 9538
81ecdfbb 9539
edece237 9540
edece237 9541
edece237 9542
edece237 9543
81ecdfbb 9544
edece237 9545
edece237 9546
edece237 9547
edece237
CV
9548
9549
9550
9551
6ffe910a 9552
2232061b
MF
9553
9554
2232061b 9555
2232061b
MF
9556
9557
2232061b
MF
9558
9559
2232061b 9560
2232061b
MF
9561
9562
6bb11ab3
L
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9663$as_echo_n "checking dynamic linker characteristics... " >&6; }
9664
9665if test "$GCC" = yes; then
9666 case $host_os in
9667 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9668 *) lt_awk_arg="/^libraries:/" ;;
9669 esac
9670 case $host_os in
9671 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9672 *) lt_sed_strip_eq="s,=/,/,g" ;;
9673 esac
9674 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9675 case $lt_search_path_spec in
9676 *\;*)
9677 # if the path contains ";" then we assume it to be the separator
9678 # otherwise default to the standard path separator (i.e. ":") - it is
9679 # assumed that no part of a normal pathname contains ";" but that should
9680 # okay in the real world where ";" in dirpaths is itself problematic.
9681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9682 ;;
9683 *)
9684 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9685 ;;
9686 esac
9687 # Ok, now we have the path, separated by spaces, we can step through it
9688 # and add multilib dir if necessary.
9689 lt_tmp_lt_search_path_spec=
9690 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9691 for lt_sys_path in $lt_search_path_spec; do
9692 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9693 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9694 else
9695 test -d "$lt_sys_path" && \
9696 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9697 fi
9698 done
9699 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9700BEGIN {RS=" "; FS="/|\n";} {
9701 lt_foo="";
9702 lt_count=0;
9703 for (lt_i = NF; lt_i > 0; lt_i--) {
9704 if ($lt_i != "" && $lt_i != ".") {
9705 if ($lt_i == "..") {
9706 lt_count++;
9707 } else {
9708 if (lt_count == 0) {
9709 lt_foo="/" $lt_i lt_foo;
9710 } else {
9711 lt_count--;
9712 }
9713 }
9714 }
9715 }
9716 if (lt_foo != "") { lt_freq[lt_foo]++; }
9717 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9718}'`
9719 # AWK program above erroneously prepends '/' to C:/dos/paths
9720 # for these hosts.
9721 case $host_os in
9722 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9723 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9724 esac
9725 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9726else
9727 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9728fi
9729library_names_spec=
9730libname_spec='lib$name'
9731soname_spec=
9732shrext_cmds=".so"
9733postinstall_cmds=
9734postuninstall_cmds=
9735finish_cmds=
9736finish_eval=
9737shlibpath_var=
9738shlibpath_overrides_runpath=unknown
9739version_type=none
9740dynamic_linker="$host_os ld.so"
9741sys_lib_dlsearch_path_spec="/lib /usr/lib"
9742need_lib_prefix=unknown
9743hardcode_into_libs=no
9744
9745# when you set need_version to no, make sure it does not cause -set_version
9746# flags to be left without arguments
9747need_version=unknown
9748
9749case $host_os in
9750aix3*)
9751 version_type=linux
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9753 shlibpath_var=LIBPATH
9754
9755 # AIX 3 has no versioning support, so we append a major version to the name.
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 ;;
9758
9759aix[4-9]*)
9760 version_type=linux
9761 need_lib_prefix=no
9762 need_version=no
9763 hardcode_into_libs=yes
9764 if test "$host_cpu" = ia64; then
9765 # AIX 5 supports IA64
9766 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9767 shlibpath_var=LD_LIBRARY_PATH
9768 else
9769 # With GCC up to 2.95.x, collect2 would create an import file
9770 # for dependence libraries. The import file would start with
9771 # the line `#! .'. This would cause the generated library to
9772 # depend on `.', always an invalid library. This was fixed in
9773 # development snapshots of GCC prior to 3.0.
9774 case $host_os in
9775 aix4 | aix4.[01] | aix4.[01].*)
9776 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9777 echo ' yes '
9778 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9779 :
9780 else
9781 can_build_shared=no
9782 fi
9783 ;;
9784 esac
9785 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9786 # soname into executable. Probably we can add versioning support to
9787 # collect2, so additional links can be useful in future.
9788 if test "$aix_use_runtimelinking" = yes; then
9789 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9790 # instead of lib<name>.a to let people know that these are not
9791 # typical AIX shared libraries.
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 else
9794 # We preserve .a as extension for shared libraries through AIX4.2
9795 # and later when we are not doing run time linking.
9796 library_names_spec='${libname}${release}.a $libname.a'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 fi
9799 shlibpath_var=LIBPATH
9800 fi
9801 ;;
9802
9803amigaos*)
9804 case $host_cpu in
9805 powerpc)
9806 # Since July 2007 AmigaOS4 officially supports .so libraries.
9807 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809 ;;
9810 m68k)
9811 library_names_spec='$libname.ixlibrary $libname.a'
9812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9813 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'
9814 ;;
9815 esac
9816 ;;
9817
9818beos*)
9819 library_names_spec='${libname}${shared_ext}'
9820 dynamic_linker="$host_os ld.so"
9821 shlibpath_var=LIBRARY_PATH
9822 ;;
9823
9824bsdi[45]*)
9825 version_type=linux
9826 need_version=no
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9828 soname_spec='${libname}${release}${shared_ext}$major'
9829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9830 shlibpath_var=LD_LIBRARY_PATH
9831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9833 # the default ld.so.conf also contains /usr/contrib/lib and
9834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9835 # libtool to hard-code these into programs
9836 ;;
9837
9838cygwin* | mingw* | pw32* | cegcc*)
9839 version_type=windows
9840 shrext_cmds=".dll"
9841 need_version=no
9842 need_lib_prefix=no
9843
9844 case $GCC,$host_os in
9845 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9846 library_names_spec='$libname.dll.a'
9847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9848 postinstall_cmds='base_file=`basename \${file}`~
9849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9850 dldir=$destdir/`dirname \$dlpath`~
9851 test -d \$dldir || mkdir -p \$dldir~
9852 $install_prog $dir/$dlname \$dldir/$dlname~
9853 chmod a+x \$dldir/$dlname~
9854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9856 fi'
9857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9858 dlpath=$dir/\$dldll~
9859 $RM \$dlpath'
9860 shlibpath_overrides_runpath=yes
9861
9862 case $host_os in
9863 cygwin*)
9864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9865 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9866
9867 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9868 ;;
9869 mingw* | cegcc*)
9870 # MinGW DLLs use traditional 'lib' prefix
9871 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9872 ;;
9873 pw32*)
9874 # pw32 DLLs use 'pw' prefix rather than 'lib'
9875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9876 ;;
9877 esac
9878 ;;
9879
9880 *)
9881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9882 ;;
9883 esac
9884 dynamic_linker='Win32 ld.exe'
9885 # FIXME: first we should search . and the directory the executable is in
9886 shlibpath_var=PATH
9887 ;;
9888
9889darwin* | rhapsody*)
9890 dynamic_linker="$host_os dyld"
9891 version_type=darwin
9892 need_lib_prefix=no
9893 need_version=no
9894 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9895 soname_spec='${libname}${release}${major}$shared_ext'
9896 shlibpath_overrides_runpath=yes
9897 shlibpath_var=DYLD_LIBRARY_PATH
9898 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9899
9900 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9901 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9902 ;;
9903
9904dgux*)
9905 version_type=linux
9906 need_lib_prefix=no
9907 need_version=no
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 ;;
9912
9913freebsd* | dragonfly*)
9914 # DragonFly does not have aout. When/if they implement a new
9915 # versioning mechanism, adjust this.
9916 if test -x /usr/bin/objformat; then
9917 objformat=`/usr/bin/objformat`
9918 else
9919 case $host_os in
9920 freebsd[23].*) objformat=aout ;;
9921 *) objformat=elf ;;
9922 esac
9923 fi
9924 version_type=freebsd-$objformat
9925 case $version_type in
9926 freebsd-elf*)
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9928 need_version=no
9929 need_lib_prefix=no
9930 ;;
9931 freebsd-*)
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9933 need_version=yes
9934 ;;
9935 esac
9936 shlibpath_var=LD_LIBRARY_PATH
9937 case $host_os in
9938 freebsd2.*)
9939 shlibpath_overrides_runpath=yes
9940 ;;
9941 freebsd3.[01]* | freebsdelf3.[01]*)
9942 shlibpath_overrides_runpath=yes
9943 hardcode_into_libs=yes
9944 ;;
9945 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9946 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9947 shlibpath_overrides_runpath=no
9948 hardcode_into_libs=yes
9949 ;;
9950 *) # from 4.6 on, and DragonFly
9951 shlibpath_overrides_runpath=yes
9952 hardcode_into_libs=yes
9953 ;;
9954 esac
9955 ;;
9956
6bb11ab3
L
9957haiku*)
9958 version_type=linux
9959 need_lib_prefix=no
9960 need_version=no
9961 dynamic_linker="$host_os runtime_loader"
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 shlibpath_var=LIBRARY_PATH
9965 shlibpath_overrides_runpath=yes
9966 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9967 hardcode_into_libs=yes
9968 ;;
9969
9970hpux9* | hpux10* | hpux11*)
9971 # Give a soname corresponding to the major version so that dld.sl refuses to
9972 # link against other versions.
9973 version_type=sunos
9974 need_lib_prefix=no
9975 need_version=no
9976 case $host_cpu in
9977 ia64*)
9978 shrext_cmds='.so'
9979 hardcode_into_libs=yes
9980 dynamic_linker="$host_os dld.so"
9981 shlibpath_var=LD_LIBRARY_PATH
9982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 if test "X$HPUX_IA64_MODE" = X32; then
9986 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9987 else
9988 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9989 fi
9990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9991 ;;
9992 hppa*64*)
9993 shrext_cmds='.sl'
9994 hardcode_into_libs=yes
9995 dynamic_linker="$host_os dld.sl"
9996 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10002 ;;
10003 *)
10004 shrext_cmds='.sl'
10005 dynamic_linker="$host_os dld.sl"
10006 shlibpath_var=SHLIB_PATH
10007 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 ;;
10011 esac
10012 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10013 postinstall_cmds='chmod 555 $lib'
10014 # or fails outright, so override atomically:
10015 install_override_mode=555
10016 ;;
10017
10018interix[3-9]*)
10019 version_type=linux
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 shlibpath_overrides_runpath=no
10027 hardcode_into_libs=yes
10028 ;;
10029
10030irix5* | irix6* | nonstopux*)
10031 case $host_os in
10032 nonstopux*) version_type=nonstopux ;;
10033 *)
10034 if test "$lt_cv_prog_gnu_ld" = yes; then
10035 version_type=linux
10036 else
10037 version_type=irix
10038 fi ;;
10039 esac
10040 need_lib_prefix=no
10041 need_version=no
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10044 case $host_os in
10045 irix5* | nonstopux*)
10046 libsuff= shlibsuff=
10047 ;;
10048 *)
10049 case $LD in # libtool.m4 will add one of these switches to LD
10050 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10051 libsuff= shlibsuff= libmagic=32-bit;;
10052 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10053 libsuff=32 shlibsuff=N32 libmagic=N32;;
10054 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10055 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10056 *) libsuff= shlibsuff= libmagic=never-match;;
10057 esac
10058 ;;
10059 esac
10060 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10061 shlibpath_overrides_runpath=no
10062 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10063 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10064 hardcode_into_libs=yes
10065 ;;
10066
10067# No shared lib support for Linux oldld, aout, or coff.
10068linux*oldld* | linux*aout* | linux*coff*)
10069 dynamic_linker=no
10070 ;;
10071
10072# This must be Linux ELF.
46f900c0 10073linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
10074 version_type=linux
10075 need_lib_prefix=no
10076 need_version=no
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 shlibpath_overrides_runpath=no
10082
10083 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10084 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
10085 $as_echo_n "(cached) " >&6
10086else
6bb11ab3
L
10087 lt_cv_shlibpath_overrides_runpath=no
10088 save_LDFLAGS=$LDFLAGS
10089 save_libdir=$libdir
10090 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10091 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
10093/* end confdefs.h. */
10094
2232061b
MF
10095int
10096main ()
10097{
10098
10099 ;
10100 return 0;
10101}
10102_ACEOF
6bb11ab3
L
10103if ac_fn_c_try_link "$LINENO"; then :
10104 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10105 lt_cv_shlibpath_overrides_runpath=yes
2232061b 10106fi
2232061b 10107fi
6bb11ab3
L
10108rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LDFLAGS=$save_LDFLAGS
10111 libdir=$save_libdir
2232061b 10112
6bb11ab3 10113fi
2232061b 10114
6bb11ab3 10115 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 10116
6bb11ab3
L
10117 # This implies no fast_install, which is unacceptable.
10118 # Some rework will be needed to allow for fast_install
10119 # before this can be enabled.
10120 hardcode_into_libs=yes
2232061b 10121
6bb11ab3
L
10122 # Append ld.so.conf contents to the search path
10123 if test -f /etc/ld.so.conf; then
10124 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' ' '`
10125 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10126 fi
2232061b 10127
6bb11ab3
L
10128 # We used to test for /lib/ld.so.1 and disable shared libraries on
10129 # powerpc, because MkLinux only supported shared libraries with the
10130 # GNU dynamic linker. Since this was broken with cross compilers,
10131 # most powerpc-linux boxes support dynamic linking these days and
10132 # people can always --disable-shared, the test was removed, and we
10133 # assume the GNU/Linux dynamic linker is in use.
10134 dynamic_linker='GNU/Linux ld.so'
10135 ;;
10136
10137netbsd*)
10138 version_type=sunos
10139 need_lib_prefix=no
10140 need_version=no
10141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10144 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 10145 else
6bb11ab3
L
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 dynamic_linker='NetBSD ld.elf_so'
10149 fi
10150 shlibpath_var=LD_LIBRARY_PATH
10151 shlibpath_overrides_runpath=yes
10152 hardcode_into_libs=yes
10153 ;;
10154
10155newsos6)
10156 version_type=linux
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 shlibpath_overrides_runpath=yes
10160 ;;
10161
10162*nto* | *qnx*)
10163 version_type=qnx
10164 need_lib_prefix=no
10165 need_version=no
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167 soname_spec='${libname}${release}${shared_ext}$major'
10168 shlibpath_var=LD_LIBRARY_PATH
10169 shlibpath_overrides_runpath=no
10170 hardcode_into_libs=yes
10171 dynamic_linker='ldqnx.so'
10172 ;;
10173
10174openbsd*)
10175 version_type=sunos
10176 sys_lib_dlsearch_path_spec="/usr/lib"
10177 need_lib_prefix=no
10178 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10179 case $host_os in
10180 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10181 *) need_version=no ;;
10182 esac
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10187 case $host_os in
10188 openbsd2.[89] | openbsd2.[89].*)
10189 shlibpath_overrides_runpath=no
10190 ;;
10191 *)
10192 shlibpath_overrides_runpath=yes
10193 ;;
10194 esac
10195 else
10196 shlibpath_overrides_runpath=yes
10197 fi
10198 ;;
10199
10200os2*)
10201 libname_spec='$name'
10202 shrext_cmds=".dll"
10203 need_lib_prefix=no
10204 library_names_spec='$libname${shared_ext} $libname.a'
10205 dynamic_linker='OS/2 ld.exe'
10206 shlibpath_var=LIBPATH
10207 ;;
10208
10209osf3* | osf4* | osf5*)
10210 version_type=osf
10211 need_lib_prefix=no
10212 need_version=no
10213 soname_spec='${libname}${release}${shared_ext}$major'
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10217 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10218 ;;
10219
10220rdos*)
10221 dynamic_linker=no
10222 ;;
10223
10224solaris*)
10225 version_type=linux
10226 need_lib_prefix=no
10227 need_version=no
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 shlibpath_overrides_runpath=yes
10232 hardcode_into_libs=yes
10233 # ldd complains unless libraries are executable
10234 postinstall_cmds='chmod +x $lib'
10235 ;;
10236
10237sunos4*)
10238 version_type=sunos
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10240 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=yes
10243 if test "$with_gnu_ld" = yes; then
10244 need_lib_prefix=no
10245 fi
10246 need_version=yes
10247 ;;
10248
10249sysv4 | sysv4.3*)
10250 version_type=linux
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 case $host_vendor in
10255 sni)
10256 shlibpath_overrides_runpath=no
10257 need_lib_prefix=no
10258 runpath_var=LD_RUN_PATH
10259 ;;
10260 siemens)
10261 need_lib_prefix=no
10262 ;;
10263 motorola)
10264 need_lib_prefix=no
10265 need_version=no
10266 shlibpath_overrides_runpath=no
10267 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10268 ;;
10269 esac
10270 ;;
10271
10272sysv4*MP*)
10273 if test -d /usr/nec ;then
10274 version_type=linux
10275 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10276 soname_spec='$libname${shared_ext}.$major'
10277 shlibpath_var=LD_LIBRARY_PATH
2232061b 10278 fi
6bb11ab3
L
10279 ;;
10280
10281sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10282 version_type=freebsd-elf
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 hardcode_into_libs=yes
10290 if test "$with_gnu_ld" = yes; then
10291 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10292 else
10293 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10294 case $host_os in
10295 sco3.2v5*)
10296 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10297 ;;
10298 esac
10299 fi
10300 sys_lib_dlsearch_path_spec='/usr/lib'
10301 ;;
10302
10303tpf*)
10304 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10305 version_type=linux
10306 need_lib_prefix=no
10307 need_version=no
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 shlibpath_overrides_runpath=no
10311 hardcode_into_libs=yes
10312 ;;
10313
10314uts4*)
10315 version_type=linux
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 ;;
10320
10321*)
10322 dynamic_linker=no
10323 ;;
10324esac
10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10326$as_echo "$dynamic_linker" >&6; }
10327test "$dynamic_linker" = no && can_build_shared=no
10328
10329variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10330if test "$GCC" = yes; then
10331 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 10332fi
2232061b 10333
6bb11ab3
L
10334if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10335 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10336fi
10337if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10338 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10339fi
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
2232061b 10366
2232061b 10367
2232061b 10368
2232061b 10369
2232061b
MF
10370
10371
6ffe910a 10372
6ffe910a
MF
10373
10374
10375
10376
10377
2232061b 10378
6ffe910a
MF
10379
10380
10381
10382
6ffe910a 10383
6ffe910a 10384
6ffe910a
MF
10385
10386
6ffe910a 10387
6ffe910a 10388
6ffe910a
MF
10389
10390
5f3ef9d0 10391
5f3ef9d0
JB
10392
10393
10394
db2e4d67
MF
10395
10396
db2e4d67 10397
db2e4d67 10398
db2e4d67 10399
db2e4d67 10400
db2e4d67 10401
db2e4d67 10402
db2e4d67 10403
db2e4d67
MF
10404
10405
db2e4d67 10406
db2e4d67
MF
10407
10408
db2e4d67 10409
db2e4d67
MF
10410
10411
6ffe910a 10412
6ffe910a 10413
6ffe910a
MF
10414
10415
6ffe910a
MF
10416
10417
6ffe910a 10418
6ffe910a 10419
6ffe910a 10420
6ffe910a 10421
6ffe910a 10422
edece237 10423
edece237 10424
edece237 10425
edece237 10426
edece237 10427
edece237 10428
edece237 10429
edece237 10430
edece237 10431
6bb11ab3
L
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10433$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10434hardcode_action=
10435if test -n "$hardcode_libdir_flag_spec" ||
10436 test -n "$runpath_var" ||
10437 test "X$hardcode_automatic" = "Xyes" ; then
edece237 10438
6bb11ab3
L
10439 # We can hardcode non-existent directories.
10440 if test "$hardcode_direct" != no &&
10441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10442 # have to relink, otherwise we might link with an installed library
10443 # when we should be linking with a yet-to-be-installed one
10444 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10445 test "$hardcode_minus_L" != no; then
10446 # Linking always hardcodes the temporary library directory.
10447 hardcode_action=relink
10448 else
10449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10450 hardcode_action=immediate
10451 fi
10452else
10453 # We cannot hardcode anything, or else we can only hardcode existing
10454 # directories.
10455 hardcode_action=unsupported
edece237 10456fi
6bb11ab3
L
10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10458$as_echo "$hardcode_action" >&6; }
edece237 10459
6bb11ab3
L
10460if test "$hardcode_action" = relink ||
10461 test "$inherit_rpath" = yes; then
10462 # Fast installation is not supported
10463 enable_fast_install=no
10464elif test "$shlibpath_overrides_runpath" = yes ||
10465 test "$enable_shared" = no; then
10466 # Fast installation is not necessary
10467 enable_fast_install=needless
10468fi
edece237 10469
6bb11ab3
L
10470
10471
10472
10473
10474
10475 if test "x$enable_dlopen" != xyes; then
10476 enable_dlopen=unknown
10477 enable_dlopen_self=unknown
10478 enable_dlopen_self_static=unknown
10479else
10480 lt_cv_dlopen=no
10481 lt_cv_dlopen_libs=
10482
10483 case $host_os in
10484 beos*)
10485 lt_cv_dlopen="load_add_on"
10486 lt_cv_dlopen_libs=
10487 lt_cv_dlopen_self=yes
10488 ;;
10489
10490 mingw* | pw32* | cegcc*)
10491 lt_cv_dlopen="LoadLibrary"
10492 lt_cv_dlopen_libs=
10493 ;;
10494
10495 cygwin*)
10496 lt_cv_dlopen="dlopen"
10497 lt_cv_dlopen_libs=
10498 ;;
10499
10500 darwin*)
10501 # if libdl is installed we need to link against it
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10503$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10504if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
10505 $as_echo_n "(cached) " >&6
10506else
10507 ac_check_lib_save_LIBS=$LIBS
10508LIBS="-ldl $LIBS"
10509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510/* end confdefs.h. */
10511
10512/* Override any GCC internal prototype to avoid an error.
10513 Use char because int might match the return type of a GCC
10514 builtin and then its argument prototype would still apply. */
10515#ifdef __cplusplus
10516extern "C"
10517#endif
10518char dlopen ();
10519int
10520main ()
10521{
10522return dlopen ();
10523 ;
10524 return 0;
10525}
edece237 10526_ACEOF
6bb11ab3
L
10527if ac_fn_c_try_link "$LINENO"; then :
10528 ac_cv_lib_dl_dlopen=yes
10529else
10530 ac_cv_lib_dl_dlopen=no
10531fi
10532rm -f core conftest.err conftest.$ac_objext \
10533 conftest$ac_exeext conftest.$ac_ext
10534LIBS=$ac_check_lib_save_LIBS
10535fi
10536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10537$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10538if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10539 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10540else
10541
10542 lt_cv_dlopen="dyld"
10543 lt_cv_dlopen_libs=
10544 lt_cv_dlopen_self=yes
edece237
CV
10545
10546fi
edece237 10547
6bb11ab3 10548 ;;
edece237 10549
6bb11ab3
L
10550 *)
10551 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10552if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
10553 lt_cv_dlopen="shl_load"
10554else
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10556$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10557if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
10558 $as_echo_n "(cached) " >&6
10559else
10560 ac_check_lib_save_LIBS=$LIBS
10561LIBS="-ldld $LIBS"
10562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563/* end confdefs.h. */
10564
10565/* Override any GCC internal prototype to avoid an error.
10566 Use char because int might match the return type of a GCC
10567 builtin and then its argument prototype would still apply. */
10568#ifdef __cplusplus
10569extern "C"
10570#endif
10571char shl_load ();
10572int
10573main ()
10574{
10575return shl_load ();
10576 ;
10577 return 0;
10578}
10579_ACEOF
10580if ac_fn_c_try_link "$LINENO"; then :
10581 ac_cv_lib_dld_shl_load=yes
10582else
10583 ac_cv_lib_dld_shl_load=no
10584fi
10585rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587LIBS=$ac_check_lib_save_LIBS
10588fi
10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10590$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10591if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
10592 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10593else
10594 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10595if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
10596 lt_cv_dlopen="dlopen"
10597else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10599$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10600if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10601 $as_echo_n "(cached) " >&6
edece237
CV
10602else
10603 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10604LIBS="-ldl $LIBS"
81ecdfbb 10605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
edece237
CV
10606/* end confdefs.h. */
10607
81ecdfbb
RW
10608/* Override any GCC internal prototype to avoid an error.
10609 Use char because int might match the return type of a GCC
10610 builtin and then its argument prototype would still apply. */
edece237
CV
10611#ifdef __cplusplus
10612extern "C"
10613#endif
6bb11ab3 10614char dlopen ();
edece237
CV
10615int
10616main ()
10617{
6bb11ab3 10618return dlopen ();
edece237
CV
10619 ;
10620 return 0;
10621}
10622_ACEOF
81ecdfbb 10623if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10624 ac_cv_lib_dl_dlopen=yes
edece237 10625else
6bb11ab3 10626 ac_cv_lib_dl_dlopen=no
edece237 10627fi
81ecdfbb
RW
10628rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
edece237
CV
10630LIBS=$ac_check_lib_save_LIBS
10631fi
6bb11ab3
L
10632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10633$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10634if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10636else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10638$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10639if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10640 $as_echo_n "(cached) " >&6
edece237
CV
10641else
10642 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10643LIBS="-lsvld $LIBS"
81ecdfbb 10644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
edece237
CV
10645/* end confdefs.h. */
10646
81ecdfbb
RW
10647/* Override any GCC internal prototype to avoid an error.
10648 Use char because int might match the return type of a GCC
10649 builtin and then its argument prototype would still apply. */
edece237
CV
10650#ifdef __cplusplus
10651extern "C"
10652#endif
6bb11ab3 10653char dlopen ();
edece237
CV
10654int
10655main ()
10656{
6bb11ab3 10657return dlopen ();
edece237
CV
10658 ;
10659 return 0;
10660}
10661_ACEOF
81ecdfbb 10662if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10663 ac_cv_lib_svld_dlopen=yes
edece237 10664else
6bb11ab3 10665 ac_cv_lib_svld_dlopen=no
edece237 10666fi
81ecdfbb
RW
10667rm -f core conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
edece237
CV
10669LIBS=$ac_check_lib_save_LIBS
10670fi
6bb11ab3
L
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10672$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10673if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 10674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 10675else
6bb11ab3
L
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10677$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10678if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 10679 $as_echo_n "(cached) " >&6
b5bd9624 10680else
6bb11ab3
L
10681 ac_check_lib_save_LIBS=$LIBS
10682LIBS="-ldld $LIBS"
81ecdfbb 10683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624
HPN
10684/* end confdefs.h. */
10685
81ecdfbb
RW
10686/* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
b5bd9624 10688 builtin and then its argument prototype would still apply. */
b5bd9624
HPN
10689#ifdef __cplusplus
10690extern "C"
10691#endif
6bb11ab3 10692char dld_link ();
b5bd9624
HPN
10693int
10694main ()
10695{
6bb11ab3 10696return dld_link ();
b5bd9624
HPN
10697 ;
10698 return 0;
10699}
10700_ACEOF
6bb11ab3
L
10701if ac_fn_c_try_link "$LINENO"; then :
10702 ac_cv_lib_dld_dld_link=yes
10703else
10704 ac_cv_lib_dld_dld_link=no
10705fi
10706rm -f core conftest.err conftest.$ac_objext \
10707 conftest$ac_exeext conftest.$ac_ext
10708LIBS=$ac_check_lib_save_LIBS
10709fi
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10711$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 10712if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
10713 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10714fi
10715
10716
10717fi
10718
10719
10720fi
10721
10722
10723fi
10724
10725
10726fi
10727
10728
10729fi
10730
10731 ;;
10732 esac
10733
10734 if test "x$lt_cv_dlopen" != xno; then
10735 enable_dlopen=yes
b5bd9624 10736 else
6bb11ab3
L
10737 enable_dlopen=no
10738 fi
10739
10740 case $lt_cv_dlopen in
10741 dlopen)
10742 save_CPPFLAGS="$CPPFLAGS"
10743 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10744
10745 save_LDFLAGS="$LDFLAGS"
10746 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10747
10748 save_LIBS="$LIBS"
10749 LIBS="$lt_cv_dlopen_libs $LIBS"
10750
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10752$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 10753if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
10754 $as_echo_n "(cached) " >&6
10755else
10756 if test "$cross_compiling" = yes; then :
10757 lt_cv_dlopen_self=cross
10758else
10759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10760 lt_status=$lt_dlunknown
10761 cat > conftest.$ac_ext <<_LT_EOF
6dd65fc0 10762#line 10762 "configure"
6bb11ab3
L
10763#include "confdefs.h"
10764
10765#if HAVE_DLFCN_H
10766#include <dlfcn.h>
10767#endif
10768
10769#include <stdio.h>
10770
10771#ifdef RTLD_GLOBAL
10772# define LT_DLGLOBAL RTLD_GLOBAL
10773#else
10774# ifdef DL_GLOBAL
10775# define LT_DLGLOBAL DL_GLOBAL
10776# else
10777# define LT_DLGLOBAL 0
10778# endif
10779#endif
10780
10781/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10782 find out it does not work in some platform. */
10783#ifndef LT_DLLAZY_OR_NOW
10784# ifdef RTLD_LAZY
10785# define LT_DLLAZY_OR_NOW RTLD_LAZY
10786# else
10787# ifdef DL_LAZY
10788# define LT_DLLAZY_OR_NOW DL_LAZY
10789# else
10790# ifdef RTLD_NOW
10791# define LT_DLLAZY_OR_NOW RTLD_NOW
10792# else
10793# ifdef DL_NOW
10794# define LT_DLLAZY_OR_NOW DL_NOW
10795# else
10796# define LT_DLLAZY_OR_NOW 0
10797# endif
10798# endif
10799# endif
10800# endif
10801#endif
10802
10803/* When -fvisbility=hidden is used, assume the code has been annotated
10804 correspondingly for the symbols needed. */
10805#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10806void fnord () __attribute__((visibility("default")));
10807#endif
10808
10809void fnord () { int i=42; }
10810int main ()
10811{
10812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10813 int status = $lt_dlunknown;
10814
10815 if (self)
10816 {
10817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10818 else
10819 {
10820 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10821 else puts (dlerror ());
10822 }
10823 /* dlclose (self); */
10824 }
10825 else
10826 puts (dlerror ());
10827
10828 return status;
10829}
10830_LT_EOF
10831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10832 (eval $ac_link) 2>&5
10833 ac_status=$?
10834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10836 (./conftest; exit; ) >&5 2>/dev/null
10837 lt_status=$?
10838 case x$lt_status in
10839 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10840 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10841 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10842 esac
10843 else :
10844 # compilation failed
10845 lt_cv_dlopen_self=no
b5bd9624 10846 fi
b5bd9624 10847fi
6bb11ab3
L
10848rm -fr conftest*
10849
10850
b5bd9624 10851fi
6bb11ab3
L
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10853$as_echo "$lt_cv_dlopen_self" >&6; }
b5bd9624 10854
6bb11ab3
L
10855 if test "x$lt_cv_dlopen_self" = xyes; then
10856 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10858$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 10859if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 10860 $as_echo_n "(cached) " >&6
b5bd9624 10861else
6bb11ab3
L
10862 if test "$cross_compiling" = yes; then :
10863 lt_cv_dlopen_self_static=cross
10864else
10865 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10866 lt_status=$lt_dlunknown
10867 cat > conftest.$ac_ext <<_LT_EOF
6dd65fc0 10868#line 10868 "configure"
6bb11ab3
L
10869#include "confdefs.h"
10870
10871#if HAVE_DLFCN_H
10872#include <dlfcn.h>
10873#endif
10874
10875#include <stdio.h>
10876
10877#ifdef RTLD_GLOBAL
10878# define LT_DLGLOBAL RTLD_GLOBAL
10879#else
10880# ifdef DL_GLOBAL
10881# define LT_DLGLOBAL DL_GLOBAL
10882# else
10883# define LT_DLGLOBAL 0
10884# endif
10885#endif
10886
10887/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10888 find out it does not work in some platform. */
10889#ifndef LT_DLLAZY_OR_NOW
10890# ifdef RTLD_LAZY
10891# define LT_DLLAZY_OR_NOW RTLD_LAZY
10892# else
10893# ifdef DL_LAZY
10894# define LT_DLLAZY_OR_NOW DL_LAZY
10895# else
10896# ifdef RTLD_NOW
10897# define LT_DLLAZY_OR_NOW RTLD_NOW
10898# else
10899# ifdef DL_NOW
10900# define LT_DLLAZY_OR_NOW DL_NOW
10901# else
10902# define LT_DLLAZY_OR_NOW 0
10903# endif
10904# endif
10905# endif
10906# endif
10907#endif
10908
10909/* When -fvisbility=hidden is used, assume the code has been annotated
10910 correspondingly for the symbols needed. */
10911#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10912void fnord () __attribute__((visibility("default")));
10913#endif
10914
10915void fnord () { int i=42; }
10916int main ()
10917{
10918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10919 int status = $lt_dlunknown;
10920
10921 if (self)
10922 {
10923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10924 else
10925 {
10926 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10927 else puts (dlerror ());
10928 }
10929 /* dlclose (self); */
10930 }
10931 else
10932 puts (dlerror ());
10933
10934 return status;
10935}
10936_LT_EOF
10937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10938 (eval $ac_link) 2>&5
10939 ac_status=$?
10940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10941 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10942 (./conftest; exit; ) >&5 2>/dev/null
10943 lt_status=$?
10944 case x$lt_status in
10945 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10946 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10947 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10948 esac
10949 else :
10950 # compilation failed
10951 lt_cv_dlopen_self_static=no
10952 fi
b5bd9624 10953fi
6bb11ab3
L
10954rm -fr conftest*
10955
10956
b5bd9624 10957fi
6bb11ab3
L
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10959$as_echo "$lt_cv_dlopen_self_static" >&6; }
10960 fi
10961
10962 CPPFLAGS="$save_CPPFLAGS"
10963 LDFLAGS="$save_LDFLAGS"
10964 LIBS="$save_LIBS"
10965 ;;
10966 esac
10967
10968 case $lt_cv_dlopen_self in
10969 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10970 *) enable_dlopen_self=unknown ;;
10971 esac
10972
10973 case $lt_cv_dlopen_self_static in
10974 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10975 *) enable_dlopen_self_static=unknown ;;
10976 esac
10977fi
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995striplib=
10996old_striplib=
10997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10998$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10999if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11000 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11001 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11003$as_echo "yes" >&6; }
11004else
11005# FIXME - insert some real tests, host_os isn't really good enough
11006 case $host_os in
11007 darwin*)
11008 if test -n "$STRIP" ; then
11009 striplib="$STRIP -x"
11010 old_striplib="$STRIP -S"
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11012$as_echo "yes" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015$as_echo "no" >&6; }
11016 fi
11017 ;;
11018 *)
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020$as_echo "no" >&6; }
11021 ;;
11022 esac
11023fi
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036 # Report which library types will actually be built
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11038$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11040$as_echo "$can_build_shared" >&6; }
11041
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11043$as_echo_n "checking whether to build shared libraries... " >&6; }
11044 test "$can_build_shared" = "no" && enable_shared=no
11045
11046 # On AIX, shared libraries and static libraries use the same namespace, and
11047 # are all built from PIC.
11048 case $host_os in
11049 aix3*)
11050 test "$enable_shared" = yes && enable_static=no
11051 if test -n "$RANLIB"; then
11052 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11053 postinstall_cmds='$RANLIB $lib'
11054 fi
11055 ;;
11056
11057 aix[4-9]*)
11058 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11059 test "$enable_shared" = yes && enable_static=no
11060 fi
11061 ;;
11062 esac
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11064$as_echo "$enable_shared" >&6; }
11065
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11067$as_echo_n "checking whether to build static libraries... " >&6; }
11068 # Make sure either enable_shared or enable_static is yes.
11069 test "$enable_shared" = yes || enable_static=yes
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11071$as_echo "$enable_static" >&6; }
11072
11073
11074
11075
11076fi
11077ac_ext=c
11078ac_cpp='$CPP $CPPFLAGS'
11079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11081ac_compiler_gnu=$ac_cv_c_compiler_gnu
11082
11083CC="$lt_save_CC"
11084
11085
11086
11087
11088
11089
11090
11091
11092
b5bd9624 11093
b5bd9624 11094
b5bd9624 11095
b5bd9624 11096
6bb11ab3
L
11097 ac_config_commands="$ac_config_commands libtool"
11098
11099
11100
11101
11102# Only expand once:
11103
11104
5912fadd 11105
b5bd9624 11106
edece237 11107
31e6ad7d
MF
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11109$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11110 # Check whether --enable-maintainer-mode was given.
81ecdfbb 11111if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
11112 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11113else
11114 USE_MAINTAINER_MODE=no
edece237 11115fi
31e6ad7d
MF
11116
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11118$as_echo "$USE_MAINTAINER_MODE" >&6; }
11119 if test $USE_MAINTAINER_MODE = yes; then
11120 MAINTAINER_MODE_TRUE=
11121 MAINTAINER_MODE_FALSE='#'
edece237 11122else
31e6ad7d
MF
11123 MAINTAINER_MODE_TRUE='#'
11124 MAINTAINER_MODE_FALSE=
81ecdfbb 11125fi
edece237 11126
31e6ad7d
MF
11127 MAINT=$MAINTAINER_MODE_TRUE
11128
11129
edece237 11130
81ecdfbb 11131
347fe5bb
MF
11132sim_inline="-DDEFAULT_INLINE=0"
11133# Check whether --enable-sim-inline was given.
11134if test "${enable_sim_inline+set}" = set; then :
11135 enableval=$enable_sim_inline; sim_inline=""
11136case "$enableval" in
11137 no) sim_inline="-DDEFAULT_INLINE=0";;
11138 0) sim_inline="-DDEFAULT_INLINE=0";;
11139 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11140 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11141 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11142 new_flag=""
11143 case "$x" in
11144 *_INLINE=*) new_flag="-D$x";;
11145 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11146 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11147 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11148 esac
11149 if test x"$sim_inline" = x""; then
11150 sim_inline="$new_flag"
11151 else
11152 sim_inline="$sim_inline $new_flag"
11153 fi
11154 done;;
11155esac
11156if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11157 echo "Setting inline flags = $sim_inline" 6>&1
11158fi
11159fi
11160
11161
11162
6efef468 11163
edece237
CV
11164
11165
1ac72f06 11166wire_endian="BIG"
edece237 11167default_endian=""
81ecdfbb
RW
11168# Check whether --enable-sim-endian was given.
11169if test "${enable_sim_endian+set}" = set; then :
11170 enableval=$enable_sim_endian; case "${enableval}" in
1ac72f06
MF
11171 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
11172 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
edece237 11173 yes) if test x"$wire_endian" != x; then
1ac72f06 11174 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
edece237 11175 else
1ac72f06
MF
11176 if test x"$default_endian" != x; then
11177 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
edece237
CV
11178 else
11179 echo "No hard-wired endian for target $target" 1>&6
1ac72f06 11180 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
edece237
CV
11181 fi
11182 fi;;
11183 no) if test x"$default_endian" != x; then
1ac72f06 11184 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
edece237
CV
11185 else
11186 if test x"$wire_endian" != x; then
1ac72f06 11187 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
edece237
CV
11188 else
11189 echo "No default endian for target $target" 1>&6
1ac72f06 11190 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
edece237
CV
11191 fi
11192 fi;;
d0ac1c44 11193 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
edece237
CV
11194esac
11195if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
11196 echo "Setting endian flags = $sim_endian" 6>&1
11197fi
11198else
11199 if test x"$default_endian" != x; then
1ac72f06 11200 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
edece237
CV
11201else
11202 if test x"$wire_endian" != x; then
1ac72f06 11203 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
edece237
CV
11204 else
11205 sim_endian=
11206 fi
11207fi
81ecdfbb
RW
11208fi
11209
edece237
CV
11210wire_alignment="STRICT_ALIGNMENT"
11211default_alignment=""
11212
81ecdfbb
RW
11213# Check whether --enable-sim-alignment was given.
11214if test "${enable_sim_alignment+set}" = set; then :
11215 enableval=$enable_sim_alignment; case "${enableval}" in
edece237
CV
11216 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11217 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11218 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11219 yes) if test x"$wire_alignment" != x; then
11220 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11221 else
11222 if test x"$default_alignment" != x; then
11223 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
11224 else
11225 echo "No hard-wired alignment for target $target" 1>&6
11226 sim_alignment="-DWITH_ALIGNMENT=0"
11227 fi
11228 fi;;
11229 no) if test x"$default_alignment" != x; then
11230 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11231 else
11232 if test x"$wire_alignment" != x; then
11233 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11234 else
11235 echo "No default alignment for target $target" 1>&6
11236 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
11237 fi
11238 fi;;
d0ac1c44 11239 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
edece237
CV
11240esac
11241if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
11242 echo "Setting alignment flags = $sim_alignment" 6>&1
11243fi
11244else
11245 if test x"$default_alignment" != x; then
11246 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11247else
11248 if test x"$wire_alignment" != x; then
11249 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11250 else
11251 sim_alignment=
11252 fi
11253fi
81ecdfbb
RW
11254fi
11255
edece237 11256
edece237 11257default_sim_scache="16384"
81ecdfbb
RW
11258# Check whether --enable-sim-scache was given.
11259if test "${enable_sim_scache+set}" = set; then :
11260 enableval=$enable_sim_scache; case "${enableval}" in
edece237
CV
11261 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
11262 no) sim_scache="-DWITH_SCACHE=0" ;;
11263 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
d0ac1c44 11264 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;
edece237
CV
11265 sim_scache="";;
11266esac
11267if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
11268 echo "Setting scache size = $sim_scache" 6>&1
11269fi
11270else
11271 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
81ecdfbb
RW
11272fi
11273
edece237
CV
11274
11275
11276default_sim_default_model="iq2000"
81ecdfbb
RW
11277# Check whether --enable-sim-default-model was given.
11278if test "${enable_sim_default_model+set}" = set; then :
11279 enableval=$enable_sim_default_model; case "${enableval}" in
d0ac1c44 11280 yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
edece237
CV
11281 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
11282esac
11283if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
11284 echo "Setting default model = $sim_default_model" 6>&1
11285fi
11286else
11287 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
81ecdfbb
RW
11288fi
11289
edece237
CV
11290
11291
5c1008a4
MF
11292# Check whether --enable-werror was given.
11293if test "${enable_werror+set}" = set; then :
11294 enableval=$enable_werror; case "${enableval}" in
11295 yes | y) ERROR_ON_WARNING="yes" ;;
11296 no | n) ERROR_ON_WARNING="no" ;;
11297 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11298 esac
11299fi
11300
11301
11302# Enable -Werror by default when using gcc
11303if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11304 ERROR_ON_WARNING=yes
11305fi
11306
11307WERROR_CFLAGS=""
11308
11309build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
11310-Wpointer-sign \
11311-Wno-unused -Wunused-value -Wunused-function \
11312-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11313-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11314-Wold-style-declaration -Wold-style-definition"
11315
11316# Enable -Wno-format by default when using gcc on mingw since many
11317# GCC versions complain about %I64.
11318case "${host}" in
11319 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
11320 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
11321esac
11322
11323# Check whether --enable-build-warnings was given.
11324if test "${enable_build_warnings+set}" = set; then :
11325 enableval=$enable_build_warnings; case "${enableval}" in
11326 yes) ;;
11327 no) build_warnings="-w";;
11328 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11329 build_warnings="${build_warnings} ${t}";;
11330 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11331 build_warnings="${t} ${build_warnings}";;
11332 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11333esac
11334if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11335 echo "Setting compiler warning flags = $build_warnings" 6>&1
11336fi
11337fi
11338# Check whether --enable-sim-build-warnings was given.
11339if test "${enable_sim_build_warnings+set}" = set; then :
11340 enableval=$enable_sim_build_warnings; case "${enableval}" in
11341 yes) ;;
11342 no) build_warnings="-w";;
11343 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11344 build_warnings="${build_warnings} ${t}";;
11345 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11346 build_warnings="${t} ${build_warnings}";;
11347 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11348esac
11349if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11350 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11351fi
11352fi
11353WARN_CFLAGS=""
11354if test "x${build_warnings}" != x -a "x$GCC" = xyes
11355then
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11357$as_echo_n "checking compiler warning flags... " >&6; }
11358 # Separate out the -Werror flag as some files just cannot be
11359 # compiled with it enabled.
11360 for w in ${build_warnings}; do
11361 case $w in
11362 -Werr*) WERROR_CFLAGS=-Werror ;;
11363 *) # Check that GCC accepts it
11364 saved_CFLAGS="$CFLAGS"
1f195bc3 11365 CFLAGS="$CFLAGS -Werror $w"
5c1008a4
MF
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367/* end confdefs.h. */
11368
11369int
11370main ()
11371{
11372
11373 ;
11374 return 0;
11375}
11376_ACEOF
11377if ac_fn_c_try_compile "$LINENO"; then :
11378 WARN_CFLAGS="${WARN_CFLAGS} $w"
11379fi
11380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11381 CFLAGS="$saved_CFLAGS"
11382 esac
11383 done
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11385$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11386fi
11387
11388
edece237
CV
11389cgen_maint=no
11390cgen=guile
11391cgendir='$(srcdir)/../../cgen'
81ecdfbb
RW
11392# Check whether --enable-cgen-maint was given.
11393if test "${enable_cgen_maint+set}" = set; then :
11394 enableval=$enable_cgen_maint; case "${enableval}" in
edece237
CV
11395 yes) cgen_maint=yes ;;
11396 no) cgen_maint=no ;;
11397 *)
7fb45a68
AB
11398 # Argument is a directory where cgen can be found. In some
11399 # future world cgen could be installable, but right now this
11400 # is not the case. Instead we assume the directory is a path
11401 # to the cgen source tree.
11402 cgen_maint=yes
11403 if test -r ${enableval}/iformat.scm; then
11404 # This looks like a cgen source tree.
11405 cgendir=${enableval}
11406 else
11407 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
11408 fi
edece237
CV
11409 ;;
11410esac
81ecdfbb
RW
11411fi
11412if test x${cgen_maint} != xno ; then
edece237
CV
11413 CGEN_MAINT=''
11414else
11415 CGEN_MAINT='#'
11416fi
11417
11418
11419
11420
11421
11422
9d903352 11423hardware="cfi core pal glue "
94c63d78
JS
11424sim_hw_cflags="-DWITH_HW=1"
11425sim_hw="$hardware"
11426sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 11427
94c63d78
JS
11428# Check whether --enable-sim-hardware was given.
11429if test "${enable_sim_hardware+set}" = set; then :
11430 enableval=$enable_sim_hardware;
30452bbe 11431else
97f478c5 11432 enable_sim_hardware="yes"
1517bd27
MF
11433fi
11434
11435case ${enable_sim_hardware} in
64dd13df
MF
11436 yes|no) ;;
11437 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
11438 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
11439 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
94c63d78 11440esac
1517bd27 11441
64dd13df 11442if test "$enable_sim_hardware" = no; then
94c63d78
JS
11443 sim_hw_objs=
11444 sim_hw_cflags="-DWITH_HW=0"
11445 sim_hw=
11446else
11447 sim_hw_cflags="-DWITH_HW=1"
11448 # remove duplicates
11449 sim_hw=""
11450 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
11451 for i in $hardware ; do
11452 case " $sim_hw " in
11453 *" $i "*) ;;
11454 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
11455 esac
11456 done
11457 # mingw does not support sockser
94c63d78
JS
11458 case ${host} in
11459 *mingw*) ;;
49cd1634
MF
11460 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
11461 # that you instatiate. Instead, other code will call into it directly.
11462 # At some point, we should convert it over.
11463 sim_hw_objs="$sim_hw_objs dv-sockser.o"
94c63d78
JS
11464
11465cat >>confdefs.h <<_ACEOF
11466#define HAVE_DV_SOCKSER 1
11467_ACEOF
11468
11469 ;;
11470 esac
1517bd27
MF
11471 if test x"$silent" != x"yes"; then
11472 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
94c63d78 11473 fi
1517bd27
MF
11474 case " $hardware " in
11475 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
94c63d78 11476$as_echo_n "checking for log2 in -lm... " >&6; }
d0ac1c44 11477if ${ac_cv_lib_m_log2+:} false; then :
94c63d78
JS
11478 $as_echo_n "(cached) " >&6
11479else
11480 ac_check_lib_save_LIBS=$LIBS
11481LIBS="-lm $LIBS"
11482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483/* end confdefs.h. */
11484
11485/* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11488#ifdef __cplusplus
11489extern "C"
11490#endif
11491char log2 ();
11492int
11493main ()
11494{
11495return log2 ();
11496 ;
11497 return 0;
11498}
11499_ACEOF
11500if ac_fn_c_try_link "$LINENO"; then :
11501 ac_cv_lib_m_log2=yes
11502else
11503 ac_cv_lib_m_log2=no
11504fi
11505rm -f core conftest.err conftest.$ac_objext \
11506 conftest$ac_exeext conftest.$ac_ext
11507LIBS=$ac_check_lib_save_LIBS
11508fi
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
11510$as_echo "$ac_cv_lib_m_log2" >&6; }
d0ac1c44 11511if test "x$ac_cv_lib_m_log2" = xyes; then :
94c63d78
JS
11512 cat >>confdefs.h <<_ACEOF
11513#define HAVE_LIBM 1
11514_ACEOF
11515
11516 LIBS="-lm $LIBS"
11517
11518fi
11519;;
1517bd27
MF
11520 esac
11521fi
94c63d78
JS
11522
11523
edece237
CV
11524cgen_breaks=""
11525if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
11526cgen_breaks="break cgen_rtx_error";
11527fi
11528
81ecdfbb 11529ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
edece237 11530
81ecdfbb 11531ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
edece237 11532
81ecdfbb 11533ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
edece237 11534
81ecdfbb 11535ac_config_commands="$ac_config_commands Makefile"
edece237 11536
81ecdfbb 11537ac_config_commands="$ac_config_commands stamp-h"
edece237 11538
760b3e8b
MF
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
edece237
CV
11551cat >confcache <<\_ACEOF
11552# This file is a shell script that caches the results of configure
11553# tests run on this system so they can be shared between configure
11554# scripts and configure runs, see configure's option --config-cache.
11555# It is not useful on other systems. If it contains results you don't
11556# want to keep, you may remove or edit it.
11557#
11558# config.status only pays attention to the cache file if you give it
11559# the --recheck option to rerun configure.
11560#
11561# `ac_cv_env_foo' variables (set or unset) will be overridden when
11562# loading this file, other *unset* `ac_cv_foo' will be assigned the
11563# following values.
11564
11565_ACEOF
11566
11567# The following way of writing the cache mishandles newlines in values,
11568# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 11569# So, we kill variables containing newlines.
edece237
CV
11570# Ultrix sh set writes to stderr and can't be redirected directly,
11571# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
11572(
11573 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11574 eval ac_val=\$$ac_var
11575 case $ac_val in #(
11576 *${as_nl}*)
11577 case $ac_var in #(
11578 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11579$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11580 esac
11581 case $ac_var in #(
11582 _ | IFS | as_nl) ;; #(
11583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11584 *) { eval $ac_var=; unset $ac_var;} ;;
11585 esac ;;
11586 esac
11587 done
11588
edece237 11589 (set) 2>&1 |
81ecdfbb
RW
11590 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11591 *${as_nl}ac_space=\ *)
11592 # `set' does not quote correctly, so add quotes: double-quote
11593 # substitution turns \\\\ into \\, and sed turns \\ into \.
edece237
CV
11594 sed -n \
11595 "s/'/'\\\\''/g;
11596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 11597 ;; #(
edece237
CV
11598 *)
11599 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 11600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
edece237 11601 ;;
81ecdfbb
RW
11602 esac |
11603 sort
11604) |
edece237 11605 sed '
81ecdfbb 11606 /^ac_cv_env_/b end
edece237 11607 t clear
81ecdfbb 11608 :clear
edece237
CV
11609 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11610 t end
81ecdfbb
RW
11611 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11612 :end' >>confcache
11613if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11614 if test -w "$cache_file"; then
d0ac1c44 11615 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11617$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
11618 if test ! -f "$cache_file" || test -h "$cache_file"; then
11619 cat confcache >"$cache_file"
11620 else
11621 case $cache_file in #(
11622 */* | ?:*)
11623 mv -f confcache "$cache_file"$$ &&
11624 mv -f "$cache_file"$$ "$cache_file" ;; #(
11625 *)
11626 mv -f confcache "$cache_file" ;;
11627 esac
11628 fi
11629 fi
edece237 11630 else
81ecdfbb
RW
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11632$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
edece237
CV
11633 fi
11634fi
11635rm -f confcache
11636
11637test "x$prefix" = xNONE && prefix=$ac_default_prefix
11638# Let make expand exec_prefix.
11639test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11640
edece237
CV
11641DEFS=-DHAVE_CONFIG_H
11642
11643ac_libobjs=
11644ac_ltlibobjs=
d0ac1c44 11645U=
edece237
CV
11646for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11647 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
11648 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11649 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11650 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11651 # will be set to the directory where LIBOBJS objects are built.
11652 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11653 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
edece237
CV
11654done
11655LIBOBJS=$ac_libobjs
11656
11657LTLIBOBJS=$ac_ltlibobjs
11658
11659
0cb8d851 11660
6bb11ab3 11661if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 11662 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
11663Usually this means the macro was only invoked conditionally." "$LINENO" 5
11664fi
31e6ad7d 11665if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 11666 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
11667Usually this means the macro was only invoked conditionally." "$LINENO" 5
11668fi
edece237 11669
d0ac1c44 11670: "${CONFIG_STATUS=./config.status}"
81ecdfbb 11671ac_write_fail=0
edece237
CV
11672ac_clean_files_save=$ac_clean_files
11673ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11675$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11676as_write_fail=0
11677cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
edece237
CV
11678#! $SHELL
11679# Generated by $as_me.
11680# Run this file to recreate the current configuration.
11681# Compiler output produced by configure, useful for debugging
11682# configure, is in config.log if it exists.
11683
11684debug=false
11685ac_cs_recheck=false
11686ac_cs_silent=false
edece237 11687
81ecdfbb
RW
11688SHELL=\${CONFIG_SHELL-$SHELL}
11689export SHELL
11690_ASEOF
11691cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11692## -------------------- ##
11693## M4sh Initialization. ##
11694## -------------------- ##
11695
11696# Be more Bourne compatible
11697DUALCASE=1; export DUALCASE # for MKS sh
11698if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
edece237
CV
11699 emulate sh
11700 NULLCMD=:
81ecdfbb 11701 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
edece237
CV
11702 # is contrary to our usage. Disable this feature.
11703 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
11704 setopt NO_GLOB_SUBST
11705else
11706 case `(set -o) 2>/dev/null` in #(
11707 *posix*) :
11708 set -o posix ;; #(
11709 *) :
11710 ;;
11711esac
edece237 11712fi
edece237 11713
81ecdfbb
RW
11714
11715as_nl='
11716'
11717export as_nl
11718# Printing a long string crashes Solaris 7 /usr/bin/printf.
11719as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11720as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11721as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11722# Prefer a ksh shell builtin over an external printf program on Solaris,
11723# but without wasting forks for bash or zsh.
11724if test -z "$BASH_VERSION$ZSH_VERSION" \
11725 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11726 as_echo='print -r --'
11727 as_echo_n='print -rn --'
11728elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11729 as_echo='printf %s\n'
11730 as_echo_n='printf %s'
11731else
11732 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11733 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11734 as_echo_n='/usr/ucb/echo -n'
11735 else
11736 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11737 as_echo_n_body='eval
11738 arg=$1;
11739 case $arg in #(
11740 *"$as_nl"*)
11741 expr "X$arg" : "X\\(.*\\)$as_nl";
11742 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11743 esac;
11744 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11745 '
11746 export as_echo_n_body
11747 as_echo_n='sh -c $as_echo_n_body as_echo'
11748 fi
11749 export as_echo_body
11750 as_echo='sh -c $as_echo_body as_echo'
11751fi
11752
11753# The user is always right.
11754if test "${PATH_SEPARATOR+set}" != set; then
11755 PATH_SEPARATOR=:
11756 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11757 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11758 PATH_SEPARATOR=';'
11759 }
edece237
CV
11760fi
11761
11762
81ecdfbb
RW
11763# IFS
11764# We need space, tab and new line, in precisely that order. Quoting is
11765# there to prevent editors from complaining about space-tab.
11766# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11767# splitting by setting IFS to empty value.)
11768IFS=" "" $as_nl"
11769
11770# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 11771as_myself=
81ecdfbb
RW
11772case $0 in #((
11773 *[\\/]* ) as_myself=$0 ;;
11774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775for as_dir in $PATH
11776do
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11780 done
11781IFS=$as_save_IFS
11782
11783 ;;
11784esac
11785# We did not find ourselves, most probably we were run as `sh COMMAND'
11786# in which case we are not to be found in the path.
11787if test "x$as_myself" = x; then
11788 as_myself=$0
11789fi
11790if test ! -f "$as_myself"; then
11791 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11792 exit 1
11793fi
11794
11795# Unset variables that we do not need and which cause bugs (e.g. in
11796# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11797# suppresses any "Segmentation fault" message there. '((' could
11798# trigger a bug in pdksh 5.2.14.
11799for as_var in BASH_ENV ENV MAIL MAILPATH
11800do eval test x\${$as_var+set} = xset \
11801 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11802done
edece237
CV
11803PS1='$ '
11804PS2='> '
11805PS4='+ '
11806
11807# NLS nuisances.
81ecdfbb
RW
11808LC_ALL=C
11809export LC_ALL
11810LANGUAGE=C
11811export LANGUAGE
11812
11813# CDPATH.
11814(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11815
11816
d0ac1c44
SM
11817# as_fn_error STATUS ERROR [LINENO LOG_FD]
11818# ----------------------------------------
81ecdfbb
RW
11819# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11820# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 11821# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
11822as_fn_error ()
11823{
d0ac1c44
SM
11824 as_status=$1; test $as_status -eq 0 && as_status=1
11825 if test "$4"; then
11826 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11827 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
edece237 11828 fi
d0ac1c44 11829 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
11830 as_fn_exit $as_status
11831} # as_fn_error
11832
11833
11834# as_fn_set_status STATUS
11835# -----------------------
11836# Set $? to STATUS, without forking.
11837as_fn_set_status ()
11838{
11839 return $1
11840} # as_fn_set_status
11841
11842# as_fn_exit STATUS
11843# -----------------
11844# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11845as_fn_exit ()
11846{
11847 set +e
11848 as_fn_set_status $1
11849 exit $1
11850} # as_fn_exit
11851
11852# as_fn_unset VAR
11853# ---------------
11854# Portably unset VAR.
11855as_fn_unset ()
11856{
11857 { eval $1=; unset $1;}
11858}
11859as_unset=as_fn_unset
11860# as_fn_append VAR VALUE
11861# ----------------------
11862# Append the text in VALUE to the end of the definition contained in VAR. Take
11863# advantage of any shell optimizations that allow amortized linear growth over
11864# repeated appends, instead of the typical quadratic growth present in naive
11865# implementations.
11866if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11867 eval 'as_fn_append ()
11868 {
11869 eval $1+=\$2
11870 }'
11871else
11872 as_fn_append ()
11873 {
11874 eval $1=\$$1\$2
11875 }
11876fi # as_fn_append
11877
11878# as_fn_arith ARG...
11879# ------------------
11880# Perform arithmetic evaluation on the ARGs, and store the result in the
11881# global $as_val. Take advantage of shells that can avoid forks. The arguments
11882# must be portable across $(()) and expr.
11883if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11884 eval 'as_fn_arith ()
11885 {
11886 as_val=$(( $* ))
11887 }'
11888else
11889 as_fn_arith ()
11890 {
11891 as_val=`expr "$@" || test $? -eq 1`
11892 }
11893fi # as_fn_arith
edece237 11894
81ecdfbb
RW
11895
11896if expr a : '\(a\)' >/dev/null 2>&1 &&
11897 test "X`expr 00001 : '.*\(...\)'`" = X001; then
edece237
CV
11898 as_expr=expr
11899else
11900 as_expr=false
11901fi
11902
81ecdfbb 11903if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
edece237
CV
11904 as_basename=basename
11905else
11906 as_basename=false
11907fi
11908
81ecdfbb
RW
11909if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11910 as_dirname=dirname
11911else
11912 as_dirname=false
11913fi
edece237 11914
81ecdfbb 11915as_me=`$as_basename -- "$0" ||
edece237
CV
11916$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11917 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
11918 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11919$as_echo X/"$0" |
11920 sed '/^.*\/\([^/][^/]*\)\/*$/{
11921 s//\1/
11922 q
11923 }
11924 /^X\/\(\/\/\)$/{
11925 s//\1/
11926 q
11927 }
11928 /^X\/\(\/\).*/{
11929 s//\1/
11930 q
11931 }
11932 s/.*/./; q'`
edece237 11933
edece237
CV
11934# Avoid depending upon Character Ranges.
11935as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11936as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11937as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11938as_cr_digits='0123456789'
11939as_cr_alnum=$as_cr_Letters$as_cr_digits
11940
81ecdfbb
RW
11941ECHO_C= ECHO_N= ECHO_T=
11942case `echo -n x` in #(((((
11943-n*)
11944 case `echo 'xy\c'` in
11945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11946 xy) ECHO_C='\c';;
11947 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11948 ECHO_T=' ';;
11949 esac;;
11950*)
11951 ECHO_N='-n';;
edece237
CV
11952esac
11953
81ecdfbb
RW
11954rm -f conf$$ conf$$.exe conf$$.file
11955if test -d conf$$.dir; then
11956 rm -f conf$$.dir/conf$$.file
edece237 11957else
81ecdfbb
RW
11958 rm -f conf$$.dir
11959 mkdir conf$$.dir 2>/dev/null
edece237 11960fi
81ecdfbb
RW
11961if (echo >conf$$.file) 2>/dev/null; then
11962 if ln -s conf$$.file conf$$ 2>/dev/null; then
edece237 11963 as_ln_s='ln -s'
81ecdfbb
RW
11964 # ... but there are two gotchas:
11965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 11967 # In both cases, we have to default to `cp -pR'.
81ecdfbb 11968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 11969 as_ln_s='cp -pR'
81ecdfbb
RW
11970 elif ln conf$$.file conf$$ 2>/dev/null; then
11971 as_ln_s=ln
11972 else
d0ac1c44 11973 as_ln_s='cp -pR'
edece237 11974 fi
edece237 11975else
d0ac1c44 11976 as_ln_s='cp -pR'
edece237 11977fi
81ecdfbb
RW
11978rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11979rmdir conf$$.dir 2>/dev/null
11980
11981
11982# as_fn_mkdir_p
11983# -------------
11984# Create "$as_dir" as a directory, including parents if necessary.
11985as_fn_mkdir_p ()
11986{
11987
11988 case $as_dir in #(
11989 -*) as_dir=./$as_dir;;
11990 esac
11991 test -d "$as_dir" || eval $as_mkdir_p || {
11992 as_dirs=
11993 while :; do
11994 case $as_dir in #(
11995 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11996 *) as_qdir=$as_dir;;
11997 esac
11998 as_dirs="'$as_qdir' $as_dirs"
11999 as_dir=`$as_dirname -- "$as_dir" ||
12000$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12001 X"$as_dir" : 'X\(//\)[^/]' \| \
12002 X"$as_dir" : 'X\(//\)$' \| \
12003 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12004$as_echo X"$as_dir" |
12005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12006 s//\1/
12007 q
12008 }
12009 /^X\(\/\/\)[^/].*/{
12010 s//\1/
12011 q
12012 }
12013 /^X\(\/\/\)$/{
12014 s//\1/
12015 q
12016 }
12017 /^X\(\/\).*/{
12018 s//\1/
12019 q
12020 }
12021 s/.*/./; q'`
12022 test -d "$as_dir" && break
12023 done
12024 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 12025 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
edece237 12026
81ecdfbb
RW
12027
12028} # as_fn_mkdir_p
edece237 12029if mkdir -p . 2>/dev/null; then
81ecdfbb 12030 as_mkdir_p='mkdir -p "$as_dir"'
edece237
CV
12031else
12032 test -d ./-p && rmdir ./-p
12033 as_mkdir_p=false
12034fi
12035
d0ac1c44
SM
12036
12037# as_fn_executable_p FILE
12038# -----------------------
12039# Test if FILE is an executable regular file.
12040as_fn_executable_p ()
12041{
12042 test -f "$1" && test -x "$1"
12043} # as_fn_executable_p
12044as_test_x='test -x'
12045as_executable_p=as_fn_executable_p
edece237
CV
12046
12047# Sed expression to map a string onto a valid CPP name.
12048as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12049
12050# Sed expression to map a string onto a valid variable name.
12051as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12052
12053
edece237 12054exec 6>&1
81ecdfbb
RW
12055## ----------------------------------- ##
12056## Main body of $CONFIG_STATUS script. ##
12057## ----------------------------------- ##
12058_ASEOF
12059test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12060
12061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12062# Save the log message, to keep $0 and so on meaningful, and to
edece237 12063# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12064# values after options handling.
12065ac_log="
edece237 12066This file was extended by $as_me, which was
d0ac1c44 12067generated by GNU Autoconf 2.69. Invocation command line was
edece237
CV
12068
12069 CONFIG_FILES = $CONFIG_FILES
12070 CONFIG_HEADERS = $CONFIG_HEADERS
12071 CONFIG_LINKS = $CONFIG_LINKS
12072 CONFIG_COMMANDS = $CONFIG_COMMANDS
12073 $ $0 $@
12074
81ecdfbb
RW
12075on `(hostname || uname -n) 2>/dev/null | sed 1q`
12076"
12077
edece237
CV
12078_ACEOF
12079
81ecdfbb
RW
12080case $ac_config_files in *"
12081"*) set x $ac_config_files; shift; ac_config_files=$*;;
12082esac
edece237 12083
81ecdfbb
RW
12084case $ac_config_headers in *"
12085"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12086esac
edece237 12087
edece237 12088
81ecdfbb
RW
12089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12090# Files that config.status was made for.
12091config_files="$ac_config_files"
12092config_headers="$ac_config_headers"
81ecdfbb 12093config_commands="$ac_config_commands"
edece237 12094
81ecdfbb 12095_ACEOF
edece237 12096
81ecdfbb 12097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
edece237 12098ac_cs_usage="\
81ecdfbb
RW
12099\`$as_me' instantiates files and other configuration actions
12100from templates according to the current configuration. Unless the files
12101and actions are specified as TAGs, all are instantiated by default.
edece237 12102
81ecdfbb 12103Usage: $0 [OPTION]... [TAG]...
edece237
CV
12104
12105 -h, --help print this help, then exit
81ecdfbb 12106 -V, --version print version number and configuration settings, then exit
d0ac1c44 12107 --config print configuration, then exit
81ecdfbb
RW
12108 -q, --quiet, --silent
12109 do not print progress messages
edece237
CV
12110 -d, --debug don't remove temporary files
12111 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12112 --file=FILE[:TEMPLATE]
12113 instantiate the configuration file FILE
12114 --header=FILE[:TEMPLATE]
12115 instantiate the configuration header FILE
edece237
CV
12116
12117Configuration files:
12118$config_files
12119
12120Configuration headers:
12121$config_headers
12122
edece237
CV
12123Configuration commands:
12124$config_commands
12125
81ecdfbb 12126Report bugs to the package provider."
edece237 12127
81ecdfbb
RW
12128_ACEOF
12129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 12130ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
edece237
CV
12131ac_cs_version="\\
12132config.status
d0ac1c44
SM
12133configured by $0, generated by GNU Autoconf 2.69,
12134 with options \\"\$ac_cs_config\\"
edece237 12135
d0ac1c44 12136Copyright (C) 2012 Free Software Foundation, Inc.
edece237
CV
12137This config.status script is free software; the Free Software Foundation
12138gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12139
12140ac_pwd='$ac_pwd'
12141srcdir='$srcdir'
12142INSTALL='$INSTALL'
6bb11ab3 12143AWK='$AWK'
81ecdfbb 12144test -n "\$AWK" || AWK=awk
edece237
CV
12145_ACEOF
12146
81ecdfbb
RW
12147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12148# The default lists apply if the user does not specify any file.
edece237
CV
12149ac_need_defaults=:
12150while test $# != 0
12151do
12152 case $1 in
d0ac1c44 12153 --*=?*)
81ecdfbb
RW
12154 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12155 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
edece237
CV
12156 ac_shift=:
12157 ;;
d0ac1c44
SM
12158 --*=)
12159 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12160 ac_optarg=
12161 ac_shift=:
12162 ;;
81ecdfbb 12163 *)
edece237
CV
12164 ac_option=$1
12165 ac_optarg=$2
12166 ac_shift=shift
12167 ;;
edece237
CV
12168 esac
12169
12170 case $ac_option in
12171 # Handling of the options.
edece237
CV
12172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12173 ac_cs_recheck=: ;;
81ecdfbb
RW
12174 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12175 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
12176 --config | --confi | --conf | --con | --co | --c )
12177 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 12178 --debug | --debu | --deb | --de | --d | -d )
edece237
CV
12179 debug=: ;;
12180 --file | --fil | --fi | --f )
12181 $ac_shift
81ecdfbb
RW
12182 case $ac_optarg in
12183 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 12184 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
12185 esac
12186 as_fn_append CONFIG_FILES " '$ac_optarg'"
edece237
CV
12187 ac_need_defaults=false;;
12188 --header | --heade | --head | --hea )
12189 $ac_shift
81ecdfbb
RW
12190 case $ac_optarg in
12191 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12192 esac
12193 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
edece237 12194 ac_need_defaults=false;;
81ecdfbb
RW
12195 --he | --h)
12196 # Conflict between --help and --header
d0ac1c44 12197 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
12198Try \`$0 --help' for more information.";;
12199 --help | --hel | -h )
12200 $as_echo "$ac_cs_usage"; exit ;;
edece237
CV
12201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12202 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12203 ac_cs_silent=: ;;
12204
12205 # This is an error.
d0ac1c44 12206 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 12207Try \`$0 --help' for more information." ;;
edece237 12208
81ecdfbb
RW
12209 *) as_fn_append ac_config_targets " $1"
12210 ac_need_defaults=false ;;
edece237
CV
12211
12212 esac
12213 shift
12214done
12215
12216ac_configure_extra_args=
12217
12218if $ac_cs_silent; then
12219 exec 6>/dev/null
12220 ac_configure_extra_args="$ac_configure_extra_args --silent"
12221fi
12222
12223_ACEOF
81ecdfbb 12224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
edece237 12225if \$ac_cs_recheck; then
d0ac1c44 12226 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
12227 shift
12228 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12229 CONFIG_SHELL='$SHELL'
12230 export CONFIG_SHELL
12231 exec "\$@"
edece237
CV
12232fi
12233
12234_ACEOF
81ecdfbb
RW
12235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12236exec 5>>config.log
12237{
12238 echo
12239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12240## Running $as_me. ##
12241_ASBOX
12242 $as_echo "$ac_log"
12243} >&5
edece237 12244
81ecdfbb
RW
12245_ACEOF
12246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
12247#
12248# INIT-COMMANDS
12249#
12250ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12251
6bb11ab3
L
12252
12253# The HP-UX ksh and POSIX shell print the target directory to stdout
12254# if CDPATH is set.
12255(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12256
12257sed_quote_subst='$sed_quote_subst'
12258double_quote_subst='$double_quote_subst'
12259delay_variable_subst='$delay_variable_subst'
12260macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12261macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12262enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12263enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12264pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12265enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12266SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12267ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12268host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12269host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12270host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12271build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12272build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12273build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12274SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12275Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12276GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12277EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12278FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12279LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12280NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12281LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12282max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12283ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12284exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12285lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12286lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12287lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12288reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12289reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12290OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12291deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12292file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12293AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12294AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12295STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12296RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12297old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12298old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12299old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12300lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12301CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12302CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12303compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12304GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12305lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12306lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12307lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12308lt_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"`'
12309objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12310MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12311lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12312lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12313lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12314lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12315lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12316need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12317DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12318NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12319LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12320OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12321OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12322libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12323shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12324extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12325archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12326enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12327export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12328whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12329compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12330old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12331old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12332archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12333archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12334module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12335module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12336with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12337allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12338no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12339hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12340hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12341hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12342hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12343hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12344hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12345hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12346hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12347inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12348link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12349fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12350always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12351export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12352exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12353include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12354prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12355file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12356variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12357need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12358need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12359version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12360runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12361shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12362shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12363libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12364library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12365soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12366install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12367postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12368postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12369finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12370finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12371hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12372sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12373sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12374hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12375enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12376enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12377enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12378old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12379striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12380
12381LTCC='$LTCC'
12382LTCFLAGS='$LTCFLAGS'
12383compiler='$compiler_DEFAULT'
12384
12385# A function that is used when there is no print builtin or printf.
12386func_fallback_echo ()
12387{
12388 eval 'cat <<_LTECHO_EOF
12389\$1
12390_LTECHO_EOF'
12391}
12392
12393# Quote evaled strings.
12394for var in SHELL \
12395ECHO \
12396SED \
12397GREP \
12398EGREP \
12399FGREP \
12400LD \
12401NM \
12402LN_S \
12403lt_SP2NL \
12404lt_NL2SP \
12405reload_flag \
12406OBJDUMP \
12407deplibs_check_method \
12408file_magic_cmd \
12409AR \
12410AR_FLAGS \
12411STRIP \
12412RANLIB \
12413CC \
12414CFLAGS \
12415compiler \
12416lt_cv_sys_global_symbol_pipe \
12417lt_cv_sys_global_symbol_to_cdecl \
12418lt_cv_sys_global_symbol_to_c_name_address \
12419lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12420lt_prog_compiler_no_builtin_flag \
12421lt_prog_compiler_wl \
12422lt_prog_compiler_pic \
12423lt_prog_compiler_static \
12424lt_cv_prog_compiler_c_o \
12425need_locks \
12426DSYMUTIL \
12427NMEDIT \
12428LIPO \
12429OTOOL \
12430OTOOL64 \
12431shrext_cmds \
12432export_dynamic_flag_spec \
12433whole_archive_flag_spec \
12434compiler_needs_object \
12435with_gnu_ld \
12436allow_undefined_flag \
12437no_undefined_flag \
12438hardcode_libdir_flag_spec \
12439hardcode_libdir_flag_spec_ld \
12440hardcode_libdir_separator \
12441fix_srcfile_path \
12442exclude_expsyms \
12443include_expsyms \
12444file_list_spec \
12445variables_saved_for_relink \
12446libname_spec \
12447library_names_spec \
12448soname_spec \
12449install_override_mode \
12450finish_eval \
12451old_striplib \
12452striplib; do
12453 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12454 *[\\\\\\\`\\"\\\$]*)
12455 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12456 ;;
12457 *)
12458 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12459 ;;
12460 esac
12461done
12462
12463# Double-quote double-evaled strings.
12464for var in reload_cmds \
12465old_postinstall_cmds \
12466old_postuninstall_cmds \
12467old_archive_cmds \
12468extract_expsyms_cmds \
12469old_archive_from_new_cmds \
12470old_archive_from_expsyms_cmds \
12471archive_cmds \
12472archive_expsym_cmds \
12473module_cmds \
12474module_expsym_cmds \
12475export_symbols_cmds \
12476prelink_cmds \
12477postinstall_cmds \
12478postuninstall_cmds \
12479finish_cmds \
12480sys_lib_search_path_spec \
12481sys_lib_dlsearch_path_spec; do
12482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12483 *[\\\\\\\`\\"\\\$]*)
12484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12485 ;;
12486 *)
12487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12488 ;;
12489 esac
12490done
12491
12492ac_aux_dir='$ac_aux_dir'
12493xsi_shell='$xsi_shell'
12494lt_shell_append='$lt_shell_append'
12495
12496# See if we are running on zsh, and set the options which allow our
12497# commands through without removal of \ escapes INIT.
12498if test -n "\${ZSH_VERSION+set}" ; then
12499 setopt NO_GLOB_SUBST
12500fi
12501
12502
12503 PACKAGE='$PACKAGE'
12504 VERSION='$VERSION'
12505 TIMESTAMP='$TIMESTAMP'
12506 RM='$RM'
12507 ofile='$ofile'
12508
12509
12510
12511
81ecdfbb 12512_ACEOF
edece237 12513
81ecdfbb 12514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
edece237 12515
81ecdfbb 12516# Handling of arguments.
edece237
CV
12517for ac_config_target in $ac_config_targets
12518do
81ecdfbb
RW
12519 case $ac_config_target in
12520 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 12521 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 12522 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
12523 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
12524 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
12525 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
12526 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
12527 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
12528
d0ac1c44 12529 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
edece237
CV
12530 esac
12531done
12532
81ecdfbb 12533
edece237
CV
12534# If the user did not use the arguments to specify the items to instantiate,
12535# then the envvar interface is used. Set only those that are not.
12536# We use the long form for the default assignment because of an extremely
12537# bizarre bug on SunOS 4.1.3.
12538if $ac_need_defaults; then
12539 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12540 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
edece237
CV
12541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12542fi
12543
12544# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 12545# simply because there is no reason against having it here, and in addition,
edece237 12546# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
12547# Hook for its removal unless debugging.
12548# Note that there is a small window in which the directory will not be cleaned:
12549# after its creation but before its name has been assigned to `$tmp'.
edece237
CV
12550$debug ||
12551{
d0ac1c44 12552 tmp= ac_tmp=
81ecdfbb 12553 trap 'exit_status=$?
d0ac1c44
SM
12554 : "${ac_tmp:=$tmp}"
12555 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
12556' 0
12557 trap 'as_fn_exit 1' 1 2 13 15
edece237 12558}
edece237
CV
12559# Create a (secure) tmp directory for tmp files.
12560
12561{
81ecdfbb 12562 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 12563 test -d "$tmp"
edece237
CV
12564} ||
12565{
81ecdfbb
RW
12566 tmp=./conf$$-$RANDOM
12567 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
12568} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12569ac_tmp=$tmp
edece237 12570
81ecdfbb
RW
12571# Set up the scripts for CONFIG_FILES section.
12572# No need to generate them if there are no CONFIG_FILES.
12573# This happens for instance with `./config.status config.h'.
12574if test -n "$CONFIG_FILES"; then
edece237 12575
edece237 12576
81ecdfbb
RW
12577ac_cr=`echo X | tr X '\015'`
12578# On cygwin, bash can eat \r inside `` if the user requested igncr.
12579# But we know of no other shell where ac_cr would be empty at this
12580# point, so we can use a bashism as a fallback.
12581if test "x$ac_cr" = x; then
12582 eval ac_cr=\$\'\\r\'
12583fi
12584ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12585if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 12586 ac_cs_awk_cr='\\r'
81ecdfbb
RW
12587else
12588 ac_cs_awk_cr=$ac_cr
12589fi
edece237 12590
d0ac1c44 12591echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
edece237
CV
12592_ACEOF
12593
81ecdfbb
RW
12594
12595{
12596 echo "cat >conf$$subs.awk <<_ACEOF" &&
12597 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12598 echo "_ACEOF"
12599} >conf$$subs.sh ||
d0ac1c44
SM
12600 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12601ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
12602ac_delim='%!_!# '
12603for ac_last_try in false false false false false :; do
12604 . ./conf$$subs.sh ||
d0ac1c44 12605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
12606
12607 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12608 if test $ac_delim_n = $ac_delim_num; then
12609 break
12610 elif $ac_last_try; then
d0ac1c44 12611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
12612 else
12613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
edece237 12614 fi
81ecdfbb
RW
12615done
12616rm -f conf$$subs.sh
edece237 12617
81ecdfbb 12618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 12619cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
edece237 12620_ACEOF
81ecdfbb
RW
12621sed -n '
12622h
12623s/^/S["/; s/!.*/"]=/
12624p
12625g
12626s/^[^!]*!//
12627:repl
12628t repl
12629s/'"$ac_delim"'$//
12630t delim
12631:nl
12632h
d0ac1c44 12633s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
12634t more1
12635s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12636p
12637n
12638b repl
12639:more1
12640s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12641p
12642g
12643s/.\{148\}//
12644t nl
12645:delim
12646h
d0ac1c44 12647s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
12648t more2
12649s/["\\]/\\&/g; s/^/"/; s/$/"/
12650p
12651b
12652:more2
12653s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12654p
12655g
12656s/.\{148\}//
12657t delim
12658' <conf$$subs.awk | sed '
12659/^[^""]/{
12660 N
12661 s/\n//
12662}
12663' >>$CONFIG_STATUS || ac_write_fail=1
12664rm -f conf$$subs.awk
12665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12666_ACAWK
d0ac1c44 12667cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
12668 for (key in S) S_is_set[key] = 1
12669 FS = "\a"
edece237 12670
81ecdfbb
RW
12671}
12672{
12673 line = $ 0
12674 nfields = split(line, field, "@")
12675 substed = 0
12676 len = length(field[1])
12677 for (i = 2; i < nfields; i++) {
12678 key = field[i]
12679 keylen = length(key)
12680 if (S_is_set[key]) {
12681 value = S[key]
12682 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12683 len += length(value) + length(field[++i])
12684 substed = 1
12685 } else
12686 len += 1 + keylen
12687 }
12688
12689 print line
12690}
edece237 12691
81ecdfbb
RW
12692_ACAWK
12693_ACEOF
12694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12695if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12696 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
edece237 12697else
81ecdfbb 12698 cat
d0ac1c44
SM
12699fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12700 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 12701_ACEOF
edece237 12702
d0ac1c44
SM
12703# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12704# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
12705# trailing colons and then remove the whole line if VPATH becomes empty
12706# (actually we leave an empty line to preserve line numbers).
12707if test "x$srcdir" = x.; then
d0ac1c44
SM
12708 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12709h
12710s///
12711s/^/:/
12712s/[ ]*$/:/
12713s/:\$(srcdir):/:/g
12714s/:\${srcdir}:/:/g
12715s/:@srcdir@:/:/g
12716s/^:*//
81ecdfbb 12717s/:*$//
d0ac1c44
SM
12718x
12719s/\(=[ ]*\).*/\1/
12720G
12721s/\n//
81ecdfbb
RW
12722s/^[^=]*=[ ]*$//
12723}'
12724fi
edece237 12725
81ecdfbb
RW
12726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12727fi # test -n "$CONFIG_FILES"
edece237 12728
81ecdfbb
RW
12729# Set up the scripts for CONFIG_HEADERS section.
12730# No need to generate them if there are no CONFIG_HEADERS.
12731# This happens for instance with `./config.status Makefile'.
12732if test -n "$CONFIG_HEADERS"; then
d0ac1c44 12733cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
12734BEGIN {
12735_ACEOF
edece237 12736
81ecdfbb
RW
12737# Transform confdefs.h into an awk script `defines.awk', embedded as
12738# here-document in config.status, that substitutes the proper values into
12739# config.h.in to produce config.h.
edece237 12740
81ecdfbb
RW
12741# Create a delimiter string that does not exist in confdefs.h, to ease
12742# handling of long lines.
12743ac_delim='%!_!# '
12744for ac_last_try in false false :; do
d0ac1c44
SM
12745 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12746 if test -z "$ac_tt"; then
81ecdfbb
RW
12747 break
12748 elif $ac_last_try; then
d0ac1c44 12749 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
edece237 12750 else
81ecdfbb 12751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
edece237 12752 fi
edece237 12753done
81ecdfbb
RW
12754
12755# For the awk script, D is an array of macro values keyed by name,
12756# likewise P contains macro parameters if any. Preserve backslash
12757# newline sequences.
12758
12759ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12760sed -n '
12761s/.\{148\}/&'"$ac_delim"'/g
12762t rset
12763:rset
12764s/^[ ]*#[ ]*define[ ][ ]*/ /
12765t def
12766d
12767:def
12768s/\\$//
12769t bsnl
12770s/["\\]/\\&/g
12771s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12772D["\1"]=" \3"/p
12773s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12774d
12775:bsnl
12776s/["\\]/\\&/g
12777s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12778D["\1"]=" \3\\\\\\n"\\/p
12779t cont
12780s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12781t cont
12782d
12783:cont
12784n
12785s/.\{148\}/&'"$ac_delim"'/g
12786t clear
12787:clear
12788s/\\$//
12789t bsnlc
12790s/["\\]/\\&/g; s/^/"/; s/$/"/p
12791d
12792:bsnlc
12793s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12794b cont
12795' <confdefs.h | sed '
12796s/'"$ac_delim"'/"\\\
12797"/g' >>$CONFIG_STATUS || ac_write_fail=1
12798
12799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12800 for (key in D) D_is_set[key] = 1
12801 FS = "\a"
12802}
12803/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12804 line = \$ 0
12805 split(line, arg, " ")
12806 if (arg[1] == "#") {
12807 defundef = arg[2]
12808 mac1 = arg[3]
12809 } else {
12810 defundef = substr(arg[1], 2)
12811 mac1 = arg[2]
12812 }
12813 split(mac1, mac2, "(") #)
12814 macro = mac2[1]
12815 prefix = substr(line, 1, index(line, defundef) - 1)
12816 if (D_is_set[macro]) {
12817 # Preserve the white space surrounding the "#".
12818 print prefix "define", macro P[macro] D[macro]
12819 next
12820 } else {
12821 # Replace #undef with comments. This is necessary, for example,
12822 # in the case of _POSIX_SOURCE, which is predefined and required
12823 # on some systems where configure will not decide to define it.
12824 if (defundef == "undef") {
12825 print "/*", prefix defundef, macro, "*/"
12826 next
12827 }
12828 }
12829}
12830{ print }
12831_ACAWK
edece237 12832_ACEOF
81ecdfbb 12833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 12834 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 12835fi # test -n "$CONFIG_HEADERS"
edece237 12836
edece237 12837
99d8e879 12838eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
12839shift
12840for ac_tag
12841do
12842 case $ac_tag in
12843 :[FHLC]) ac_mode=$ac_tag; continue;;
12844 esac
12845 case $ac_mode$ac_tag in
12846 :[FHL]*:*);;
d0ac1c44 12847 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
12848 :[FH]-) ac_tag=-:-;;
12849 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
edece237 12850 esac
81ecdfbb
RW
12851 ac_save_IFS=$IFS
12852 IFS=:
12853 set x $ac_tag
12854 IFS=$ac_save_IFS
12855 shift
12856 ac_file=$1
12857 shift
edece237 12858
81ecdfbb
RW
12859 case $ac_mode in
12860 :L) ac_source=$1;;
12861 :[FH])
12862 ac_file_inputs=
12863 for ac_f
12864 do
12865 case $ac_f in
d0ac1c44 12866 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
12867 *) # Look for the file first in the build tree, then in the source tree
12868 # (if the path is not absolute). The absolute path cannot be DOS-style,
12869 # because $ac_f cannot contain `:'.
12870 test -f "$ac_f" ||
12871 case $ac_f in
12872 [\\/$]*) false;;
12873 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12874 esac ||
d0ac1c44 12875 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
edece237 12876 esac
81ecdfbb
RW
12877 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12878 as_fn_append ac_file_inputs " '$ac_f'"
12879 done
edece237 12880
81ecdfbb
RW
12881 # Let's still pretend it is `configure' which instantiates (i.e., don't
12882 # use $as_me), people would be surprised to read:
12883 # /* config.h. Generated by config.status. */
12884 configure_input='Generated from '`
12885 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12886 `' by configure.'
12887 if test x"$ac_file" != x-; then
12888 configure_input="$ac_file. $configure_input"
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12890$as_echo "$as_me: creating $ac_file" >&6;}
12891 fi
12892 # Neutralize special characters interpreted by sed in replacement strings.
12893 case $configure_input in #(
12894 *\&* | *\|* | *\\* )
12895 ac_sed_conf_input=`$as_echo "$configure_input" |
12896 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12897 *) ac_sed_conf_input=$configure_input;;
12898 esac
edece237 12899
81ecdfbb 12900 case $ac_tag in
d0ac1c44
SM
12901 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12902 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
12903 esac
12904 ;;
12905 esac
edece237 12906
81ecdfbb 12907 ac_dir=`$as_dirname -- "$ac_file" ||
edece237
CV
12908$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12909 X"$ac_file" : 'X\(//\)[^/]' \| \
12910 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
12911 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12912$as_echo X"$ac_file" |
12913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12914 s//\1/
12915 q
12916 }
12917 /^X\(\/\/\)[^/].*/{
12918 s//\1/
12919 q
12920 }
12921 /^X\(\/\/\)$/{
12922 s//\1/
12923 q
12924 }
12925 /^X\(\/\).*/{
12926 s//\1/
12927 q
12928 }
12929 s/.*/./; q'`
12930 as_dir="$ac_dir"; as_fn_mkdir_p
edece237
CV
12931 ac_builddir=.
12932
81ecdfbb
RW
12933case "$ac_dir" in
12934.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12935*)
12936 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12937 # A ".." for each directory in $ac_dir_suffix.
12938 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12939 case $ac_top_builddir_sub in
12940 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12941 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12942 esac ;;
12943esac
12944ac_abs_top_builddir=$ac_pwd
12945ac_abs_builddir=$ac_pwd$ac_dir_suffix
12946# for backward compatibility:
12947ac_top_builddir=$ac_top_build_prefix
edece237
CV
12948
12949case $srcdir in
81ecdfbb 12950 .) # We are building in place.
edece237 12951 ac_srcdir=.
81ecdfbb
RW
12952 ac_top_srcdir=$ac_top_builddir_sub
12953 ac_abs_top_srcdir=$ac_pwd ;;
12954 [\\/]* | ?:[\\/]* ) # Absolute name.
edece237 12955 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
12956 ac_top_srcdir=$srcdir
12957 ac_abs_top_srcdir=$srcdir ;;
12958 *) # Relative name.
12959 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12960 ac_top_srcdir=$ac_top_build_prefix$srcdir
12961 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
edece237 12962esac
81ecdfbb 12963ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
edece237 12964
edece237 12965
81ecdfbb
RW
12966 case $ac_mode in
12967 :F)
12968 #
12969 # CONFIG_FILE
12970 #
edece237 12971
81ecdfbb
RW
12972 case $INSTALL in
12973 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12974 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
edece237 12975 esac
81ecdfbb 12976_ACEOF
edece237 12977
81ecdfbb
RW
12978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12979# If the template does not know about datarootdir, expand it.
12980# FIXME: This hack should be removed a few years after 2.60.
12981ac_datarootdir_hack=; ac_datarootdir_seen=
12982ac_sed_dataroot='
12983/datarootdir/ {
12984 p
12985 q
12986}
12987/@datadir@/p
12988/@docdir@/p
12989/@infodir@/p
12990/@localedir@/p
12991/@mandir@/p'
12992case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12993*datarootdir*) ac_datarootdir_seen=yes;;
12994*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12996$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12997_ACEOF
12998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12999 ac_datarootdir_hack='
13000 s&@datadir@&$datadir&g
13001 s&@docdir@&$docdir&g
13002 s&@infodir@&$infodir&g
13003 s&@localedir@&$localedir&g
13004 s&@mandir@&$mandir&g
13005 s&\\\${datarootdir}&$datarootdir&g' ;;
13006esac
edece237 13007_ACEOF
edece237 13008
81ecdfbb
RW
13009# Neutralize VPATH when `$srcdir' = `.'.
13010# Shell code in configure.ac might set extrasub.
13011# FIXME: do we really want to maintain this feature?
13012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13013ac_sed_extra="$ac_vpsub
13014$extrasub
13015_ACEOF
13016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13017:t
13018/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13019s|@configure_input@|$ac_sed_conf_input|;t t
13020s&@top_builddir@&$ac_top_builddir_sub&;t t
13021s&@top_build_prefix@&$ac_top_build_prefix&;t t
13022s&@srcdir@&$ac_srcdir&;t t
13023s&@abs_srcdir@&$ac_abs_srcdir&;t t
13024s&@top_srcdir@&$ac_top_srcdir&;t t
13025s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13026s&@builddir@&$ac_builddir&;t t
13027s&@abs_builddir@&$ac_abs_builddir&;t t
13028s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13029s&@INSTALL@&$ac_INSTALL&;t t
13030$ac_datarootdir_hack
13031"
d0ac1c44
SM
13032eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13033 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13034
13035test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
13036 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13037 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13038 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13040which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 13041$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13042which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 13043
d0ac1c44 13044 rm -f "$ac_tmp/stdin"
81ecdfbb 13045 case $ac_file in
d0ac1c44
SM
13046 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13047 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 13048 esac \
d0ac1c44 13049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13050 ;;
13051 :H)
13052 #
13053 # CONFIG_HEADER
13054 #
13055 if test x"$ac_file" != x-; then
13056 {
13057 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13058 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13059 } >"$ac_tmp/config.h" \
13060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13061 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13063$as_echo "$as_me: $ac_file is unchanged" >&6;}
13064 else
13065 rm -f "$ac_file"
d0ac1c44
SM
13066 mv "$ac_tmp/config.h" "$ac_file" \
13067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 13068 fi
edece237 13069 else
81ecdfbb 13070 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13071 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13072 || as_fn_error $? "could not create -" "$LINENO" 5
81ecdfbb
RW
13073 fi
13074 ;;
edece237 13075
81ecdfbb
RW
13076 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13077$as_echo "$as_me: executing $ac_file commands" >&6;}
13078 ;;
13079 esac
edece237
CV
13080
13081
81ecdfbb 13082 case $ac_file$ac_mode in
db2e4d67 13083 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
13084 "libtool":C)
13085
13086 # See if we are running on zsh, and set the options which allow our
13087 # commands through without removal of \ escapes.
13088 if test -n "${ZSH_VERSION+set}" ; then
13089 setopt NO_GLOB_SUBST
13090 fi
13091
13092 cfgfile="${ofile}T"
13093 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13094 $RM "$cfgfile"
13095
13096 cat <<_LT_EOF >> "$cfgfile"
13097#! $SHELL
13098
13099# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13100# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13101# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13102# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13103#
13104# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13105# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13106# Written by Gordon Matzigkeit, 1996
13107#
13108# This file is part of GNU Libtool.
13109#
13110# GNU Libtool is free software; you can redistribute it and/or
13111# modify it under the terms of the GNU General Public License as
13112# published by the Free Software Foundation; either version 2 of
13113# the License, or (at your option) any later version.
13114#
13115# As a special exception to the GNU General Public License,
13116# if you distribute this file as part of a program or library that
13117# is built using GNU Libtool, you may include this file under the
13118# same distribution terms that you use for the rest of that program.
13119#
13120# GNU Libtool is distributed in the hope that it will be useful,
13121# but WITHOUT ANY WARRANTY; without even the implied warranty of
13122# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13123# GNU General Public License for more details.
13124#
13125# You should have received a copy of the GNU General Public License
13126# along with GNU Libtool; see the file COPYING. If not, a copy
13127# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13128# obtained by writing to the Free Software Foundation, Inc.,
13129# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13130
13131
13132# The names of the tagged configurations supported by this script.
13133available_tags=""
13134
13135# ### BEGIN LIBTOOL CONFIG
13136
13137# Which release of libtool.m4 was used?
13138macro_version=$macro_version
13139macro_revision=$macro_revision
13140
13141# Whether or not to build shared libraries.
13142build_libtool_libs=$enable_shared
13143
13144# Whether or not to build static libraries.
13145build_old_libs=$enable_static
13146
13147# What type of objects to build.
13148pic_mode=$pic_mode
13149
13150# Whether or not to optimize for fast installation.
13151fast_install=$enable_fast_install
13152
13153# Shell to use when invoking shell scripts.
13154SHELL=$lt_SHELL
13155
13156# An echo program that protects backslashes.
13157ECHO=$lt_ECHO
13158
13159# The host system.
13160host_alias=$host_alias
13161host=$host
13162host_os=$host_os
13163
13164# The build system.
13165build_alias=$build_alias
13166build=$build
13167build_os=$build_os
13168
13169# A sed program that does not truncate output.
13170SED=$lt_SED
13171
13172# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13173Xsed="\$SED -e 1s/^X//"
13174
13175# A grep program that handles long lines.
13176GREP=$lt_GREP
13177
13178# An ERE matcher.
13179EGREP=$lt_EGREP
13180
13181# A literal string matcher.
13182FGREP=$lt_FGREP
13183
13184# A BSD- or MS-compatible name lister.
13185NM=$lt_NM
13186
13187# Whether we need soft or hard links.
13188LN_S=$lt_LN_S
13189
13190# What is the maximum length of a command?
13191max_cmd_len=$max_cmd_len
13192
13193# Object file suffix (normally "o").
13194objext=$ac_objext
13195
13196# Executable file suffix (normally "").
13197exeext=$exeext
13198
13199# whether the shell understands "unset".
13200lt_unset=$lt_unset
13201
13202# turn spaces into newlines.
13203SP2NL=$lt_lt_SP2NL
13204
13205# turn newlines into spaces.
13206NL2SP=$lt_lt_NL2SP
13207
13208# An object symbol dumper.
13209OBJDUMP=$lt_OBJDUMP
13210
13211# Method to check whether dependent libraries are shared objects.
13212deplibs_check_method=$lt_deplibs_check_method
13213
13214# Command to use when deplibs_check_method == "file_magic".
13215file_magic_cmd=$lt_file_magic_cmd
13216
13217# The archiver.
13218AR=$lt_AR
13219AR_FLAGS=$lt_AR_FLAGS
13220
13221# A symbol stripping program.
13222STRIP=$lt_STRIP
13223
13224# Commands used to install an old-style archive.
13225RANLIB=$lt_RANLIB
13226old_postinstall_cmds=$lt_old_postinstall_cmds
13227old_postuninstall_cmds=$lt_old_postuninstall_cmds
13228
13229# Whether to use a lock for old archive extraction.
13230lock_old_archive_extraction=$lock_old_archive_extraction
13231
13232# A C compiler.
13233LTCC=$lt_CC
13234
13235# LTCC compiler flags.
13236LTCFLAGS=$lt_CFLAGS
13237
13238# Take the output of nm and produce a listing of raw symbols and C names.
13239global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13240
13241# Transform the output of nm in a proper C declaration.
13242global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13243
13244# Transform the output of nm in a C name address pair.
13245global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13246
13247# Transform the output of nm in a C name address pair when lib prefix is needed.
13248global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13249
13250# The name of the directory that contains temporary libtool files.
13251objdir=$objdir
13252
13253# Used to examine libraries when file_magic_cmd begins with "file".
13254MAGIC_CMD=$MAGIC_CMD
13255
13256# Must we lock files when doing compilation?
13257need_locks=$lt_need_locks
13258
13259# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13260DSYMUTIL=$lt_DSYMUTIL
13261
13262# Tool to change global to local symbols on Mac OS X.
13263NMEDIT=$lt_NMEDIT
13264
13265# Tool to manipulate fat objects and archives on Mac OS X.
13266LIPO=$lt_LIPO
13267
13268# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13269OTOOL=$lt_OTOOL
13270
13271# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13272OTOOL64=$lt_OTOOL64
13273
13274# Old archive suffix (normally "a").
13275libext=$libext
13276
13277# Shared library suffix (normally ".so").
13278shrext_cmds=$lt_shrext_cmds
13279
13280# The commands to extract the exported symbol list from a shared archive.
13281extract_expsyms_cmds=$lt_extract_expsyms_cmds
13282
13283# Variables whose values should be saved in libtool wrapper scripts and
13284# restored at link time.
13285variables_saved_for_relink=$lt_variables_saved_for_relink
13286
13287# Do we need the "lib" prefix for modules?
13288need_lib_prefix=$need_lib_prefix
13289
13290# Do we need a version for libraries?
13291need_version=$need_version
13292
13293# Library versioning type.
13294version_type=$version_type
13295
13296# Shared library runtime path variable.
13297runpath_var=$runpath_var
13298
13299# Shared library path variable.
13300shlibpath_var=$shlibpath_var
13301
13302# Is shlibpath searched before the hard-coded library search path?
13303shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13304
13305# Format of library name prefix.
13306libname_spec=$lt_libname_spec
13307
13308# List of archive names. First name is the real one, the rest are links.
13309# The last name is the one that the linker finds with -lNAME
13310library_names_spec=$lt_library_names_spec
13311
13312# The coded name of the library, if different from the real name.
13313soname_spec=$lt_soname_spec
13314
13315# Permission mode override for installation of shared libraries.
13316install_override_mode=$lt_install_override_mode
13317
13318# Command to use after installation of a shared archive.
13319postinstall_cmds=$lt_postinstall_cmds
13320
13321# Command to use after uninstallation of a shared archive.
13322postuninstall_cmds=$lt_postuninstall_cmds
13323
13324# Commands used to finish a libtool library installation in a directory.
13325finish_cmds=$lt_finish_cmds
13326
13327# As "finish_cmds", except a single script fragment to be evaled but
13328# not shown.
13329finish_eval=$lt_finish_eval
13330
13331# Whether we should hardcode library paths into libraries.
13332hardcode_into_libs=$hardcode_into_libs
13333
13334# Compile-time system search path for libraries.
13335sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13336
13337# Run-time system search path for libraries.
13338sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13339
13340# Whether dlopen is supported.
13341dlopen_support=$enable_dlopen
13342
13343# Whether dlopen of programs is supported.
13344dlopen_self=$enable_dlopen_self
13345
13346# Whether dlopen of statically linked programs is supported.
13347dlopen_self_static=$enable_dlopen_self_static
13348
13349# Commands to strip libraries.
13350old_striplib=$lt_old_striplib
13351striplib=$lt_striplib
13352
13353
13354# The linker used to build libraries.
13355LD=$lt_LD
13356
13357# How to create reloadable object files.
13358reload_flag=$lt_reload_flag
13359reload_cmds=$lt_reload_cmds
13360
13361# Commands used to build an old-style archive.
13362old_archive_cmds=$lt_old_archive_cmds
13363
13364# A language specific compiler.
13365CC=$lt_compiler
13366
13367# Is the compiler the GNU compiler?
13368with_gcc=$GCC
13369
13370# Compiler flag to turn off builtin functions.
13371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13372
13373# How to pass a linker flag through the compiler.
13374wl=$lt_lt_prog_compiler_wl
13375
13376# Additional compiler flags for building library objects.
13377pic_flag=$lt_lt_prog_compiler_pic
13378
13379# Compiler flag to prevent dynamic linking.
13380link_static_flag=$lt_lt_prog_compiler_static
13381
13382# Does compiler simultaneously support -c and -o options?
13383compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13384
13385# Whether or not to add -lc for building shared libraries.
13386build_libtool_need_lc=$archive_cmds_need_lc
13387
13388# Whether or not to disallow shared libs when runtime libs are static.
13389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13390
13391# Compiler flag to allow reflexive dlopens.
13392export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13393
13394# Compiler flag to generate shared objects directly from archives.
13395whole_archive_flag_spec=$lt_whole_archive_flag_spec
13396
13397# Whether the compiler copes with passing no objects directly.
13398compiler_needs_object=$lt_compiler_needs_object
13399
13400# Create an old-style archive from a shared archive.
13401old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13402
13403# Create a temporary old-style archive to link instead of a shared archive.
13404old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13405
13406# Commands used to build a shared archive.
13407archive_cmds=$lt_archive_cmds
13408archive_expsym_cmds=$lt_archive_expsym_cmds
13409
13410# Commands used to build a loadable module if different from building
13411# a shared archive.
13412module_cmds=$lt_module_cmds
13413module_expsym_cmds=$lt_module_expsym_cmds
13414
13415# Whether we are building with GNU ld or not.
13416with_gnu_ld=$lt_with_gnu_ld
13417
13418# Flag that allows shared libraries with undefined symbols to be built.
13419allow_undefined_flag=$lt_allow_undefined_flag
13420
13421# Flag that enforces no undefined symbols.
13422no_undefined_flag=$lt_no_undefined_flag
13423
13424# Flag to hardcode \$libdir into a binary during linking.
13425# This must work even if \$libdir does not exist
13426hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13427
13428# If ld is used when linking, flag to hardcode \$libdir into a binary
13429# during linking. This must work even if \$libdir does not exist.
13430hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13431
13432# Whether we need a single "-rpath" flag with a separated argument.
13433hardcode_libdir_separator=$lt_hardcode_libdir_separator
13434
13435# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13436# DIR into the resulting binary.
13437hardcode_direct=$hardcode_direct
13438
13439# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13440# DIR into the resulting binary and the resulting library dependency is
13441# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13442# library is relocated.
13443hardcode_direct_absolute=$hardcode_direct_absolute
13444
13445# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13446# into the resulting binary.
13447hardcode_minus_L=$hardcode_minus_L
13448
13449# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13450# into the resulting binary.
13451hardcode_shlibpath_var=$hardcode_shlibpath_var
13452
13453# Set to "yes" if building a shared library automatically hardcodes DIR
13454# into the library and all subsequent libraries and executables linked
13455# against it.
13456hardcode_automatic=$hardcode_automatic
13457
13458# Set to yes if linker adds runtime paths of dependent libraries
13459# to runtime path list.
13460inherit_rpath=$inherit_rpath
13461
13462# Whether libtool must link a program against all its dependency libraries.
13463link_all_deplibs=$link_all_deplibs
13464
13465# Fix the shell variable \$srcfile for the compiler.
13466fix_srcfile_path=$lt_fix_srcfile_path
13467
13468# Set to "yes" if exported symbols are required.
13469always_export_symbols=$always_export_symbols
13470
13471# The commands to list exported symbols.
13472export_symbols_cmds=$lt_export_symbols_cmds
13473
13474# Symbols that should not be listed in the preloaded symbols.
13475exclude_expsyms=$lt_exclude_expsyms
13476
13477# Symbols that must always be exported.
13478include_expsyms=$lt_include_expsyms
13479
13480# Commands necessary for linking programs (against libraries) with templates.
13481prelink_cmds=$lt_prelink_cmds
13482
13483# Specify filename containing input files.
13484file_list_spec=$lt_file_list_spec
13485
13486# How to hardcode a shared library path into an executable.
13487hardcode_action=$hardcode_action
13488
13489# ### END LIBTOOL CONFIG
13490
13491_LT_EOF
13492
13493 case $host_os in
13494 aix3*)
13495 cat <<\_LT_EOF >> "$cfgfile"
13496# AIX sometimes has problems with the GCC collect2 program. For some
13497# reason, if we set the COLLECT_NAMES environment variable, the problems
13498# vanish in a puff of smoke.
13499if test "X${COLLECT_NAMES+set}" != Xset; then
13500 COLLECT_NAMES=
13501 export COLLECT_NAMES
13502fi
13503_LT_EOF
13504 ;;
13505 esac
13506
13507
13508ltmain="$ac_aux_dir/ltmain.sh"
13509
13510
13511 # We use sed instead of cat because bash on DJGPP gets confused if
13512 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13513 # text mode, it properly converts lines to CR/LF. This bash problem
13514 # is reportedly fixed, but why not run on old versions too?
13515 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13516 || (rm -f "$cfgfile"; exit 1)
13517
13518 case $xsi_shell in
13519 yes)
13520 cat << \_LT_EOF >> "$cfgfile"
13521
13522# func_dirname file append nondir_replacement
13523# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13524# otherwise set result to NONDIR_REPLACEMENT.
13525func_dirname ()
13526{
13527 case ${1} in
13528 */*) func_dirname_result="${1%/*}${2}" ;;
13529 * ) func_dirname_result="${3}" ;;
13530 esac
13531}
13532
13533# func_basename file
13534func_basename ()
13535{
13536 func_basename_result="${1##*/}"
13537}
13538
13539# func_dirname_and_basename file append nondir_replacement
13540# perform func_basename and func_dirname in a single function
13541# call:
13542# dirname: Compute the dirname of FILE. If nonempty,
13543# add APPEND to the result, otherwise set result
13544# to NONDIR_REPLACEMENT.
13545# value returned in "$func_dirname_result"
13546# basename: Compute filename of FILE.
13547# value retuned in "$func_basename_result"
13548# Implementation must be kept synchronized with func_dirname
13549# and func_basename. For efficiency, we do not delegate to
13550# those functions but instead duplicate the functionality here.
13551func_dirname_and_basename ()
13552{
13553 case ${1} in
13554 */*) func_dirname_result="${1%/*}${2}" ;;
13555 * ) func_dirname_result="${3}" ;;
13556 esac
13557 func_basename_result="${1##*/}"
13558}
13559
13560# func_stripname prefix suffix name
13561# strip PREFIX and SUFFIX off of NAME.
13562# PREFIX and SUFFIX must not contain globbing or regex special
13563# characters, hashes, percent signs, but SUFFIX may contain a leading
13564# dot (in which case that matches only a dot).
13565func_stripname ()
13566{
13567 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13568 # positional parameters, so assign one to ordinary parameter first.
13569 func_stripname_result=${3}
13570 func_stripname_result=${func_stripname_result#"${1}"}
13571 func_stripname_result=${func_stripname_result%"${2}"}
13572}
13573
13574# func_opt_split
13575func_opt_split ()
13576{
13577 func_opt_split_opt=${1%%=*}
13578 func_opt_split_arg=${1#*=}
13579}
13580
13581# func_lo2o object
13582func_lo2o ()
13583{
13584 case ${1} in
13585 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13586 *) func_lo2o_result=${1} ;;
13587 esac
13588}
13589
13590# func_xform libobj-or-source
13591func_xform ()
13592{
13593 func_xform_result=${1%.*}.lo
13594}
13595
13596# func_arith arithmetic-term...
13597func_arith ()
13598{
13599 func_arith_result=$(( $* ))
13600}
13601
13602# func_len string
13603# STRING may not start with a hyphen.
13604func_len ()
13605{
13606 func_len_result=${#1}
13607}
13608
13609_LT_EOF
13610 ;;
13611 *) # Bourne compatible functions.
13612 cat << \_LT_EOF >> "$cfgfile"
13613
13614# func_dirname file append nondir_replacement
13615# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13616# otherwise set result to NONDIR_REPLACEMENT.
13617func_dirname ()
13618{
13619 # Extract subdirectory from the argument.
13620 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13621 if test "X$func_dirname_result" = "X${1}"; then
13622 func_dirname_result="${3}"
13623 else
13624 func_dirname_result="$func_dirname_result${2}"
13625 fi
13626}
13627
13628# func_basename file
13629func_basename ()
13630{
13631 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13632}
13633
13634
13635# func_stripname prefix suffix name
13636# strip PREFIX and SUFFIX off of NAME.
13637# PREFIX and SUFFIX must not contain globbing or regex special
13638# characters, hashes, percent signs, but SUFFIX may contain a leading
13639# dot (in which case that matches only a dot).
13640# func_strip_suffix prefix name
13641func_stripname ()
13642{
13643 case ${2} in
13644 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13645 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13646 esac
13647}
13648
13649# sed scripts:
13650my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13651my_sed_long_arg='1s/^-[^=]*=//'
13652
13653# func_opt_split
13654func_opt_split ()
13655{
13656 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13657 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13658}
13659
13660# func_lo2o object
13661func_lo2o ()
13662{
13663 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13664}
13665
13666# func_xform libobj-or-source
13667func_xform ()
13668{
13669 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13670}
13671
13672# func_arith arithmetic-term...
13673func_arith ()
13674{
13675 func_arith_result=`expr "$@"`
13676}
13677
13678# func_len string
13679# STRING may not start with a hyphen.
13680func_len ()
13681{
13682 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13683}
13684
13685_LT_EOF
13686esac
13687
13688case $lt_shell_append in
13689 yes)
13690 cat << \_LT_EOF >> "$cfgfile"
13691
13692# func_append var value
13693# Append VALUE to the end of shell variable VAR.
13694func_append ()
13695{
13696 eval "$1+=\$2"
13697}
13698_LT_EOF
13699 ;;
13700 *)
13701 cat << \_LT_EOF >> "$cfgfile"
13702
13703# func_append var value
13704# Append VALUE to the end of shell variable VAR.
13705func_append ()
13706{
13707 eval "$1=\$$1\$2"
13708}
13709
13710_LT_EOF
13711 ;;
13712 esac
13713
13714
13715 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13716 || (rm -f "$cfgfile"; exit 1)
13717
13718 mv -f "$cfgfile" "$ofile" ||
13719 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13720 chmod +x "$ofile"
13721
13722 ;;
81ecdfbb 13723 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
edece237
CV
13724 rm -f Makesim1.tmp Makesim2.tmp Makefile
13725 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
13726 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
13727 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
13728 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
13729 <Makefile.sim >Makefile
13730 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
13731 ;;
81ecdfbb
RW
13732 "stamp-h":C) echo > stamp-h ;;
13733
edece237 13734 esac
81ecdfbb 13735done # for ac_tag
edece237 13736
edece237 13737
81ecdfbb 13738as_fn_exit 0
edece237 13739_ACEOF
edece237
CV
13740ac_clean_files=$ac_clean_files_save
13741
81ecdfbb 13742test $ac_write_fail = 0 ||
d0ac1c44 13743 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 13744
edece237
CV
13745
13746# configure is writing to config.log, and then calls config.status.
13747# config.status does its own redirection, appending to config.log.
13748# Unfortunately, on DOS this fails, as config.log is still kept open
13749# by configure, so config.status won't be able to write to it; its
13750# output is simply discarded. So we exec the FD to /dev/null,
13751# effectively closing config.log, so it can be properly (re)opened and
13752# appended to by config.status. When coming back to configure, we
13753# need to make the FD available again.
13754if test "$no_create" != yes; then
13755 ac_cs_success=:
13756 ac_config_status_args=
13757 test "$silent" = yes &&
13758 ac_config_status_args="$ac_config_status_args --quiet"
13759 exec 5>/dev/null
13760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13761 exec 5>>config.log
13762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13763 # would make configure fail if this is the last instruction.
d0ac1c44 13764 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
13765fi
13766if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13768$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
edece237
CV
13769fi
13770
13771