]> git.saurik.com Git - cycript.git/blame - configure
@encode syntax doesn't require Objective-C support.
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
53ba6704 3# Generated by GNU Autoconf 2.69 for Cycript 0.9.
c7aa54aa
DWT
4#
5# Report bugs to <saurik@saurik.com>.
6#
9c60689e 7#
53ba6704 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9c60689e 9#
c7aa54aa
DWT
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
66170b30
JF
13#
14# Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
ee134472 94as_myself=
c7aa54aa
DWT
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
53ba6704
JF
139# Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
c7aa54aa
DWT
164if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178esac
179fi
180"
181 as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195 exitcode=1; echo positional parameters were not saved.
196fi
53ba6704
JF
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
c7aa54aa
DWT
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
ee134472
JF
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
35fa52c0 211test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214else
215 as_have_required=no
216fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237fi
238fi
239 done;;
240 esac
241 as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
53ba6704
JF
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
c7aa54aa
DWT
270fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284 fi
285 exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303 { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312 return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320 set +e
321 as_fn_set_status $1
322 exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
c7aa54aa
DWT
369
370
371} # as_fn_mkdir_p
53ba6704
JF
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378 test -f "$1" && test -x "$1"
379} # as_fn_executable_p
c7aa54aa
DWT
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413fi # as_fn_arith
414
415
12833ad8
JF
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
c7aa54aa
DWT
418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 420# script with STATUS, using 1 if that was 0.
c7aa54aa
DWT
421as_fn_error ()
422{
12833ad8
JF
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c7aa54aa 427 fi
12833ad8 428 $as_echo "$as_me: error: $2" >&2
c7aa54aa
DWT
429 as_fn_exit $as_status
430} # as_fn_error
431
432if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435else
436 as_expr=false
437fi
438
439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441else
442 as_basename=false
443fi
444
445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447else
448 as_dirname=false
449fi
450
451as_me=`$as_basename -- "$0" ||
452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455$as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470# Avoid depending upon Character Ranges.
471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474as_cr_digits='0123456789'
475as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
53ba6704
JF
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
c7aa54aa
DWT
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511}
512
513ECHO_C= ECHO_N= ECHO_T=
514case `echo -n x` in #(((((
515-n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522*)
523 ECHO_N='-n';;
524esac
525
526rm -f conf$$ conf$$.exe conf$$.file
527if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532fi
533if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 539 # In both cases, we have to default to `cp -pR'.
c7aa54aa 540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 541 as_ln_s='cp -pR'
c7aa54aa
DWT
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
53ba6704 545 as_ln_s='cp -pR'
c7aa54aa
DWT
546 fi
547else
53ba6704 548 as_ln_s='cp -pR'
c7aa54aa
DWT
549fi
550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551rmdir conf$$.dir 2>/dev/null
552
553if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558fi
559
53ba6704
JF
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
c7aa54aa
DWT
562
563# Sed expression to map a string onto a valid CPP name.
564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566# Sed expression to map a string onto a valid variable name.
567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
9c60689e
DWT
569SHELL=${CONFIG_SHELL-/bin/sh}
570
c7aa54aa 571
9c60689e
DWT
572test -n "$DJDIR" || exec 7<&0 </dev/null
573exec 6>&1
c7aa54aa
DWT
574
575# Name of the host.
12833ad8 576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c7aa54aa
DWT
577# so uname gets run too.
578ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580#
581# Initializations.
582#
583ac_default_prefix=/usr/local
584ac_clean_files=
585ac_config_libobj_dir=.
586LIBOBJS=
587cross_compiling=no
588subdirs=
589MFLAGS=
590MAKEFLAGS=
591
592# Identity of this package.
593PACKAGE_NAME='Cycript'
594PACKAGE_TARNAME='cycript'
595PACKAGE_VERSION='0.9'
596PACKAGE_STRING='Cycript 0.9'
597PACKAGE_BUGREPORT='saurik@saurik.com'
598PACKAGE_URL='http://www.cycript.org/'
599
35fa52c0 600ac_unique_file="Console.cpp"
6b66678a
DWT
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615# include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620# include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
66170b30
JF
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
9c60689e 640LIBOBJS
a243b558
JF
641CY_MACH_FALSE
642CY_MACH_TRUE
66170b30 643CY_MACH
7eda51e0 644CY_ATTACH_GROUP
a243b558
JF
645ac_ct__OTOOL
646_OTOOL
794e88e7
DWT
647ac_ct__NM
648_NM
649ac_ct__LIPO
650_LIPO
9777bd50 651SO
66170b30 652LTFLAGS
3615a2f7 653LTLIBGCC
6f9aea2b
JF
654LTLIBTERMCAP
655LTLIBREADLINE
a243b558
JF
656CY_OBJECTIVEC_FALSE
657CY_OBJECTIVEC_TRUE
babf7fe8 658LTOBJECTIVEC
47aaa820 659GNUSTEP_CONFIG
c823f118 660CY_OBJECTIVEC
296ee9a6 661LTLIBFFI
309b0535 662LIBFFI_LIBS
35fa52c0 663LIBFFI_CFLAGS
a243b558
JF
664CY_EXECUTE_FALSE
665CY_EXECUTE_TRUE
a93f15c0
JF
666CY_CONSOLE_FALSE
667CY_CONSOLE_TRUE
babf7fe8 668LTJAVASCRIPTCORE
35fa52c0
DWT
669WEBKIT_LIBS
670WEBKIT_CFLAGS
7eda51e0 671CY_EXECUTE
abc804fa 672CY_ARCH
9228a43a 673CY_FILTERS
e9c9a47c 674GNUTAR
e9c9a47c
DWT
675GPERF
676FLEX
677BISON
678TIME
66170b30 679GIT
12833ad8
JF
680PKG_CONFIG_LIBDIR
681PKG_CONFIG_PATH
3fd51f51 682PKG_CONFIG
a243b558 683CXXCPP
9c60689e
DWT
684CPP
685OTOOL64
686OTOOL
687LIPO
688NMEDIT
689DSYMUTIL
ee134472 690MANIFEST_TOOL
9c60689e 691RANLIB
ee134472 692DLLTOOL
9c60689e
DWT
693OBJDUMP
694LN_S
695NM
696ac_ct_DUMPBIN
697DUMPBIN
698LD
699FGREP
700EGREP
701GREP
702SED
a243b558
JF
703host_os
704host_vendor
705host_cpu
706host
707build_os
708build_vendor
709build_cpu
710build
711LIBTOOL
a243b558
JF
712ac_ct_AR
713AR
714am__fastdepOBJCXX_FALSE
715am__fastdepOBJCXX_TRUE
716OBJCXXDEPMODE
717ac_ct_OBJCXX
718OBJCXXFLAGS
719OBJCXX
720am__fastdepCXX_FALSE
721am__fastdepCXX_TRUE
722CXXDEPMODE
a93f15c0
JF
723ac_ct_CXX
724CXXFLAGS
725CXX
726am__fastdepCC_FALSE
727am__fastdepCC_TRUE
728CCDEPMODE
66170b30
JF
729am__nodep
730AMDEPBACKSLASH
731AMDEP_FALSE
732AMDEP_TRUE
733am__quote
734am__include
735DEPDIR
35fa52c0
DWT
736OBJEXT
737EXEEXT
a93f15c0 738ac_ct_CC
35fa52c0
DWT
739CPPFLAGS
740LDFLAGS
a93f15c0
JF
741CFLAGS
742CC
babf7fe8
JF
743MAINT
744MAINTAINER_MODE_FALSE
745MAINTAINER_MODE_TRUE
66170b30
JF
746AM_BACKSLASH
747AM_DEFAULT_VERBOSITY
748AM_DEFAULT_V
749AM_V
750am__untar
751am__tar
752AMTAR
753am__leading_dot
754SET_MAKE
755AWK
756mkdir_p
757MKDIR_P
758INSTALL_STRIP_PROGRAM
759STRIP
760install_sh
761MAKEINFO
762AUTOHEADER
763AUTOMAKE
764AUTOCONF
765ACLOCAL
766VERSION
767PACKAGE
768CYGPATH_W
769am__isrc
770INSTALL_DATA
771INSTALL_SCRIPT
772INSTALL_PROGRAM
dbadc56a 773target_alias
c7aa54aa
DWT
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
803PACKAGE_URL
804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL'
811ac_subst_files=''
812ac_user_opts='
813enable_option_checking
66170b30 814enable_silent_rules
babf7fe8 815enable_maintainer_mode
a243b558 816enable_dependency_tracking
9c60689e 817enable_static
549f29b5 818enable_shared
9c60689e
DWT
819with_pic
820enable_fast_install
35fa52c0 821with_gnu_ld
ee134472 822with_sysroot
9c60689e 823enable_libtool_lock
5053a6d1 824enable_javascript
a93f15c0 825enable_console
c7aa54aa
DWT
826'
827 ac_precious_vars='build_alias
828host_alias
dbadc56a 829target_alias
a93f15c0
JF
830CC
831CFLAGS
dbadc56a
DWT
832LDFLAGS
833LIBS
834CPPFLAGS
a93f15c0
JF
835CXX
836CXXFLAGS
a243b558
JF
837CCC
838OBJCXX
839OBJCXXFLAGS
9c60689e 840CPP
a243b558 841CXXCPP
3fd51f51 842PKG_CONFIG
12833ad8
JF
843PKG_CONFIG_PATH
844PKG_CONFIG_LIBDIR
e9c9a47c
DWT
845BISON
846FLEX
847GPERF
66170b30 848GNUTAR
35fa52c0
DWT
849WEBKIT_CFLAGS
850WEBKIT_LIBS
a667869d 851LIBFFI_CFLAGS
790e5246
DWT
852LIBFFI_LIBS
853GNUSTEP_CONFIG'
c7aa54aa
DWT
854
855
856# Initialize some variables set by options.
857ac_init_help=
858ac_init_version=false
859ac_unrecognized_opts=
860ac_unrecognized_sep=
861# The variables have the same names as the options, with
862# dashes changed to underlines.
863cache_file=/dev/null
864exec_prefix=NONE
865no_create=
866no_recursion=
867prefix=NONE
868program_prefix=NONE
869program_suffix=NONE
870program_transform_name=s,x,x,
871silent=
872site=
873srcdir=
874verbose=
875x_includes=NONE
876x_libraries=NONE
877
878# Installation directory options.
879# These are left unexpanded so users can "make install exec_prefix=/foo"
880# and all the variables that are supposed to be based on exec_prefix
881# by default will actually change.
882# Use braces instead of parens because sh, perl, etc. also accept them.
883# (The list follows the same order as the GNU Coding Standards.)
884bindir='${exec_prefix}/bin'
885sbindir='${exec_prefix}/sbin'
886libexecdir='${exec_prefix}/libexec'
887datarootdir='${prefix}/share'
888datadir='${datarootdir}'
889sysconfdir='${prefix}/etc'
890sharedstatedir='${prefix}/com'
891localstatedir='${prefix}/var'
892includedir='${prefix}/include'
893oldincludedir='/usr/include'
894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895infodir='${datarootdir}/info'
896htmldir='${docdir}'
897dvidir='${docdir}'
898pdfdir='${docdir}'
899psdir='${docdir}'
900libdir='${exec_prefix}/lib'
901localedir='${datarootdir}/locale'
902mandir='${datarootdir}/man'
903
904ac_prev=
905ac_dashdash=
906for ac_option
907do
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
913 fi
914
915 case $ac_option in
12833ad8
JF
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *=) ac_optarg= ;;
918 *) ac_optarg=yes ;;
c7aa54aa
DWT
919 esac
920
921 # Accept the important Cygnus configure options, so we can diagnose typos.
922
923 case $ac_dashdash$ac_option in
924 --)
925 ac_dashdash=yes ;;
926
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 ac_prev=bindir ;;
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 bindir=$ac_optarg ;;
931
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
936
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
943
944 --config-cache | -C)
945 cache_file=config.cache ;;
946
947 -datadir | --datadir | --datadi | --datad)
948 ac_prev=datadir ;;
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
951
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
958
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 963 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968"enable_$ac_useropt"
969"*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
974
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
979
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
984
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 989 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994"enable_$ac_useropt"
995"*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1009
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1012 with_gas=yes ;;
1013
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1020
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1025
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 ac_prev=htmldir ;;
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 | --ht=*)
1030 htmldir=$ac_optarg ;;
1031
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1038
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 ac_prev=infodir ;;
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1043
1044 -libdir | --libdir | --libdi | --libd)
1045 ac_prev=libdir ;;
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1048
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1055
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1060
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1067
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 ac_prev=mandir ;;
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1072
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1075 with_fp=no ;;
1076
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1079 no_create=yes ;;
1080
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 no_recursion=yes ;;
1084
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1093
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 ac_prev=prefix ;;
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1098
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1105
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1112
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1129
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 ac_prev=pdfdir ;;
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1134
1135 -psdir | --psdir | --psdi | --psd | --ps)
1136 ac_prev=psdir ;;
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 psdir=$ac_optarg ;;
1139
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 silent=yes ;;
1143
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 ac_prev=sbindir ;;
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 | --sbi=* | --sb=*)
1148 sbindir=$ac_optarg ;;
1149
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1153 | --sha | --sh)
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 | --sha=* | --sh=*)
1159 sharedstatedir=$ac_optarg ;;
1160
1161 -site | --site | --sit)
1162 ac_prev=site ;;
1163 -site=* | --site=* | --sit=*)
1164 site=$ac_optarg ;;
1165
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 ac_prev=srcdir ;;
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1170
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1177
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1182
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 verbose=yes ;;
1185
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1188
1189 -with-* | --with-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1193 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198"with_$ac_useropt"
1199"*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=\$ac_optarg ;;
1204
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1209 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214"with_$ac_useropt"
1215"*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=no ;;
1220
1221 --x)
1222 # Obsolete; use --with-x.
1223 with_x=yes ;;
1224
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1231
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1238
12833ad8
JF
1239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240Try \`$0 --help' for more information"
c7aa54aa
DWT
1241 ;;
1242
1243 *=*)
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1249 esac
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1252
1253 *)
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1259 ;;
1260
1261 esac
1262done
1263
1264if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1266 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1267fi
1268
1269if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1271 no) ;;
12833ad8 1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 esac
1275fi
1276
1277# Check all directory arguments for consistency.
1278for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1282do
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1285 case $ac_val in
1286 */ )
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1289 esac
1290 # Be sure to have absolute directory names.
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
12833ad8 1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1296done
1297
1298# There might be people who depend on the old broken behavior: `$host'
1299# used to hold the argument of --host etc.
1300# FIXME: To remove some day.
1301build=$build_alias
1302host=$host_alias
1303target=$target_alias
1304
1305# FIXME: To remove some day.
1306if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
c7aa54aa
DWT
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312fi
1313
1314ac_tool_prefix=
1315test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317test "$silent" = yes && exec 6>/dev/null
1318
1319
1320ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321ac_ls_di=`ls -di .` &&
1322ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1323 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1325 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1326
1327
1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337$as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
1362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
12833ad8 1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1369 pwd)`
1370# When building in place, set srcdir=.
1371if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1373fi
1374# Remove unnecessary trailing slashes from srcdir.
1375# Double slashes in file names in object file debugging info
1376# mess up M-x gdb in Emacs.
1377case $srcdir in
1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379esac
1380for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
12833ad8 1408 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
1414Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447_ACEOF
1448
1449 cat <<\_ACEOF
35fa52c0 1450
66170b30
JF
1451Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
35fa52c0
DWT
1456System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of Cycript 0.9:";;
1465 esac
1466 cat <<\_ACEOF
1467
35fa52c0
DWT
1468Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1472 --enable-silent-rules less verbose build output (undo: "make V=1")
1473 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful (and
1476 sometimes confusing) to the casual installer
66170b30
JF
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
a243b558
JF
1481 --enable-static[=PKGS] build static libraries [default=no]
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
9c60689e 1485 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1486 --enable-javascript[=ENGINE]
790e5246 1487 use a JavaScript runtime (currently the only
b66977f1
DWT
1488 available option for ENGINE is JavaScriptCore)
1489 [default=yes]
a93f15c0 1490 --disable-console disable console
35fa52c0
DWT
1491
1492Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1495 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e
DWT
1496 both]
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1498 --with-sysroot=DIR Search for dependent libraries within DIR
1499 (or the compiler's sysroot if not specified).
35fa52c0 1500
dbadc56a 1501Some influential environment variables:
a93f15c0
JF
1502 CC C compiler command
1503 CFLAGS C compiler flags
dbadc56a
DWT
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1508 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1509 CXX C++ compiler command
1510 CXXFLAGS C++ compiler flags
a243b558
JF
1511 OBJCXX Objective C++ compiler command
1512 OBJCXXFLAGS Objective C++ compiler flags
9c60689e 1513 CPP C preprocessor
a243b558 1514 CXXCPP C++ preprocessor
3fd51f51 1515 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1516 PKG_CONFIG_PATH
1517 directories to add to pkg-config's search path
1518 PKG_CONFIG_LIBDIR
1519 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1520 BISON GNU Project parser generator (yacc replacement)
1521 FLEX the fast lexical analyser generator
1522 GPERF perfect hash function generator
66170b30 1523 GNUTAR a very sticky lump of files
35fa52c0
DWT
1524 WEBKIT_CFLAGS
1525 C compiler flags for WEBKIT, overriding pkg-config
1526 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1527 GNUSTEP_CONFIG
1528 prints information about the current gnustep installation
dbadc56a
DWT
1529
1530Use these variables to override the choices made by `configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
c7aa54aa
DWT
1533Report bugs to <saurik@saurik.com>.
1534Cycript home page: <http://www.cycript.org/>.
1535_ACEOF
1536ac_status=$?
1537fi
1538
1539if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1546
1547case "$ac_dir" in
1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549*)
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557esac
1558ac_abs_top_builddir=$ac_pwd
1559ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560# for backward compatibility:
1561ac_top_builddir=$ac_top_build_prefix
1562
1563case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576esac
1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592fi
1593
1594test -n "$ac_init_help" && exit $ac_status
1595if $ac_init_version; then
1596 cat <<\_ACEOF
1597Cycript configure 0.9
53ba6704 1598generated by GNU Autoconf 2.69
c7aa54aa 1599
53ba6704 1600Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1601This configure script is free software; the Free Software Foundation
1602gives unlimited permission to copy, distribute and modify it.
66170b30
JF
1603
1604Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
1605_ACEOF
1606 exit
1607fi
1608
1609## ------------------------ ##
1610## Autoconf initialization. ##
1611## ------------------------ ##
dbadc56a 1612
a93f15c0
JF
1613# ac_fn_c_try_compile LINENO
1614# --------------------------
a243b558 1615# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1616ac_fn_c_try_compile ()
a243b558
JF
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1621case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
a93f15c0 1636 test -z "$ac_c_werror_flag" ||
a243b558
JF
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1639 ac_retval=0
1640else
1641 $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
a93f15c0 1649} # ac_fn_c_try_compile
a243b558 1650
a93f15c0
JF
1651# ac_fn_cxx_try_compile LINENO
1652# ----------------------------
a243b558 1653# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1654ac_fn_cxx_try_compile ()
a243b558
JF
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext
1658 if { { ac_try="$ac_compile"
1659case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_compile") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
a93f15c0 1674 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1675 test ! -s conftest.err
1676 } && test -s conftest.$ac_objext; then :
1677 ac_retval=0
1678else
1679 $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1
1683fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
a93f15c0 1687} # ac_fn_cxx_try_compile
a243b558 1688
a93f15c0
JF
1689# ac_fn_objcxx_try_compile LINENO
1690# -------------------------------
35fa52c0 1691# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1692ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1693{
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext
1696 if { { ac_try="$ac_compile"
1697case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_compile") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
a93f15c0 1712 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1713 test ! -s conftest.err
1714 } && test -s conftest.$ac_objext; then :
1715 ac_retval=0
1716else
1717 $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721fi
ee134472 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1723 as_fn_set_status $ac_retval
35fa52c0 1724
a93f15c0 1725} # ac_fn_objcxx_try_compile
35fa52c0
DWT
1726
1727# ac_fn_c_try_link LINENO
1728# -----------------------
1729# Try to link conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_link ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext conftest$ac_exeext
1734 if { { ac_try="$ac_link"
1735case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1747 fi
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest$ac_exeext && {
1753 test "$cross_compiling" = yes ||
53ba6704 1754 test -x conftest$ac_exeext
35fa52c0
DWT
1755 }; then :
1756 ac_retval=0
1757else
1758 $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1
1762fi
1763 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765 # interfere with the next link command; also delete a directory that is
1766 # left behind by Apple's compiler. We do this before executing the actions.
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1769 as_fn_set_status $ac_retval
35fa52c0
DWT
1770
1771} # ac_fn_c_try_link
1772
9c60689e
DWT
1773# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists and can be compiled using the include files in
1776# INCLUDES, setting the cache variable VAR accordingly.
1777ac_fn_c_check_header_compile ()
dbadc56a
DWT
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
ee134472 1782if eval \${$3+:} false; then :
9c60689e
DWT
1783 $as_echo_n "(cached) " >&6
1784else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787$4
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791 eval "$3=yes"
1792else
1793 eval "$3=no"
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799$as_echo "$ac_res" >&6; }
ee134472 1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1801
1802} # ac_fn_c_check_header_compile
1803
1804# ac_fn_c_try_cpp LINENO
1805# ----------------------
1806# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807ac_fn_c_try_cpp ()
1808{
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1811case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
9c60689e 1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1825 test $ac_status = 0; } > conftest.i && {
9c60689e 1826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1827 test ! -s conftest.err
9c60689e 1828 }; then :
dbadc56a
DWT
1829 ac_retval=0
1830else
1831 $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
9c60689e 1834 ac_retval=1
dbadc56a 1835fi
ee134472 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1837 as_fn_set_status $ac_retval
dbadc56a 1838
9c60689e 1839} # ac_fn_c_try_cpp
35fa52c0
DWT
1840
1841# ac_fn_c_try_run LINENO
1842# ----------------------
1843# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844# that executables *can* be run.
1845ac_fn_c_try_run ()
1846{
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_link"
1849case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>&5
1856 ac_status=$?
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859 { { case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_try") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; }; }; then :
1869 ac_retval=0
1870else
1871 $as_echo "$as_me: program exited with status $ac_status" >&5
1872 $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=$ac_status
1876fi
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1879 as_fn_set_status $ac_retval
35fa52c0
DWT
1880
1881} # ac_fn_c_try_run
6b66678a 1882
9c60689e
DWT
1883# ac_fn_c_check_func LINENO FUNC VAR
1884# ----------------------------------
1885# Tests whether FUNC exists, setting the cache variable VAR accordingly
1886ac_fn_c_check_func ()
6b66678a
DWT
1887{
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890$as_echo_n "checking for $2... " >&6; }
ee134472 1891if eval \${$3+:} false; then :
9c60689e 1892 $as_echo_n "(cached) " >&6
6b66678a 1893else
9c60689e
DWT
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h. */
1896/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1898#define $2 innocuous_$2
6b66678a 1899
9c60689e
DWT
1900/* System header to define __stub macros and hopefully few prototypes,
1901 which can conflict with char $2 (); below.
1902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1903 <limits.h> exists even on freestanding compilers. */
1904
1905#ifdef __STDC__
1906# include <limits.h>
1907#else
1908# include <assert.h>
1909#endif
1910
1911#undef $2
1912
1913/* Override any GCC internal prototype to avoid an error.
1914 Use char because int might match the return type of a GCC
1915 builtin and then its argument prototype would still apply. */
1916#ifdef __cplusplus
1917extern "C"
1918#endif
1919char $2 ();
1920/* The GNU C library defines this for functions which it implements
1921 to always fail with ENOSYS. Some functions are actually named
1922 something starting with __ and the normal name is an alias. */
1923#if defined __stub_$2 || defined __stub___$2
1924choke me
1925#endif
1926
1927int
1928main ()
1929{
1930return $2 ();
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935if ac_fn_c_try_link "$LINENO"; then :
1936 eval "$3=yes"
1937else
1938 eval "$3=no"
1939fi
1940rm -f core conftest.err conftest.$ac_objext \
1941 conftest$ac_exeext conftest.$ac_ext
6b66678a 1942fi
9c60689e
DWT
1943eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945$as_echo "$ac_res" >&6; }
ee134472 1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1947
9c60689e 1948} # ac_fn_c_check_func
6b66678a 1949
9c60689e
DWT
1950# ac_fn_cxx_try_cpp LINENO
1951# ------------------------
1952# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953ac_fn_cxx_try_cpp ()
1954{
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_cpp conftest.$ac_ext"
1957case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960esac
1961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962$as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1969 fi
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1971 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1972 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1973 test ! -s conftest.err
1974 }; then :
1975 ac_retval=0
1976else
1977 $as_echo "$as_me: failed program was:" >&5
1978sed 's/^/| /' conftest.$ac_ext >&5
1979
1980 ac_retval=1
1981fi
ee134472 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1983 as_fn_set_status $ac_retval
1984
1985} # ac_fn_cxx_try_cpp
1986
1987# ac_fn_cxx_try_link LINENO
1988# -------------------------
1989# Try to link conftest.$ac_ext, and return whether this succeeded.
1990ac_fn_cxx_try_link ()
1991{
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext conftest$ac_exeext
1994 if { { ac_try="$ac_link"
1995case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_cxx_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest$ac_exeext && {
2013 test "$cross_compiling" = yes ||
53ba6704 2014 test -x conftest$ac_exeext
9c60689e
DWT
2015 }; then :
2016 ac_retval=0
2017else
2018 $as_echo "$as_me: failed program was:" >&5
2019sed 's/^/| /' conftest.$ac_ext >&5
2020
2021 ac_retval=1
2022fi
2023 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025 # interfere with the next link command; also delete a directory that is
2026 # left behind by Apple's compiler. We do this before executing the actions.
2027 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2029 as_fn_set_status $ac_retval
2030
2031} # ac_fn_cxx_try_link
2032
47aaa820
DWT
2033# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2034# ---------------------------------------------------------
2035# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2036# the include files in INCLUDES and setting the cache variable VAR
2037# accordingly.
2038ac_fn_cxx_check_header_mongrel ()
2039{
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2041 if eval \${$3+:} false; then :
47aaa820
DWT
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043$as_echo_n "checking for $2... " >&6; }
ee134472 2044if eval \${$3+:} false; then :
47aaa820
DWT
2045 $as_echo_n "(cached) " >&6
2046fi
2047eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050else
2051 # Is the header compilable?
2052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2053$as_echo_n "checking $2 usability... " >&6; }
2054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h. */
2056$4
2057#include <$2>
2058_ACEOF
2059if ac_fn_cxx_try_compile "$LINENO"; then :
2060 ac_header_compiler=yes
2061else
2062 ac_header_compiler=no
2063fi
2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2066$as_echo "$ac_header_compiler" >&6; }
2067
2068# Is the header present?
2069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2070$as_echo_n "checking $2 presence... " >&6; }
2071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h. */
2073#include <$2>
2074_ACEOF
2075if ac_fn_cxx_try_cpp "$LINENO"; then :
2076 ac_header_preproc=yes
2077else
2078 ac_header_preproc=no
2079fi
12833ad8 2080rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2082$as_echo "$ac_header_preproc" >&6; }
2083
2084# So? What about this header?
2085case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2086 yes:no: )
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2088$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 ;;
2092 no:yes:* )
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2094$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2096$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2098$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2100$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2103( $as_echo "## -------------------------------- ##
47aaa820 2104## Report this to saurik@saurik.com ##
12833ad8 2105## -------------------------------- ##"
47aaa820
DWT
2106 ) | sed "s/^/$as_me: WARNING: /" >&2
2107 ;;
2108esac
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110$as_echo_n "checking for $2... " >&6; }
ee134472 2111if eval \${$3+:} false; then :
47aaa820
DWT
2112 $as_echo_n "(cached) " >&6
2113else
2114 eval "$3=\$ac_header_compiler"
2115fi
2116eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118$as_echo "$ac_res" >&6; }
2119fi
ee134472 2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2121
2122} # ac_fn_cxx_check_header_mongrel
2123
c823f118
DWT
2124# ac_fn_objcxx_try_link LINENO
2125# ----------------------------
2126# Try to link conftest.$ac_ext, and return whether this succeeded.
2127ac_fn_objcxx_try_link ()
2128{
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 rm -f conftest.$ac_objext conftest$ac_exeext
2131 if { { ac_try="$ac_link"
2132case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135esac
2136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137$as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_link") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2144 fi
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } && {
2147 test -z "$ac_objcxx_werror_flag" ||
2148 test ! -s conftest.err
2149 } && test -s conftest$ac_exeext && {
2150 test "$cross_compiling" = yes ||
53ba6704 2151 test -x conftest$ac_exeext
c823f118
DWT
2152 }; then :
2153 ac_retval=0
2154else
2155 $as_echo "$as_me: failed program was:" >&5
2156sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 ac_retval=1
2159fi
2160 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2161 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2162 # interfere with the next link command; also delete a directory that is
2163 # left behind by Apple's compiler. We do this before executing the actions.
2164 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2166 as_fn_set_status $ac_retval
2167
2168} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2169cat >config.log <<_ACEOF
2170This file contains any messages produced by compilers while
2171running configure, to aid debugging if configure makes a mistake.
2172
2173It was created by Cycript $as_me 0.9, which was
53ba6704 2174generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2175
2176 $ $0 $@
2177
2178_ACEOF
2179exec 5>>config.log
2180{
2181cat <<_ASUNAME
2182## --------- ##
2183## Platform. ##
2184## --------- ##
2185
2186hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2187uname -m = `(uname -m) 2>/dev/null || echo unknown`
2188uname -r = `(uname -r) 2>/dev/null || echo unknown`
2189uname -s = `(uname -s) 2>/dev/null || echo unknown`
2190uname -v = `(uname -v) 2>/dev/null || echo unknown`
2191
2192/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2193/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2194
2195/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2196/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2197/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2198/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2199/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2200/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2201/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2202
2203_ASUNAME
2204
2205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206for as_dir in $PATH
2207do
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 $as_echo "PATH: $as_dir"
2211 done
2212IFS=$as_save_IFS
2213
2214} >&5
2215
2216cat >&5 <<_ACEOF
2217
2218
2219## ----------- ##
2220## Core tests. ##
2221## ----------- ##
2222
2223_ACEOF
2224
2225
2226# Keep a trace of the command line.
2227# Strip out --no-create and --no-recursion so they do not pile up.
2228# Strip out --silent because we don't want to record it for future runs.
2229# Also quote any args containing shell meta-characters.
2230# Make two passes to allow for proper duplicate-argument suppression.
2231ac_configure_args=
2232ac_configure_args0=
2233ac_configure_args1=
2234ac_must_keep_next=false
2235for ac_pass in 1 2
2236do
2237 for ac_arg
2238 do
2239 case $ac_arg in
2240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2242 | -silent | --silent | --silen | --sile | --sil)
2243 continue ;;
2244 *\'*)
2245 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 esac
2247 case $ac_pass in
2248 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2249 2)
2250 as_fn_append ac_configure_args1 " '$ac_arg'"
2251 if test $ac_must_keep_next = true; then
2252 ac_must_keep_next=false # Got value, back to normal.
2253 else
2254 case $ac_arg in
2255 *=* | --config-cache | -C | -disable-* | --disable-* \
2256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2258 | -with-* | --with-* | -without-* | --without-* | --x)
2259 case "$ac_configure_args0 " in
2260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2261 esac
2262 ;;
2263 -* ) ac_must_keep_next=true ;;
2264 esac
2265 fi
2266 as_fn_append ac_configure_args " '$ac_arg'"
2267 ;;
2268 esac
2269 done
2270done
2271{ ac_configure_args0=; unset ac_configure_args0;}
2272{ ac_configure_args1=; unset ac_configure_args1;}
2273
2274# When interrupted or exit'd, cleanup temporary files, and complete
2275# config.log. We remove comments because anyway the quotes in there
2276# would cause problems or look ugly.
2277# WARNING: Use '\'' to represent an apostrophe within the trap.
2278# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2279trap 'exit_status=$?
2280 # Save into config.log some information that might help in debugging.
2281 {
2282 echo
2283
12833ad8 2284 $as_echo "## ---------------- ##
c7aa54aa 2285## Cache variables. ##
12833ad8 2286## ---------------- ##"
c7aa54aa
DWT
2287 echo
2288 # The following way of writing the cache mishandles newlines in values,
2289(
2290 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2291 eval ac_val=\$$ac_var
2292 case $ac_val in #(
2293 *${as_nl}*)
2294 case $ac_var in #(
2295 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2296$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2297 esac
2298 case $ac_var in #(
2299 _ | IFS | as_nl) ;; #(
2300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2301 *) { eval $ac_var=; unset $ac_var;} ;;
2302 esac ;;
2303 esac
2304 done
2305 (set) 2>&1 |
2306 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2307 *${as_nl}ac_space=\ *)
2308 sed -n \
2309 "s/'\''/'\''\\\\'\'''\''/g;
2310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2311 ;; #(
2312 *)
2313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2314 ;;
2315 esac |
2316 sort
2317)
2318 echo
2319
12833ad8 2320 $as_echo "## ----------------- ##
c7aa54aa 2321## Output variables. ##
12833ad8 2322## ----------------- ##"
c7aa54aa
DWT
2323 echo
2324 for ac_var in $ac_subst_vars
2325 do
2326 eval ac_val=\$$ac_var
2327 case $ac_val in
2328 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 esac
2330 $as_echo "$ac_var='\''$ac_val'\''"
2331 done | sort
2332 echo
2333
2334 if test -n "$ac_subst_files"; then
12833ad8 2335 $as_echo "## ------------------- ##
c7aa54aa 2336## File substitutions. ##
12833ad8 2337## ------------------- ##"
c7aa54aa
DWT
2338 echo
2339 for ac_var in $ac_subst_files
2340 do
2341 eval ac_val=\$$ac_var
2342 case $ac_val in
2343 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2344 esac
2345 $as_echo "$ac_var='\''$ac_val'\''"
2346 done | sort
2347 echo
2348 fi
2349
2350 if test -s confdefs.h; then
12833ad8 2351 $as_echo "## ----------- ##
c7aa54aa 2352## confdefs.h. ##
12833ad8 2353## ----------- ##"
c7aa54aa
DWT
2354 echo
2355 cat confdefs.h
2356 echo
2357 fi
2358 test "$ac_signal" != 0 &&
2359 $as_echo "$as_me: caught signal $ac_signal"
2360 $as_echo "$as_me: exit $exit_status"
2361 } >&5
2362 rm -f core *.core core.conftest.* &&
2363 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2364 exit $exit_status
2365' 0
2366for ac_signal in 1 2 13 15; do
2367 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2368done
2369ac_signal=0
2370
2371# confdefs.h avoids OS command line length limits that DEFS can exceed.
2372rm -f -r conftest* confdefs.h
2373
2374$as_echo "/* confdefs.h */" > confdefs.h
2375
2376# Predefined preprocessor variables.
2377
2378cat >>confdefs.h <<_ACEOF
2379#define PACKAGE_NAME "$PACKAGE_NAME"
2380_ACEOF
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2384_ACEOF
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_VERSION "$PACKAGE_VERSION"
2388_ACEOF
2389
2390cat >>confdefs.h <<_ACEOF
2391#define PACKAGE_STRING "$PACKAGE_STRING"
2392_ACEOF
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2396_ACEOF
2397
2398cat >>confdefs.h <<_ACEOF
2399#define PACKAGE_URL "$PACKAGE_URL"
2400_ACEOF
2401
2402
2403# Let the site file select an alternate cache file if it wants to.
2404# Prefer an explicitly selected file to automatically selected ones.
2405ac_site_file1=NONE
2406ac_site_file2=NONE
2407if test -n "$CONFIG_SITE"; then
12833ad8
JF
2408 # We do not want a PATH search for config.site.
2409 case $CONFIG_SITE in #((
2410 -*) ac_site_file1=./$CONFIG_SITE;;
2411 */*) ac_site_file1=$CONFIG_SITE;;
2412 *) ac_site_file1=./$CONFIG_SITE;;
2413 esac
c7aa54aa
DWT
2414elif test "x$prefix" != xNONE; then
2415 ac_site_file1=$prefix/share/config.site
2416 ac_site_file2=$prefix/etc/config.site
2417else
2418 ac_site_file1=$ac_default_prefix/share/config.site
2419 ac_site_file2=$ac_default_prefix/etc/config.site
2420fi
2421for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2422do
2423 test "x$ac_site_file" = xNONE && continue
9c60689e 2424 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2426$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2427 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2428 . "$ac_site_file" \
2429 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431as_fn_error $? "failed to load site script $ac_site_file
ee134472 2432See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2433 fi
2434done
2435
2436if test -r "$cache_file"; then
9c60689e
DWT
2437 # Some versions of bash will fail to source /dev/null (special files
2438 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2439 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2441$as_echo "$as_me: loading cache $cache_file" >&6;}
2442 case $cache_file in
2443 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2444 *) . "./$cache_file";;
2445 esac
2446 fi
2447else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2449$as_echo "$as_me: creating cache $cache_file" >&6;}
2450 >$cache_file
2451fi
2452
2453# Check that the precious variables saved in the cache have kept the same
2454# value.
2455ac_cache_corrupted=false
2456for ac_var in $ac_precious_vars; do
2457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458 eval ac_new_set=\$ac_env_${ac_var}_set
2459 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460 eval ac_new_val=\$ac_env_${ac_var}_value
2461 case $ac_old_set,$ac_new_set in
2462 set,)
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2464$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2466 ,set)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2468$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,);;
2471 *)
2472 if test "x$ac_old_val" != "x$ac_new_val"; then
2473 # differences in whitespace do not lead to failure.
2474 ac_old_val_w=`echo x $ac_old_val`
2475 ac_new_val_w=`echo x $ac_new_val`
2476 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2478$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2479 ac_cache_corrupted=:
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2482$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2483 eval $ac_var=\$ac_old_val
2484 fi
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2486$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2488$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2489 fi;;
2490 esac
2491 # Pass precious variables to config.status.
2492 if test "$ac_new_set" = set; then
2493 case $ac_new_val in
2494 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495 *) ac_arg=$ac_var=$ac_new_val ;;
2496 esac
2497 case " $ac_configure_args " in
2498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2499 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500 esac
2501 fi
2502done
2503if $ac_cache_corrupted; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2508 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2509fi
2510## -------------------- ##
2511## Main body of script. ##
2512## -------------------- ##
2513
2514ac_ext=c
2515ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519
2520
66170b30
JF
2521
2522
35fa52c0 2523
6b66678a
DWT
2524ac_aux_dir=
2525for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2526 if test -f "$ac_dir/install-sh"; then
2527 ac_aux_dir=$ac_dir
2528 ac_install_sh="$ac_aux_dir/install-sh -c"
2529 break
2530 elif test -f "$ac_dir/install.sh"; then
2531 ac_aux_dir=$ac_dir
2532 ac_install_sh="$ac_aux_dir/install.sh -c"
2533 break
2534 elif test -f "$ac_dir/shtool"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/shtool install -c"
2537 break
2538 fi
6b66678a
DWT
2539done
2540if test -z "$ac_aux_dir"; then
12833ad8 2541 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2542fi
2543
2544# These three variables are undocumented and unsupported,
2545# and are intended to be withdrawn in a future Autoconf release.
2546# They can cause serious problems if a builder's source tree is in a directory
2547# whose full name contains unusual characters.
2548ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2549ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2550ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2551
2552
9c60689e 2553
296ee9a6
JF
2554ac_config_headers="$ac_config_headers config.h"
2555
9c60689e 2556
a93f15c0 2557am__api_version='1.14'
9c60689e 2558
66170b30
JF
2559# Find a good install program. We prefer a C program (faster),
2560# so one script is as good as another. But avoid the broken or
2561# incompatible versions:
2562# SysV /etc/install, /usr/sbin/install
2563# SunOS /usr/etc/install
2564# IRIX /sbin/install
2565# AIX /bin/install
2566# AmigaOS /C/install, which installs bootblocks on floppy discs
2567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2568# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2570# OS/2's system install, which has a completely different semantic
2571# ./install, which can be erroneously created by make from ./install.sh.
2572# Reject install programs that cannot install multiple files.
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2574$as_echo_n "checking for a BSD-compatible install... " >&6; }
2575if test -z "$INSTALL"; then
2576if ${ac_cv_path_install+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 # Account for people who put trailing slashes in PATH elements.
2585case $as_dir/ in #((
2586 ./ | .// | /[cC]/* | \
2587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2589 /usr/ucb/* ) ;;
2590 *)
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2593 # by default.
2594 for ac_prog in ginstall scoinst install; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2597 if test $ac_prog = install &&
2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # AIX install. It has an incompatible calling convention.
2600 :
2601 elif test $ac_prog = install &&
2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # program-specific install script used by HP pwplus--don't use.
2604 :
2605 else
2606 rm -rf conftest.one conftest.two conftest.dir
2607 echo one > conftest.one
2608 echo two > conftest.two
2609 mkdir conftest.dir
2610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2611 test -s conftest.one && test -s conftest.two &&
2612 test -s conftest.dir/conftest.one &&
2613 test -s conftest.dir/conftest.two
2614 then
2615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2616 break 3
2617 fi
2618 fi
2619 fi
2620 done
2621 done
2622 ;;
2623esac
9c60689e 2624
66170b30
JF
2625 done
2626IFS=$as_save_IFS
9c60689e 2627
66170b30 2628rm -rf conftest.one conftest.two conftest.dir
9c60689e 2629
66170b30
JF
2630fi
2631 if test "${ac_cv_path_install+set}" = set; then
2632 INSTALL=$ac_cv_path_install
2633 else
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for INSTALL within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 INSTALL=$ac_install_sh
2639 fi
2640fi
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2642$as_echo "$INSTALL" >&6; }
9c60689e 2643
66170b30
JF
2644# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2645# It thinks the first close brace ends the variable substitution.
2646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2647
66170b30 2648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2649
66170b30 2650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2651
66170b30
JF
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2653$as_echo_n "checking whether build environment is sane... " >&6; }
2654# Reject unsafe characters in $srcdir or the absolute working directory
2655# name. Accept space and tab only in the latter.
2656am_lf='
2657'
2658case `pwd` in
2659 *[\\\"\#\$\&\'\`$am_lf]*)
2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2661esac
2662case $srcdir in
2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2664 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2665esac
9c60689e 2666
66170b30
JF
2667# Do 'set' in a subshell so we don't clobber the current shell's
2668# arguments. Must try -L first in case configure is actually a
2669# symlink; some systems play weird games with the mod time of symlinks
2670# (eg FreeBSD returns the mod time of the symlink's containing
2671# directory).
2672if (
2673 am_has_slept=no
2674 for am_try in 1 2; do
2675 echo "timestamp, slept: $am_has_slept" > conftest.file
2676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2677 if test "$*" = "X"; then
2678 # -L didn't work.
2679 set X `ls -t "$srcdir/configure" conftest.file`
2680 fi
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2683
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2689 alias in your environment" "$LINENO" 5
2690 fi
2691 if test "$2" = conftest.file || test $am_try -eq 2; then
2692 break
2693 fi
2694 # Just in case.
2695 sleep 1
2696 am_has_slept=yes
2697 done
2698 test "$2" = conftest.file
2699 )
2700then
2701 # Ok.
2702 :
2703else
2704 as_fn_error $? "newly created file is older than distributed files!
2705Check your system clock" "$LINENO" 5
2706fi
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708$as_echo "yes" >&6; }
2709# If we didn't sleep, we still need to ensure time stamps of config.status and
2710# generated files are strictly newer.
2711am_sleep_pid=
2712if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2713 ( sleep 1 ) &
2714 am_sleep_pid=$!
2715fi
2716
2717rm -f conftest.file
2718
2719test "$program_prefix" != NONE &&
2720 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721# Use a double $ so make ignores it.
2722test "$program_suffix" != NONE &&
2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724# Double any \ or $.
2725# By default was `s,x,x', remove it if useless.
2726ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2728
2729# expand $ac_aux_dir to an absolute path
2730am_aux_dir=`cd $ac_aux_dir && pwd`
2731
2732if test x"${MISSING+set}" != xset; then
2733 case $am_aux_dir in
2734 *\ * | *\ *)
2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2736 *)
2737 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738 esac
2739fi
2740# Use eval to expand $SHELL
2741if eval "$MISSING --is-lightweight"; then
2742 am_missing_run="$MISSING "
2743else
2744 am_missing_run=
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2746$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2747fi
9c60689e 2748
66170b30
JF
2749if test x"${install_sh}" != xset; then
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2753 *)
2754 install_sh="\${SHELL} $am_aux_dir/install-sh"
2755 esac
2756fi
9c60689e 2757
66170b30
JF
2758# Installed binaries are usually stripped using 'strip' when the user
2759# run "make install-strip". However 'strip' might not be the right
2760# tool to use in cross-compilation environments, therefore Automake
2761# will honor the 'STRIP' environment variable to overrule this program.
2762if test "$cross_compiling" != no; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}strip; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
2768if ${ac_cv_prog_STRIP+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 if test -n "$STRIP"; then
2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786 done
2787IFS=$as_save_IFS
9c60689e 2788
66170b30
JF
2789fi
2790fi
2791STRIP=$ac_cv_prog_STRIP
2792if test -n "$STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794$as_echo "$STRIP" >&6; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
9c60689e 2799
9c60689e 2800
66170b30
JF
2801fi
2802if test -z "$ac_cv_prog_STRIP"; then
2803 ac_ct_STRIP=$STRIP
2804 # Extract the first word of "strip", so it can be a program name with args.
2805set dummy strip; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2809 $as_echo_n "(cached) " >&6
2810else
66170b30
JF
2811 if test -n "$ac_ct_STRIP"; then
2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_STRIP="strip"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826 done
2827IFS=$as_save_IFS
9c60689e
DWT
2828
2829fi
66170b30
JF
2830fi
2831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832if test -n "$ac_ct_STRIP"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834$as_echo "$ac_ct_STRIP" >&6; }
2835else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840 if test "x$ac_ct_STRIP" = x; then
2841 STRIP=":"
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844yes:)
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847ac_tool_warned=yes ;;
9c60689e 2848esac
66170b30
JF
2849 STRIP=$ac_ct_STRIP
2850 fi
2851else
2852 STRIP="$ac_cv_prog_STRIP"
2853fi
9c60689e 2854
66170b30
JF
2855fi
2856INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2857
66170b30
JF
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860if test -z "$MKDIR_P"; then
2861 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2862 $as_echo_n "(cached) " >&6
2863else
66170b30
JF
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in mkdir gmkdir; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873 'mkdir (GNU coreutils) '* | \
2874 'mkdir (coreutils) '* | \
2875 'mkdir (fileutils) '4.1*)
2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877 break 3;;
2878 esac
2879 done
2880 done
2881 done
2882IFS=$as_save_IFS
2883
2884fi
2885
2886 test -d ./--version && rmdir ./--version
2887 if test "${ac_cv_path_mkdir+set}" = set; then
2888 MKDIR_P="$ac_cv_path_mkdir -p"
2889 else
2890 # As a last resort, use the slow shell script. Don't cache a
2891 # value for MKDIR_P within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the value is a relative name.
2894 MKDIR_P="$ac_install_sh -d"
2895 fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898$as_echo "$MKDIR_P" >&6; }
2899
2900for ac_prog in gawk mawk nawk awk
2901do
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903set dummy $ac_prog; ac_word=$2
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905$as_echo_n "checking for $ac_word... " >&6; }
2906if ${ac_cv_prog_AWK+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908else
2909 if test -n "$AWK"; then
2910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_AWK="$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923done
2924 done
2925IFS=$as_save_IFS
2926
2927fi
2928fi
2929AWK=$ac_cv_prog_AWK
2930if test -n "$AWK"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932$as_echo "$AWK" >&6; }
2933else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935$as_echo "no" >&6; }
2936fi
2937
2938
2939 test -n "$AWK" && break
2940done
2941
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944set x ${MAKE-make}
2945ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2946if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948else
2949 cat >conftest.make <<\_ACEOF
2950SHELL = /bin/sh
2951all:
2952 @echo '@@@%%%=$(MAKE)=@@@%%%'
2953_ACEOF
2954# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2955case `${MAKE-make} -f conftest.make 2>/dev/null` in
2956 *@@@%%%=?*=@@@%%%*)
2957 eval ac_cv_prog_make_${ac_make}_set=yes;;
2958 *)
2959 eval ac_cv_prog_make_${ac_make}_set=no;;
2960esac
2961rm -f conftest.make
2962fi
2963if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965$as_echo "yes" >&6; }
2966 SET_MAKE=
2967else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970 SET_MAKE="MAKE=${MAKE-make}"
2971fi
2972
2973rm -rf .tst 2>/dev/null
2974mkdir .tst 2>/dev/null
2975if test -d .tst; then
2976 am__leading_dot=.
2977else
2978 am__leading_dot=_
2979fi
2980rmdir .tst 2>/dev/null
2981
2982# Check whether --enable-silent-rules was given.
2983if test "${enable_silent_rules+set}" = set; then :
2984 enableval=$enable_silent_rules;
2985fi
2986
2987case $enable_silent_rules in # (((
2988 yes) AM_DEFAULT_VERBOSITY=0;;
2989 no) AM_DEFAULT_VERBOSITY=1;;
2990 *) AM_DEFAULT_VERBOSITY=1;;
2991esac
2992am_make=${MAKE-make}
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2994$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2995if ${am_cv_make_support_nested_variables+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997else
2998 if $as_echo 'TRUE=$(BAR$(V))
2999BAR0=false
3000BAR1=true
3001V=1
3002am__doit:
3003 @$(TRUE)
3004.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3005 am_cv_make_support_nested_variables=yes
3006else
3007 am_cv_make_support_nested_variables=no
3008fi
3009fi
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3011$as_echo "$am_cv_make_support_nested_variables" >&6; }
3012if test $am_cv_make_support_nested_variables = yes; then
3013 AM_V='$(V)'
3014 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3015else
3016 AM_V=$AM_DEFAULT_VERBOSITY
3017 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3018fi
3019AM_BACKSLASH='\'
3020
3021if test "`cd $srcdir && pwd`" != "`pwd`"; then
3022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3023 # is not polluted with repeated "-I."
3024 am__isrc=' -I$(srcdir)'
3025 # test to see if srcdir already configured
3026 if test -f $srcdir/config.status; then
3027 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3028 fi
3029fi
3030
3031# test whether we have cygpath
3032if test -z "$CYGPATH_W"; then
3033 if (cygpath --version) >/dev/null 2>/dev/null; then
3034 CYGPATH_W='cygpath -w'
3035 else
3036 CYGPATH_W=echo
3037 fi
3038fi
3039
3040
3041# Define the identity of the package.
3042 PACKAGE='cycript'
3043 VERSION='0.9'
3044
3045
3046cat >>confdefs.h <<_ACEOF
3047#define PACKAGE "$PACKAGE"
3048_ACEOF
3049
3050
3051cat >>confdefs.h <<_ACEOF
3052#define VERSION "$VERSION"
3053_ACEOF
3054
3055# Some tools Automake needs.
3056
3057ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3058
3059
3060AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3061
3062
3063AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3064
3065
3066AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3067
3068
3069MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3070
3071# For better backward compatibility. To be removed once Automake 1.9.x
3072# dies out for good. For more background, see:
3073# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3074# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3075mkdir_p='$(MKDIR_P)'
3076
3077# We need awk for the "check" target. The system "awk" is bad on
3078# some platforms.
3079# Always define AMTAR for backward compatibility. Yes, it's still used
3080# in the wild :-( We should find a proper way to deprecate it ...
3081AMTAR='$${TAR-tar}'
3082
a93f15c0
JF
3083
3084# We'll loop over all known methods to create a tar archive until one works.
3085_am_tools='gnutar pax cpio none'
3086
66170b30
JF
3087am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3088
3089
3090
3091
3092
66170b30 3093
a93f15c0
JF
3094# POSIX will say in a future version that running "rm -f" with no argument
3095# is OK; and we want to be able to make that assumption in our Makefile
3096# recipes. So use an aggressive probe to check that the usage we want is
3097# actually supported "in the wild" to an acceptable degree.
3098# See automake bug#10828.
3099# To make any issue more visible, cause the running configure to be aborted
3100# by default if the 'rm' program in use doesn't match our expectations; the
3101# user can still override this though.
3102if rm -f && rm -fr && rm -rf; then : OK; else
3103 cat >&2 <<'END'
3104Oops!
3105
3106Your 'rm' program seems unable to run without file operands specified
3107on the command line, even when the '-f' option is present. This is contrary
3108to the behaviour of most rm programs out there, and not conforming with
3109the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3110
3111Please tell bug-automake@gnu.org about your system, including the value
3112of your $PATH and any error possibly output before this message. This
3113can help us improve future automake versions.
3114
3115END
3116 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3117 echo 'Configuration will proceed anyway, since you have set the' >&2
3118 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3119 echo >&2
3120 else
3121 cat >&2 <<'END'
3122Aborting the configuration process, to ensure you take notice of the issue.
3123
3124You can download and install GNU coreutils to get an 'rm' implementation
3125that behaves properly: <http://www.gnu.org/software/coreutils/>.
3126
3127If you want to complete the configuration process using your problematic
3128'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3129to "yes", and re-run configure.
3130
3131END
3132 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3133 fi
3134fi
3135
babf7fe8
JF
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3137$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3138 # Check whether --enable-maintainer-mode was given.
3139if test "${enable_maintainer_mode+set}" = set; then :
3140 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3141else
3142 USE_MAINTAINER_MODE=no
3143fi
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3146$as_echo "$USE_MAINTAINER_MODE" >&6; }
3147 if test $USE_MAINTAINER_MODE = yes; then
3148 MAINTAINER_MODE_TRUE=
3149 MAINTAINER_MODE_FALSE='#'
3150else
3151 MAINTAINER_MODE_TRUE='#'
3152 MAINTAINER_MODE_FALSE=
3153fi
3154
3155 MAINT=$MAINTAINER_MODE_TRUE
3156
3157
3158
a93f15c0
JF
3159ac_ext=c
3160ac_cpp='$CPP $CPPFLAGS'
3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164if test -n "$ac_tool_prefix"; then
3165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3166set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3169if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3170 $as_echo_n "(cached) " >&6
3171else
a93f15c0
JF
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3182 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3185 fi
3186done
3187 done
3188IFS=$as_save_IFS
3189
3190fi
3191fi
a93f15c0
JF
3192CC=$ac_cv_prog_CC
3193if test -n "$CC"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3195$as_echo "$CC" >&6; }
35fa52c0
DWT
3196else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199fi
3200
3201
35fa52c0 3202fi
a93f15c0
JF
3203if test -z "$ac_cv_prog_CC"; then
3204 ac_ct_CC=$CC
3205 # Extract the first word of "gcc", so it can be a program name with args.
3206set dummy gcc; ac_word=$2
35fa52c0
DWT
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3209if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3210 $as_echo_n "(cached) " >&6
3211else
a93f15c0
JF
3212 if test -n "$ac_ct_CC"; then
3213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3222 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226done
3227 done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
a93f15c0
JF
3232ac_ct_CC=$ac_cv_prog_ac_ct_CC
3233if test -n "$ac_ct_CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3235$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3236else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
a93f15c0
JF
3241 if test "x$ac_ct_CC" = x; then
3242 CC=""
35fa52c0
DWT
3243 else
3244 case $cross_compiling:$ac_tool_warned in
3245yes:)
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248ac_tool_warned=yes ;;
3249esac
a93f15c0 3250 CC=$ac_ct_CC
35fa52c0 3251 fi
a93f15c0
JF
3252else
3253 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3254fi
3255
a93f15c0
JF
3256if test -z "$CC"; then
3257 if test -n "$ac_tool_prefix"; then
3258 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3259set dummy ${ac_tool_prefix}cc; ac_word=$2
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261$as_echo_n "checking for $ac_word... " >&6; }
3262if ${ac_cv_prog_CC+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264else
3265 if test -n "$CC"; then
3266 ac_cv_prog_CC="$CC" # Let the user override the test.
3267else
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_CC="${ac_tool_prefix}cc"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
a243b558 3278 fi
35fa52c0 3279done
a93f15c0
JF
3280 done
3281IFS=$as_save_IFS
35fa52c0 3282
a93f15c0
JF
3283fi
3284fi
3285CC=$ac_cv_prog_CC
3286if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288$as_echo "$CC" >&6; }
3289else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292fi
35fa52c0 3293
35fa52c0 3294
a93f15c0
JF
3295 fi
3296fi
3297if test -z "$CC"; then
3298 # Extract the first word of "cc", so it can be a program name with args.
3299set dummy cc; ac_word=$2
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301$as_echo_n "checking for $ac_word... " >&6; }
3302if ${ac_cv_prog_CC+:} false; then :
3303 $as_echo_n "(cached) " >&6
3304else
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC="$CC" # Let the user override the test.
3307else
3308 ac_prog_rejected=no
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
35fa52c0 3311do
a93f15c0
JF
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3317 ac_prog_rejected=yes
3318 continue
3319 fi
3320 ac_cv_prog_CC="cc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3323 fi
3324done
3325 done
3326IFS=$as_save_IFS
3327
3328if test $ac_prog_rejected = yes; then
3329 # We found a bogon in the path, so make sure we never use it.
3330 set dummy $ac_cv_prog_CC
3331 shift
3332 if test $# != 0; then
3333 # We chose a different compiler from the bogus one.
3334 # However, it has the same basename, so the bogon will be chosen
3335 # first if we set CC to just the basename; use the full file name.
3336 shift
3337 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3338 fi
3339fi
3340fi
3341fi
3342CC=$ac_cv_prog_CC
3343if test -n "$CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345$as_echo "$CC" >&6; }
3346else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348$as_echo "no" >&6; }
3349fi
3350
3351
3352fi
3353if test -z "$CC"; then
3354 if test -n "$ac_tool_prefix"; then
3355 for ac_prog in cl.exe
3356 do
3357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3358set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360$as_echo_n "checking for $ac_word... " >&6; }
3361if ${ac_cv_prog_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363else
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366else
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378done
3379 done
3380IFS=$as_save_IFS
3381
3382fi
3383fi
3384CC=$ac_cv_prog_CC
3385if test -n "$CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387$as_echo "$CC" >&6; }
3388else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390$as_echo "no" >&6; }
3391fi
3392
3393
3394 test -n "$CC" && break
3395 done
3396fi
3397if test -z "$CC"; then
3398 ac_ct_CC=$CC
3399 for ac_prog in cl.exe
3400do
3401 # Extract the first word of "$ac_prog", so it can be a program name with args.
3402set dummy $ac_prog; ac_word=$2
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404$as_echo_n "checking for $ac_word... " >&6; }
3405if ${ac_cv_prog_ac_ct_CC+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407else
3408 if test -n "$ac_ct_CC"; then
3409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3410else
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_ac_ct_CC="$ac_prog"
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
3421 fi
3422done
3423 done
3424IFS=$as_save_IFS
3425
3426fi
3427fi
3428ac_ct_CC=$ac_cv_prog_ac_ct_CC
3429if test -n "$ac_ct_CC"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3431$as_echo "$ac_ct_CC" >&6; }
3432else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434$as_echo "no" >&6; }
3435fi
3436
3437
3438 test -n "$ac_ct_CC" && break
3439done
3440
3441 if test "x$ac_ct_CC" = x; then
3442 CC=""
3443 else
3444 case $cross_compiling:$ac_tool_warned in
3445yes:)
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3448ac_tool_warned=yes ;;
3449esac
3450 CC=$ac_ct_CC
3451 fi
3452fi
3453
3454fi
3455
3456
3457test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459as_fn_error $? "no acceptable C compiler found in \$PATH
3460See \`config.log' for more details" "$LINENO" 5; }
3461
3462# Provide some information about the compiler.
3463$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3464set X $ac_compile
3465ac_compiler=$2
3466for ac_option in --version -v -V -qversion; do
3467 { { ac_try="$ac_compiler $ac_option >&5"
3468case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3475 ac_status=$?
3476 if test -s conftest.err; then
3477 sed '10a\
3478... rest of stderr output deleted ...
3479 10q' conftest.err >conftest.er1
3480 cat conftest.er1 >&5
3481 fi
3482 rm -f conftest.er1 conftest.err
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }
3485done
3486
3487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h. */
3489
3490int
3491main ()
3492{
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
3498ac_clean_files_save=$ac_clean_files
3499ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3500# Try to create an executable without -o first, disregard a.out.
3501# It will help us diagnose broken compilers, and finding out an intuition
3502# of exeext.
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3504$as_echo_n "checking whether the C compiler works... " >&6; }
3505ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3506
3507# The possible output files:
3508ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3509
3510ac_rmfiles=
3511for ac_file in $ac_files
3512do
3513 case $ac_file in
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3516 esac
3517done
35fa52c0
DWT
3518rm -f $ac_rmfiles
3519
3520if { { ac_try="$ac_link_default"
3521case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524esac
3525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526$as_echo "$ac_try_echo"; } >&5
3527 (eval "$ac_link_default") 2>&5
3528 ac_status=$?
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }; then :
3531 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3532# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3533# in a Makefile. We should not override ac_cv_exeext if it was cached,
3534# so that the user can short-circuit this test for compilers unknown to
3535# Autoconf.
3536for ac_file in $ac_files ''
3537do
3538 test -f "$ac_file" || continue
3539 case $ac_file in
3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3541 ;;
3542 [ab].out )
3543 # We found the default executable, but exeext='' is most
3544 # certainly right.
3545 break;;
3546 *.* )
3547 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3548 then :; else
3549 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550 fi
3551 # We set ac_cv_exeext here because the later test for it is not
3552 # safe: cross compilers may not add the suffix if given an `-o'
3553 # argument, so we may need to know it at that point already.
3554 # Even if this section looks crufty: it has the advantage of
3555 # actually working.
3556 break;;
3557 * )
3558 break;;
3559 esac
3560done
3561test "$ac_cv_exeext" = no && ac_cv_exeext=
3562
3563else
3564 ac_file=''
3565fi
35fa52c0 3566if test -z "$ac_file"; then :
9c60689e
DWT
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568$as_echo "no" >&6; }
3569$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3574as_fn_error 77 "C compiler cannot create executables
ee134472 3575See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3576else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3578$as_echo "yes" >&6; }
35fa52c0 3579fi
a93f15c0
JF
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3581$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3583$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3584ac_exeext=$ac_cv_exeext
3585
9c60689e 3586rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3587ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3589$as_echo_n "checking for suffix of executables... " >&6; }
3590if { { ac_try="$ac_link"
3591case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596$as_echo "$ac_try_echo"; } >&5
3597 (eval "$ac_link") 2>&5
3598 ac_status=$?
3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }; then :
3601 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3602# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3603# work properly (i.e., refer to `conftest.exe'), while it won't with
3604# `rm'.
3605for ac_file in conftest.exe conftest conftest.*; do
3606 test -f "$ac_file" || continue
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3609 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610 break;;
3611 * ) break;;
3612 esac
3613done
3614else
3615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3617as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3618See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3619fi
9c60689e 3620rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3622$as_echo "$ac_cv_exeext" >&6; }
3623
3624rm -f conftest.$ac_ext
3625EXEEXT=$ac_cv_exeext
3626ac_exeext=$EXEEXT
9c60689e
DWT
3627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628/* end confdefs.h. */
3629#include <stdio.h>
3630int
3631main ()
3632{
3633FILE *f = fopen ("conftest.out", "w");
3634 return ferror (f) || fclose (f) != 0;
3635
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640ac_clean_files="$ac_clean_files conftest.out"
3641# Check that the compiler produces executables we can run. If not, either
3642# the compiler is broken, or we cross compile.
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3644$as_echo_n "checking whether we are cross compiling... " >&6; }
3645if test "$cross_compiling" != yes; then
3646 { { ac_try="$ac_link"
3647case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650esac
3651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652$as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_link") 2>&5
3654 ac_status=$?
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }
3657 if { ac_try='./conftest$ac_cv_exeext'
3658 { { case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663$as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_try") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }; }; then
3668 cross_compiling=no
3669 else
3670 if test "$cross_compiling" = maybe; then
3671 cross_compiling=yes
3672 else
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3675as_fn_error $? "cannot run C compiled programs.
9c60689e 3676If you meant to cross compile, use \`--host'.
ee134472 3677See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3678 fi
3679 fi
3680fi
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3682$as_echo "$cross_compiling" >&6; }
3683
3684rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3685ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3687$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3688if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3689 $as_echo_n "(cached) " >&6
3690else
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h. */
3693
3694int
3695main ()
3696{
3697
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702rm -f conftest.o conftest.obj
3703if { { ac_try="$ac_compile"
3704case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707esac
3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709$as_echo "$ac_try_echo"; } >&5
3710 (eval "$ac_compile") 2>&5
3711 ac_status=$?
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }; then :
3714 for ac_file in conftest.o conftest.obj conftest.*; do
3715 test -f "$ac_file" || continue;
3716 case $ac_file in
3717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3718 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3719 break;;
3720 esac
3721done
3722else
3723 $as_echo "$as_me: failed program was:" >&5
3724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3728as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3729See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3730fi
3731rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732fi
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3734$as_echo "$ac_cv_objext" >&6; }
3735OBJEXT=$ac_cv_objext
3736ac_objext=$OBJEXT
a93f15c0
JF
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3738$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3739if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3740 $as_echo_n "(cached) " >&6
3741else
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h. */
3744
3745int
3746main ()
3747{
3748#ifndef __GNUC__
3749 choke me
3750#endif
3751
3752 ;
3753 return 0;
3754}
3755_ACEOF
a93f15c0 3756if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3757 ac_compiler_gnu=yes
3758else
3759 ac_compiler_gnu=no
3760fi
3761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3762ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3763
3764fi
a93f15c0
JF
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3766$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3767if test $ac_compiler_gnu = yes; then
a93f15c0 3768 GCC=yes
35fa52c0 3769else
a93f15c0 3770 GCC=
35fa52c0 3771fi
a93f15c0
JF
3772ac_test_CFLAGS=${CFLAGS+set}
3773ac_save_CFLAGS=$CFLAGS
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3775$as_echo_n "checking whether $CC accepts -g... " >&6; }
3776if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3777 $as_echo_n "(cached) " >&6
3778else
a93f15c0
JF
3779 ac_save_c_werror_flag=$ac_c_werror_flag
3780 ac_c_werror_flag=yes
3781 ac_cv_prog_cc_g=no
3782 CFLAGS="-g"
35fa52c0
DWT
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h. */
3785
3786int
3787main ()
3788{
3789
3790 ;
3791 return 0;
3792}
3793_ACEOF
a93f15c0
JF
3794if ac_fn_c_try_compile "$LINENO"; then :
3795 ac_cv_prog_cc_g=yes
35fa52c0 3796else
a93f15c0 3797 CFLAGS=""
35fa52c0
DWT
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h. */
3800
3801int
3802main ()
3803{
3804
3805 ;
3806 return 0;
3807}
3808_ACEOF
a93f15c0 3809if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3810
3811else
a93f15c0
JF
3812 ac_c_werror_flag=$ac_save_c_werror_flag
3813 CFLAGS="-g"
35fa52c0
DWT
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h. */
3816
3817int
3818main ()
3819{
3820
3821 ;
3822 return 0;
3823}
3824_ACEOF
a93f15c0
JF
3825if ac_fn_c_try_compile "$LINENO"; then :
3826 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3827fi
3828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829fi
3830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831fi
3832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3833 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3834fi
a93f15c0
JF
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3836$as_echo "$ac_cv_prog_cc_g" >&6; }
3837if test "$ac_test_CFLAGS" = set; then
3838 CFLAGS=$ac_save_CFLAGS
3839elif test $ac_cv_prog_cc_g = yes; then
3840 if test "$GCC" = yes; then
3841 CFLAGS="-g -O2"
35fa52c0 3842 else
a93f15c0 3843 CFLAGS="-g"
35fa52c0
DWT
3844 fi
3845else
a93f15c0
JF
3846 if test "$GCC" = yes; then
3847 CFLAGS="-O2"
35fa52c0 3848 else
a93f15c0 3849 CFLAGS=
35fa52c0
DWT
3850 fi
3851fi
a93f15c0
JF
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3853$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3854if ${ac_cv_prog_cc_c89+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856else
3857 ac_cv_prog_cc_c89=no
3858ac_save_CC=$CC
3859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h. */
3861#include <stdarg.h>
3862#include <stdio.h>
3863struct stat;
3864/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3865struct buf { int x; };
3866FILE * (*rcsopen) (struct buf *, struct stat *, int);
3867static char *e (p, i)
3868 char **p;
3869 int i;
3870{
3871 return p[i];
3872}
3873static char *f (char * (*g) (char **, int), char **p, ...)
3874{
3875 char *s;
3876 va_list v;
3877 va_start (v,p);
3878 s = g (p, va_arg (v,int));
3879 va_end (v);
3880 return s;
3881}
3882
3883/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3884 function prototypes and stuff, but not '\xHH' hex character constants.
3885 These don't provoke an error unfortunately, instead are silently treated
3886 as 'x'. The following induces an error, until -std is added to get
3887 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3888 array size at least. It's necessary to write '\x00'==0 to get something
3889 that's true only with -std. */
3890int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3891
3892/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3893 inside strings and character constants. */
3894#define FOO(x) 'x'
3895int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3896
3897int test (int i, double x);
3898struct s1 {int (*f) (int a);};
3899struct s2 {int (*f) (double a);};
3900int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3901int argc;
3902char **argv;
3903int
3904main ()
3905{
3906return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3907 ;
3908 return 0;
3909}
3910_ACEOF
3911for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3912 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3913do
3914 CC="$ac_save_CC $ac_arg"
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916 ac_cv_prog_cc_c89=$ac_arg
3917fi
3918rm -f core conftest.err conftest.$ac_objext
3919 test "x$ac_cv_prog_cc_c89" != "xno" && break
3920done
3921rm -f conftest.$ac_ext
3922CC=$ac_save_CC
3923
3924fi
3925# AC_CACHE_VAL
3926case "x$ac_cv_prog_cc_c89" in
3927 x)
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3929$as_echo "none needed" >&6; } ;;
3930 xno)
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3932$as_echo "unsupported" >&6; } ;;
3933 *)
3934 CC="$CC $ac_cv_prog_cc_c89"
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3936$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3937esac
3938if test "x$ac_cv_prog_cc_c89" != xno; then :
3939
3940fi
3941
3942ac_ext=c
3943ac_cpp='$CPP $CPPFLAGS'
3944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947
3948ac_ext=c
3949ac_cpp='$CPP $CPPFLAGS'
3950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3954$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3955if ${am_cv_prog_cc_c_o+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957else
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959/* end confdefs.h. */
3960
3961int
3962main ()
3963{
3964
3965 ;
3966 return 0;
3967}
3968_ACEOF
3969 # Make sure it works both with $CC and with simple cc.
3970 # Following AC_PROG_CC_C_O, we do the test twice because some
3971 # compilers refuse to overwrite an existing .o file with -o,
3972 # though they will create one.
3973 am_cv_prog_cc_c_o=yes
3974 for am_i in 1 2; do
3975 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3976 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } \
3980 && test -f conftest2.$ac_objext; then
3981 : OK
3982 else
3983 am_cv_prog_cc_c_o=no
3984 break
3985 fi
3986 done
3987 rm -f core conftest*
3988 unset am_i
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3991$as_echo "$am_cv_prog_cc_c_o" >&6; }
3992if test "$am_cv_prog_cc_c_o" != yes; then
3993 # Losing compiler, so override with the script.
3994 # FIXME: It is wrong to rewrite CC.
3995 # But if we don't then we get into trouble of one sort or another.
3996 # A longer-term fix would be to have automake use am__CC in this case,
3997 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3998 CC="$am_aux_dir/compile $CC"
3999fi
a243b558
JF
4000ac_ext=c
4001ac_cpp='$CPP $CPPFLAGS'
4002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4005
a243b558 4006DEPDIR="${am__leading_dot}deps"
35fa52c0 4007
a243b558 4008ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4009
35fa52c0 4010
a243b558
JF
4011am_make=${MAKE-make}
4012cat > confinc << 'END'
4013am__doit:
4014 @echo this is the am__doit target
4015.PHONY: am__doit
4016END
4017# If we don't find an include directive, just comment out the code.
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4019$as_echo_n "checking for style of include used by $am_make... " >&6; }
4020am__include="#"
4021am__quote=
4022_am_result=none
4023# First try GNU make style include.
4024echo "include confinc" > confmf
4025# Ignore all kinds of additional output from 'make'.
4026case `$am_make -s -f confmf 2> /dev/null` in #(
4027*the\ am__doit\ target*)
4028 am__include=include
4029 am__quote=
4030 _am_result=GNU
4031 ;;
4032esac
4033# Now try BSD make style include.
4034if test "$am__include" = "#"; then
4035 echo '.include "confinc"' > confmf
4036 case `$am_make -s -f confmf 2> /dev/null` in #(
4037 *the\ am__doit\ target*)
4038 am__include=.include
4039 am__quote="\""
4040 _am_result=BSD
4041 ;;
4042 esac
35fa52c0 4043fi
35fa52c0 4044
a243b558
JF
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4047$as_echo "$_am_result" >&6; }
4048rm -f confinc confmf
4049
4050# Check whether --enable-dependency-tracking was given.
4051if test "${enable_dependency_tracking+set}" = set; then :
4052 enableval=$enable_dependency_tracking;
35fa52c0 4053fi
35fa52c0 4054
a243b558
JF
4055if test "x$enable_dependency_tracking" != xno; then
4056 am_depcomp="$ac_aux_dir/depcomp"
4057 AMDEPBACKSLASH='\'
4058 am__nodep='_no'
4059fi
4060 if test "x$enable_dependency_tracking" != xno; then
4061 AMDEP_TRUE=
4062 AMDEP_FALSE='#'
4063else
4064 AMDEP_TRUE='#'
4065 AMDEP_FALSE=
35fa52c0
DWT
4066fi
4067
35fa52c0 4068
a243b558 4069
a93f15c0 4070depcc="$CC" am_compiler_list=
66170b30
JF
4071
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4073$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4074if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4075 $as_echo_n "(cached) " >&6
4076else
4077 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4078 # We make a subdir and do the tests there. Otherwise we can end up
4079 # making bogus files that we don't know about and never remove. For
4080 # instance it was reported that on HP-UX the gcc test will end up
4081 # making a dummy file named 'D' -- because '-MD' means "put the output
4082 # in D".
4083 rm -rf conftest.dir
4084 mkdir conftest.dir
4085 # Copy depcomp to subdir because otherwise we won't find it if we're
4086 # using a relative directory.
4087 cp "$am_depcomp" conftest.dir
4088 cd conftest.dir
4089 # We will build objects and dependencies in a subdirectory because
4090 # it helps to detect inapplicable dependency modes. For instance
4091 # both Tru64's cc and ICC support -MD to output dependencies as a
4092 # side effect of compilation, but ICC will put the dependencies in
4093 # the current directory while Tru64 will put them in the object
4094 # directory.
4095 mkdir sub
4096
a93f15c0 4097 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4098 if test "$am_compiler_list" = ""; then
4099 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4100 fi
4101 am__universal=false
4102 case " $depcc " in #(
4103 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4104 esac
4105
4106 for depmode in $am_compiler_list; do
4107 # Setup a source with many dependencies, because some compilers
4108 # like to wrap large dependency lists on column 80 (with \), and
4109 # we should not choose a depcomp mode which is confused by this.
4110 #
4111 # We need to recreate these files for each test, as the compiler may
4112 # overwrite some of them when testing with obscure command lines.
4113 # This happens at least with the AIX C compiler.
4114 : > sub/conftest.c
4115 for i in 1 2 3 4 5 6; do
4116 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4117 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4118 # Solaris 10 /bin/sh.
4119 echo '/* dummy */' > sub/conftst$i.h
4120 done
4121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4122
4123 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4124 # mode. It turns out that the SunPro C++ compiler does not properly
4125 # handle '-M -o', and we need to detect this. Also, some Intel
4126 # versions had trouble with output in subdirs.
4127 am__obj=sub/conftest.${OBJEXT-o}
4128 am__minus_obj="-o $am__obj"
4129 case $depmode in
4130 gcc)
4131 # This depmode causes a compiler race in universal mode.
4132 test "$am__universal" = false || continue
4133 ;;
4134 nosideeffect)
4135 # After this tag, mechanisms are not by side-effect, so they'll
4136 # only be used when explicitly requested.
4137 if test "x$enable_dependency_tracking" = xyes; then
4138 continue
4139 else
4140 break
4141 fi
4142 ;;
4143 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4144 # This compiler won't grok '-c -o', but also, the minuso test has
4145 # not run yet. These depmodes are late enough in the game, and
4146 # so weak that their functioning should not be impacted.
4147 am__obj=conftest.${OBJEXT-o}
4148 am__minus_obj=
4149 ;;
4150 none) break ;;
4151 esac
4152 if depmode=$depmode \
4153 source=sub/conftest.c object=$am__obj \
4154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4155 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4156 >/dev/null 2>conftest.err &&
4157 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4158 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4159 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4160 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4161 # icc doesn't choke on unknown options, it will just issue warnings
4162 # or remarks (even with -Werror). So we grep stderr for any message
4163 # that says an option was ignored or not supported.
4164 # When given -MP, icc 7.0 and 7.1 complain thusly:
4165 # icc: Command line warning: ignoring option '-M'; no argument required
4166 # The diagnosis changed in icc 8.0:
4167 # icc: Command line remark: option '-MP' not supported
4168 if (grep 'ignoring option' conftest.err ||
4169 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4170 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4171 break
4172 fi
4173 fi
4174 done
4175
4176 cd ..
4177 rm -rf conftest.dir
4178else
a93f15c0 4179 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4180fi
4181
4182fi
a93f15c0
JF
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4184$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4185CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4186
4187 if
4188 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4189 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4190 am__fastdepCC_TRUE=
4191 am__fastdepCC_FALSE='#'
66170b30 4192else
a93f15c0
JF
4193 am__fastdepCC_TRUE='#'
4194 am__fastdepCC_FALSE=
66170b30
JF
4195fi
4196
4197
a93f15c0
JF
4198ac_ext=cpp
4199ac_cpp='$CXXCPP $CPPFLAGS'
4200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4203if test -z "$CXX"; then
4204 if test -n "$CCC"; then
4205 CXX=$CCC
4206 else
4207 if test -n "$ac_tool_prefix"; then
4208 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4209 do
4210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4214if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4215 $as_echo_n "(cached) " >&6
4216else
a93f15c0
JF
4217 if test -n "$CXX"; then
4218 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
35fa52c0
DWT
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4227 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4230 fi
4231done
9c60689e
DWT
4232 done
4233IFS=$as_save_IFS
35fa52c0 4234
9c60689e 4235fi
a243b558 4236fi
a93f15c0
JF
4237CXX=$ac_cv_prog_CXX
4238if test -n "$CXX"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4240$as_echo "$CXX" >&6; }
a243b558
JF
4241else
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243$as_echo "no" >&6; }
4244fi
35fa52c0 4245
35fa52c0 4246
a93f15c0 4247 test -n "$CXX" && break
a243b558
JF
4248 done
4249fi
a93f15c0
JF
4250if test -z "$CXX"; then
4251 ac_ct_CXX=$CXX
4252 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4253do
4254 # Extract the first word of "$ac_prog", so it can be a program name with args.
4255set dummy $ac_prog; ac_word=$2
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4258if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4259 $as_echo_n "(cached) " >&6
4260else
a93f15c0
JF
4261 if test -n "$ac_ct_CXX"; then
4262 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4263else
4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH
9c60689e
DWT
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
9c60689e 4269 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4271 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275done
9c60689e
DWT
4276 done
4277IFS=$as_save_IFS
a243b558
JF
4278
4279fi
4280fi
a93f15c0
JF
4281ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4282if test -n "$ac_ct_CXX"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4284$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4285else
a243b558
JF
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287$as_echo "no" >&6; }
9c60689e 4288fi
6b66678a
DWT
4289
4290
a93f15c0 4291 test -n "$ac_ct_CXX" && break
a243b558 4292done
6b66678a 4293
a93f15c0
JF
4294 if test "x$ac_ct_CXX" = x; then
4295 CXX="g++"
a243b558
JF
4296 else
4297 case $cross_compiling:$ac_tool_warned in
4298yes:)
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4301ac_tool_warned=yes ;;
9c60689e 4302esac
a93f15c0 4303 CXX=$ac_ct_CXX
9c60689e 4304 fi
9c60689e 4305fi
6b66678a 4306
a93f15c0
JF
4307 fi
4308fi
a243b558 4309# Provide some information about the compiler.
a93f15c0 4310$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4311set X $ac_compile
4312ac_compiler=$2
4313for ac_option in --version -v -V -qversion; do
4314 { { ac_try="$ac_compiler $ac_option >&5"
4315case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
4319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320$as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4322 ac_status=$?
4323 if test -s conftest.err; then
4324 sed '10a\
4325... rest of stderr output deleted ...
4326 10q' conftest.err >conftest.er1
4327 cat conftest.er1 >&5
4328 fi
4329 rm -f conftest.er1 conftest.err
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; }
4332done
6b66678a 4333
a93f15c0
JF
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4335$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4336if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4337 $as_echo_n "(cached) " >&6
6b66678a 4338else
a243b558
JF
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h. */
6b66678a 4341
a243b558
JF
4342int
4343main ()
4344{
4345#ifndef __GNUC__
4346 choke me
4347#endif
4348
4349 ;
4350 return 0;
4351}
4352_ACEOF
a93f15c0 4353if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4354 ac_compiler_gnu=yes
9c60689e 4355else
a243b558 4356 ac_compiler_gnu=no
6b66678a 4357fi
a243b558 4358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4359ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4360
4361fi
a93f15c0
JF
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4363$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4364if test $ac_compiler_gnu = yes; then
a93f15c0 4365 GXX=yes
a243b558 4366else
a93f15c0 4367 GXX=
a243b558 4368fi
a93f15c0
JF
4369ac_test_CXXFLAGS=${CXXFLAGS+set}
4370ac_save_CXXFLAGS=$CXXFLAGS
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4372$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4373if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4374 $as_echo_n "(cached) " >&6
4375else
a93f15c0
JF
4376 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4377 ac_cxx_werror_flag=yes
4378 ac_cv_prog_cxx_g=no
4379 CXXFLAGS="-g"
a243b558
JF
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h. */
309b0535 4382
a243b558
JF
4383int
4384main ()
4385{
309b0535 4386
a243b558
JF
4387 ;
4388 return 0;
4389}
4390_ACEOF
a93f15c0
JF
4391if ac_fn_cxx_try_compile "$LINENO"; then :
4392 ac_cv_prog_cxx_g=yes
a243b558 4393else
a93f15c0 4394 CXXFLAGS=""
a243b558
JF
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396/* end confdefs.h. */
309b0535 4397
a243b558
JF
4398int
4399main ()
4400{
309b0535 4401
a243b558
JF
4402 ;
4403 return 0;
4404}
4405_ACEOF
a93f15c0 4406if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4407
a243b558 4408else
a93f15c0
JF
4409 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4410 CXXFLAGS="-g"
a243b558
JF
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412/* end confdefs.h. */
309b0535 4413
a243b558
JF
4414int
4415main ()
4416{
309b0535 4417
a243b558
JF
4418 ;
4419 return 0;
4420}
4421_ACEOF
a93f15c0
JF
4422if ac_fn_cxx_try_compile "$LINENO"; then :
4423 ac_cv_prog_cxx_g=yes
9c60689e 4424fi
a243b558 4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4426fi
a243b558 4427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4428fi
a243b558 4429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4430 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4431fi
a93f15c0
JF
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4433$as_echo "$ac_cv_prog_cxx_g" >&6; }
4434if test "$ac_test_CXXFLAGS" = set; then
4435 CXXFLAGS=$ac_save_CXXFLAGS
4436elif test $ac_cv_prog_cxx_g = yes; then
4437 if test "$GXX" = yes; then
4438 CXXFLAGS="-g -O2"
a243b558 4439 else
a93f15c0 4440 CXXFLAGS="-g"
a243b558 4441 fi
9c60689e 4442else
a93f15c0
JF
4443 if test "$GXX" = yes; then
4444 CXXFLAGS="-O2"
a243b558 4445 else
a93f15c0 4446 CXXFLAGS=
a243b558 4447 fi
9c60689e 4448fi
a243b558
JF
4449ac_ext=c
4450ac_cpp='$CPP $CPPFLAGS'
4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4454
a93f15c0 4455depcc="$CXX" am_compiler_list=
309b0535 4456
a243b558
JF
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4458$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4459if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4460 $as_echo_n "(cached) " >&6
4461else
4462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4463 # We make a subdir and do the tests there. Otherwise we can end up
4464 # making bogus files that we don't know about and never remove. For
4465 # instance it was reported that on HP-UX the gcc test will end up
4466 # making a dummy file named 'D' -- because '-MD' means "put the output
4467 # in D".
4468 rm -rf conftest.dir
4469 mkdir conftest.dir
4470 # Copy depcomp to subdir because otherwise we won't find it if we're
4471 # using a relative directory.
4472 cp "$am_depcomp" conftest.dir
4473 cd conftest.dir
4474 # We will build objects and dependencies in a subdirectory because
4475 # it helps to detect inapplicable dependency modes. For instance
4476 # both Tru64's cc and ICC support -MD to output dependencies as a
4477 # side effect of compilation, but ICC will put the dependencies in
4478 # the current directory while Tru64 will put them in the object
4479 # directory.
4480 mkdir sub
309b0535 4481
a93f15c0 4482 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4483 if test "$am_compiler_list" = ""; then
4484 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4485 fi
4486 am__universal=false
a93f15c0
JF
4487 case " $depcc " in #(
4488 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4489 esac
9c60689e 4490
a243b558
JF
4491 for depmode in $am_compiler_list; do
4492 # Setup a source with many dependencies, because some compilers
4493 # like to wrap large dependency lists on column 80 (with \), and
4494 # we should not choose a depcomp mode which is confused by this.
4495 #
4496 # We need to recreate these files for each test, as the compiler may
4497 # overwrite some of them when testing with obscure command lines.
4498 # This happens at least with the AIX C compiler.
4499 : > sub/conftest.c
4500 for i in 1 2 3 4 5 6; do
4501 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4502 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4503 # Solaris 10 /bin/sh.
4504 echo '/* dummy */' > sub/conftst$i.h
4505 done
4506 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4507
a243b558
JF
4508 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4509 # mode. It turns out that the SunPro C++ compiler does not properly
4510 # handle '-M -o', and we need to detect this. Also, some Intel
4511 # versions had trouble with output in subdirs.
4512 am__obj=sub/conftest.${OBJEXT-o}
4513 am__minus_obj="-o $am__obj"
4514 case $depmode in
4515 gcc)
4516 # This depmode causes a compiler race in universal mode.
4517 test "$am__universal" = false || continue
4518 ;;
4519 nosideeffect)
4520 # After this tag, mechanisms are not by side-effect, so they'll
4521 # only be used when explicitly requested.
4522 if test "x$enable_dependency_tracking" = xyes; then
4523 continue
4524 else
4525 break
309b0535 4526 fi
a243b558
JF
4527 ;;
4528 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4529 # This compiler won't grok '-c -o', but also, the minuso test has
4530 # not run yet. These depmodes are late enough in the game, and
4531 # so weak that their functioning should not be impacted.
4532 am__obj=conftest.${OBJEXT-o}
4533 am__minus_obj=
4534 ;;
4535 none) break ;;
4536 esac
4537 if depmode=$depmode \
4538 source=sub/conftest.c object=$am__obj \
4539 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4540 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4541 >/dev/null 2>conftest.err &&
4542 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4543 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4544 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4545 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4546 # icc doesn't choke on unknown options, it will just issue warnings
4547 # or remarks (even with -Werror). So we grep stderr for any message
4548 # that says an option was ignored or not supported.
4549 # When given -MP, icc 7.0 and 7.1 complain thusly:
4550 # icc: Command line warning: ignoring option '-M'; no argument required
4551 # The diagnosis changed in icc 8.0:
4552 # icc: Command line remark: option '-MP' not supported
4553 if (grep 'ignoring option' conftest.err ||
4554 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4555 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4556 break
4557 fi
4558 fi
309b0535 4559 done
a243b558
JF
4560
4561 cd ..
4562 rm -rf conftest.dir
4563else
a93f15c0 4564 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4565fi
a243b558 4566
9c60689e 4567fi
a93f15c0
JF
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4569$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4570CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4571
4572 if
4573 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4574 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4575 am__fastdepCXX_TRUE=
4576 am__fastdepCXX_FALSE='#'
9c60689e 4577else
a93f15c0
JF
4578 am__fastdepCXX_TRUE='#'
4579 am__fastdepCXX_FALSE=
a243b558
JF
4580fi
4581
4582
a93f15c0
JF
4583ac_ext=mm
4584ac_cpp='$OBJCXXCPP $CPPFLAGS'
4585ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4588if test -n "$ac_tool_prefix"; then
a93f15c0 4589 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4590 do
4591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4595if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4596 $as_echo_n "(cached) " >&6
4597else
a93f15c0
JF
4598 if test -n "$OBJCXX"; then
4599 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4600else
4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH
4603do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4608 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
9c60689e 4611 fi
a243b558
JF
4612done
4613 done
4614IFS=$as_save_IFS
9c60689e 4615
a243b558
JF
4616fi
4617fi
a93f15c0
JF
4618OBJCXX=$ac_cv_prog_OBJCXX
4619if test -n "$OBJCXX"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4621$as_echo "$OBJCXX" >&6; }
35fa52c0 4622else
a243b558
JF
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624$as_echo "no" >&6; }
35fa52c0 4625fi
9c60689e 4626
a243b558 4627
a93f15c0 4628 test -n "$OBJCXX" && break
a243b558
JF
4629 done
4630fi
a93f15c0
JF
4631if test -z "$OBJCXX"; then
4632 ac_ct_OBJCXX=$OBJCXX
4633 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4634do
4635 # Extract the first word of "$ac_prog", so it can be a program name with args.
4636set dummy $ac_prog; ac_word=$2
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4639if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4640 $as_echo_n "(cached) " >&6
4641else
a93f15c0
JF
4642 if test -n "$ac_ct_OBJCXX"; then
4643 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4652 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656done
4657 done
4658IFS=$as_save_IFS
9c60689e 4659
a243b558
JF
4660fi
4661fi
a93f15c0
JF
4662ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4663if test -n "$ac_ct_OBJCXX"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4665$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4666else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668$as_echo "no" >&6; }
4669fi
35fa52c0 4670
35fa52c0 4671
a93f15c0 4672 test -n "$ac_ct_OBJCXX" && break
a243b558 4673done
35fa52c0 4674
a93f15c0
JF
4675 if test "x$ac_ct_OBJCXX" = x; then
4676 OBJCXX="g++"
a243b558
JF
4677 else
4678 case $cross_compiling:$ac_tool_warned in
4679yes:)
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682ac_tool_warned=yes ;;
4683esac
a93f15c0 4684 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4685 fi
4686fi
ee134472 4687
a243b558 4688# Provide some information about the compiler.
a93f15c0 4689$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4690set X $ac_compile
4691ac_compiler=$2
4692for ac_option in --version -v -V -qversion; do
4693 { { ac_try="$ac_compiler $ac_option >&5"
4694case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697esac
4698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699$as_echo "$ac_try_echo"; } >&5
4700 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4701 ac_status=$?
4702 if test -s conftest.err; then
4703 sed '10a\
4704... rest of stderr output deleted ...
4705 10q' conftest.err >conftest.er1
4706 cat conftest.er1 >&5
4707 fi
4708 rm -f conftest.er1 conftest.err
4709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4710 test $ac_status = 0; }
4711done
53ba6704 4712
a93f15c0
JF
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4714$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4715if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4716 $as_echo_n "(cached) " >&6
4717else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719/* end confdefs.h. */
35fa52c0 4720
a243b558
JF
4721int
4722main ()
4723{
4724#ifndef __GNUC__
4725 choke me
4726#endif
9c60689e 4727
a243b558
JF
4728 ;
4729 return 0;
4730}
4731_ACEOF
a93f15c0 4732if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4733 ac_compiler_gnu=yes
35fa52c0 4734else
a243b558 4735 ac_compiler_gnu=no
35fa52c0 4736fi
a243b558 4737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4738ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4739
a243b558 4740fi
a93f15c0
JF
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4742$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4743if test $ac_compiler_gnu = yes; then
a93f15c0 4744 GOBJCXX=yes
35fa52c0 4745else
a93f15c0 4746 GOBJCXX=
9c60689e 4747fi
a93f15c0
JF
4748ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4749ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4751$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4752if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4753 $as_echo_n "(cached) " >&6
4754else
a93f15c0
JF
4755 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4756 ac_objcxx_werror_flag=yes
4757 ac_cv_prog_objcxx_g=no
4758 OBJCXXFLAGS="-g"
a243b558
JF
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760/* end confdefs.h. */
9c60689e 4761
a243b558
JF
4762int
4763main ()
4764{
9c60689e 4765
a243b558
JF
4766 ;
4767 return 0;
4768}
4769_ACEOF
a93f15c0
JF
4770if ac_fn_objcxx_try_compile "$LINENO"; then :
4771 ac_cv_prog_objcxx_g=yes
a243b558 4772else
a93f15c0 4773 OBJCXXFLAGS=""
a243b558
JF
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h. */
9c60689e 4776
a243b558
JF
4777int
4778main ()
4779{
9c60689e 4780
a243b558
JF
4781 ;
4782 return 0;
4783}
4784_ACEOF
a93f15c0 4785if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4786
a243b558 4787else
a93f15c0
JF
4788 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4789 OBJCXXFLAGS="-g"
a243b558 4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4791/* end confdefs.h. */
4792
a243b558
JF
4793int
4794main ()
4795{
a93f15c0 4796
a243b558
JF
4797 ;
4798 return 0;
4799}
4800_ACEOF
a93f15c0
JF
4801if ac_fn_objcxx_try_compile "$LINENO"; then :
4802 ac_cv_prog_objcxx_g=yes
a243b558 4803fi
a93f15c0 4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4805fi
a93f15c0
JF
4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807fi
4808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4810fi
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4812$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4813if test "$ac_test_OBJCXXFLAGS" = set; then
4814 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4815elif test $ac_cv_prog_objcxx_g = yes; then
4816 if test "$GOBJCXX" = yes; then
4817 OBJCXXFLAGS="-g -O2"
4818 else
4819 OBJCXXFLAGS="-g"
4820 fi
4821else
4822 if test "$GOBJCXX" = yes; then
4823 OBJCXXFLAGS="-O2"
4824 else
4825 OBJCXXFLAGS=
4826 fi
35fa52c0 4827fi
a243b558
JF
4828ac_ext=c
4829ac_cpp='$CPP $CPPFLAGS'
4830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833
a93f15c0 4834depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4835
a243b558
JF
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4837$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4838if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4839 $as_echo_n "(cached) " >&6
4840else
a243b558
JF
4841 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4842 # We make a subdir and do the tests there. Otherwise we can end up
4843 # making bogus files that we don't know about and never remove. For
4844 # instance it was reported that on HP-UX the gcc test will end up
4845 # making a dummy file named 'D' -- because '-MD' means "put the output
4846 # in D".
4847 rm -rf conftest.dir
4848 mkdir conftest.dir
4849 # Copy depcomp to subdir because otherwise we won't find it if we're
4850 # using a relative directory.
4851 cp "$am_depcomp" conftest.dir
4852 cd conftest.dir
4853 # We will build objects and dependencies in a subdirectory because
4854 # it helps to detect inapplicable dependency modes. For instance
4855 # both Tru64's cc and ICC support -MD to output dependencies as a
4856 # side effect of compilation, but ICC will put the dependencies in
4857 # the current directory while Tru64 will put them in the object
4858 # directory.
4859 mkdir sub
4860
a93f15c0 4861 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4862 if test "$am_compiler_list" = ""; then
4863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4864 fi
4865 am__universal=false
a93f15c0 4866
a243b558
JF
4867
4868 for depmode in $am_compiler_list; do
4869 # Setup a source with many dependencies, because some compilers
4870 # like to wrap large dependency lists on column 80 (with \), and
4871 # we should not choose a depcomp mode which is confused by this.
4872 #
4873 # We need to recreate these files for each test, as the compiler may
4874 # overwrite some of them when testing with obscure command lines.
4875 # This happens at least with the AIX C compiler.
4876 : > sub/conftest.c
4877 for i in 1 2 3 4 5 6; do
4878 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4879 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4880 # Solaris 10 /bin/sh.
4881 echo '/* dummy */' > sub/conftst$i.h
4882 done
4883 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4884
4885 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4886 # mode. It turns out that the SunPro C++ compiler does not properly
4887 # handle '-M -o', and we need to detect this. Also, some Intel
4888 # versions had trouble with output in subdirs.
4889 am__obj=sub/conftest.${OBJEXT-o}
4890 am__minus_obj="-o $am__obj"
4891 case $depmode in
4892 gcc)
4893 # This depmode causes a compiler race in universal mode.
4894 test "$am__universal" = false || continue
4895 ;;
4896 nosideeffect)
4897 # After this tag, mechanisms are not by side-effect, so they'll
4898 # only be used when explicitly requested.
4899 if test "x$enable_dependency_tracking" = xyes; then
4900 continue
4901 else
4902 break
4903 fi
4904 ;;
4905 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4906 # This compiler won't grok '-c -o', but also, the minuso test has
4907 # not run yet. These depmodes are late enough in the game, and
4908 # so weak that their functioning should not be impacted.
4909 am__obj=conftest.${OBJEXT-o}
4910 am__minus_obj=
4911 ;;
4912 none) break ;;
4913 esac
4914 if depmode=$depmode \
4915 source=sub/conftest.c object=$am__obj \
4916 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4917 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4918 >/dev/null 2>conftest.err &&
4919 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923 # icc doesn't choke on unknown options, it will just issue warnings
4924 # or remarks (even with -Werror). So we grep stderr for any message
4925 # that says an option was ignored or not supported.
4926 # When given -MP, icc 7.0 and 7.1 complain thusly:
4927 # icc: Command line warning: ignoring option '-M'; no argument required
4928 # The diagnosis changed in icc 8.0:
4929 # icc: Command line remark: option '-MP' not supported
4930 if (grep 'ignoring option' conftest.err ||
4931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4932 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
4933 break
4934 fi
4935 fi
4936 done
9c60689e 4937
a243b558
JF
4938 cd ..
4939 rm -rf conftest.dir
4940else
a93f15c0 4941 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 4942fi
a243b558 4943
35fa52c0 4944fi
a93f15c0
JF
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4946$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4947OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
4948
4949 if
4950 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4951 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4952 am__fastdepOBJCXX_TRUE=
4953 am__fastdepOBJCXX_FALSE='#'
a243b558 4954else
a93f15c0
JF
4955 am__fastdepOBJCXX_TRUE='#'
4956 am__fastdepOBJCXX_FALSE=
a243b558
JF
4957fi
4958
4959
4960
a93f15c0 4961
a243b558
JF
4962if test -n "$ac_tool_prefix"; then
4963 for ac_prog in ar lib "link -lib"
4964 do
4965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968$as_echo_n "checking for $ac_word... " >&6; }
4969if ${ac_cv_prog_AR+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971else
4972 if test -n "$AR"; then
4973 ac_cv_prog_AR="$AR" # Let the user override the test.
4974else
4975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4985 fi
4986done
4987 done
4988IFS=$as_save_IFS
4989
4990fi
4991fi
4992AR=$ac_cv_prog_AR
4993if test -n "$AR"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4995$as_echo "$AR" >&6; }
35fa52c0
DWT
4996else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998$as_echo "no" >&6; }
4999fi
9c60689e 5000
a243b558
JF
5001
5002 test -n "$AR" && break
5003 done
5004fi
5005if test -z "$AR"; then
5006 ac_ct_AR=$AR
5007 for ac_prog in ar lib "link -lib"
5008do
5009 # Extract the first word of "$ac_prog", so it can be a program name with args.
5010set dummy $ac_prog; ac_word=$2
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if ${ac_cv_prog_ac_ct_AR+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015else
5016 if test -n "$ac_ct_AR"; then
5017 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_ac_ct_AR="$ac_prog"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030done
5031 done
5032IFS=$as_save_IFS
5033
5034fi
5035fi
5036ac_ct_AR=$ac_cv_prog_ac_ct_AR
5037if test -n "$ac_ct_AR"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5039$as_echo "$ac_ct_AR" >&6; }
5040else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
5043fi
5044
5045
5046 test -n "$ac_ct_AR" && break
5047done
5048
5049 if test "x$ac_ct_AR" = x; then
5050 AR="false"
9c60689e
DWT
5051 else
5052 case $cross_compiling:$ac_tool_warned in
5053yes:)
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056ac_tool_warned=yes ;;
35fa52c0 5057esac
a243b558 5058 AR=$ac_ct_AR
9c60689e 5059 fi
a243b558
JF
5060fi
5061
5062: ${AR=ar}
5063
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5065$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5066if ${am_cv_ar_interface+:} false; then :
5067 $as_echo_n "(cached) " >&6
9c60689e 5068else
a93f15c0
JF
5069 ac_ext=c
5070ac_cpp='$CPP $CPPFLAGS'
5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075 am_cv_ar_interface=ar
a243b558
JF
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h. */
5078int some_variable = 0;
5079_ACEOF
5080if ac_fn_c_try_compile "$LINENO"; then :
5081 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5083 (eval $am_ar_try) 2>&5
5084 ac_status=$?
5085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5086 test $ac_status = 0; }
5087 if test "$ac_status" -eq 0; then
5088 am_cv_ar_interface=ar
5089 else
5090 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5092 (eval $am_ar_try) 2>&5
5093 ac_status=$?
5094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5095 test $ac_status = 0; }
5096 if test "$ac_status" -eq 0; then
5097 am_cv_ar_interface=lib
5098 else
5099 am_cv_ar_interface=unknown
5100 fi
5101 fi
5102 rm -f conftest.lib libconftest.a
5103
35fa52c0 5104fi
a243b558 5105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
5106 ac_ext=c
5107ac_cpp='$CPP $CPPFLAGS'
5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 5111
a243b558
JF
5112fi
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5114$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 5115
a243b558
JF
5116case $am_cv_ar_interface in
5117ar)
5118 ;;
5119lib)
5120 # Microsoft lib, so override with the ar-lib wrapper script.
5121 # FIXME: It is wrong to rewrite AR.
5122 # But if we don't then we get into trouble of one sort or another.
5123 # A longer-term fix would be to have automake use am__AR in this case,
5124 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5125 # similar.
5126 AR="$am_aux_dir/ar-lib $AR"
5127 ;;
5128unknown)
5129 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5130 ;;
5131esac
35fa52c0 5132
35fa52c0 5133
35fa52c0 5134
a243b558
JF
5135case `pwd` in
5136 *\ * | *\ *)
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5138$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5139esac
35fa52c0
DWT
5140
5141
5142
a243b558
JF
5143macro_version='2.4.2'
5144macro_revision='1.3337'
35fa52c0
DWT
5145
5146
5147
5148
5149
5150
5151
5152
5153
35fa52c0 5154
35fa52c0 5155
ee134472 5156
35fa52c0 5157
a243b558 5158ltmain="$ac_aux_dir/ltmain.sh"
35fa52c0 5159
a243b558
JF
5160# Make sure we can run config.sub.
5161$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5162 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5163
a243b558
JF
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5165$as_echo_n "checking build system type... " >&6; }
5166if ${ac_cv_build+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168else
5169 ac_build_alias=$build_alias
5170test "x$ac_build_alias" = x &&
5171 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5172test "x$ac_build_alias" = x &&
5173 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5174ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5175 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5176
a243b558
JF
5177fi
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5179$as_echo "$ac_cv_build" >&6; }
5180case $ac_cv_build in
5181*-*-*) ;;
5182*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5183esac
5184build=$ac_cv_build
5185ac_save_IFS=$IFS; IFS='-'
5186set x $ac_cv_build
5187shift
5188build_cpu=$1
5189build_vendor=$2
5190shift; shift
5191# Remember, the first character of IFS is used to create $*,
5192# except with old shells:
5193build_os=$*
5194IFS=$ac_save_IFS
5195case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5196
35fa52c0 5197
a243b558
JF
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5199$as_echo_n "checking host system type... " >&6; }
5200if ${ac_cv_host+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202else
5203 if test "x$host_alias" = x; then
5204 ac_cv_host=$ac_cv_build
5205else
5206 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5207 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5208fi
35fa52c0 5209
a243b558
JF
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5212$as_echo "$ac_cv_host" >&6; }
5213case $ac_cv_host in
5214*-*-*) ;;
5215*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5216esac
5217host=$ac_cv_host
5218ac_save_IFS=$IFS; IFS='-'
5219set x $ac_cv_host
5220shift
5221host_cpu=$1
5222host_vendor=$2
5223shift; shift
5224# Remember, the first character of IFS is used to create $*,
5225# except with old shells:
5226host_os=$*
5227IFS=$ac_save_IFS
5228case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5229
9c60689e 5230
a243b558
JF
5231# Backslashify metacharacters that are still active within
5232# double-quoted strings.
5233sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5234
a243b558
JF
5235# Same as above, but do not quote variable references.
5236double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5237
a243b558
JF
5238# Sed substitution to delay expansion of an escaped shell variable in a
5239# double_quote_subst'ed string.
5240delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5241
a243b558
JF
5242# Sed substitution to delay expansion of an escaped single quote.
5243delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5244
a243b558
JF
5245# Sed substitution to avoid accidental globbing in evaled expressions
5246no_glob_subst='s/\*/\\\*/g'
35fa52c0 5247
a243b558
JF
5248ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5249ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5250ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5251
a243b558
JF
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5253$as_echo_n "checking how to print strings... " >&6; }
5254# Test print first, because it will be a builtin if present.
5255if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5256 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5257 ECHO='print -r --'
5258elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5259 ECHO='printf %s\n'
5260else
5261 # Use this function as a fallback that always works.
5262 func_fallback_echo ()
5263 {
5264 eval 'cat <<_LTECHO_EOF
5265$1
5266_LTECHO_EOF'
5267 }
5268 ECHO='func_fallback_echo'
ee134472
JF
5269fi
5270
a243b558
JF
5271# func_echo_all arg...
5272# Invoke $ECHO with all args, space-separated.
5273func_echo_all ()
5274{
5275 $ECHO ""
5276}
35fa52c0 5277
a243b558
JF
5278case "$ECHO" in
5279 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5280$as_echo "printf" >&6; } ;;
5281 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5282$as_echo "print -r" >&6; } ;;
5283 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5284$as_echo "cat" >&6; } ;;
5285esac
35fa52c0 5286
35fa52c0 5287
ee134472
JF
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
35fa52c0 5298
9c60689e 5299
a243b558
JF
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5301$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5302if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5303 $as_echo_n "(cached) " >&6
5304else
a243b558
JF
5305 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5306 for ac_i in 1 2 3 4 5 6 7; do
5307 ac_script="$ac_script$as_nl$ac_script"
5308 done
5309 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5310 { ac_script=; unset ac_script;}
5311 if test -z "$SED"; then
5312 ac_path_SED_found=false
5313 # Loop through the user's path and test for each of PROGNAME-LIST
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5315for as_dir in $PATH
5316do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
a243b558 5319 for ac_prog in sed gsed; do
9c60689e 5320 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5321 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5322 as_fn_executable_p "$ac_path_SED" || continue
5323# Check for GNU ac_path_SED and select it if it is found.
5324 # Check for GNU $ac_path_SED
5325case `"$ac_path_SED" --version 2>&1` in
5326*GNU*)
5327 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5328*)
5329 ac_count=0
5330 $as_echo_n 0123456789 >"conftest.in"
5331 while :
5332 do
5333 cat "conftest.in" "conftest.in" >"conftest.tmp"
5334 mv "conftest.tmp" "conftest.in"
5335 cp "conftest.in" "conftest.nl"
5336 $as_echo '' >> "conftest.nl"
5337 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5339 as_fn_arith $ac_count + 1 && ac_count=$as_val
5340 if test $ac_count -gt ${ac_path_SED_max-0}; then
5341 # Best one so far, save it but keep looking for a better one
5342 ac_cv_path_SED="$ac_path_SED"
5343 ac_path_SED_max=$ac_count
5344 fi
5345 # 10*(2^10) chars as input seems more than enough
5346 test $ac_count -gt 10 && break
35fa52c0 5347 done
a243b558
JF
5348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5349esac
9c60689e 5350
a243b558
JF
5351 $ac_path_SED_found && break 3
5352 done
5353 done
9c60689e
DWT
5354 done
5355IFS=$as_save_IFS
a243b558
JF
5356 if test -z "$ac_cv_path_SED"; then
5357 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5358 fi
5359else
a243b558 5360 ac_cv_path_SED=$SED
9c60689e
DWT
5361fi
5362
a243b558
JF
5363fi
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5365$as_echo "$ac_cv_path_SED" >&6; }
5366 SED="$ac_cv_path_SED"
5367 rm -f conftest.sed
9c60689e 5368
a243b558
JF
5369test -z "$SED" && SED=sed
5370Xsed="$SED -e 1s/^X//"
9c60689e 5371
ee134472 5372
ee134472 5373
9c60689e
DWT
5374
5375
5376
5377
5378
5379
5380
5381
a243b558
JF
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5383$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5384if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5385 $as_echo_n "(cached) " >&6
5386else
a243b558
JF
5387 if test -z "$GREP"; then
5388 ac_path_GREP_found=false
5389 # Loop through the user's path and test for each of PROGNAME-LIST
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
a243b558 5395 for ac_prog in grep ggrep; do
9c60689e 5396 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5397 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5398 as_fn_executable_p "$ac_path_GREP" || continue
5399# Check for GNU ac_path_GREP and select it if it is found.
5400 # Check for GNU $ac_path_GREP
5401case `"$ac_path_GREP" --version 2>&1` in
5402*GNU*)
5403 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5404*)
5405 ac_count=0
5406 $as_echo_n 0123456789 >"conftest.in"
5407 while :
5408 do
5409 cat "conftest.in" "conftest.in" >"conftest.tmp"
5410 mv "conftest.tmp" "conftest.in"
5411 cp "conftest.in" "conftest.nl"
5412 $as_echo 'GREP' >> "conftest.nl"
5413 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5415 as_fn_arith $ac_count + 1 && ac_count=$as_val
5416 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5417 # Best one so far, save it but keep looking for a better one
5418 ac_cv_path_GREP="$ac_path_GREP"
5419 ac_path_GREP_max=$ac_count
5420 fi
5421 # 10*(2^10) chars as input seems more than enough
5422 test $ac_count -gt 10 && break
5423 done
5424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5425esac
9c60689e 5426
a243b558
JF
5427 $ac_path_GREP_found && break 3
5428 done
ee134472 5429 done
a243b558
JF
5430 done
5431IFS=$as_save_IFS
5432 if test -z "$ac_cv_path_GREP"; then
5433 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5434 fi
5435else
5436 ac_cv_path_GREP=$GREP
9c60689e 5437fi
a243b558
JF
5438
5439fi
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5441$as_echo "$ac_cv_path_GREP" >&6; }
5442 GREP="$ac_cv_path_GREP"
5443
5444
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5446$as_echo_n "checking for egrep... " >&6; }
5447if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5448 $as_echo_n "(cached) " >&6
5449else
a243b558
JF
5450 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5451 then ac_cv_path_EGREP="$GREP -E"
5452 else
5453 if test -z "$EGREP"; then
5454 ac_path_EGREP_found=false
5455 # Loop through the user's path and test for each of PROGNAME-LIST
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5458do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
a243b558 5461 for ac_prog in egrep; do
9c60689e 5462 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5463 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5464 as_fn_executable_p "$ac_path_EGREP" || continue
5465# Check for GNU ac_path_EGREP and select it if it is found.
5466 # Check for GNU $ac_path_EGREP
5467case `"$ac_path_EGREP" --version 2>&1` in
5468*GNU*)
5469 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5470*)
5471 ac_count=0
5472 $as_echo_n 0123456789 >"conftest.in"
5473 while :
5474 do
5475 cat "conftest.in" "conftest.in" >"conftest.tmp"
5476 mv "conftest.tmp" "conftest.in"
5477 cp "conftest.in" "conftest.nl"
5478 $as_echo 'EGREP' >> "conftest.nl"
5479 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5481 as_fn_arith $ac_count + 1 && ac_count=$as_val
5482 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5483 # Best one so far, save it but keep looking for a better one
5484 ac_cv_path_EGREP="$ac_path_EGREP"
5485 ac_path_EGREP_max=$ac_count
5486 fi
5487 # 10*(2^10) chars as input seems more than enough
5488 test $ac_count -gt 10 && break
9c60689e 5489 done
a243b558
JF
5490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5491esac
9c60689e 5492
a243b558
JF
5493 $ac_path_EGREP_found && break 3
5494 done
5495 done
5496 done
5497IFS=$as_save_IFS
5498 if test -z "$ac_cv_path_EGREP"; then
5499 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5500 fi
9c60689e 5501else
a243b558 5502 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5503fi
5504
a243b558
JF
5505 fi
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5508$as_echo "$ac_cv_path_EGREP" >&6; }
5509 EGREP="$ac_cv_path_EGREP"
ee134472 5510
ee134472 5511
a243b558
JF
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5513$as_echo_n "checking for fgrep... " >&6; }
5514if ${ac_cv_path_FGREP+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516else
5517 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5518 then ac_cv_path_FGREP="$GREP -F"
5519 else
5520 if test -z "$FGREP"; then
5521 ac_path_FGREP_found=false
5522 # Loop through the user's path and test for each of PROGNAME-LIST
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5525do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_prog in fgrep; do
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5531 as_fn_executable_p "$ac_path_FGREP" || continue
5532# Check for GNU ac_path_FGREP and select it if it is found.
5533 # Check for GNU $ac_path_FGREP
5534case `"$ac_path_FGREP" --version 2>&1` in
5535*GNU*)
5536 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5537*)
5538 ac_count=0
5539 $as_echo_n 0123456789 >"conftest.in"
5540 while :
5541 do
5542 cat "conftest.in" "conftest.in" >"conftest.tmp"
5543 mv "conftest.tmp" "conftest.in"
5544 cp "conftest.in" "conftest.nl"
5545 $as_echo 'FGREP' >> "conftest.nl"
5546 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5548 as_fn_arith $ac_count + 1 && ac_count=$as_val
5549 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5550 # Best one so far, save it but keep looking for a better one
5551 ac_cv_path_FGREP="$ac_path_FGREP"
5552 ac_path_FGREP_max=$ac_count
5553 fi
5554 # 10*(2^10) chars as input seems more than enough
5555 test $ac_count -gt 10 && break
5556 done
5557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5558esac
a243b558
JF
5559
5560 $ac_path_FGREP_found && break 3
5561 done
5562 done
5563 done
5564IFS=$as_save_IFS
5565 if test -z "$ac_cv_path_FGREP"; then
5566 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5567 fi
a243b558
JF
5568else
5569 ac_cv_path_FGREP=$FGREP
ee134472
JF
5570fi
5571
a243b558
JF
5572 fi
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5575$as_echo "$ac_cv_path_FGREP" >&6; }
5576 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5577
5578
a243b558 5579test -z "$GREP" && GREP=grep
ee134472
JF
5580
5581
5582
5583
5584
5585
5586
ee134472 5587
ee134472 5588
ee134472 5589
ee134472 5590
ee134472 5591
ee134472
JF
5592
5593
5594
5595
5596
5597
5598
a243b558
JF
5599# Check whether --with-gnu-ld was given.
5600if test "${with_gnu_ld+set}" = set; then :
5601 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5602else
5603 with_gnu_ld=no
5604fi
5605
5606ac_prog=ld
5607if test "$GCC" = yes; then
5608 # Check if gcc -print-prog-name=ld gives a path.
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5610$as_echo_n "checking for ld used by $CC... " >&6; }
5611 case $host in
5612 *-*-mingw*)
5613 # gcc leaves a trailing carriage return which upsets mingw
5614 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5615 *)
5616 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5617 esac
5618 case $ac_prog in
5619 # Accept absolute paths.
5620 [\\/]* | ?:[\\/]*)
5621 re_direlt='/[^/][^/]*/\.\./'
5622 # Canonicalize the pathname of ld
5623 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5624 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5625 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5626 done
5627 test -z "$LD" && LD="$ac_prog"
5628 ;;
5629 "")
5630 # If it fails, then pretend we aren't using GCC.
5631 ac_prog=ld
5632 ;;
5633 *)
5634 # If it is relative, then search for the first ld in PATH.
5635 with_gnu_ld=unknown
5636 ;;
5637 esac
5638elif test "$with_gnu_ld" = yes; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5640$as_echo_n "checking for GNU ld... " >&6; }
5641else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5643$as_echo_n "checking for non-GNU ld... " >&6; }
5644fi
5645if ${lt_cv_path_LD+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647else
5648 if test -z "$LD"; then
5649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5650 for ac_dir in $PATH; do
5651 IFS="$lt_save_ifs"
5652 test -z "$ac_dir" && ac_dir=.
5653 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5654 lt_cv_path_LD="$ac_dir/$ac_prog"
5655 # Check to see if the program is GNU ld. I'd rather use --version,
5656 # but apparently some variants of GNU ld only accept -v.
5657 # Break only if it was the GNU/non-GNU ld that we prefer.
5658 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5659 *GNU* | *'with BFD'*)
5660 test "$with_gnu_ld" != no && break
5661 ;;
5662 *)
5663 test "$with_gnu_ld" != yes && break
5664 ;;
5665 esac
5666 fi
5667 done
5668 IFS="$lt_save_ifs"
5669else
5670 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5671fi
5672fi
5673
5674LD="$lt_cv_path_LD"
5675if test -n "$LD"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5677$as_echo "$LD" >&6; }
5678else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681fi
5682test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5684$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5685if ${lt_cv_prog_gnu_ld+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687else
5688 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5689case `$LD -v 2>&1 </dev/null` in
5690*GNU* | *'with BFD'*)
5691 lt_cv_prog_gnu_ld=yes
5692 ;;
5693*)
5694 lt_cv_prog_gnu_ld=no
5695 ;;
5696esac
5697fi
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5699$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5700with_gnu_ld=$lt_cv_prog_gnu_ld
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5711$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5712if ${lt_cv_path_NM+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714else
5715 if test -n "$NM"; then
5716 # Let the user override the test.
5717 lt_cv_path_NM="$NM"
5718else
5719 lt_nm_to_check="${ac_tool_prefix}nm"
5720 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5721 lt_nm_to_check="$lt_nm_to_check nm"
5722 fi
5723 for lt_tmp_nm in $lt_nm_to_check; do
5724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5725 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5726 IFS="$lt_save_ifs"
5727 test -z "$ac_dir" && ac_dir=.
5728 tmp_nm="$ac_dir/$lt_tmp_nm"
5729 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5730 # Check to see if the nm accepts a BSD-compat flag.
5731 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5732 # nm: unknown option "B" ignored
5733 # Tru64's nm complains that /dev/null is an invalid object file
5734 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5735 */dev/null* | *'Invalid file or object type'*)
5736 lt_cv_path_NM="$tmp_nm -B"
5737 break
5738 ;;
5739 *)
5740 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5741 */dev/null*)
5742 lt_cv_path_NM="$tmp_nm -p"
5743 break
5744 ;;
5745 *)
5746 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5747 continue # so that we can try to find one that supports BSD flags
5748 ;;
5749 esac
5750 ;;
5751 esac
5752 fi
5753 done
5754 IFS="$lt_save_ifs"
5755 done
5756 : ${lt_cv_path_NM=no}
5757fi
5758fi
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5760$as_echo "$lt_cv_path_NM" >&6; }
5761if test "$lt_cv_path_NM" != "no"; then
5762 NM="$lt_cv_path_NM"
5763else
5764 # Didn't find any BSD compatible name lister, look for dumpbin.
5765 if test -n "$DUMPBIN"; then :
5766 # Let the user override the test.
5767 else
5768 if test -n "$ac_tool_prefix"; then
5769 for ac_prog in dumpbin "link -dump"
5770 do
5771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5772set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5775if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5776 $as_echo_n "(cached) " >&6
5777else
a243b558
JF
5778 if test -n "$DUMPBIN"; then
5779 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5780else
5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5788 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 break 2
5791 fi
5792done
5793 done
5794IFS=$as_save_IFS
5795
5796fi
5797fi
a243b558
JF
5798DUMPBIN=$ac_cv_prog_DUMPBIN
5799if test -n "$DUMPBIN"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5801$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5802else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804$as_echo "no" >&6; }
5805fi
5806
5807
a243b558
JF
5808 test -n "$DUMPBIN" && break
5809 done
ee134472 5810fi
a243b558
JF
5811if test -z "$DUMPBIN"; then
5812 ac_ct_DUMPBIN=$DUMPBIN
5813 for ac_prog in dumpbin "link -dump"
5814do
5815 # Extract the first word of "$ac_prog", so it can be a program name with args.
5816set dummy $ac_prog; ac_word=$2
ee134472
JF
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5819if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5820 $as_echo_n "(cached) " >&6
5821else
a243b558
JF
5822 if test -n "$ac_ct_DUMPBIN"; then
5823 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5832 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836done
5837 done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
a243b558
JF
5842ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5843if test -n "$ac_ct_DUMPBIN"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5845$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5846else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
a243b558
JF
5851
5852 test -n "$ac_ct_DUMPBIN" && break
5853done
5854
5855 if test "x$ac_ct_DUMPBIN" = x; then
5856 DUMPBIN=":"
ee134472
JF
5857 else
5858 case $cross_compiling:$ac_tool_warned in
5859yes:)
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862ac_tool_warned=yes ;;
5863esac
a243b558 5864 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5865 fi
9c60689e
DWT
5866fi
5867
a243b558
JF
5868 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5869 *COFF*)
5870 DUMPBIN="$DUMPBIN -symbols"
5871 ;;
5872 *)
5873 DUMPBIN=:
5874 ;;
5875 esac
5876 fi
9c60689e 5877
a243b558
JF
5878 if test "$DUMPBIN" != ":"; then
5879 NM="$DUMPBIN"
5880 fi
5881fi
5882test -z "$NM" && NM=nm
9c60689e
DWT
5883
5884
5885
5886
5887
a243b558
JF
5888
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5890$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5891if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5892 $as_echo_n "(cached) " >&6
5893else
a243b558
JF
5894 lt_cv_nm_interface="BSD nm"
5895 echo "int some_variable = 0;" > conftest.$ac_ext
5896 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5897 (eval "$ac_compile" 2>conftest.err)
5898 cat conftest.err >&5
5899 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5900 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5901 cat conftest.err >&5
5902 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5903 cat conftest.out >&5
5904 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5905 lt_cv_nm_interface="MS dumpbin"
9c60689e 5906 fi
00a96142 5907 rm -rf conftest*
9c60689e 5908fi
a243b558
JF
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5910$as_echo "$lt_cv_nm_interface" >&6; }
5911
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5913$as_echo_n "checking whether ln -s works... " >&6; }
5914LN_S=$as_ln_s
5915if test "$LN_S" = "ln -s"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5917$as_echo "yes" >&6; }
9c60689e 5918else
a243b558
JF
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5920$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5921fi
5922
a243b558
JF
5923# find the maximum length of command line arguments
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5925$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5926if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5927 $as_echo_n "(cached) " >&6
5928else
a243b558
JF
5929 i=0
5930 teststring="ABCD"
9c60689e 5931
a243b558
JF
5932 case $build_os in
5933 msdosdjgpp*)
5934 # On DJGPP, this test can blow up pretty badly due to problems in libc
5935 # (any single argument exceeding 2000 bytes causes a buffer overrun
5936 # during glob expansion). Even if it were fixed, the result of this
5937 # check would be larger than it should be.
5938 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5939 ;;
9c60689e 5940
a243b558
JF
5941 gnu*)
5942 # Under GNU Hurd, this test is not required because there is
5943 # no limit to the length of command line arguments.
5944 # Libtool will interpret -1 as no limit whatsoever
5945 lt_cv_sys_max_cmd_len=-1;
5946 ;;
9c60689e 5947
a243b558
JF
5948 cygwin* | mingw* | cegcc*)
5949 # On Win9x/ME, this test blows up -- it succeeds, but takes
5950 # about 5 minutes as the teststring grows exponentially.
5951 # Worse, since 9x/ME are not pre-emptively multitasking,
5952 # you end up with a "frozen" computer, even though with patience
5953 # the test eventually succeeds (with a max line length of 256k).
5954 # Instead, let's just punt: use the minimum linelength reported by
5955 # all of the supported platforms: 8192 (on NT/2K/XP).
5956 lt_cv_sys_max_cmd_len=8192;
5957 ;;
9c60689e 5958
a243b558
JF
5959 mint*)
5960 # On MiNT this can take a long time and run out of memory.
5961 lt_cv_sys_max_cmd_len=8192;
5962 ;;
9c60689e 5963
a243b558
JF
5964 amigaos*)
5965 # On AmigaOS with pdksh, this test takes hours, literally.
5966 # So we just punt and use a minimum line length of 8192.
5967 lt_cv_sys_max_cmd_len=8192;
5968 ;;
9c60689e 5969
a243b558
JF
5970 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5971 # This has been around since 386BSD, at least. Likely further.
5972 if test -x /sbin/sysctl; then
5973 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5974 elif test -x /usr/sbin/sysctl; then
5975 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5976 else
5977 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5978 fi
5979 # And add a safety zone
5980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5982 ;;
9c60689e 5983
a243b558
JF
5984 interix*)
5985 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5986 lt_cv_sys_max_cmd_len=196608
5987 ;;
9c60689e 5988
a243b558
JF
5989 os2*)
5990 # The test takes a long time on OS/2.
5991 lt_cv_sys_max_cmd_len=8192
5992 ;;
9c60689e 5993
a243b558
JF
5994 osf*)
5995 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5996 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5997 # nice to cause kernel panics so lets avoid the loop below.
5998 # First set a reasonable default.
5999 lt_cv_sys_max_cmd_len=16384
6000 #
6001 if test -x /sbin/sysconfig; then
6002 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6003 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6004 esac
6005 fi
6006 ;;
6007 sco3.2v5*)
6008 lt_cv_sys_max_cmd_len=102400
6009 ;;
6010 sysv5* | sco5v6* | sysv4.2uw2*)
6011 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6012 if test -n "$kargmax"; then
6013 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6014 else
6015 lt_cv_sys_max_cmd_len=32768
6016 fi
9c60689e
DWT
6017 ;;
6018 *)
a243b558
JF
6019 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6020 if test -n "$lt_cv_sys_max_cmd_len"; then
6021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6023 else
6024 # Make teststring a little bigger before we do anything with it.
6025 # a 1K string should be a reasonable start.
6026 for i in 1 2 3 4 5 6 7 8 ; do
6027 teststring=$teststring$teststring
6028 done
6029 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6030 # If test is not a shell built-in, we'll probably end up computing a
6031 # maximum length that is only half of the actual maximum length, but
6032 # we can't tell.
6033 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6034 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6035 test $i != 17 # 1/2 MB should be enough
6036 do
6037 i=`expr $i + 1`
6038 teststring=$teststring$teststring
6039 done
6040 # Only check the string length outside the loop.
6041 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6042 teststring=
6043 # Add a significant safety factor because C++ compilers can tack on
6044 # massive amounts of additional arguments before passing them to the
6045 # linker. It appears as though 1/2 is a usable value.
6046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6047 fi
9c60689e
DWT
6048 ;;
6049 esac
ee134472 6050
a243b558 6051fi
ee134472 6052
a243b558
JF
6053if test -n $lt_cv_sys_max_cmd_len ; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6055$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6056else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6058$as_echo "none" >&6; }
6059fi
6060max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
6061
6062
9c60689e
DWT
6063
6064
6065
6066
a243b558
JF
6067: ${CP="cp -f"}
6068: ${MV="mv -f"}
6069: ${RM="rm -f"}
9c60689e 6070
a243b558
JF
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6072$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6073# Try some XSI features
6074xsi_shell=no
6075( _lt_dummy="a/b/c"
6076 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6077 = c,a/b,b/c, \
6078 && eval 'test $(( 1 + 1 )) -eq 2 \
6079 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6080 && xsi_shell=yes
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6082$as_echo "$xsi_shell" >&6; }
9c60689e
DWT
6083
6084
a243b558
JF
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6086$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6087lt_shell_append=no
6088( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6089 >/dev/null 2>&1 \
6090 && lt_shell_append=yes
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6092$as_echo "$lt_shell_append" >&6; }
9c60689e
DWT
6093
6094
a243b558
JF
6095if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6096 lt_unset=unset
6097else
6098 lt_unset=false
6099fi
9c60689e
DWT
6100
6101
6102
6103
6104
a243b558
JF
6105# test EBCDIC or ASCII
6106case `echo X|tr X '\101'` in
6107 A) # ASCII based system
6108 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6109 lt_SP2NL='tr \040 \012'
6110 lt_NL2SP='tr \015\012 \040\040'
6111 ;;
6112 *) # EBCDIC based system
6113 lt_SP2NL='tr \100 \n'
6114 lt_NL2SP='tr \r\n \100\100'
6115 ;;
6116esac
9c60689e
DWT
6117
6118
6119
6120
6121
6122
6123
6124
6125
a243b558
JF
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6127$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6128if ${lt_cv_to_host_file_cmd+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130else
6131 case $host in
6132 *-*-mingw* )
6133 case $build in
6134 *-*-mingw* ) # actually msys
6135 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6136 ;;
6137 *-*-cygwin* )
6138 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6139 ;;
6140 * ) # otherwise, assume *nix
6141 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6142 ;;
6143 esac
6144 ;;
6145 *-*-cygwin* )
6146 case $build in
6147 *-*-mingw* ) # actually msys
6148 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6149 ;;
6150 *-*-cygwin* )
6151 lt_cv_to_host_file_cmd=func_convert_file_noop
6152 ;;
6153 * ) # otherwise, assume *nix
6154 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6155 ;;
6156 esac
6157 ;;
6158 * ) # unhandled hosts (and "normal" native builds)
6159 lt_cv_to_host_file_cmd=func_convert_file_noop
6160 ;;
6161esac
9c60689e 6162
a243b558 6163fi
9c60689e 6164
a243b558
JF
6165to_host_file_cmd=$lt_cv_to_host_file_cmd
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6167$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6168
6169
6170
6171
6172
a243b558
JF
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6174$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6175if ${lt_cv_to_tool_file_cmd+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177else
6178 #assume ordinary cross tools, or native build.
6179lt_cv_to_tool_file_cmd=func_convert_file_noop
6180case $host in
6181 *-*-mingw* )
6182 case $build in
6183 *-*-mingw* ) # actually msys
6184 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6185 ;;
6186 esac
6187 ;;
6188esac
9c60689e 6189
a243b558 6190fi
9c60689e 6191
a243b558
JF
6192to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6194$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6195
9c60689e 6196
9c60689e 6197
9c60689e
DWT
6198
6199
a243b558
JF
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6201$as_echo_n "checking for $LD option to reload object files... " >&6; }
6202if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6203 $as_echo_n "(cached) " >&6
6204else
a243b558
JF
6205 lt_cv_ld_reload_flag='-r'
6206fi
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6208$as_echo "$lt_cv_ld_reload_flag" >&6; }
6209reload_flag=$lt_cv_ld_reload_flag
6210case $reload_flag in
6211"" | " "*) ;;
6212*) reload_flag=" $reload_flag" ;;
6213esac
6214reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6215case $host_os in
a243b558
JF
6216 cygwin* | mingw* | pw32* | cegcc*)
6217 if test "$GCC" != yes; then
6218 reload_cmds=false
6219 fi
6220 ;;
6221 darwin*)
6222 if test "$GCC" = yes; then
6223 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6224 else
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 fi
6227 ;;
9c60689e
DWT
6228esac
6229
9c60689e 6230
9c60689e 6231
9c60689e 6232
9c60689e 6233
9c60689e 6234
9c60689e 6235
9c60689e 6236
9c60689e 6237
a243b558
JF
6238if test -n "$ac_tool_prefix"; then
6239 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6240set dummy ${ac_tool_prefix}objdump; ac_word=$2
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
6243if ${ac_cv_prog_OBJDUMP+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245else
6246 if test -n "$OBJDUMP"; then
6247 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6259 fi
6260done
6261 done
6262IFS=$as_save_IFS
9c60689e 6263
a243b558
JF
6264fi
6265fi
6266OBJDUMP=$ac_cv_prog_OBJDUMP
6267if test -n "$OBJDUMP"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6269$as_echo "$OBJDUMP" >&6; }
6270else
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272$as_echo "no" >&6; }
6273fi
9c60689e 6274
9c60689e 6275
a243b558
JF
6276fi
6277if test -z "$ac_cv_prog_OBJDUMP"; then
6278 ac_ct_OBJDUMP=$OBJDUMP
6279 # Extract the first word of "objdump", so it can be a program name with args.
6280set dummy objdump; ac_word=$2
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282$as_echo_n "checking for $ac_word... " >&6; }
6283if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285else
6286 if test -n "$ac_ct_OBJDUMP"; then
6287 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
9c60689e
DWT
6299 fi
6300done
a243b558
JF
6301 done
6302IFS=$as_save_IFS
9c60689e
DWT
6303
6304fi
9c60689e 6305fi
a243b558
JF
6306ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6307if test -n "$ac_ct_OBJDUMP"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6309$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6310else
a243b558
JF
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312$as_echo "no" >&6; }
9c60689e
DWT
6313fi
6314
a243b558
JF
6315 if test "x$ac_ct_OBJDUMP" = x; then
6316 OBJDUMP="false"
6317 else
6318 case $cross_compiling:$ac_tool_warned in
6319yes:)
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322ac_tool_warned=yes ;;
6323esac
6324 OBJDUMP=$ac_ct_OBJDUMP
6325 fi
6326else
6327 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6328fi
6329
a243b558 6330test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6331
6332
6333
6334
6335
6336
6337
6338
6339
a243b558
JF
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6341$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6342if ${lt_cv_deplibs_check_method+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344else
6345 lt_cv_file_magic_cmd='$MAGIC_CMD'
6346lt_cv_file_magic_test_file=
6347lt_cv_deplibs_check_method='unknown'
6348# Need to set the preceding variable on all platforms that support
6349# interlibrary dependencies.
6350# 'none' -- dependencies not supported.
6351# `unknown' -- same as none, but documents that we really don't know.
6352# 'pass_all' -- all dependencies passed with no checks.
6353# 'test_compile' -- check by making test program.
6354# 'file_magic [[regex]]' -- check by looking for files in library path
6355# which responds to the $file_magic_cmd with a given extended regex.
6356# If you have `file' or equivalent on your system and you're not sure
6357# whether `pass_all' will *always* work, you probably want this one.
9c60689e 6358
a243b558
JF
6359case $host_os in
6360aix[4-9]*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
9c60689e 6363
a243b558
JF
6364beos*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
9c60689e 6367
a243b558
JF
6368bsdi[45]*)
6369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6370 lt_cv_file_magic_cmd='/usr/bin/file -L'
6371 lt_cv_file_magic_test_file=/shlib/libc.so
6372 ;;
9c60689e 6373
a243b558
JF
6374cygwin*)
6375 # func_win32_libid is a shell function defined in ltmain.sh
6376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6377 lt_cv_file_magic_cmd='func_win32_libid'
6378 ;;
9c60689e 6379
a243b558
JF
6380mingw* | pw32*)
6381 # Base MSYS/MinGW do not provide the 'file' command needed by
6382 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6383 # unless we find 'file', for example because we are cross-compiling.
6384 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6385 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6386 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6387 lt_cv_file_magic_cmd='func_win32_libid'
6388 else
6389 # Keep this pattern in sync with the one in func_win32_libid.
6390 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6391 lt_cv_file_magic_cmd='$OBJDUMP -f'
6392 fi
6393 ;;
9c60689e 6394
a243b558
JF
6395cegcc*)
6396 # use the weaker test based on 'objdump'. See mingw*.
6397 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6398 lt_cv_file_magic_cmd='$OBJDUMP -f'
6399 ;;
9c60689e 6400
a243b558
JF
6401darwin* | rhapsody*)
6402 lt_cv_deplibs_check_method=pass_all
6403 ;;
9c60689e 6404
a243b558
JF
6405freebsd* | dragonfly*)
6406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6407 case $host_cpu in
6408 i*86 )
6409 # Not sure whether the presence of OpenBSD here was a mistake.
6410 # Let's accept both of them until this is cleared up.
6411 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6412 lt_cv_file_magic_cmd=/usr/bin/file
6413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6414 ;;
6415 esac
6416 else
6417 lt_cv_deplibs_check_method=pass_all
6418 fi
6419 ;;
9c60689e 6420
a243b558
JF
6421gnu*)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
9c60689e 6424
a243b558
JF
6425haiku*)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
9c60689e 6428
a243b558
JF
6429hpux10.20* | hpux11*)
6430 lt_cv_file_magic_cmd=/usr/bin/file
6431 case $host_cpu in
6432 ia64*)
6433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6434 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6435 ;;
6436 hppa*64*)
6437 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]'
6438 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6439 ;;
6440 *)
6441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6442 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6443 ;;
6444 esac
6445 ;;
9c60689e 6446
a243b558
JF
6447interix[3-9]*)
6448 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6450 ;;
9c60689e 6451
a243b558
JF
6452irix5* | irix6* | nonstopux*)
6453 case $LD in
6454 *-32|*"-32 ") libmagic=32-bit;;
6455 *-n32|*"-n32 ") libmagic=N32;;
6456 *-64|*"-64 ") libmagic=64-bit;;
6457 *) libmagic=never-match;;
6458 esac
6459 lt_cv_deplibs_check_method=pass_all
6460 ;;
9c60689e 6461
a243b558
JF
6462# This must be glibc/ELF.
6463linux* | k*bsd*-gnu | kopensolaris*-gnu)
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
9c60689e 6466
a243b558
JF
6467netbsd*)
6468 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6470 else
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6472 fi
6473 ;;
9c60689e 6474
a243b558
JF
6475newos6*)
6476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6477 lt_cv_file_magic_cmd=/usr/bin/file
6478 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6479 ;;
9c60689e 6480
a243b558
JF
6481*nto* | *qnx*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
9c60689e 6484
a243b558
JF
6485openbsd*)
6486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6488 else
6489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6490 fi
6491 ;;
9c60689e 6492
a243b558
JF
6493osf3* | osf4* | osf5*)
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
9c60689e 6496
a243b558
JF
6497rdos*)
6498 lt_cv_deplibs_check_method=pass_all
9c60689e 6499 ;;
a243b558
JF
6500
6501solaris*)
6502 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6503 ;;
6504
a243b558
JF
6505sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6506 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6507 ;;
6508
a243b558
JF
6509sysv4 | sysv4.3*)
6510 case $host_vendor in
6511 motorola)
6512 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]'
6513 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6514 ;;
6515 ncr)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518 sequent)
6519 lt_cv_file_magic_cmd='/bin/file'
6520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6521 ;;
6522 sni)
6523 lt_cv_file_magic_cmd='/bin/file'
6524 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6525 lt_cv_file_magic_test_file=/lib/libc.so
6526 ;;
6527 siemens)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530 pc)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533 esac
6534 ;;
9c60689e 6535
a243b558
JF
6536tpf*)
6537 lt_cv_deplibs_check_method=pass_all
6538 ;;
6539esac
9c60689e 6540
a243b558
JF
6541fi
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6543$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6544
a243b558
JF
6545file_magic_glob=
6546want_nocaseglob=no
6547if test "$build" = "$host"; then
6548 case $host_os in
6549 mingw* | pw32*)
6550 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6551 want_nocaseglob=yes
6552 else
6553 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6554 fi
6555 ;;
6556 esac
9c60689e 6557fi
9c60689e 6558
a243b558
JF
6559file_magic_cmd=$lt_cv_file_magic_cmd
6560deplibs_check_method=$lt_cv_deplibs_check_method
6561test -z "$deplibs_check_method" && deplibs_check_method=unknown
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
9c60689e 6582
9c60689e 6583
ee134472 6584if test -n "$ac_tool_prefix"; then
a243b558
JF
6585 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6586set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6589if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6590 $as_echo_n "(cached) " >&6
6591else
a243b558
JF
6592 if test -n "$DLLTOOL"; then
6593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6602 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606done
6607 done
6608IFS=$as_save_IFS
6609
6610fi
6611fi
a243b558
JF
6612DLLTOOL=$ac_cv_prog_DLLTOOL
6613if test -n "$DLLTOOL"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6615$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6616else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618$as_echo "no" >&6; }
6619fi
6620
6621
6622fi
a243b558
JF
6623if test -z "$ac_cv_prog_DLLTOOL"; then
6624 ac_ct_DLLTOOL=$DLLTOOL
6625 # Extract the first word of "dlltool", so it can be a program name with args.
6626set dummy dlltool; ac_word=$2
ee134472
JF
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6629if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6630 $as_echo_n "(cached) " >&6
6631else
a243b558
JF
6632 if test -n "$ac_ct_DLLTOOL"; then
6633 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6642 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646done
6647 done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
a243b558
JF
6652ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6653if test -n "$ac_ct_DLLTOOL"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6655$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6656else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
a243b558
JF
6661 if test "x$ac_ct_DLLTOOL" = x; then
6662 DLLTOOL="false"
ee134472
JF
6663 else
6664 case $cross_compiling:$ac_tool_warned in
6665yes:)
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668ac_tool_warned=yes ;;
6669esac
a243b558 6670 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6671 fi
6672else
a243b558 6673 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6674fi
6675
a243b558
JF
6676test -z "$DLLTOOL" && DLLTOOL=dlltool
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6688$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6689if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6690 $as_echo_n "(cached) " >&6
6691else
a243b558
JF
6692 lt_cv_sharedlib_from_linklib_cmd='unknown'
6693
6694case $host_os in
6695cygwin* | mingw* | pw32* | cegcc*)
6696 # two different shell functions defined in ltmain.sh
6697 # decide which to use based on capabilities of $DLLTOOL
6698 case `$DLLTOOL --help 2>&1` in
6699 *--identify-strict*)
6700 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6701 ;;
6702 *)
6703 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6704 ;;
6705 esac
6706 ;;
6707*)
6708 # fallback: assume linklib IS sharedlib
6709 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6710 ;;
6711esac
6712
ee134472 6713fi
a243b558
JF
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6715$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6716sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6717test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6718
6719
6720
6721
6722
9c60689e 6723
a243b558
JF
6724
6725if test -n "$ac_tool_prefix"; then
6726 for ac_prog in ar
6727 do
6728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6729set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6732if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6733 $as_echo_n "(cached) " >&6
6734else
a243b558
JF
6735 if test -n "$AR"; then
6736 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6745 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750 done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
a243b558
JF
6755AR=$ac_cv_prog_AR
6756if test -n "$AR"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6758$as_echo "$AR" >&6; }
9c60689e
DWT
6759else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764
a243b558
JF
6765 test -n "$AR" && break
6766 done
9c60689e 6767fi
a243b558
JF
6768if test -z "$AR"; then
6769 ac_ct_AR=$AR
6770 for ac_prog in ar
6771do
6772 # Extract the first word of "$ac_prog", so it can be a program name with args.
6773set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6776if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6777 $as_echo_n "(cached) " >&6
6778else
a243b558
JF
6779 if test -n "$ac_ct_AR"; then
6780 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6789 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793done
6794 done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
a243b558
JF
6799ac_ct_AR=$ac_cv_prog_ac_ct_AR
6800if test -n "$ac_ct_AR"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6802$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6803else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
a243b558
JF
6808
6809 test -n "$ac_ct_AR" && break
6810done
6811
6812 if test "x$ac_ct_AR" = x; then
6813 AR="false"
9c60689e
DWT
6814 else
6815 case $cross_compiling:$ac_tool_warned in
6816yes:)
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6819ac_tool_warned=yes ;;
6820esac
a243b558 6821 AR=$ac_ct_AR
9c60689e 6822 fi
a243b558
JF
6823fi
6824
6825: ${AR=ar}
6826: ${AR_FLAGS=cru}
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6839$as_echo_n "checking for archiver @FILE support... " >&6; }
6840if ${lt_cv_ar_at_file+:} false; then :
6841 $as_echo_n "(cached) " >&6
9c60689e 6842else
a243b558
JF
6843 lt_cv_ar_at_file=no
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h. */
6846
6847int
6848main ()
6849{
6850
6851 ;
6852 return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_compile "$LINENO"; then :
6856 echo conftest.$ac_objext > conftest.lst
6857 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6859 (eval $lt_ar_try) 2>&5
6860 ac_status=$?
6861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862 test $ac_status = 0; }
6863 if test "$ac_status" -eq 0; then
6864 # Ensure the archiver fails upon bogus file names.
6865 rm -f conftest.$ac_objext libconftest.a
6866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6867 (eval $lt_ar_try) 2>&5
6868 ac_status=$?
6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870 test $ac_status = 0; }
6871 if test "$ac_status" -ne 0; then
6872 lt_cv_ar_at_file=@
6873 fi
6874 fi
6875 rm -f conftest.* libconftest.a
6876
9c60689e 6877fi
a243b558 6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6879
a243b558
JF
6880fi
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6882$as_echo "$lt_cv_ar_at_file" >&6; }
6883
6884if test "x$lt_cv_ar_at_file" = xno; then
6885 archiver_list_spec=
6886else
6887 archiver_list_spec=$lt_cv_ar_at_file
6888fi
6889
6890
6891
6892
6893
6894
6895
6896if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6898set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6901if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6902 $as_echo_n "(cached) " >&6
6903else
a243b558
JF
6904 if test -n "$STRIP"; then
6905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918done
6919 done
6920IFS=$as_save_IFS
6921
6922fi
6923fi
a243b558
JF
6924STRIP=$ac_cv_prog_STRIP
6925if test -n "$STRIP"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6927$as_echo "$STRIP" >&6; }
9c60689e
DWT
6928else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933
6934fi
a243b558
JF
6935if test -z "$ac_cv_prog_STRIP"; then
6936 ac_ct_STRIP=$STRIP
6937 # Extract the first word of "strip", so it can be a program name with args.
6938set dummy strip; ac_word=$2
9c60689e
DWT
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6941if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6942 $as_echo_n "(cached) " >&6
6943else
a243b558
JF
6944 if test -n "$ac_ct_STRIP"; then
6945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6954 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958done
6959 done
6960IFS=$as_save_IFS
6961
6962fi
6963fi
a243b558
JF
6964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965if test -n "$ac_ct_STRIP"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6967$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6968else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970$as_echo "no" >&6; }
6971fi
6972
a243b558
JF
6973 if test "x$ac_ct_STRIP" = x; then
6974 STRIP=":"
9c60689e
DWT
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977yes:)
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980ac_tool_warned=yes ;;
6981esac
a243b558 6982 STRIP=$ac_ct_STRIP
9c60689e
DWT
6983 fi
6984else
a243b558 6985 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6986fi
6987
a243b558
JF
6988test -z "$STRIP" && STRIP=:
6989
6990
6991
6992
6993
6994
6995if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6997set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7000if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
7001 $as_echo_n "(cached) " >&6
7002else
a243b558
JF
7003 if test -n "$RANLIB"; then
7004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
7005else
7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017done
7018 done
7019IFS=$as_save_IFS
7020
7021fi
7022fi
a243b558
JF
7023RANLIB=$ac_cv_prog_RANLIB
7024if test -n "$RANLIB"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7026$as_echo "$RANLIB" >&6; }
9c60689e
DWT
7027else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029$as_echo "no" >&6; }
7030fi
7031
7032
7033fi
a243b558
JF
7034if test -z "$ac_cv_prog_RANLIB"; then
7035 ac_ct_RANLIB=$RANLIB
7036 # Extract the first word of "ranlib", so it can be a program name with args.
7037set dummy ranlib; ac_word=$2
9c60689e
DWT
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7040if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
7041 $as_echo_n "(cached) " >&6
7042else
a243b558
JF
7043 if test -n "$ac_ct_RANLIB"; then
7044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
7045else
7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7053 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057done
7058 done
7059IFS=$as_save_IFS
7060
7061fi
7062fi
a243b558
JF
7063ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7064if test -n "$ac_ct_RANLIB"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7066$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
7067else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069$as_echo "no" >&6; }
7070fi
7071
a243b558
JF
7072 if test "x$ac_ct_RANLIB" = x; then
7073 RANLIB=":"
9c60689e
DWT
7074 else
7075 case $cross_compiling:$ac_tool_warned in
7076yes:)
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079ac_tool_warned=yes ;;
7080esac
a243b558 7081 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
7082 fi
7083else
a243b558 7084 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
7085fi
7086
a243b558
JF
7087test -z "$RANLIB" && RANLIB=:
7088
7089
9c60689e 7090
9c60689e
DWT
7091
7092
a243b558
JF
7093
7094# Determine commands to create old-style static archives.
7095old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7096old_postinstall_cmds='chmod 644 $oldlib'
7097old_postuninstall_cmds=
7098
7099if test -n "$RANLIB"; then
7100 case $host_os in
7101 openbsd*)
7102 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7103 ;;
7104 *)
7105 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7106 ;;
7107 esac
7108 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
7109fi
7110
a243b558
JF
7111case $host_os in
7112 darwin*)
7113 lock_old_archive_extraction=yes ;;
7114 *)
7115 lock_old_archive_extraction=no ;;
9c60689e 7116esac
9c60689e 7117
9c60689e 7118
9c60689e
DWT
7119
7120
9c60689e 7121
9c60689e 7122
9c60689e
DWT
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
53ba6704 7150
9c60689e 7151
9c60689e 7152
9c60689e 7153
53ba6704 7154
a243b558
JF
7155
7156# If no C compiler was specified, use CC.
7157LTCC=${LTCC-"$CC"}
7158
7159# If no C compiler flags were specified, use CFLAGS.
7160LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7161
7162# Allow CC to be a program name with arguments.
7163compiler=$CC
7164
7165
7166# Check for command to grab the raw symbol name followed by C symbol from nm.
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7168$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7169if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7170 $as_echo_n "(cached) " >&6
7171else
ee134472 7172
a243b558
JF
7173# These are sane defaults that work on at least a few old systems.
7174# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7175
a243b558
JF
7176# Character class describing NM global symbol codes.
7177symcode='[BCDEGRST]'
9c60689e 7178
a243b558
JF
7179# Regexp to match symbols that can be accessed directly from C.
7180sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7181
a243b558
JF
7182# Define system-specific variables.
7183case $host_os in
7184aix*)
7185 symcode='[BCDT]'
7186 ;;
7187cygwin* | mingw* | pw32* | cegcc*)
7188 symcode='[ABCDGISTW]'
7189 ;;
7190hpux*)
7191 if test "$host_cpu" = ia64; then
7192 symcode='[ABCDEGRST]'
7193 fi
7194 ;;
7195irix* | nonstopux*)
7196 symcode='[BCDEGRST]'
7197 ;;
7198osf*)
7199 symcode='[BCDEGQRST]'
7200 ;;
7201solaris*)
7202 symcode='[BDRT]'
7203 ;;
7204sco3.2v5*)
7205 symcode='[DT]'
7206 ;;
7207sysv4.2uw2*)
7208 symcode='[DT]'
7209 ;;
7210sysv5* | sco5v6* | unixware* | OpenUNIX*)
7211 symcode='[ABDT]'
7212 ;;
7213sysv4)
7214 symcode='[DFNSTU]'
7215 ;;
7216esac
9c60689e 7217
a243b558
JF
7218# If we're using GNU nm, then use its standard symbol codes.
7219case `$NM -V 2>&1` in
7220*GNU* | *'with BFD'*)
7221 symcode='[ABCDGIRSTW]' ;;
7222esac
9c60689e 7223
a243b558
JF
7224# Transform an extracted symbol line into a proper C declaration.
7225# Some systems (esp. on ia64) link data and code symbols differently,
7226# so use this general approach.
7227lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7228
a243b558
JF
7229# Transform an extracted symbol line into symbol name and symbol address
7230lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7231lt_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'"
9c60689e 7232
a243b558
JF
7233# Handle CRLF in mingw tool chain
7234opt_cr=
7235case $build_os in
7236mingw*)
7237 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7238 ;;
7239esac
9c60689e 7240
a243b558
JF
7241# Try without a prefix underscore, then with it.
7242for ac_symprfx in "" "_"; do
9c60689e 7243
a243b558
JF
7244 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7245 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7246
a243b558
JF
7247 # Write the raw and C identifiers.
7248 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7249 # Fake it for dumpbin and say T for any non-static function
7250 # and D for any global variable.
7251 # Also find C++ and __fastcall symbols from MSVC++,
7252 # which start with @ or ?.
7253 lt_cv_sys_global_symbol_pipe="$AWK '"\
7254" {last_section=section; section=\$ 3};"\
7255" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7256" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7257" \$ 0!~/External *\|/{next};"\
7258" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7259" {if(hide[section]) next};"\
7260" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7261" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7262" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7263" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7264" ' prfx=^$ac_symprfx"
7265 else
7266 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7267 fi
7268 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7269
a243b558
JF
7270 # Check to see that the pipe works correctly.
7271 pipe_works=no
9c60689e 7272
00a96142 7273 rm -rf conftest*
a243b558
JF
7274 cat > conftest.$ac_ext <<_LT_EOF
7275#ifdef __cplusplus
7276extern "C" {
7277#endif
7278char nm_test_var;
7279void nm_test_func(void);
7280void nm_test_func(void){}
7281#ifdef __cplusplus
7282}
7283#endif
7284int main(){nm_test_var='a';nm_test_func();return(0);}
7285_LT_EOF
9c60689e 7286
a243b558
JF
7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288 (eval $ac_compile) 2>&5
7289 ac_status=$?
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7292 # Now try to grab the symbols.
7293 nlist=conftest.nm
7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7295 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7296 ac_status=$?
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; } && test -s "$nlist"; then
7299 # Try sorting and uniquifying the output.
7300 if sort "$nlist" | uniq > "$nlist"T; then
7301 mv -f "$nlist"T "$nlist"
7302 else
7303 rm -f "$nlist"T
7304 fi
9c60689e 7305
a243b558
JF
7306 # Make sure that we snagged all the symbols we need.
7307 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7308 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7309 cat <<_LT_EOF > conftest.$ac_ext
7310/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7311#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7312/* DATA imports from DLLs on WIN32 con't be const, because runtime
7313 relocations are performed -- see ld's documentation on pseudo-relocs. */
7314# define LT_DLSYM_CONST
7315#elif defined(__osf__)
7316/* This system does not cope well with relocations in const data. */
7317# define LT_DLSYM_CONST
7318#else
7319# define LT_DLSYM_CONST const
7320#endif
9c60689e 7321
a243b558
JF
7322#ifdef __cplusplus
7323extern "C" {
7324#endif
9c60689e 7325
a243b558
JF
7326_LT_EOF
7327 # Now generate the symbol file.
7328 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7329
a243b558 7330 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7331
a243b558
JF
7332/* The mapping between symbol names and symbols. */
7333LT_DLSYM_CONST struct {
7334 const char *name;
7335 void *address;
7336}
7337lt__PROGRAM__LTX_preloaded_symbols[] =
7338{
7339 { "@PROGRAM@", (void *) 0 },
7340_LT_EOF
7341 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7342 cat <<\_LT_EOF >> conftest.$ac_ext
7343 {0, (void *) 0}
7344};
9c60689e 7345
a243b558
JF
7346/* This works around a problem in FreeBSD linker */
7347#ifdef FREEBSD_WORKAROUND
7348static const void *lt_preloaded_setup() {
7349 return lt__PROGRAM__LTX_preloaded_symbols;
7350}
7351#endif
9c60689e 7352
a243b558
JF
7353#ifdef __cplusplus
7354}
7355#endif
7356_LT_EOF
7357 # Now try linking the two files.
7358 mv conftest.$ac_objext conftstm.$ac_objext
7359 lt_globsym_save_LIBS=$LIBS
7360 lt_globsym_save_CFLAGS=$CFLAGS
7361 LIBS="conftstm.$ac_objext"
7362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7364 (eval $ac_link) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7368 pipe_works=yes
7369 fi
7370 LIBS=$lt_globsym_save_LIBS
7371 CFLAGS=$lt_globsym_save_CFLAGS
7372 else
7373 echo "cannot find nm_test_func in $nlist" >&5
7374 fi
7375 else
7376 echo "cannot find nm_test_var in $nlist" >&5
7377 fi
7378 else
7379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7380 fi
7381 else
7382 echo "$progname: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7384 fi
7385 rm -rf conftest* conftst*
9c60689e 7386
a243b558
JF
7387 # Do not use the global_symbol_pipe unless it works.
7388 if test "$pipe_works" = yes; then
7389 break
7390 else
7391 lt_cv_sys_global_symbol_pipe=
7392 fi
7393done
9c60689e 7394
9c60689e 7395fi
9c60689e 7396
a243b558
JF
7397if test -z "$lt_cv_sys_global_symbol_pipe"; then
7398 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7399fi
a243b558
JF
7400if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7402$as_echo "failed" >&6; }
9c60689e 7403else
a243b558
JF
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7405$as_echo "ok" >&6; }
9c60689e
DWT
7406fi
7407
a243b558
JF
7408# Response file support.
7409if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7410 nm_file_list_spec='@'
7411elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7412 nm_file_list_spec='@'
9c60689e 7413fi
9c60689e 7414
9c60689e 7415
9c60689e 7416
9c60689e 7417
9c60689e 7418
9c60689e
DWT
7419
7420
9c60689e 7421
9c60689e 7422
9c60689e
DWT
7423
7424
7425
ee134472
JF
7426
7427
9c60689e
DWT
7428
7429
7430
7431
7432
7433
7434
7435
7436
549f29b5 7437
549f29b5
DWT
7438
7439
549f29b5 7440
a243b558
JF
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7442$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7443
a243b558
JF
7444# Check whether --with-sysroot was given.
7445if test "${with_sysroot+set}" = set; then :
7446 withval=$with_sysroot;
9c60689e 7447else
a243b558 7448 with_sysroot=no
9c60689e
DWT
7449fi
7450
7451
a243b558
JF
7452lt_sysroot=
7453case ${with_sysroot} in #(
7454 yes)
7455 if test "$GCC" = yes; then
7456 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7457 fi
7458 ;; #(
7459 /*)
7460 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7461 ;; #(
7462 no|'')
7463 ;; #(
7464 *)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7466$as_echo "${with_sysroot}" >&6; }
7467 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7468 ;;
7469esac
9c60689e 7470
a243b558
JF
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7472$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7473
7474
7475
7476
7477
a243b558
JF
7478# Check whether --enable-libtool-lock was given.
7479if test "${enable_libtool_lock+set}" = set; then :
7480 enableval=$enable_libtool_lock;
9c60689e
DWT
7481fi
7482
a243b558 7483test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9c60689e 7484
a243b558
JF
7485# Some flags need to be propagated to the compiler or linker for good
7486# libtool support.
7487case $host in
7488ia64-*-hpux*)
7489 # Find out which ABI we are using.
7490 echo 'int i;' > conftest.$ac_ext
7491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7492 (eval $ac_compile) 2>&5
7493 ac_status=$?
7494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495 test $ac_status = 0; }; then
7496 case `/usr/bin/file conftest.$ac_objext` in
7497 *ELF-32*)
7498 HPUX_IA64_MODE="32"
7499 ;;
7500 *ELF-64*)
7501 HPUX_IA64_MODE="64"
7502 ;;
7503 esac
7504 fi
7505 rm -rf conftest*
7506 ;;
7507*-*-irix6*)
7508 # Find out which ABI we are using.
7509 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511 (eval $ac_compile) 2>&5
7512 ac_status=$?
7513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; }; then
7515 if test "$lt_cv_prog_gnu_ld" = yes; then
7516 case `/usr/bin/file conftest.$ac_objext` in
7517 *32-bit*)
7518 LD="${LD-ld} -melf32bsmip"
7519 ;;
7520 *N32*)
7521 LD="${LD-ld} -melf32bmipn32"
7522 ;;
7523 *64-bit*)
7524 LD="${LD-ld} -melf64bmip"
7525 ;;
7526 esac
7527 else
7528 case `/usr/bin/file conftest.$ac_objext` in
7529 *32-bit*)
7530 LD="${LD-ld} -32"
7531 ;;
7532 *N32*)
7533 LD="${LD-ld} -n32"
7534 ;;
7535 *64-bit*)
7536 LD="${LD-ld} -64"
7537 ;;
7538 esac
7539 fi
7540 fi
7541 rm -rf conftest*
7542 ;;
9c60689e 7543
a243b558
JF
7544x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7545s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7546 # Find out which ABI we are using.
7547 echo 'int i;' > conftest.$ac_ext
7548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7549 (eval $ac_compile) 2>&5
7550 ac_status=$?
7551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552 test $ac_status = 0; }; then
7553 case `/usr/bin/file conftest.o` in
7554 *32-bit*)
7555 case $host in
7556 x86_64-*kfreebsd*-gnu)
7557 LD="${LD-ld} -m elf_i386_fbsd"
7558 ;;
7559 x86_64-*linux*)
7560 LD="${LD-ld} -m elf_i386"
7561 ;;
7562 ppc64-*linux*|powerpc64-*linux*)
7563 LD="${LD-ld} -m elf32ppclinux"
7564 ;;
7565 s390x-*linux*)
7566 LD="${LD-ld} -m elf_s390"
7567 ;;
7568 sparc64-*linux*)
7569 LD="${LD-ld} -m elf32_sparc"
7570 ;;
7571 esac
7572 ;;
7573 *64-bit*)
7574 case $host in
7575 x86_64-*kfreebsd*-gnu)
7576 LD="${LD-ld} -m elf_x86_64_fbsd"
7577 ;;
7578 x86_64-*linux*)
7579 LD="${LD-ld} -m elf_x86_64"
7580 ;;
7581 ppc*-*linux*|powerpc*-*linux*)
7582 LD="${LD-ld} -m elf64ppc"
7583 ;;
7584 s390*-*linux*|s390*-*tpf*)
7585 LD="${LD-ld} -m elf64_s390"
7586 ;;
7587 sparc*-*linux*)
7588 LD="${LD-ld} -m elf64_sparc"
7589 ;;
7590 esac
7591 ;;
7592 esac
7593 fi
7594 rm -rf conftest*
7595 ;;
9c60689e 7596
a243b558
JF
7597*-*-sco3.2v5*)
7598 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7599 SAVE_CFLAGS="$CFLAGS"
7600 CFLAGS="$CFLAGS -belf"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7602$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7603if ${lt_cv_cc_needs_belf+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605else
7606 ac_ext=c
7607ac_cpp='$CPP $CPPFLAGS'
7608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7611
a243b558
JF
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h. */
9c60689e 7614
a243b558
JF
7615int
7616main ()
7617{
9c60689e 7618
a243b558
JF
7619 ;
7620 return 0;
7621}
7622_ACEOF
7623if ac_fn_c_try_link "$LINENO"; then :
7624 lt_cv_cc_needs_belf=yes
9c60689e 7625else
a243b558 7626 lt_cv_cc_needs_belf=no
9c60689e 7627fi
a243b558
JF
7628rm -f core conftest.err conftest.$ac_objext \
7629 conftest$ac_exeext conftest.$ac_ext
7630 ac_ext=c
7631ac_cpp='$CPP $CPPFLAGS'
7632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7635
a243b558
JF
7636fi
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7638$as_echo "$lt_cv_cc_needs_belf" >&6; }
7639 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7640 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7641 CFLAGS="$SAVE_CFLAGS"
7642 fi
7643 ;;
7644*-*solaris*)
7645 # Find out which ABI we are using.
7646 echo 'int i;' > conftest.$ac_ext
7647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7648 (eval $ac_compile) 2>&5
7649 ac_status=$?
7650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7651 test $ac_status = 0; }; then
7652 case `/usr/bin/file conftest.o` in
7653 *64-bit*)
7654 case $lt_cv_prog_gnu_ld in
7655 yes*)
7656 case $host in
7657 i?86-*-solaris*)
7658 LD="${LD-ld} -m elf_x86_64"
7659 ;;
7660 sparc*-*-solaris*)
7661 LD="${LD-ld} -m elf64_sparc"
7662 ;;
7663 esac
7664 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7665 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7666 LD="${LD-ld}_sol2"
7667 fi
7668 ;;
7669 *)
7670 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7671 LD="${LD-ld} -64"
7672 fi
7673 ;;
7674 esac
7675 ;;
7676 esac
7677 fi
7678 rm -rf conftest*
7679 ;;
7680esac
9c60689e 7681
a243b558 7682need_locks="$enable_libtool_lock"
9c60689e 7683
a243b558
JF
7684if test -n "$ac_tool_prefix"; then
7685 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7686set dummy ${ac_tool_prefix}mt; ac_word=$2
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688$as_echo_n "checking for $ac_word... " >&6; }
7689if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691else
7692 if test -n "$MANIFEST_TOOL"; then
7693 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7694else
7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706done
7707 done
7708IFS=$as_save_IFS
9c60689e 7709
a243b558
JF
7710fi
7711fi
7712MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7713if test -n "$MANIFEST_TOOL"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7715$as_echo "$MANIFEST_TOOL" >&6; }
7716else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718$as_echo "no" >&6; }
7719fi
9c60689e
DWT
7720
7721
a243b558
JF
7722fi
7723if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7724 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7725 # Extract the first word of "mt", so it can be a program name with args.
7726set dummy mt; ac_word=$2
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728$as_echo_n "checking for $ac_word... " >&6; }
7729if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7730 $as_echo_n "(cached) " >&6
7731else
7732 if test -n "$ac_ct_MANIFEST_TOOL"; then
7733 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7734else
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746done
7747 done
7748IFS=$as_save_IFS
9c60689e 7749
a243b558
JF
7750fi
7751fi
7752ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7753if test -n "$ac_ct_MANIFEST_TOOL"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7755$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7756else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758$as_echo "no" >&6; }
7759fi
9c60689e 7760
a243b558
JF
7761 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7762 MANIFEST_TOOL=":"
7763 else
7764 case $cross_compiling:$ac_tool_warned in
7765yes:)
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7768ac_tool_warned=yes ;;
7769esac
7770 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7771 fi
7772else
7773 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7774fi
9c60689e 7775
a243b558
JF
7776test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7778$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7779if ${lt_cv_path_mainfest_tool+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781else
7782 lt_cv_path_mainfest_tool=no
7783 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7784 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7785 cat conftest.err >&5
7786 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7787 lt_cv_path_mainfest_tool=yes
7788 fi
00a96142 7789 rm -rf conftest*
a243b558
JF
7790fi
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7792$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7793if test "x$lt_cv_path_mainfest_tool" != xyes; then
7794 MANIFEST_TOOL=:
7795fi
9c60689e
DWT
7796
7797
7798
7799
7800
7801
a243b558
JF
7802 case $host_os in
7803 rhapsody* | darwin*)
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7806set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808$as_echo_n "checking for $ac_word... " >&6; }
7809if ${ac_cv_prog_DSYMUTIL+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811else
7812 if test -n "$DSYMUTIL"; then
7813 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7814else
7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826done
7827 done
7828IFS=$as_save_IFS
9c60689e 7829
a243b558
JF
7830fi
7831fi
7832DSYMUTIL=$ac_cv_prog_DSYMUTIL
7833if test -n "$DSYMUTIL"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7835$as_echo "$DSYMUTIL" >&6; }
7836else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838$as_echo "no" >&6; }
7839fi
9c60689e
DWT
7840
7841
9c60689e 7842fi
a243b558
JF
7843if test -z "$ac_cv_prog_DSYMUTIL"; then
7844 ac_ct_DSYMUTIL=$DSYMUTIL
7845 # Extract the first word of "dsymutil", so it can be a program name with args.
7846set dummy dsymutil; ac_word=$2
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848$as_echo_n "checking for $ac_word... " >&6; }
7849if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
7850 $as_echo_n "(cached) " >&6
7851else
a243b558
JF
7852 if test -n "$ac_ct_DSYMUTIL"; then
7853 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 7854else
a243b558
JF
7855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856for as_dir in $PATH
7857do
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866done
7867 done
7868IFS=$as_save_IFS
7869
9c60689e 7870fi
9c60689e 7871fi
a243b558
JF
7872ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7873if test -n "$ac_ct_DSYMUTIL"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7875$as_echo "$ac_ct_DSYMUTIL" >&6; }
7876else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878$as_echo "no" >&6; }
7879fi
9c60689e 7880
a243b558
JF
7881 if test "x$ac_ct_DSYMUTIL" = x; then
7882 DSYMUTIL=":"
7883 else
7884 case $cross_compiling:$ac_tool_warned in
7885yes:)
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888ac_tool_warned=yes ;;
9c60689e 7889esac
a243b558
JF
7890 DSYMUTIL=$ac_ct_DSYMUTIL
7891 fi
7892else
7893 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7894fi
9c60689e 7895
a243b558
JF
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7898set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900$as_echo_n "checking for $ac_word... " >&6; }
7901if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
7902 $as_echo_n "(cached) " >&6
7903else
a243b558
JF
7904 if test -n "$NMEDIT"; then
7905 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7906else
7907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918done
9c60689e 7919 done
a243b558 7920IFS=$as_save_IFS
9c60689e 7921
a243b558
JF
7922fi
7923fi
7924NMEDIT=$ac_cv_prog_NMEDIT
7925if test -n "$NMEDIT"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7927$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
7928else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930$as_echo "no" >&6; }
7931fi
7932
7933
a243b558
JF
7934fi
7935if test -z "$ac_cv_prog_NMEDIT"; then
7936 ac_ct_NMEDIT=$NMEDIT
7937 # Extract the first word of "nmedit", so it can be a program name with args.
7938set dummy nmedit; ac_word=$2
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940$as_echo_n "checking for $ac_word... " >&6; }
7941if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
7942 $as_echo_n "(cached) " >&6
7943else
a243b558
JF
7944 if test -n "$ac_ct_NMEDIT"; then
7945 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7946else
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958done
9c60689e 7959 done
a243b558 7960IFS=$as_save_IFS
9c60689e 7961
a243b558
JF
7962fi
7963fi
7964ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7965if test -n "$ac_ct_NMEDIT"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7967$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
7968else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
7971fi
7972
a243b558
JF
7973 if test "x$ac_ct_NMEDIT" = x; then
7974 NMEDIT=":"
9c60689e 7975 else
a243b558
JF
7976 case $cross_compiling:$ac_tool_warned in
7977yes:)
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980ac_tool_warned=yes ;;
7981esac
7982 NMEDIT=$ac_ct_NMEDIT
9c60689e 7983 fi
a243b558
JF
7984else
7985 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
7986fi
7987
a243b558
JF
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7990set dummy ${ac_tool_prefix}lipo; ac_word=$2
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992$as_echo_n "checking for $ac_word... " >&6; }
7993if ${ac_cv_prog_LIPO+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995else
7996 if test -n "$LIPO"; then
7997 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7998else
7999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000for as_dir in $PATH
8001do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8009 fi
8010done
8011 done
8012IFS=$as_save_IFS
9c60689e 8013
a243b558
JF
8014fi
8015fi
8016LIPO=$ac_cv_prog_LIPO
8017if test -n "$LIPO"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8019$as_echo "$LIPO" >&6; }
8020else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022$as_echo "no" >&6; }
8023fi
9c60689e 8024
9c60689e 8025
a243b558
JF
8026fi
8027if test -z "$ac_cv_prog_LIPO"; then
8028 ac_ct_LIPO=$LIPO
8029 # Extract the first word of "lipo", so it can be a program name with args.
8030set dummy lipo; ac_word=$2
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032$as_echo_n "checking for $ac_word... " >&6; }
8033if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
8034 $as_echo_n "(cached) " >&6
8035else
a243b558
JF
8036 if test -n "$ac_ct_LIPO"; then
8037 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8038else
8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040for as_dir in $PATH
8041do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_ac_ct_LIPO="lipo"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8049 fi
8050done
8051 done
8052IFS=$as_save_IFS
9c60689e
DWT
8053
8054fi
a243b558
JF
8055fi
8056ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8057if test -n "$ac_ct_LIPO"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8059$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 8060else
a243b558
JF
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062$as_echo "no" >&6; }
9c60689e
DWT
8063fi
8064
a243b558
JF
8065 if test "x$ac_ct_LIPO" = x; then
8066 LIPO=":"
8067 else
8068 case $cross_compiling:$ac_tool_warned in
8069yes:)
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072ac_tool_warned=yes ;;
8073esac
8074 LIPO=$ac_ct_LIPO
8075 fi
8076else
8077 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
8078fi
8079
a243b558
JF
8080 if test -n "$ac_tool_prefix"; then
8081 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8082set dummy ${ac_tool_prefix}otool; ac_word=$2
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084$as_echo_n "checking for $ac_word... " >&6; }
8085if ${ac_cv_prog_OTOOL+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087else
8088 if test -n "$OTOOL"; then
8089 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8090else
8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092for as_dir in $PATH
8093do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102done
8103 done
8104IFS=$as_save_IFS
9c60689e 8105
a243b558
JF
8106fi
8107fi
8108OTOOL=$ac_cv_prog_OTOOL
8109if test -n "$OTOOL"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8111$as_echo "$OTOOL" >&6; }
8112else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114$as_echo "no" >&6; }
8115fi
9c60689e
DWT
8116
8117
a243b558
JF
8118fi
8119if test -z "$ac_cv_prog_OTOOL"; then
8120 ac_ct_OTOOL=$OTOOL
8121 # Extract the first word of "otool", so it can be a program name with args.
8122set dummy otool; ac_word=$2
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124$as_echo_n "checking for $ac_word... " >&6; }
8125if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127else
8128 if test -n "$ac_ct_OTOOL"; then
8129 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8130else
8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132for as_dir in $PATH
8133do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_ac_ct_OTOOL="otool"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8141 fi
8142done
8143 done
8144IFS=$as_save_IFS
9c60689e 8145
a243b558
JF
8146fi
8147fi
8148ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8149if test -n "$ac_ct_OTOOL"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8151$as_echo "$ac_ct_OTOOL" >&6; }
8152else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154$as_echo "no" >&6; }
8155fi
9c60689e 8156
a243b558
JF
8157 if test "x$ac_ct_OTOOL" = x; then
8158 OTOOL=":"
8159 else
8160 case $cross_compiling:$ac_tool_warned in
8161yes:)
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164ac_tool_warned=yes ;;
8165esac
8166 OTOOL=$ac_ct_OTOOL
8167 fi
8168else
8169 OTOOL="$ac_cv_prog_OTOOL"
8170fi
9c60689e 8171
a243b558
JF
8172 if test -n "$ac_tool_prefix"; then
8173 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8174set dummy ${ac_tool_prefix}otool64; ac_word=$2
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
8177if ${ac_cv_prog_OTOOL64+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179else
8180 if test -n "$OTOOL64"; then
8181 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194done
8195 done
8196IFS=$as_save_IFS
9c60689e 8197
a243b558
JF
8198fi
8199fi
8200OTOOL64=$ac_cv_prog_OTOOL64
8201if test -n "$OTOOL64"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8203$as_echo "$OTOOL64" >&6; }
8204else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
8207fi
9c60689e 8208
9c60689e 8209
a243b558
JF
8210fi
8211if test -z "$ac_cv_prog_OTOOL64"; then
8212 ac_ct_OTOOL64=$OTOOL64
8213 # Extract the first word of "otool64", so it can be a program name with args.
8214set dummy otool64; ac_word=$2
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216$as_echo_n "checking for $ac_word... " >&6; }
8217if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219else
8220 if test -n "$ac_ct_OTOOL64"; then
8221 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8222else
8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224for as_dir in $PATH
8225do
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230 ac_cv_prog_ac_ct_OTOOL64="otool64"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 break 2
8233 fi
8234done
8235 done
8236IFS=$as_save_IFS
9c60689e 8237
a243b558
JF
8238fi
8239fi
8240ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8241if test -n "$ac_ct_OTOOL64"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8243$as_echo "$ac_ct_OTOOL64" >&6; }
8244else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
8247fi
9c60689e 8248
a243b558
JF
8249 if test "x$ac_ct_OTOOL64" = x; then
8250 OTOOL64=":"
8251 else
8252 case $cross_compiling:$ac_tool_warned in
8253yes:)
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8256ac_tool_warned=yes ;;
8257esac
8258 OTOOL64=$ac_ct_OTOOL64
8259 fi
8260else
8261 OTOOL64="$ac_cv_prog_OTOOL64"
8262fi
ee134472 8263
9c60689e 8264
9c60689e 8265
9c60689e 8266
9c60689e 8267
9c60689e 8268
ee134472 8269
9c60689e 8270
9c60689e 8271
9c60689e 8272
9c60689e 8273
9c60689e 8274
9c60689e 8275
9c60689e 8276
9c60689e 8277
9c60689e 8278
9c60689e 8279
9c60689e 8280
9c60689e 8281
9c60689e 8282
9c60689e 8283
9c60689e 8284
9c60689e 8285
9c60689e 8286
9c60689e 8287
a243b558
JF
8288
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8291$as_echo_n "checking for -single_module linker flag... " >&6; }
8292if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8293 $as_echo_n "(cached) " >&6
8294else
a243b558
JF
8295 lt_cv_apple_cc_single_mod=no
8296 if test -z "${LT_MULTI_MODULE}"; then
8297 # By default we will add the -single_module flag. You can override
8298 # by either setting the environment variable LT_MULTI_MODULE
8299 # non-empty at configure time, or by adding -multi_module to the
8300 # link flags.
8301 rm -rf libconftest.dylib*
8302 echo "int foo(void){return 1;}" > conftest.c
8303 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8304-dynamiclib -Wl,-single_module conftest.c" >&5
8305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8306 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8307 _lt_result=$?
8308 # If there is a non-empty error log, and "single_module"
8309 # appears in it, assume the flag caused a linker warning
8310 if test -s conftest.err && $GREP single_module conftest.err; then
8311 cat conftest.err >&5
8312 # Otherwise, if the output was created with a 0 exit code from
8313 # the compiler, it worked.
8314 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8315 lt_cv_apple_cc_single_mod=yes
8316 else
8317 cat conftest.err >&5
8318 fi
8319 rm -rf libconftest.dylib*
8320 rm -f conftest.*
8321 fi
ee134472 8322fi
a243b558
JF
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8324$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8325
a243b558
JF
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8327$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8328if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8329 $as_echo_n "(cached) " >&6
8330else
a243b558
JF
8331 lt_cv_ld_exported_symbols_list=no
8332 save_LDFLAGS=$LDFLAGS
8333 echo "_main" > conftest.sym
8334 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h. */
9c60689e 8337
a243b558
JF
8338int
8339main ()
8340{
9c60689e 8341
a243b558
JF
8342 ;
8343 return 0;
8344}
8345_ACEOF
8346if ac_fn_c_try_link "$LINENO"; then :
8347 lt_cv_ld_exported_symbols_list=yes
9c60689e 8348else
a243b558 8349 lt_cv_ld_exported_symbols_list=no
9c60689e 8350fi
a243b558
JF
8351rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 LDFLAGS="$save_LDFLAGS"
9c60689e
DWT
8354
8355fi
a243b558
JF
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8357$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8358
a243b558
JF
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8360$as_echo_n "checking for -force_load linker flag... " >&6; }
8361if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8362 $as_echo_n "(cached) " >&6
8363else
a243b558
JF
8364 lt_cv_ld_force_load=no
8365 cat > conftest.c << _LT_EOF
8366int forced_loaded() { return 2;}
8367_LT_EOF
8368 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8369 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8370 echo "$AR cru libconftest.a conftest.o" >&5
8371 $AR cru libconftest.a conftest.o 2>&5
8372 echo "$RANLIB libconftest.a" >&5
8373 $RANLIB libconftest.a 2>&5
8374 cat > conftest.c << _LT_EOF
8375int main() { return 0;}
8376_LT_EOF
8377 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8378 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8379 _lt_result=$?
8380 if test -s conftest.err && $GREP force_load conftest.err; then
8381 cat conftest.err >&5
8382 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8383 lt_cv_ld_force_load=yes
8384 else
8385 cat conftest.err >&5
8386 fi
8387 rm -f conftest.err libconftest.a conftest conftest.c
8388 rm -rf conftest.dSYM
9c60689e
DWT
8389
8390fi
a243b558
JF
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8392$as_echo "$lt_cv_ld_force_load" >&6; }
8393 case $host_os in
8394 rhapsody* | darwin1.[012])
8395 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8396 darwin1.*)
8397 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8398 darwin*) # darwin 5.x on
8399 # if running on 10.5 or later, the deployment target defaults
8400 # to the OS version, if on x86, and 10.4, the deployment
8401 # target defaults to 10.4. Don't you love it?
8402 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8403 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8405 10.[012]*)
8406 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8407 10.*)
8408 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8409 esac
8410 ;;
8411 esac
8412 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8413 _lt_dar_single_mod='$single_module'
8414 fi
8415 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8416 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8417 else
8418 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8419 fi
8420 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8421 _lt_dsymutil='~$DSYMUTIL $lib || :'
8422 else
8423 _lt_dsymutil=
8424 fi
8425 ;;
8426 esac
9c60689e 8427
a243b558
JF
8428ac_ext=c
8429ac_cpp='$CPP $CPPFLAGS'
8430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8432ac_compiler_gnu=$ac_cv_c_compiler_gnu
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8434$as_echo_n "checking how to run the C preprocessor... " >&6; }
8435# On Suns, sometimes $CPP names a directory.
8436if test -n "$CPP" && test -d "$CPP"; then
8437 CPP=
9c60689e 8438fi
a243b558
JF
8439if test -z "$CPP"; then
8440 if ${ac_cv_prog_CPP+:} false; then :
8441 $as_echo_n "(cached) " >&6
8442else
8443 # Double quotes because CPP needs to be expanded
8444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8445 do
8446 ac_preproc_ok=false
8447for ac_c_preproc_warn_flag in '' yes
8448do
8449 # Use a header file that comes with gcc, so configuring glibc
8450 # with a fresh cross-compiler works.
8451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8452 # <limits.h> exists even on freestanding compilers.
8453 # On the NeXT, cc -E runs the code through the compiler's parser,
8454 # not just through cpp. "Syntax error" is here to catch this case.
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456/* end confdefs.h. */
8457#ifdef __STDC__
8458# include <limits.h>
8459#else
8460# include <assert.h>
8461#endif
8462 Syntax error
8463_ACEOF
8464if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8465
a243b558
JF
8466else
8467 # Broken: fails on valid input.
8468continue
8469fi
8470rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8471
a243b558
JF
8472 # OK, works on sane cases. Now check whether nonexistent headers
8473 # can be detected and how.
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475/* end confdefs.h. */
8476#include <ac_nonexistent.h>
8477_ACEOF
8478if ac_fn_c_try_cpp "$LINENO"; then :
8479 # Broken: success on invalid input.
8480continue
8481else
8482 # Passes both tests.
8483ac_preproc_ok=:
8484break
8485fi
8486rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8487
a243b558
JF
8488done
8489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8490rm -f conftest.i conftest.err conftest.$ac_ext
8491if $ac_preproc_ok; then :
8492 break
8493fi
9c60689e 8494
a243b558
JF
8495 done
8496 ac_cv_prog_CPP=$CPP
9c60689e 8497
a243b558
JF
8498fi
8499 CPP=$ac_cv_prog_CPP
9c60689e 8500else
a243b558
JF
8501 ac_cv_prog_CPP=$CPP
8502fi
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8504$as_echo "$CPP" >&6; }
8505ac_preproc_ok=false
8506for ac_c_preproc_warn_flag in '' yes
8507do
8508 # Use a header file that comes with gcc, so configuring glibc
8509 # with a fresh cross-compiler works.
8510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8511 # <limits.h> exists even on freestanding compilers.
8512 # On the NeXT, cc -E runs the code through the compiler's parser,
8513 # not just through cpp. "Syntax error" is here to catch this case.
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h. */
8516#ifdef __STDC__
8517# include <limits.h>
8518#else
8519# include <assert.h>
8520#endif
8521 Syntax error
8522_ACEOF
8523if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8524
a243b558
JF
8525else
8526 # Broken: fails on valid input.
8527continue
9c60689e 8528fi
a243b558 8529rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8530
a243b558
JF
8531 # OK, works on sane cases. Now check whether nonexistent headers
8532 # can be detected and how.
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534/* end confdefs.h. */
8535#include <ac_nonexistent.h>
8536_ACEOF
8537if ac_fn_c_try_cpp "$LINENO"; then :
8538 # Broken: success on invalid input.
8539continue
8540else
8541 # Passes both tests.
8542ac_preproc_ok=:
8543break
8544fi
8545rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8546
a243b558
JF
8547done
8548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8549rm -f conftest.i conftest.err conftest.$ac_ext
8550if $ac_preproc_ok; then :
9c60689e 8551
a243b558
JF
8552else
8553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8555as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8556See \`config.log' for more details" "$LINENO" 5; }
8557fi
9c60689e 8558
a243b558
JF
8559ac_ext=c
8560ac_cpp='$CPP $CPPFLAGS'
8561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8564
8565
a243b558
JF
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8567$as_echo_n "checking for ANSI C header files... " >&6; }
8568if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8569 $as_echo_n "(cached) " >&6
8570else
a243b558
JF
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572/* end confdefs.h. */
8573#include <stdlib.h>
8574#include <stdarg.h>
8575#include <string.h>
8576#include <float.h>
9c60689e 8577
a243b558
JF
8578int
8579main ()
8580{
9c60689e 8581
a243b558
JF
8582 ;
8583 return 0;
8584}
8585_ACEOF
8586if ac_fn_c_try_compile "$LINENO"; then :
8587 ac_cv_header_stdc=yes
8588else
8589 ac_cv_header_stdc=no
9c60689e 8590fi
a243b558
JF
8591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592
8593if test $ac_cv_header_stdc = yes; then
8594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596/* end confdefs.h. */
8597#include <string.h>
9c60689e 8598
a243b558
JF
8599_ACEOF
8600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8601 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8602
a243b558
JF
8603else
8604 ac_cv_header_stdc=no
8605fi
8606rm -f conftest*
9c60689e 8607
a243b558
JF
8608fi
8609
8610if test $ac_cv_header_stdc = yes; then
8611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613/* end confdefs.h. */
8614#include <stdlib.h>
8615
8616_ACEOF
8617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8618 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8619
9c60689e 8620else
a243b558 8621 ac_cv_header_stdc=no
9c60689e 8622fi
a243b558 8623rm -f conftest*
9c60689e 8624
a243b558 8625fi
9c60689e 8626
a243b558
JF
8627if test $ac_cv_header_stdc = yes; then
8628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8629 if test "$cross_compiling" = yes; then :
8630 :
8631else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h. */
8634#include <ctype.h>
8635#include <stdlib.h>
8636#if ((' ' & 0x0FF) == 0x020)
8637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8639#else
8640# define ISLOWER(c) \
8641 (('a' <= (c) && (c) <= 'i') \
8642 || ('j' <= (c) && (c) <= 'r') \
8643 || ('s' <= (c) && (c) <= 'z'))
8644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8645#endif
9c60689e 8646
a243b558
JF
8647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8648int
8649main ()
8650{
8651 int i;
8652 for (i = 0; i < 256; i++)
8653 if (XOR (islower (i), ISLOWER (i))
8654 || toupper (i) != TOUPPER (i))
8655 return 2;
8656 return 0;
8657}
8658_ACEOF
8659if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8660
a243b558
JF
8661else
8662 ac_cv_header_stdc=no
8663fi
8664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8665 conftest.$ac_objext conftest.beam conftest.$ac_ext
8666fi
9c60689e 8667
a243b558
JF
8668fi
8669fi
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8671$as_echo "$ac_cv_header_stdc" >&6; }
8672if test $ac_cv_header_stdc = yes; then
9c60689e 8673
a243b558 8674$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8675
a243b558 8676fi
9c60689e 8677
a243b558
JF
8678# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8679for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8680 inttypes.h stdint.h unistd.h
8681do :
8682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8683ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8684"
8685if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8686 cat >>confdefs.h <<_ACEOF
8687#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8688_ACEOF
9c60689e 8689
a243b558 8690fi
ee134472 8691
a243b558 8692done
ee134472 8693
9c60689e 8694
a243b558
JF
8695for ac_header in dlfcn.h
8696do :
8697 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8698"
8699if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8700 cat >>confdefs.h <<_ACEOF
8701#define HAVE_DLFCN_H 1
8702_ACEOF
9c60689e 8703
a243b558 8704fi
9c60689e 8705
a243b558 8706done
9c60689e 8707
9c60689e 8708
9c60689e 8709
9c60689e 8710
a243b558
JF
8711func_stripname_cnf ()
8712{
8713 case ${2} in
8714 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8715 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8716 esac
8717} # func_stripname_cnf
9c60689e 8718
9c60689e 8719
ee134472 8720
a243b558
JF
8721
8722
8723# Set options
8724# Check whether --enable-static was given.
8725if test "${enable_static+set}" = set; then :
8726 enableval=$enable_static; p=${PACKAGE-default}
8727 case $enableval in
8728 yes) enable_static=yes ;;
8729 no) enable_static=no ;;
8730 *)
8731 enable_static=no
8732 # Look at the argument we got. We use all the common list separators.
8733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8734 for pkg in $enableval; do
8735 IFS="$lt_save_ifs"
8736 if test "X$pkg" = "X$p"; then
8737 enable_static=yes
8738 fi
8739 done
8740 IFS="$lt_save_ifs"
9c60689e 8741 ;;
a243b558
JF
8742 esac
8743else
8744 enable_static=no
8745fi
9c60689e 8746
9c60689e 8747
9c60689e 8748
9c60689e 8749
9c60689e 8750
9c60689e 8751
9c60689e 8752
9c60689e 8753
9c60689e 8754
9c60689e 8755
a243b558 8756 enable_dlopen=no
9c60689e 8757
9c60689e 8758
a243b558
JF
8759 enable_win32_dll=no
8760
8761
8762 # Check whether --enable-shared was given.
8763if test "${enable_shared+set}" = set; then :
8764 enableval=$enable_shared; p=${PACKAGE-default}
8765 case $enableval in
8766 yes) enable_shared=yes ;;
8767 no) enable_shared=no ;;
9c60689e 8768 *)
a243b558
JF
8769 enable_shared=no
8770 # Look at the argument we got. We use all the common list separators.
8771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8772 for pkg in $enableval; do
8773 IFS="$lt_save_ifs"
8774 if test "X$pkg" = "X$p"; then
8775 enable_shared=yes
8776 fi
8777 done
8778 IFS="$lt_save_ifs"
9c60689e
DWT
8779 ;;
8780 esac
a243b558
JF
8781else
8782 enable_shared=yes
8783fi
9c60689e 8784
9c60689e 8785
9c60689e 8786
9c60689e 8787
9c60689e 8788
9c60689e 8789
9c60689e 8790
9c60689e 8791
9c60689e 8792
9c60689e 8793
9c60689e 8794
a243b558
JF
8795# Check whether --with-pic was given.
8796if test "${with_pic+set}" = set; then :
8797 withval=$with_pic; lt_p=${PACKAGE-default}
8798 case $withval in
8799 yes|no) pic_mode=$withval ;;
8800 *)
8801 pic_mode=default
8802 # Look at the argument we got. We use all the common list separators.
8803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8804 for lt_pkg in $withval; do
8805 IFS="$lt_save_ifs"
8806 if test "X$lt_pkg" = "X$lt_p"; then
8807 pic_mode=yes
8808 fi
8809 done
8810 IFS="$lt_save_ifs"
8811 ;;
8812 esac
8813else
8814 pic_mode=default
9c60689e 8815fi
ee134472 8816
ee134472 8817
a243b558 8818test -z "$pic_mode" && pic_mode=default
9c60689e 8819
9c60689e 8820
9c60689e 8821
9c60689e 8822
ee134472 8823
ee134472 8824
9c60689e 8825
a243b558
JF
8826 # Check whether --enable-fast-install was given.
8827if test "${enable_fast_install+set}" = set; then :
8828 enableval=$enable_fast_install; p=${PACKAGE-default}
8829 case $enableval in
8830 yes) enable_fast_install=yes ;;
8831 no) enable_fast_install=no ;;
8832 *)
8833 enable_fast_install=no
8834 # Look at the argument we got. We use all the common list separators.
8835 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8836 for pkg in $enableval; do
8837 IFS="$lt_save_ifs"
8838 if test "X$pkg" = "X$p"; then
8839 enable_fast_install=yes
9c60689e 8840 fi
a243b558
JF
8841 done
8842 IFS="$lt_save_ifs"
9c60689e 8843 ;;
a243b558
JF
8844 esac
8845else
8846 enable_fast_install=yes
8847fi
9c60689e 8848
9c60689e 8849
9c60689e 8850
9c60689e 8851
9c60689e
DWT
8852
8853
53ba6704 8854
9c60689e 8855
9c60689e 8856
9c60689e 8857
9c60689e 8858
a243b558
JF
8859# This can be used to rebuild libtool when needed
8860LIBTOOL_DEPS="$ltmain"
9c60689e 8861
a243b558
JF
8862# Always use our own libtool.
8863LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 8864
9c60689e 8865
9c60689e 8866
9c60689e 8867
9c60689e 8868
ee134472 8869
ee134472 8870
ee134472 8871
ee134472 8872
9c60689e 8873
9c60689e 8874
9c60689e 8875
9c60689e 8876
9c60689e 8877
9c60689e 8878
9c60689e 8879
9c60689e 8880
9c60689e 8881
9c60689e 8882
9c60689e 8883
9c60689e 8884
9c60689e 8885
9c60689e 8886
9c60689e 8887
9c60689e 8888
9c60689e 8889
9c60689e 8890
9c60689e 8891
9c60689e 8892
9c60689e 8893
a243b558 8894test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
a243b558
JF
8909if test -n "${ZSH_VERSION+set}" ; then
8910 setopt NO_GLOB_SUBST
8911fi
9c60689e 8912
a243b558
JF
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8914$as_echo_n "checking for objdir... " >&6; }
8915if ${lt_cv_objdir+:} false; then :
ee134472
JF
8916 $as_echo_n "(cached) " >&6
8917else
a243b558
JF
8918 rm -f .libs 2>/dev/null
8919mkdir .libs 2>/dev/null
8920if test -d .libs; then
8921 lt_cv_objdir=.libs
8922else
8923 # MS-DOS does not allow filenames that begin with a dot.
8924 lt_cv_objdir=_libs
ee134472 8925fi
a243b558
JF
8926rmdir .libs 2>/dev/null
8927fi
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8929$as_echo "$lt_cv_objdir" >&6; }
8930objdir=$lt_cv_objdir
9c60689e
DWT
8931
8932
8933
8934
8935
a243b558
JF
8936cat >>confdefs.h <<_ACEOF
8937#define LT_OBJDIR "$lt_cv_objdir/"
8938_ACEOF
9c60689e
DWT
8939
8940
8941
8942
a243b558
JF
8943case $host_os in
8944aix3*)
8945 # AIX sometimes has problems with the GCC collect2 program. For some
8946 # reason, if we set the COLLECT_NAMES environment variable, the problems
8947 # vanish in a puff of smoke.
8948 if test "X${COLLECT_NAMES+set}" != Xset; then
8949 COLLECT_NAMES=
8950 export COLLECT_NAMES
8951 fi
8952 ;;
8953esac
9c60689e 8954
a243b558
JF
8955# Global variables:
8956ofile=libtool
8957can_build_shared=yes
9c60689e 8958
a243b558
JF
8959# All known linkers require a `.a' archive for static linking (except MSVC,
8960# which needs '.lib').
8961libext=a
9c60689e 8962
a243b558 8963with_gnu_ld="$lt_cv_prog_gnu_ld"
9c60689e 8964
a243b558
JF
8965old_CC="$CC"
8966old_CFLAGS="$CFLAGS"
9c60689e 8967
a243b558
JF
8968# Set sane defaults for various variables
8969test -z "$CC" && CC=cc
8970test -z "$LTCC" && LTCC=$CC
8971test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8972test -z "$LD" && LD=ld
8973test -z "$ac_objext" && ac_objext=o
9c60689e 8974
a243b558
JF
8975for cc_temp in $compiler""; do
8976 case $cc_temp in
8977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8979 \-*) ;;
8980 *) break;;
8981 esac
8982done
8983cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
8984
8985
a243b558
JF
8986# Only perform the check for file, if the check method requires it
8987test -z "$MAGIC_CMD" && MAGIC_CMD=file
8988case $deplibs_check_method in
8989file_magic*)
8990 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8992$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8993if ${lt_cv_path_MAGIC_CMD+:} false; then :
8994 $as_echo_n "(cached) " >&6
8995else
8996 case $MAGIC_CMD in
8997[\\/*] | ?:[\\/]*)
8998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8999 ;;
9000*)
9001 lt_save_MAGIC_CMD="$MAGIC_CMD"
9002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9004 for ac_dir in $ac_dummy; do
9005 IFS="$lt_save_ifs"
9006 test -z "$ac_dir" && ac_dir=.
9007 if test -f $ac_dir/${ac_tool_prefix}file; then
9008 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9009 if test -n "$file_magic_test_file"; then
9010 case $deplibs_check_method in
9011 "file_magic "*)
9012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9015 $EGREP "$file_magic_regex" > /dev/null; then
9016 :
9017 else
9018 cat <<_LT_EOF 1>&2
9c60689e 9019
a243b558
JF
9020*** Warning: the command libtool uses to detect shared libraries,
9021*** $file_magic_cmd, produces output that libtool cannot recognize.
9022*** The result is that libtool may fail to recognize shared libraries
9023*** as such. This will affect the creation of libtool libraries that
9024*** depend on shared libraries, but programs linked with such libtool
9025*** libraries will work regardless of this problem. Nevertheless, you
9026*** may want to report the problem to your system manager and/or to
9027*** bug-libtool@gnu.org
9c60689e 9028
a243b558
JF
9029_LT_EOF
9030 fi ;;
9031 esac
9032 fi
9033 break
9034 fi
9035 done
9036 IFS="$lt_save_ifs"
9037 MAGIC_CMD="$lt_save_MAGIC_CMD"
9038 ;;
9039esac
9040fi
9c60689e 9041
a243b558
JF
9042MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9043if test -n "$MAGIC_CMD"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9045$as_echo "$MAGIC_CMD" >&6; }
9046else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048$as_echo "no" >&6; }
9049fi
9c60689e
DWT
9050
9051
9052
9053
9054
a243b558
JF
9055if test -z "$lt_cv_path_MAGIC_CMD"; then
9056 if test -n "$ac_tool_prefix"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9058$as_echo_n "checking for file... " >&6; }
9059if ${lt_cv_path_MAGIC_CMD+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061else
9062 case $MAGIC_CMD in
9063[\\/*] | ?:[\\/]*)
9064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9065 ;;
9066*)
9067 lt_save_MAGIC_CMD="$MAGIC_CMD"
9068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9070 for ac_dir in $ac_dummy; do
9071 IFS="$lt_save_ifs"
9072 test -z "$ac_dir" && ac_dir=.
9073 if test -f $ac_dir/file; then
9074 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9075 if test -n "$file_magic_test_file"; then
9076 case $deplibs_check_method in
9077 "file_magic "*)
9078 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9081 $EGREP "$file_magic_regex" > /dev/null; then
9082 :
9083 else
9084 cat <<_LT_EOF 1>&2
9c60689e 9085
a243b558
JF
9086*** Warning: the command libtool uses to detect shared libraries,
9087*** $file_magic_cmd, produces output that libtool cannot recognize.
9088*** The result is that libtool may fail to recognize shared libraries
9089*** as such. This will affect the creation of libtool libraries that
9090*** depend on shared libraries, but programs linked with such libtool
9091*** libraries will work regardless of this problem. Nevertheless, you
9092*** may want to report the problem to your system manager and/or to
9093*** bug-libtool@gnu.org
9c60689e 9094
a243b558
JF
9095_LT_EOF
9096 fi ;;
9097 esac
9098 fi
9099 break
9100 fi
9101 done
9102 IFS="$lt_save_ifs"
9103 MAGIC_CMD="$lt_save_MAGIC_CMD"
9104 ;;
9105esac
9106fi
9c60689e 9107
a243b558
JF
9108MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9109if test -n "$MAGIC_CMD"; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9111$as_echo "$MAGIC_CMD" >&6; }
9112else
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114$as_echo "no" >&6; }
9115fi
9c60689e
DWT
9116
9117
a243b558
JF
9118 else
9119 MAGIC_CMD=:
9120 fi
9121fi
9c60689e 9122
a243b558
JF
9123 fi
9124 ;;
9125esac
9c60689e 9126
a243b558 9127# Use C for the default configuration in the libtool script
9c60689e 9128
a243b558
JF
9129lt_save_CC="$CC"
9130ac_ext=c
9131ac_cpp='$CPP $CPPFLAGS'
9132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9134ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
9135
9136
a243b558
JF
9137# Source file extension for C test sources.
9138ac_ext=c
9c60689e 9139
a243b558
JF
9140# Object file extension for compiled C test sources.
9141objext=o
9142objext=$objext
9c60689e 9143
a243b558
JF
9144# Code to be used in simple compile tests
9145lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9146
a243b558
JF
9147# Code to be used in simple link tests
9148lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9149
9150
9151
9152
9153
9154
9155
a243b558
JF
9156# If no C compiler was specified, use CC.
9157LTCC=${LTCC-"$CC"}
9c60689e 9158
a243b558
JF
9159# If no C compiler flags were specified, use CFLAGS.
9160LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9161
a243b558
JF
9162# Allow CC to be a program name with arguments.
9163compiler=$CC
9c60689e 9164
a243b558
JF
9165# Save the default compiler, since it gets overwritten when the other
9166# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9167compiler_DEFAULT=$CC
9c60689e 9168
a243b558
JF
9169# save warnings/boilerplate of simple test code
9170ac_outfile=conftest.$ac_objext
9171echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9172eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9173_lt_compiler_boilerplate=`cat conftest.err`
00a96142 9174$RM -r conftest*
9c60689e 9175
a243b558
JF
9176ac_outfile=conftest.$ac_objext
9177echo "$lt_simple_link_test_code" >conftest.$ac_ext
9178eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9179_lt_linker_boilerplate=`cat conftest.err`
9180$RM -r conftest*
9c60689e
DWT
9181
9182
a243b558
JF
9183## CAVEAT EMPTOR:
9184## There is no encapsulation within the following macros, do not change
9185## the running order or otherwise move them around unless you know exactly
9186## what you are doing...
9187if test -n "$compiler"; then
9c60689e 9188
a243b558 9189lt_prog_compiler_no_builtin_flag=
9c60689e 9190
a243b558
JF
9191if test "$GCC" = yes; then
9192 case $cc_basename in
9193 nvcc*)
9194 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9195 *)
9196 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9197 esac
9c60689e 9198
a243b558
JF
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9200$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9201if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9202 $as_echo_n "(cached) " >&6
9203else
9204 lt_cv_prog_compiler_rtti_exceptions=no
9205 ac_outfile=conftest.$ac_objext
9206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9207 lt_compiler_flag="-fno-rtti -fno-exceptions"
9208 # Insert the option either (1) after the last *FLAGS variable, or
9209 # (2) before a word containing "conftest.", or (3) at the end.
9210 # Note that $ac_compile itself does not contain backslashes and begins
9211 # with a dollar sign (not a hyphen), so the echo should work correctly.
9212 # The option is referenced via a variable to avoid confusing sed.
9213 lt_compile=`echo "$ac_compile" | $SED \
9214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9216 -e 's:$: $lt_compiler_flag:'`
9217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9218 (eval "$lt_compile" 2>conftest.err)
9219 ac_status=$?
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 if (exit $ac_status) && test -s "$ac_outfile"; then
9223 # The compiler can only warn and ignore the option if not recognized
9224 # So say no if there are warnings other than the usual output.
9225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9227 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9228 lt_cv_prog_compiler_rtti_exceptions=yes
9229 fi
9230 fi
00a96142 9231 $RM -r conftest*
9c60689e 9232
a243b558
JF
9233fi
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9235$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9236
a243b558
JF
9237if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9238 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9239else
9240 :
9241fi
9c60689e 9242
a243b558 9243fi
9c60689e
DWT
9244
9245
9246
9247
9248
9249
a243b558
JF
9250 lt_prog_compiler_wl=
9251lt_prog_compiler_pic=
9252lt_prog_compiler_static=
9c60689e
DWT
9253
9254
a243b558
JF
9255 if test "$GCC" = yes; then
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_static='-static'
9c60689e 9258
a243b558
JF
9259 case $host_os in
9260 aix*)
9261 # All AIX code is PIC.
9262 if test "$host_cpu" = ia64; then
9263 # AIX 5 now supports IA64 processor
9264 lt_prog_compiler_static='-Bstatic'
9265 fi
9266 ;;
9c60689e 9267
a243b558
JF
9268 amigaos*)
9269 case $host_cpu in
9270 powerpc)
9271 # see comment about AmigaOS4 .so support
9272 lt_prog_compiler_pic='-fPIC'
9273 ;;
9274 m68k)
9275 # FIXME: we need at least 68020 code to build shared libraries, but
9276 # adding the `-m68020' flag to GCC prevents building anything better,
9277 # like `-m68040'.
9278 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9279 ;;
9280 esac
9281 ;;
9c60689e 9282
a243b558
JF
9283 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9284 # PIC is the default for these OSes.
9285 ;;
9c60689e 9286
a243b558
JF
9287 mingw* | cygwin* | pw32* | os2* | cegcc*)
9288 # This hack is so that the source file can tell whether it is being
9289 # built for inclusion in a dll (and should export symbols for example).
9290 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9291 # (--disable-auto-import) libraries
9292 lt_prog_compiler_pic='-DDLL_EXPORT'
9293 ;;
9c60689e 9294
a243b558
JF
9295 darwin* | rhapsody*)
9296 # PIC is the default on this platform
9297 # Common symbols not allowed in MH_DYLIB files
9298 lt_prog_compiler_pic='-fno-common'
9299 ;;
9c60689e 9300
a243b558
JF
9301 haiku*)
9302 # PIC is the default for Haiku.
9303 # The "-static" flag exists, but is broken.
9304 lt_prog_compiler_static=
9305 ;;
9c60689e 9306
a243b558
JF
9307 hpux*)
9308 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9309 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9310 # sets the default TLS model and affects inlining.
9311 case $host_cpu in
9312 hppa*64*)
9313 # +Z the default
9314 ;;
9315 *)
9316 lt_prog_compiler_pic='-fPIC'
9317 ;;
9318 esac
9319 ;;
9c60689e 9320
a243b558
JF
9321 interix[3-9]*)
9322 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9323 # Instead, we relocate shared libraries at runtime.
9324 ;;
9c60689e 9325
a243b558
JF
9326 msdosdjgpp*)
9327 # Just because we use GCC doesn't mean we suddenly get shared libraries
9328 # on systems that don't support them.
9329 lt_prog_compiler_can_build_shared=no
9330 enable_shared=no
9331 ;;
9c60689e 9332
a243b558
JF
9333 *nto* | *qnx*)
9334 # QNX uses GNU C++, but need to define -shared option too, otherwise
9335 # it will coredump.
9336 lt_prog_compiler_pic='-fPIC -shared'
9337 ;;
9c60689e 9338
a243b558
JF
9339 sysv4*MP*)
9340 if test -d /usr/nec; then
9341 lt_prog_compiler_pic=-Kconform_pic
9342 fi
9343 ;;
9c60689e 9344
a243b558
JF
9345 *)
9346 lt_prog_compiler_pic='-fPIC'
9347 ;;
9348 esac
9c60689e 9349
a243b558
JF
9350 case $cc_basename in
9351 nvcc*) # Cuda Compiler Driver 2.2
9352 lt_prog_compiler_wl='-Xlinker '
9353 if test -n "$lt_prog_compiler_pic"; then
9354 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9355 fi
9356 ;;
9357 esac
9358 else
9359 # PORTME Check for flag to pass linker flags through the system compiler.
9360 case $host_os in
9361 aix*)
9362 lt_prog_compiler_wl='-Wl,'
9363 if test "$host_cpu" = ia64; then
9364 # AIX 5 now supports IA64 processor
9365 lt_prog_compiler_static='-Bstatic'
9366 else
9367 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9368 fi
9369 ;;
9c60689e 9370
a243b558
JF
9371 mingw* | cygwin* | pw32* | os2* | cegcc*)
9372 # This hack is so that the source file can tell whether it is being
9373 # built for inclusion in a dll (and should export symbols for example).
9374 lt_prog_compiler_pic='-DDLL_EXPORT'
9375 ;;
9c60689e 9376
a243b558
JF
9377 hpux9* | hpux10* | hpux11*)
9378 lt_prog_compiler_wl='-Wl,'
9379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9380 # not for PA HP-UX.
9381 case $host_cpu in
9382 hppa*64*|ia64*)
9383 # +Z the default
9384 ;;
9385 *)
9386 lt_prog_compiler_pic='+Z'
9387 ;;
9388 esac
9389 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9390 lt_prog_compiler_static='${wl}-a ${wl}archive'
9391 ;;
9c60689e 9392
a243b558
JF
9393 irix5* | irix6* | nonstopux*)
9394 lt_prog_compiler_wl='-Wl,'
9395 # PIC (with -KPIC) is the default.
9396 lt_prog_compiler_static='-non_shared'
9397 ;;
9c60689e 9398
a243b558
JF
9399 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9400 case $cc_basename in
9401 # old Intel for x86_64 which still supported -KPIC.
9402 ecc*)
9403 lt_prog_compiler_wl='-Wl,'
9404 lt_prog_compiler_pic='-KPIC'
9405 lt_prog_compiler_static='-static'
9406 ;;
9407 # icc used to be incompatible with GCC.
9408 # ICC 10 doesn't accept -KPIC any more.
9409 icc* | ifort*)
9410 lt_prog_compiler_wl='-Wl,'
9411 lt_prog_compiler_pic='-fPIC'
9412 lt_prog_compiler_static='-static'
9413 ;;
9414 # Lahey Fortran 8.1.
9415 lf95*)
9416 lt_prog_compiler_wl='-Wl,'
9417 lt_prog_compiler_pic='--shared'
9418 lt_prog_compiler_static='--static'
9419 ;;
9420 nagfor*)
9421 # NAG Fortran compiler
9422 lt_prog_compiler_wl='-Wl,-Wl,,'
9423 lt_prog_compiler_pic='-PIC'
9424 lt_prog_compiler_static='-Bstatic'
9425 ;;
9426 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9427 # Portland Group compilers (*not* the Pentium gcc compiler,
9428 # which looks to be a dead project)
9429 lt_prog_compiler_wl='-Wl,'
9430 lt_prog_compiler_pic='-fpic'
9431 lt_prog_compiler_static='-Bstatic'
9432 ;;
9433 ccc*)
9434 lt_prog_compiler_wl='-Wl,'
9435 # All Alpha code is PIC.
9436 lt_prog_compiler_static='-non_shared'
9437 ;;
9438 xl* | bgxl* | bgf* | mpixl*)
9439 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9440 lt_prog_compiler_wl='-Wl,'
9441 lt_prog_compiler_pic='-qpic'
9442 lt_prog_compiler_static='-qstaticlink'
9443 ;;
9444 *)
9445 case `$CC -V 2>&1 | sed 5q` in
9446 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9447 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9448 lt_prog_compiler_pic='-KPIC'
9449 lt_prog_compiler_static='-Bstatic'
9450 lt_prog_compiler_wl=''
9451 ;;
9452 *Sun\ F* | *Sun*Fortran*)
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 lt_prog_compiler_wl='-Qoption ld '
9456 ;;
9457 *Sun\ C*)
9458 # Sun C 5.9
9459 lt_prog_compiler_pic='-KPIC'
9460 lt_prog_compiler_static='-Bstatic'
9461 lt_prog_compiler_wl='-Wl,'
9462 ;;
9463 *Intel*\ [CF]*Compiler*)
9464 lt_prog_compiler_wl='-Wl,'
9465 lt_prog_compiler_pic='-fPIC'
9466 lt_prog_compiler_static='-static'
9467 ;;
9468 *Portland\ Group*)
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_pic='-fpic'
9471 lt_prog_compiler_static='-Bstatic'
9472 ;;
9473 esac
9474 ;;
9475 esac
9476 ;;
9c60689e 9477
a243b558
JF
9478 newsos6)
9479 lt_prog_compiler_pic='-KPIC'
9480 lt_prog_compiler_static='-Bstatic'
9481 ;;
9c60689e 9482
a243b558
JF
9483 *nto* | *qnx*)
9484 # QNX uses GNU C++, but need to define -shared option too, otherwise
9485 # it will coredump.
9486 lt_prog_compiler_pic='-fPIC -shared'
9487 ;;
9c60689e 9488
a243b558
JF
9489 osf3* | osf4* | osf5*)
9490 lt_prog_compiler_wl='-Wl,'
9491 # All OSF/1 code is PIC.
9492 lt_prog_compiler_static='-non_shared'
9493 ;;
9c60689e 9494
a243b558
JF
9495 rdos*)
9496 lt_prog_compiler_static='-non_shared'
9497 ;;
9c60689e 9498
a243b558
JF
9499 solaris*)
9500 lt_prog_compiler_pic='-KPIC'
9501 lt_prog_compiler_static='-Bstatic'
9502 case $cc_basename in
9503 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9504 lt_prog_compiler_wl='-Qoption ld ';;
9505 *)
9506 lt_prog_compiler_wl='-Wl,';;
9507 esac
9508 ;;
9c60689e 9509
a243b558
JF
9510 sunos4*)
9511 lt_prog_compiler_wl='-Qoption ld '
9512 lt_prog_compiler_pic='-PIC'
9513 lt_prog_compiler_static='-Bstatic'
9514 ;;
9c60689e 9515
a243b558
JF
9516 sysv4 | sysv4.2uw2* | sysv4.3*)
9517 lt_prog_compiler_wl='-Wl,'
9518 lt_prog_compiler_pic='-KPIC'
9519 lt_prog_compiler_static='-Bstatic'
9520 ;;
9c60689e 9521
a243b558
JF
9522 sysv4*MP*)
9523 if test -d /usr/nec ;then
9524 lt_prog_compiler_pic='-Kconform_pic'
9525 lt_prog_compiler_static='-Bstatic'
9526 fi
9527 ;;
9c60689e 9528
a243b558
JF
9529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9530 lt_prog_compiler_wl='-Wl,'
9531 lt_prog_compiler_pic='-KPIC'
9532 lt_prog_compiler_static='-Bstatic'
9533 ;;
9c60689e 9534
a243b558
JF
9535 unicos*)
9536 lt_prog_compiler_wl='-Wl,'
9537 lt_prog_compiler_can_build_shared=no
9538 ;;
9c60689e 9539
a243b558
JF
9540 uts4*)
9541 lt_prog_compiler_pic='-pic'
9542 lt_prog_compiler_static='-Bstatic'
9543 ;;
9c60689e 9544
a243b558
JF
9545 *)
9546 lt_prog_compiler_can_build_shared=no
9547 ;;
9548 esac
9549 fi
9c60689e 9550
a243b558
JF
9551case $host_os in
9552 # For platforms which do not support PIC, -DPIC is meaningless:
9553 *djgpp*)
9554 lt_prog_compiler_pic=
9555 ;;
9556 *)
9557 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9558 ;;
9559esac
9c60689e 9560
a243b558
JF
9561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9562$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9563if ${lt_cv_prog_compiler_pic+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565else
9566 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9567fi
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9569$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9570lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9571
a243b558
JF
9572#
9573# Check to make sure the PIC flag actually works.
9574#
9575if test -n "$lt_prog_compiler_pic"; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9577$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9578if ${lt_cv_prog_compiler_pic_works+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580else
9581 lt_cv_prog_compiler_pic_works=no
9582 ac_outfile=conftest.$ac_objext
9583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9584 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9585 # Insert the option either (1) after the last *FLAGS variable, or
9586 # (2) before a word containing "conftest.", or (3) at the end.
9587 # Note that $ac_compile itself does not contain backslashes and begins
9588 # with a dollar sign (not a hyphen), so the echo should work correctly.
9589 # The option is referenced via a variable to avoid confusing sed.
9590 lt_compile=`echo "$ac_compile" | $SED \
9591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9593 -e 's:$: $lt_compiler_flag:'`
9594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9595 (eval "$lt_compile" 2>conftest.err)
9596 ac_status=$?
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 if (exit $ac_status) && test -s "$ac_outfile"; then
9600 # The compiler can only warn and ignore the option if not recognized
9601 # So say no if there are warnings other than the usual output.
9602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9605 lt_cv_prog_compiler_pic_works=yes
9606 fi
9607 fi
00a96142 9608 $RM -r conftest*
9c60689e 9609
a243b558
JF
9610fi
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9612$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9613
a243b558
JF
9614if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9615 case $lt_prog_compiler_pic in
9616 "" | " "*) ;;
9617 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9618 esac
9619else
9620 lt_prog_compiler_pic=
9621 lt_prog_compiler_can_build_shared=no
9622fi
9c60689e 9623
a243b558 9624fi
9c60689e
DWT
9625
9626
9627
9628
9629
9630
9c60689e
DWT
9631
9632
9633
9634
9635
a243b558
JF
9636#
9637# Check to make sure the static flag actually works.
9638#
9639wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9641$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9642if ${lt_cv_prog_compiler_static_works+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644else
9645 lt_cv_prog_compiler_static_works=no
9646 save_LDFLAGS="$LDFLAGS"
9647 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9648 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9650 # The linker can only warn and ignore the option if not recognized
9651 # So say no if there are warnings
9652 if test -s conftest.err; then
9653 # Append any errors to the config.log.
9654 cat conftest.err 1>&5
9655 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9657 if diff conftest.exp conftest.er2 >/dev/null; then
9658 lt_cv_prog_compiler_static_works=yes
9659 fi
9660 else
9661 lt_cv_prog_compiler_static_works=yes
9662 fi
9663 fi
9664 $RM -r conftest*
9665 LDFLAGS="$save_LDFLAGS"
9c60689e 9666
a243b558
JF
9667fi
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9669$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9670
a243b558
JF
9671if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9672 :
9c60689e 9673else
a243b558 9674 lt_prog_compiler_static=
9c60689e 9675fi
9c60689e 9676
9c60689e 9677
9c60689e 9678
9c60689e 9679
9c60689e 9680
9c60689e 9681
9c60689e 9682
a243b558
JF
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9684$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9685if ${lt_cv_prog_compiler_c_o+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687else
9688 lt_cv_prog_compiler_c_o=no
9689 $RM -r conftest 2>/dev/null
9690 mkdir conftest
9691 cd conftest
9692 mkdir out
9693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9694
a243b558
JF
9695 lt_compiler_flag="-o out/conftest2.$ac_objext"
9696 # Insert the option either (1) after the last *FLAGS variable, or
9697 # (2) before a word containing "conftest.", or (3) at the end.
9698 # Note that $ac_compile itself does not contain backslashes and begins
9699 # with a dollar sign (not a hyphen), so the echo should work correctly.
9700 lt_compile=`echo "$ac_compile" | $SED \
9701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9703 -e 's:$: $lt_compiler_flag:'`
9704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9705 (eval "$lt_compile" 2>out/conftest.err)
9706 ac_status=$?
9707 cat out/conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9710 then
9711 # The compiler can only warn and ignore the option if not recognized
9712 # So say no if there are warnings
9713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9714 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9715 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9716 lt_cv_prog_compiler_c_o=yes
9717 fi
9718 fi
9719 chmod u+w . 2>&5
00a96142 9720 $RM -r conftest*
a243b558
JF
9721 # SGI C++ compiler will create directory out/ii_files/ for
9722 # template instantiation
9723 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9724 $RM out/* && rmdir out
9725 cd ..
9726 $RM -r conftest
00a96142 9727 $RM -r conftest*
9c60689e 9728
a243b558
JF
9729fi
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9731$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9732
ee134472 9733
ee134472 9734
ee134472 9735
ee134472 9736
9c60689e 9737
a243b558
JF
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9739$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9740if ${lt_cv_prog_compiler_c_o+:} false; then :
9741 $as_echo_n "(cached) " >&6
9742else
9743 lt_cv_prog_compiler_c_o=no
9744 $RM -r conftest 2>/dev/null
9745 mkdir conftest
9746 cd conftest
9747 mkdir out
9748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9749
a243b558
JF
9750 lt_compiler_flag="-o out/conftest2.$ac_objext"
9751 # Insert the option either (1) after the last *FLAGS variable, or
9752 # (2) before a word containing "conftest.", or (3) at the end.
9753 # Note that $ac_compile itself does not contain backslashes and begins
9754 # with a dollar sign (not a hyphen), so the echo should work correctly.
9755 lt_compile=`echo "$ac_compile" | $SED \
9756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9758 -e 's:$: $lt_compiler_flag:'`
9759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9760 (eval "$lt_compile" 2>out/conftest.err)
9761 ac_status=$?
9762 cat out/conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9765 then
9766 # The compiler can only warn and ignore the option if not recognized
9767 # So say no if there are warnings
9768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9771 lt_cv_prog_compiler_c_o=yes
9772 fi
9773 fi
9774 chmod u+w . 2>&5
00a96142 9775 $RM -r conftest*
a243b558
JF
9776 # SGI C++ compiler will create directory out/ii_files/ for
9777 # template instantiation
9778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9779 $RM out/* && rmdir out
9780 cd ..
9781 $RM -r conftest
00a96142 9782 $RM -r conftest*
9c60689e 9783
a243b558
JF
9784fi
9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9786$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9787
9c60689e 9788
a243b558
JF
9789
9790
9791hard_links="nottested"
9792if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9793 # do not overwrite the value of need_locks provided by the user
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9795$as_echo_n "checking if we can lock with hard links... " >&6; }
9796 hard_links=yes
00a96142 9797 $RM -r conftest*
a243b558
JF
9798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9799 touch conftest.a
9800 ln conftest.a conftest.b 2>&5 || hard_links=no
9801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9803$as_echo "$hard_links" >&6; }
9804 if test "$hard_links" = no; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9806$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9807 need_locks=warn
9c60689e 9808 fi
a243b558
JF
9809else
9810 need_locks=no
9811fi
9c60689e 9812
ee134472 9813
9c60689e 9814
9c60689e 9815
9c60689e 9816
a243b558
JF
9817
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9819$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9820
9821 runpath_var=
9822 allow_undefined_flag=
9823 always_export_symbols=no
9824 archive_cmds=
9825 archive_expsym_cmds=
9826 compiler_needs_object=no
9827 enable_shared_with_static_runtimes=no
9828 export_dynamic_flag_spec=
9829 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9830 hardcode_automatic=no
9831 hardcode_direct=no
9832 hardcode_direct_absolute=no
9833 hardcode_libdir_flag_spec=
9834 hardcode_libdir_separator=
9835 hardcode_minus_L=no
9836 hardcode_shlibpath_var=unsupported
9837 inherit_rpath=no
9838 link_all_deplibs=unknown
9839 module_cmds=
9840 module_expsym_cmds=
9841 old_archive_from_new_cmds=
9842 old_archive_from_expsyms_cmds=
9843 thread_safe_flag_spec=
9844 whole_archive_flag_spec=
9845 # include_expsyms should be a list of space-separated symbols to be *always*
9846 # included in the symbol list
9847 include_expsyms=
9848 # exclude_expsyms can be an extended regexp of symbols to exclude
9849 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9850 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9851 # as well as any symbol that contains `d'.
9852 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9853 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9854 # platforms (ab)use it in PIC code, but their linkers get confused if
9855 # the symbol is explicitly referenced. Since portable code cannot
9856 # rely on this symbol name, it's probably fine to never include it in
9857 # preloaded symbol tables.
9858 # Exclude shared library initialization/finalization symbols.
9859 extract_expsyms_cmds=
9860
9c60689e 9861 case $host_os in
a243b558
JF
9862 cygwin* | mingw* | pw32* | cegcc*)
9863 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9864 # When not using gcc, we currently assume that we are using
9865 # Microsoft Visual C++.
9866 if test "$GCC" != yes; then
9867 with_gnu_ld=no
9868 fi
9c60689e 9869 ;;
a243b558
JF
9870 interix*)
9871 # we just hope/assume this is gcc and not c89 (= MSVC++)
9872 with_gnu_ld=yes
9873 ;;
9874 openbsd*)
9875 with_gnu_ld=no
9c60689e
DWT
9876 ;;
9877 esac
9c60689e 9878
a243b558 9879 ld_shlibs=yes
ee134472 9880
a243b558
JF
9881 # On some targets, GNU ld is compatible enough with the native linker
9882 # that we're better off using the native interface for both.
9883 lt_use_gnu_ld_interface=no
9884 if test "$with_gnu_ld" = yes; then
9885 case $host_os in
9886 aix*)
9887 # The AIX port of GNU ld has always aspired to compatibility
9888 # with the native linker. However, as the warning in the GNU ld
9889 # block says, versions before 2.19.5* couldn't really create working
9890 # shared libraries, regardless of the interface used.
9891 case `$LD -v 2>&1` in
9892 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9893 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9894 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9895 *)
9896 lt_use_gnu_ld_interface=yes
9897 ;;
9898 esac
9899 ;;
9900 *)
9901 lt_use_gnu_ld_interface=yes
9902 ;;
9903 esac
9904 fi
9c60689e 9905
a243b558
JF
9906 if test "$lt_use_gnu_ld_interface" = yes; then
9907 # If archive_cmds runs LD, not CC, wlarc should be empty
9908 wlarc='${wl}'
9c60689e 9909
a243b558
JF
9910 # Set some defaults for GNU ld with shared library support. These
9911 # are reset later if shared libraries are not supported. Putting them
9912 # here allows them to be overridden if necessary.
9913 runpath_var=LD_RUN_PATH
9914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9915 export_dynamic_flag_spec='${wl}--export-dynamic'
9916 # ancient GNU ld didn't support --whole-archive et. al.
9917 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9918 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9919 else
9920 whole_archive_flag_spec=
9921 fi
9922 supports_anon_versioning=no
9923 case `$LD -v 2>&1` in
9924 *GNU\ gold*) supports_anon_versioning=yes ;;
9925 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9926 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9927 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9928 *\ 2.11.*) ;; # other 2.11 versions
9929 *) supports_anon_versioning=yes ;;
9930 esac
ee134472 9931
a243b558
JF
9932 # See if GNU ld supports shared libraries.
9933 case $host_os in
9934 aix[3-9]*)
9935 # On AIX/PPC, the GNU linker is very broken
9936 if test "$host_cpu" != ia64; then
9937 ld_shlibs=no
9938 cat <<_LT_EOF 1>&2
ee134472 9939
a243b558
JF
9940*** Warning: the GNU linker, at least up to release 2.19, is reported
9941*** to be unable to reliably create shared libraries on AIX.
9942*** Therefore, libtool is disabling shared libraries support. If you
9943*** really care for shared libraries, you may want to install binutils
9944*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9945*** You will then need to restart the configuration process.
9c60689e 9946
a243b558
JF
9947_LT_EOF
9948 fi
9949 ;;
9c60689e 9950
a243b558
JF
9951 amigaos*)
9952 case $host_cpu in
9953 powerpc)
9954 # see comment about AmigaOS4 .so support
9955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956 archive_expsym_cmds=''
9957 ;;
9958 m68k)
9959 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)'
9960 hardcode_libdir_flag_spec='-L$libdir'
9961 hardcode_minus_L=yes
9962 ;;
9963 esac
9964 ;;
9c60689e 9965
a243b558
JF
9966 beos*)
9967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968 allow_undefined_flag=unsupported
9969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9970 # support --undefined. This deserves some investigation. FIXME
9971 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972 else
9973 ld_shlibs=no
9974 fi
9975 ;;
9c60689e 9976
a243b558
JF
9977 cygwin* | mingw* | pw32* | cegcc*)
9978 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9979 # as there is no search path for DLLs.
9980 hardcode_libdir_flag_spec='-L$libdir'
9981 export_dynamic_flag_spec='${wl}--export-all-symbols'
9982 allow_undefined_flag=unsupported
9983 always_export_symbols=no
9984 enable_shared_with_static_runtimes=yes
9985 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9986 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 9987
a243b558
JF
9988 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9990 # If the export-symbols file already is a .def file (1st line
9991 # is EXPORTS), use it as is; otherwise, prepend...
9992 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9993 cp $export_symbols $output_objdir/$soname.def;
9994 else
9995 echo EXPORTS > $output_objdir/$soname.def;
9996 cat $export_symbols >> $output_objdir/$soname.def;
9997 fi~
9998 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9999 else
10000 ld_shlibs=no
10001 fi
10002 ;;
9c60689e 10003
a243b558
JF
10004 haiku*)
10005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10006 link_all_deplibs=yes
10007 ;;
9c60689e 10008
a243b558
JF
10009 interix[3-9]*)
10010 hardcode_direct=no
10011 hardcode_shlibpath_var=no
10012 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10013 export_dynamic_flag_spec='${wl}-E'
10014 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10015 # Instead, shared libraries are loaded at an image base (0x10000000 by
10016 # default) and relocated if they conflict, which is a slow very memory
10017 # consuming and fragmenting process. To avoid this, we pick a random,
10018 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10019 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10020 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10021 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'
10022 ;;
9c60689e 10023
a243b558
JF
10024 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10025 tmp_diet=no
10026 if test "$host_os" = linux-dietlibc; then
10027 case $cc_basename in
10028 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10029 esac
10030 fi
10031 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10032 && test "$tmp_diet" = no
10033 then
10034 tmp_addflag=' $pic_flag'
10035 tmp_sharedflag='-shared'
10036 case $cc_basename,$host_cpu in
10037 pgcc*) # Portland Group C compiler
10038 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'
10039 tmp_addflag=' $pic_flag'
10040 ;;
10041 pgf77* | pgf90* | pgf95* | pgfortran*)
10042 # Portland Group f77 and f90 compilers
10043 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'
10044 tmp_addflag=' $pic_flag -Mnomain' ;;
10045 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10046 tmp_addflag=' -i_dynamic' ;;
10047 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10048 tmp_addflag=' -i_dynamic -nofor_main' ;;
10049 ifc* | ifort*) # Intel Fortran compiler
10050 tmp_addflag=' -nofor_main' ;;
10051 lf95*) # Lahey Fortran 8.1
10052 whole_archive_flag_spec=
10053 tmp_sharedflag='--shared' ;;
10054 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10055 tmp_sharedflag='-qmkshrobj'
10056 tmp_addflag= ;;
10057 nvcc*) # Cuda Compiler Driver 2.2
10058 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'
10059 compiler_needs_object=yes
10060 ;;
10061 esac
10062 case `$CC -V 2>&1 | sed 5q` in
10063 *Sun\ C*) # Sun C 5.9
10064 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'
10065 compiler_needs_object=yes
10066 tmp_sharedflag='-G' ;;
10067 *Sun\ F*) # Sun Fortran 8.3
10068 tmp_sharedflag='-G' ;;
10069 esac
10070 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9c60689e 10071
a243b558
JF
10072 if test "x$supports_anon_versioning" = xyes; then
10073 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10074 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10075 echo "local: *; };" >> $output_objdir/$libname.ver~
10076 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10077 fi
9c60689e 10078
a243b558
JF
10079 case $cc_basename in
10080 xlf* | bgf* | bgxlf* | mpixlf*)
10081 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10082 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10084 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10085 if test "x$supports_anon_versioning" = xyes; then
10086 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10088 echo "local: *; };" >> $output_objdir/$libname.ver~
10089 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10090 fi
10091 ;;
10092 esac
10093 else
10094 ld_shlibs=no
10095 fi
10096 ;;
9c60689e 10097
a243b558
JF
10098 netbsd*)
10099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10100 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10101 wlarc=
10102 else
10103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10105 fi
10106 ;;
9c60689e 10107
a243b558
JF
10108 solaris*)
10109 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10110 ld_shlibs=no
10111 cat <<_LT_EOF 1>&2
9c60689e 10112
a243b558
JF
10113*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10114*** create shared libraries on Solaris systems. Therefore, libtool
10115*** is disabling shared libraries support. We urge you to upgrade GNU
10116*** binutils to release 2.9.1 or newer. Another option is to modify
10117*** your PATH or compiler configuration so that the native linker is
10118*** used, and then restart.
9c60689e 10119
a243b558
JF
10120_LT_EOF
10121 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10123 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10124 else
10125 ld_shlibs=no
10126 fi
10127 ;;
9c60689e 10128
a243b558
JF
10129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10130 case `$LD -v 2>&1` in
10131 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10132 ld_shlibs=no
10133 cat <<_LT_EOF 1>&2
9c60689e 10134
a243b558
JF
10135*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10136*** reliably create shared libraries on SCO systems. Therefore, libtool
10137*** is disabling shared libraries support. We urge you to upgrade GNU
10138*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10139*** your PATH or compiler configuration so that the native linker is
10140*** used, and then restart.
9c60689e 10141
a243b558
JF
10142_LT_EOF
10143 ;;
10144 *)
10145 # For security reasons, it is highly recommended that you always
10146 # use absolute paths for naming shared libraries, and exclude the
10147 # DT_RUNPATH tag from executables and libraries. But doing so
10148 # requires that you compile everything twice, which is a pain.
10149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10153 else
10154 ld_shlibs=no
10155 fi
10156 ;;
10157 esac
10158 ;;
9c60689e 10159
a243b558
JF
10160 sunos4*)
10161 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10162 wlarc=
10163 hardcode_direct=yes
10164 hardcode_shlibpath_var=no
10165 ;;
9c60689e 10166
a243b558
JF
10167 *)
10168 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10170 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10171 else
10172 ld_shlibs=no
10173 fi
10174 ;;
10175 esac
9c60689e 10176
a243b558
JF
10177 if test "$ld_shlibs" = no; then
10178 runpath_var=
10179 hardcode_libdir_flag_spec=
10180 export_dynamic_flag_spec=
10181 whole_archive_flag_spec=
10182 fi
10183 else
10184 # PORTME fill in a description of your system's linker (not GNU ld)
10185 case $host_os in
10186 aix3*)
10187 allow_undefined_flag=unsupported
10188 always_export_symbols=yes
10189 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'
10190 # Note: this linker hardcodes the directories in LIBPATH if there
10191 # are no directories specified by -L.
10192 hardcode_minus_L=yes
10193 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10194 # Neither direct hardcoding nor static linking is supported with a
10195 # broken collect2.
10196 hardcode_direct=unsupported
10197 fi
10198 ;;
9c60689e 10199
a243b558
JF
10200 aix[4-9]*)
10201 if test "$host_cpu" = ia64; then
10202 # On IA64, the linker does run time linking by default, so we don't
10203 # have to do anything special.
10204 aix_use_runtimelinking=no
10205 exp_sym_flag='-Bexport'
10206 no_entry_flag=""
10207 else
10208 # If we're using GNU nm, then we don't want the "-C" option.
10209 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10210 # Also, AIX nm treats weak defined symbols like other global
10211 # defined symbols, whereas GNU nm marks them as "W".
10212 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10213 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'
10214 else
10215 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10216 fi
10217 aix_use_runtimelinking=no
9c60689e 10218
a243b558
JF
10219 # Test if we are trying to use run time linking or normal
10220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10221 # need to do runtime linking.
10222 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10223 for ld_flag in $LDFLAGS; do
10224 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10225 aix_use_runtimelinking=yes
10226 break
10227 fi
10228 done
10229 ;;
10230 esac
9c60689e 10231
a243b558
JF
10232 exp_sym_flag='-bexport'
10233 no_entry_flag='-bnoentry'
10234 fi
9c60689e 10235
a243b558
JF
10236 # When large executables or shared objects are built, AIX ld can
10237 # have problems creating the table of contents. If linking a library
10238 # or program results in "error TOC overflow" add -mminimal-toc to
10239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10241
a243b558
JF
10242 archive_cmds=''
10243 hardcode_direct=yes
10244 hardcode_direct_absolute=yes
10245 hardcode_libdir_separator=':'
10246 link_all_deplibs=yes
10247 file_list_spec='${wl}-f,'
9c60689e 10248
a243b558
JF
10249 if test "$GCC" = yes; then
10250 case $host_os in aix4.[012]|aix4.[012].*)
10251 # We only want to do this on AIX 4.2 and lower, the check
10252 # below for broken collect2 doesn't work under 4.3+
10253 collect2name=`${CC} -print-prog-name=collect2`
10254 if test -f "$collect2name" &&
10255 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10256 then
10257 # We have reworked collect2
10258 :
10259 else
10260 # We have old collect2
10261 hardcode_direct=unsupported
10262 # It fails to find uninstalled libraries when the uninstalled
10263 # path is not listed in the libpath. Setting hardcode_minus_L
10264 # to unsupported forces relinking
10265 hardcode_minus_L=yes
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_libdir_separator=
10268 fi
10269 ;;
10270 esac
10271 shared_flag='-shared'
10272 if test "$aix_use_runtimelinking" = yes; then
10273 shared_flag="$shared_flag "'${wl}-G'
10274 fi
10275 else
10276 # not using gcc
10277 if test "$host_cpu" = ia64; then
10278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10279 # chokes on -Wl,-G. The following line is correct:
10280 shared_flag='-G'
10281 else
10282 if test "$aix_use_runtimelinking" = yes; then
10283 shared_flag='${wl}-G'
10284 else
10285 shared_flag='${wl}-bM:SRE'
10286 fi
10287 fi
10288 fi
9c60689e 10289
a243b558
JF
10290 export_dynamic_flag_spec='${wl}-bexpall'
10291 # It seems that -bexpall does not export symbols beginning with
10292 # underscore (_), so it is better to generate a list of symbols to export.
10293 always_export_symbols=yes
10294 if test "$aix_use_runtimelinking" = yes; then
10295 # Warning - without using the other runtime loading flags (-brtl),
10296 # -berok will link without error, but may produce a broken library.
10297 allow_undefined_flag='-berok'
10298 # Determine the default libpath from the value encoded in an
10299 # empty executable.
10300 if test "${lt_cv_aix_libpath+set}" = set; then
10301 aix_libpath=$lt_cv_aix_libpath
9c60689e 10302else
a243b558 10303 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10304 $as_echo_n "(cached) " >&6
10305else
a243b558 10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10307/* end confdefs.h. */
10308
9c60689e
DWT
10309int
10310main ()
10311{
a243b558 10312
9c60689e
DWT
10313 ;
10314 return 0;
10315}
10316_ACEOF
10317if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10318
10319 lt_aix_libpath_sed='
10320 /Import File Strings/,/^$/ {
10321 /^0/ {
10322 s/^0 *\([^ ]*\) *$/\1/
10323 p
10324 }
10325 }'
10326 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10327 # Check for a 64-bit object if we didn't find anything.
10328 if test -z "$lt_cv_aix_libpath_"; then
10329 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10330 fi
9c60689e
DWT
10331fi
10332rm -f core conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10334 if test -z "$lt_cv_aix_libpath_"; then
10335 lt_cv_aix_libpath_="/usr/lib:/lib"
10336 fi
9c60689e
DWT
10337
10338fi
10339
a243b558
JF
10340 aix_libpath=$lt_cv_aix_libpath_
10341fi
9c60689e 10342
a243b558
JF
10343 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10344 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"
10345 else
10346 if test "$host_cpu" = ia64; then
10347 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10348 allow_undefined_flag="-z nodefs"
10349 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"
10350 else
10351 # Determine the default libpath from the value encoded in an
10352 # empty executable.
10353 if test "${lt_cv_aix_libpath+set}" = set; then
10354 aix_libpath=$lt_cv_aix_libpath
9c60689e 10355else
a243b558 10356 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10357 $as_echo_n "(cached) " >&6
10358else
a243b558 10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10360/* end confdefs.h. */
10361
9c60689e
DWT
10362int
10363main ()
10364{
a243b558 10365
9c60689e
DWT
10366 ;
10367 return 0;
10368}
10369_ACEOF
10370if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10371
a243b558
JF
10372 lt_aix_libpath_sed='
10373 /Import File Strings/,/^$/ {
10374 /^0/ {
10375 s/^0 *\([^ ]*\) *$/\1/
10376 p
10377 }
10378 }'
10379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10380 # Check for a 64-bit object if we didn't find anything.
10381 if test -z "$lt_cv_aix_libpath_"; then
10382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383 fi
9c60689e
DWT
10384fi
10385rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10387 if test -z "$lt_cv_aix_libpath_"; then
10388 lt_cv_aix_libpath_="/usr/lib:/lib"
10389 fi
10390
9c60689e 10391fi
9c60689e 10392
a243b558
JF
10393 aix_libpath=$lt_cv_aix_libpath_
10394fi
10395
10396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10397 # Warning - without using the other run time loading flags,
10398 # -berok will link without error, but may produce a broken library.
10399 no_undefined_flag=' ${wl}-bernotok'
10400 allow_undefined_flag=' ${wl}-berok'
10401 if test "$with_gnu_ld" = yes; then
10402 # We only use this code for GNU lds that support --whole-archive.
10403 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10404 else
10405 # Exported symbols can be pulled into shared objects from archives
10406 whole_archive_flag_spec='$convenience'
10407 fi
10408 archive_cmds_need_lc=yes
10409 # This is similar to how AIX traditionally builds its shared libraries.
10410 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'
10411 fi
10412 fi
10413 ;;
10414
10415 amigaos*)
10416 case $host_cpu in
10417 powerpc)
10418 # see comment about AmigaOS4 .so support
10419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10420 archive_expsym_cmds=''
10421 ;;
10422 m68k)
10423 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)'
10424 hardcode_libdir_flag_spec='-L$libdir'
10425 hardcode_minus_L=yes
10426 ;;
10427 esac
10428 ;;
10429
10430 bsdi[45]*)
10431 export_dynamic_flag_spec=-rdynamic
10432 ;;
10433
10434 cygwin* | mingw* | pw32* | cegcc*)
10435 # When not using gcc, we currently assume that we are using
10436 # Microsoft Visual C++.
10437 # hardcode_libdir_flag_spec is actually meaningless, as there is
10438 # no search path for DLLs.
10439 case $cc_basename in
10440 cl*)
10441 # Native MSVC
10442 hardcode_libdir_flag_spec=' '
10443 allow_undefined_flag=unsupported
10444 always_export_symbols=yes
10445 file_list_spec='@'
10446 # Tell ltmain to make .lib files, not .a files.
10447 libext=lib
10448 # Tell ltmain to make .dll files, not .so files.
10449 shrext_cmds=".dll"
10450 # FIXME: Setting linknames here is a bad hack.
10451 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10452 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10453 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10454 else
10455 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10456 fi~
10457 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10458 linknames='
10459 # The linker will not automatically build a static lib if we build a DLL.
10460 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10461 enable_shared_with_static_runtimes=yes
10462 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10464 # Don't use ranlib
10465 old_postinstall_cmds='chmod 644 $oldlib'
10466 postlink_cmds='lt_outputfile="@OUTPUT@"~
10467 lt_tool_outputfile="@TOOL_OUTPUT@"~
10468 case $lt_outputfile in
10469 *.exe|*.EXE) ;;
10470 *)
10471 lt_outputfile="$lt_outputfile.exe"
10472 lt_tool_outputfile="$lt_tool_outputfile.exe"
10473 ;;
10474 esac~
10475 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10476 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10477 $RM "$lt_outputfile.manifest";
10478 fi'
10479 ;;
10480 *)
10481 # Assume MSVC wrapper
10482 hardcode_libdir_flag_spec=' '
10483 allow_undefined_flag=unsupported
10484 # Tell ltmain to make .lib files, not .a files.
10485 libext=lib
10486 # Tell ltmain to make .dll files, not .so files.
10487 shrext_cmds=".dll"
10488 # FIXME: Setting linknames here is a bad hack.
10489 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10490 # The linker will automatically build a .lib file if we build a DLL.
10491 old_archive_from_new_cmds='true'
10492 # FIXME: Should let the user specify the lib program.
10493 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10494 enable_shared_with_static_runtimes=yes
10495 ;;
10496 esac
10497 ;;
10498
10499 darwin* | rhapsody*)
10500
10501
10502 archive_cmds_need_lc=no
10503 hardcode_direct=no
10504 hardcode_automatic=yes
10505 hardcode_shlibpath_var=unsupported
10506 if test "$lt_cv_ld_force_load" = "yes"; then
10507 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\"`'
10508
10509 else
10510 whole_archive_flag_spec=''
10511 fi
10512 link_all_deplibs=yes
10513 allow_undefined_flag="$_lt_dar_allow_undefined"
10514 case $cc_basename in
10515 ifort*) _lt_dar_can_shared=yes ;;
10516 *) _lt_dar_can_shared=$GCC ;;
10517 esac
10518 if test "$_lt_dar_can_shared" = "yes"; then
10519 output_verbose_link_cmd=func_echo_all
10520 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10521 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10522 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}"
10523 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}"
10524
10525 else
10526 ld_shlibs=no
10527 fi
10528
10529 ;;
10530
10531 dgux*)
10532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533 hardcode_libdir_flag_spec='-L$libdir'
10534 hardcode_shlibpath_var=no
10535 ;;
10536
10537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10538 # support. Future versions do this automatically, but an explicit c++rt0.o
10539 # does not break anything, and helps significantly (at the cost of a little
10540 # extra space).
10541 freebsd2.2*)
10542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10543 hardcode_libdir_flag_spec='-R$libdir'
10544 hardcode_direct=yes
10545 hardcode_shlibpath_var=no
10546 ;;
10547
10548 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10549 freebsd2.*)
10550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10551 hardcode_direct=yes
10552 hardcode_minus_L=yes
10553 hardcode_shlibpath_var=no
10554 ;;
10555
10556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10557 freebsd* | dragonfly*)
10558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10559 hardcode_libdir_flag_spec='-R$libdir'
10560 hardcode_direct=yes
10561 hardcode_shlibpath_var=no
10562 ;;
10563
10564 hpux9*)
10565 if test "$GCC" = yes; then
10566 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10567 else
10568 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'
10569 fi
10570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10571 hardcode_libdir_separator=:
10572 hardcode_direct=yes
10573
10574 # hardcode_minus_L: Not really in the search PATH,
10575 # but as the default location of the library.
10576 hardcode_minus_L=yes
10577 export_dynamic_flag_spec='${wl}-E'
10578 ;;
10579
10580 hpux10*)
10581 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10582 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10583 else
10584 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10585 fi
10586 if test "$with_gnu_ld" = no; then
10587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10588 hardcode_libdir_separator=:
10589 hardcode_direct=yes
10590 hardcode_direct_absolute=yes
10591 export_dynamic_flag_spec='${wl}-E'
10592 # hardcode_minus_L: Not really in the search PATH,
10593 # but as the default location of the library.
10594 hardcode_minus_L=yes
10595 fi
10596 ;;
10597
10598 hpux11*)
10599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10600 case $host_cpu in
10601 hppa*64*)
10602 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10603 ;;
10604 ia64*)
10605 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10606 ;;
10607 *)
10608 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10609 ;;
10610 esac
10611 else
10612 case $host_cpu in
10613 hppa*64*)
10614 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10615 ;;
10616 ia64*)
10617 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10618 ;;
10619 *)
10620
10621 # Older versions of the 11.00 compiler do not understand -b yet
10622 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10624$as_echo_n "checking if $CC understands -b... " >&6; }
10625if ${lt_cv_prog_compiler__b+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627else
10628 lt_cv_prog_compiler__b=no
10629 save_LDFLAGS="$LDFLAGS"
10630 LDFLAGS="$LDFLAGS -b"
10631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10633 # The linker can only warn and ignore the option if not recognized
10634 # So say no if there are warnings
10635 if test -s conftest.err; then
10636 # Append any errors to the config.log.
10637 cat conftest.err 1>&5
10638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10640 if diff conftest.exp conftest.er2 >/dev/null; then
10641 lt_cv_prog_compiler__b=yes
10642 fi
10643 else
10644 lt_cv_prog_compiler__b=yes
10645 fi
10646 fi
10647 $RM -r conftest*
10648 LDFLAGS="$save_LDFLAGS"
10649
10650fi
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10652$as_echo "$lt_cv_prog_compiler__b" >&6; }
10653
10654if test x"$lt_cv_prog_compiler__b" = xyes; then
10655 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10656else
10657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10658fi
10659
10660 ;;
10661 esac
10662 fi
10663 if test "$with_gnu_ld" = no; then
10664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10665 hardcode_libdir_separator=:
10666
10667 case $host_cpu in
10668 hppa*64*|ia64*)
10669 hardcode_direct=no
10670 hardcode_shlibpath_var=no
10671 ;;
10672 *)
10673 hardcode_direct=yes
10674 hardcode_direct_absolute=yes
10675 export_dynamic_flag_spec='${wl}-E'
10676
10677 # hardcode_minus_L: Not really in the search PATH,
10678 # but as the default location of the library.
10679 hardcode_minus_L=yes
10680 ;;
10681 esac
10682 fi
10683 ;;
10684
10685 irix5* | irix6* | nonstopux*)
10686 if test "$GCC" = yes; then
10687 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10688 # Try to use the -exported_symbol ld option, if it does not
10689 # work, assume that -exports_file does not work either and
10690 # implicitly export all symbols.
10691 # This should be the same for all languages, so no per-tag cache variable.
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10693$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10694if ${lt_cv_irix_exported_symbol+:} false; then :
10695 $as_echo_n "(cached) " >&6
10696else
10697 save_LDFLAGS="$LDFLAGS"
10698 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700/* end confdefs.h. */
10701int foo (void) { return 0; }
10702_ACEOF
10703if ac_fn_c_try_link "$LINENO"; then :
10704 lt_cv_irix_exported_symbol=yes
10705else
10706 lt_cv_irix_exported_symbol=no
10707fi
10708rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LDFLAGS="$save_LDFLAGS"
10711fi
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10713$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10714 if test "$lt_cv_irix_exported_symbol" = yes; then
10715 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10716 fi
10717 else
10718 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'
10719 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'
10720 fi
10721 archive_cmds_need_lc='no'
10722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10723 hardcode_libdir_separator=:
10724 inherit_rpath=yes
10725 link_all_deplibs=yes
10726 ;;
10727
10728 netbsd*)
10729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10731 else
10732 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10733 fi
10734 hardcode_libdir_flag_spec='-R$libdir'
10735 hardcode_direct=yes
10736 hardcode_shlibpath_var=no
10737 ;;
10738
10739 newsos6)
10740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741 hardcode_direct=yes
10742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10743 hardcode_libdir_separator=:
10744 hardcode_shlibpath_var=no
10745 ;;
10746
10747 *nto* | *qnx*)
10748 ;;
10749
10750 openbsd*)
10751 if test -f /usr/libexec/ld.so; then
10752 hardcode_direct=yes
10753 hardcode_shlibpath_var=no
10754 hardcode_direct_absolute=yes
10755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10759 export_dynamic_flag_spec='${wl}-E'
10760 else
10761 case $host_os in
10762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10764 hardcode_libdir_flag_spec='-R$libdir'
10765 ;;
10766 *)
10767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10769 ;;
10770 esac
10771 fi
10772 else
10773 ld_shlibs=no
10774 fi
10775 ;;
10776
10777 os2*)
10778 hardcode_libdir_flag_spec='-L$libdir'
10779 hardcode_minus_L=yes
10780 allow_undefined_flag=unsupported
10781 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'
10782 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10783 ;;
10784
10785 osf3*)
10786 if test "$GCC" = yes; then
10787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10788 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'
10789 else
10790 allow_undefined_flag=' -expect_unresolved \*'
10791 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'
10792 fi
10793 archive_cmds_need_lc='no'
10794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10795 hardcode_libdir_separator=:
10796 ;;
10797
10798 osf4* | osf5*) # as osf3* with the addition of -msym flag
10799 if test "$GCC" = yes; then
10800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10801 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10803 else
10804 allow_undefined_flag=' -expect_unresolved \*'
10805 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'
10806 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~
10807 $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'
10808
10809 # Both c and cxx compiler support -rpath directly
10810 hardcode_libdir_flag_spec='-rpath $libdir'
10811 fi
10812 archive_cmds_need_lc='no'
10813 hardcode_libdir_separator=:
10814 ;;
10815
10816 solaris*)
10817 no_undefined_flag=' -z defs'
10818 if test "$GCC" = yes; then
10819 wlarc='${wl}'
10820 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10822 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10823 else
10824 case `$CC -V 2>&1` in
10825 *"Compilers 5.0"*)
10826 wlarc=''
10827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10830 ;;
10831 *)
10832 wlarc='${wl}'
10833 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10835 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10836 ;;
10837 esac
10838 fi
10839 hardcode_libdir_flag_spec='-R$libdir'
10840 hardcode_shlibpath_var=no
10841 case $host_os in
10842 solaris2.[0-5] | solaris2.[0-5].*) ;;
10843 *)
10844 # The compiler driver will combine and reorder linker options,
10845 # but understands `-z linker_flag'. GCC discards it without `$wl',
10846 # but is careful enough not to reorder.
10847 # Supported since Solaris 2.6 (maybe 2.5.1?)
10848 if test "$GCC" = yes; then
10849 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10850 else
10851 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10852 fi
10853 ;;
10854 esac
10855 link_all_deplibs=yes
10856 ;;
10857
10858 sunos4*)
10859 if test "x$host_vendor" = xsequent; then
10860 # Use $CC to link under sequent, because it throws in some extra .o
10861 # files that make .init and .fini sections work.
10862 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10863 else
10864 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10865 fi
10866 hardcode_libdir_flag_spec='-L$libdir'
10867 hardcode_direct=yes
10868 hardcode_minus_L=yes
10869 hardcode_shlibpath_var=no
10870 ;;
10871
10872 sysv4)
10873 case $host_vendor in
10874 sni)
10875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10876 hardcode_direct=yes # is this really true???
10877 ;;
10878 siemens)
10879 ## LD is ld it makes a PLAMLIB
10880 ## CC just makes a GrossModule.
10881 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10882 reload_cmds='$CC -r -o $output$reload_objs'
10883 hardcode_direct=no
10884 ;;
10885 motorola)
10886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10887 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10888 ;;
10889 esac
10890 runpath_var='LD_RUN_PATH'
10891 hardcode_shlibpath_var=no
10892 ;;
10893
10894 sysv4.3*)
10895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896 hardcode_shlibpath_var=no
10897 export_dynamic_flag_spec='-Bexport'
10898 ;;
10899
10900 sysv4*MP*)
10901 if test -d /usr/nec; then
10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_shlibpath_var=no
10904 runpath_var=LD_RUN_PATH
10905 hardcode_runpath_var=yes
10906 ld_shlibs=yes
10907 fi
10908 ;;
10909
10910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10911 no_undefined_flag='${wl}-z,text'
10912 archive_cmds_need_lc=no
10913 hardcode_shlibpath_var=no
10914 runpath_var='LD_RUN_PATH'
10915
10916 if test "$GCC" = yes; then
10917 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10919 else
10920 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 fi
10923 ;;
10924
10925 sysv5* | sco3.2v5* | sco5v6*)
10926 # Note: We can NOT use -z defs as we might desire, because we do not
10927 # link with -lc, and that would cause any symbols used from libc to
10928 # always be unresolved, which means just about no library would
10929 # ever link correctly. If we're not using GNU ld we use -z text
10930 # though, which does catch some bad symbols but isn't as heavy-handed
10931 # as -z defs.
10932 no_undefined_flag='${wl}-z,text'
10933 allow_undefined_flag='${wl}-z,nodefs'
10934 archive_cmds_need_lc=no
10935 hardcode_shlibpath_var=no
10936 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10937 hardcode_libdir_separator=':'
10938 link_all_deplibs=yes
10939 export_dynamic_flag_spec='${wl}-Bexport'
10940 runpath_var='LD_RUN_PATH'
10941
10942 if test "$GCC" = yes; then
10943 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10944 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 else
10946 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 fi
10949 ;;
10950
10951 uts4*)
10952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10953 hardcode_libdir_flag_spec='-L$libdir'
10954 hardcode_shlibpath_var=no
10955 ;;
10956
10957 *)
10958 ld_shlibs=no
10959 ;;
10960 esac
10961
10962 if test x$host_vendor = xsni; then
10963 case $host in
10964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10965 export_dynamic_flag_spec='${wl}-Blargedynsym'
10966 ;;
10967 esac
10968 fi
10969 fi
10970
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10972$as_echo "$ld_shlibs" >&6; }
10973test "$ld_shlibs" = no && can_build_shared=no
10974
10975with_gnu_ld=$with_gnu_ld
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991#
10992# Do we need to explicitly link libc?
10993#
10994case "x$archive_cmds_need_lc" in
10995x|xyes)
10996 # Assume -lc should be added
10997 archive_cmds_need_lc=yes
10998
10999 if test "$enable_shared" = yes && test "$GCC" = yes; then
11000 case $archive_cmds in
11001 *'~'*)
11002 # FIXME: we may have to deal with multi-command sequences.
11003 ;;
11004 '$CC '*)
11005 # Test whether the compiler implicitly links with -lc since on some
11006 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11007 # to ld, don't add -lc before -lgcc.
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11009$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11010if ${lt_cv_archive_cmds_need_lc+:} false; then :
11011 $as_echo_n "(cached) " >&6
11012else
00a96142 11013 $RM -r conftest*
a243b558
JF
11014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11015
11016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11017 (eval $ac_compile) 2>&5
11018 ac_status=$?
11019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11020 test $ac_status = 0; } 2>conftest.err; then
11021 soname=conftest
11022 lib=conftest
11023 libobjs=conftest.$ac_objext
11024 deplibs=
11025 wl=$lt_prog_compiler_wl
11026 pic_flag=$lt_prog_compiler_pic
11027 compiler_flags=-v
11028 linker_flags=-v
11029 verstring=
11030 output_objdir=.
11031 libname=conftest
11032 lt_save_allow_undefined_flag=$allow_undefined_flag
11033 allow_undefined_flag=
11034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11035 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11036 ac_status=$?
11037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11038 test $ac_status = 0; }
11039 then
11040 lt_cv_archive_cmds_need_lc=no
11041 else
11042 lt_cv_archive_cmds_need_lc=yes
11043 fi
11044 allow_undefined_flag=$lt_save_allow_undefined_flag
11045 else
11046 cat conftest.err 1>&5
11047 fi
00a96142 11048 $RM -r conftest*
a243b558
JF
11049
11050fi
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11052$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11053 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11054 ;;
11055 esac
11056 fi
11057 ;;
11058esac
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11212$as_echo_n "checking dynamic linker characteristics... " >&6; }
11213
11214if test "$GCC" = yes; then
11215 case $host_os in
11216 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11217 *) lt_awk_arg="/^libraries:/" ;;
11218 esac
11219 case $host_os in
11220 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11221 *) lt_sed_strip_eq="s,=/,/,g" ;;
11222 esac
11223 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11224 case $lt_search_path_spec in
11225 *\;*)
11226 # if the path contains ";" then we assume it to be the separator
11227 # otherwise default to the standard path separator (i.e. ":") - it is
11228 # assumed that no part of a normal pathname contains ";" but that should
11229 # okay in the real world where ";" in dirpaths is itself problematic.
11230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11231 ;;
11232 *)
11233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11234 ;;
11235 esac
11236 # Ok, now we have the path, separated by spaces, we can step through it
11237 # and add multilib dir if necessary.
11238 lt_tmp_lt_search_path_spec=
11239 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11240 for lt_sys_path in $lt_search_path_spec; do
11241 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11243 else
11244 test -d "$lt_sys_path" && \
11245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11246 fi
11247 done
11248 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11249BEGIN {RS=" "; FS="/|\n";} {
11250 lt_foo="";
11251 lt_count=0;
11252 for (lt_i = NF; lt_i > 0; lt_i--) {
11253 if ($lt_i != "" && $lt_i != ".") {
11254 if ($lt_i == "..") {
11255 lt_count++;
11256 } else {
11257 if (lt_count == 0) {
11258 lt_foo="/" $lt_i lt_foo;
11259 } else {
11260 lt_count--;
11261 }
11262 }
11263 }
11264 }
11265 if (lt_foo != "") { lt_freq[lt_foo]++; }
11266 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11267}'`
11268 # AWK program above erroneously prepends '/' to C:/dos/paths
11269 # for these hosts.
11270 case $host_os in
11271 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11272 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11273 esac
11274 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11275else
11276 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11277fi
11278library_names_spec=
11279libname_spec='lib$name'
11280soname_spec=
11281shrext_cmds=".so"
11282postinstall_cmds=
11283postuninstall_cmds=
11284finish_cmds=
11285finish_eval=
11286shlibpath_var=
11287shlibpath_overrides_runpath=unknown
11288version_type=none
11289dynamic_linker="$host_os ld.so"
11290sys_lib_dlsearch_path_spec="/lib /usr/lib"
11291need_lib_prefix=unknown
11292hardcode_into_libs=no
11293
11294# when you set need_version to no, make sure it does not cause -set_version
11295# flags to be left without arguments
11296need_version=unknown
11297
11298case $host_os in
11299aix3*)
11300 version_type=linux # correct to gnu/linux during the next big refactor
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11302 shlibpath_var=LIBPATH
11303
11304 # AIX 3 has no versioning support, so we append a major version to the name.
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 ;;
11307
11308aix[4-9]*)
11309 version_type=linux # correct to gnu/linux during the next big refactor
11310 need_lib_prefix=no
11311 need_version=no
11312 hardcode_into_libs=yes
11313 if test "$host_cpu" = ia64; then
11314 # AIX 5 supports IA64
11315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 else
11318 # With GCC up to 2.95.x, collect2 would create an import file
11319 # for dependence libraries. The import file would start with
11320 # the line `#! .'. This would cause the generated library to
11321 # depend on `.', always an invalid library. This was fixed in
11322 # development snapshots of GCC prior to 3.0.
11323 case $host_os in
11324 aix4 | aix4.[01] | aix4.[01].*)
11325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11326 echo ' yes '
11327 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11328 :
11329 else
11330 can_build_shared=no
11331 fi
11332 ;;
11333 esac
11334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11335 # soname into executable. Probably we can add versioning support to
11336 # collect2, so additional links can be useful in future.
11337 if test "$aix_use_runtimelinking" = yes; then
11338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11339 # instead of lib<name>.a to let people know that these are not
11340 # typical AIX shared libraries.
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 else
11343 # We preserve .a as extension for shared libraries through AIX4.2
11344 # and later when we are not doing run time linking.
11345 library_names_spec='${libname}${release}.a $libname.a'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 fi
11348 shlibpath_var=LIBPATH
11349 fi
11350 ;;
11351
11352amigaos*)
11353 case $host_cpu in
11354 powerpc)
11355 # Since July 2007 AmigaOS4 officially supports .so libraries.
11356 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 ;;
11359 m68k)
11360 library_names_spec='$libname.ixlibrary $libname.a'
11361 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11362 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'
11363 ;;
11364 esac
11365 ;;
11366
11367beos*)
11368 library_names_spec='${libname}${shared_ext}'
11369 dynamic_linker="$host_os ld.so"
11370 shlibpath_var=LIBRARY_PATH
11371 ;;
11372
11373bsdi[45]*)
11374 version_type=linux # correct to gnu/linux during the next big refactor
11375 need_version=no
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11379 shlibpath_var=LD_LIBRARY_PATH
11380 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11381 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11382 # the default ld.so.conf also contains /usr/contrib/lib and
11383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11384 # libtool to hard-code these into programs
11385 ;;
11386
11387cygwin* | mingw* | pw32* | cegcc*)
11388 version_type=windows
11389 shrext_cmds=".dll"
11390 need_version=no
11391 need_lib_prefix=no
9c60689e 11392
a243b558
JF
11393 case $GCC,$cc_basename in
11394 yes,*)
11395 # gcc
11396 library_names_spec='$libname.dll.a'
11397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11398 postinstall_cmds='base_file=`basename \${file}`~
11399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11400 dldir=$destdir/`dirname \$dlpath`~
11401 test -d \$dldir || mkdir -p \$dldir~
11402 $install_prog $dir/$dlname \$dldir/$dlname~
11403 chmod a+x \$dldir/$dlname~
11404 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11405 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11406 fi'
11407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11408 dlpath=$dir/\$dldll~
11409 $RM \$dlpath'
11410 shlibpath_overrides_runpath=yes
9c60689e 11411
a243b558
JF
11412 case $host_os in
11413 cygwin*)
11414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e 11416
a243b558
JF
11417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11418 ;;
11419 mingw* | cegcc*)
11420 # MinGW DLLs use traditional 'lib' prefix
11421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422 ;;
11423 pw32*)
11424 # pw32 DLLs use 'pw' prefix rather than 'lib'
11425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426 ;;
11427 esac
11428 dynamic_linker='Win32 ld.exe'
11429 ;;
9c60689e 11430
a243b558
JF
11431 *,cl*)
11432 # Native MSVC
11433 libname_spec='$name'
11434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11435 library_names_spec='${libname}.dll.lib'
9c60689e 11436
a243b558
JF
11437 case $build_os in
11438 mingw*)
11439 sys_lib_search_path_spec=
11440 lt_save_ifs=$IFS
11441 IFS=';'
11442 for lt_path in $LIB
11443 do
11444 IFS=$lt_save_ifs
11445 # Let DOS variable expansion print the short 8.3 style file name.
11446 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11447 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11448 done
11449 IFS=$lt_save_ifs
11450 # Convert to MSYS style.
11451 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11452 ;;
11453 cygwin*)
11454 # Convert to unix form, then to dos form, then back to unix form
11455 # but this time dos style (no spaces!) so that the unix form looks
11456 # like /cygdrive/c/PROGRA~1:/cygdr...
11457 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11458 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11459 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11460 ;;
11461 *)
11462 sys_lib_search_path_spec="$LIB"
11463 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11464 # It is most probably a Windows format PATH.
11465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11466 else
11467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11468 fi
11469 # FIXME: find the short name or the path components, as spaces are
11470 # common. (e.g. "Program Files" -> "PROGRA~1")
11471 ;;
11472 esac
11473
11474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11475 postinstall_cmds='base_file=`basename \${file}`~
11476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11477 dldir=$destdir/`dirname \$dlpath`~
11478 test -d \$dldir || mkdir -p \$dldir~
11479 $install_prog $dir/$dlname \$dldir/$dlname'
11480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11481 dlpath=$dir/\$dldll~
11482 $RM \$dlpath'
11483 shlibpath_overrides_runpath=yes
11484 dynamic_linker='Win32 link.exe'
11485 ;;
9c60689e 11486
a243b558
JF
11487 *)
11488 # Assume MSVC wrapper
11489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11490 dynamic_linker='Win32 ld.exe'
11491 ;;
11492 esac
11493 # FIXME: first we should search . and the directory the executable is in
11494 shlibpath_var=PATH
11495 ;;
9c60689e 11496
a243b558
JF
11497darwin* | rhapsody*)
11498 dynamic_linker="$host_os dyld"
11499 version_type=darwin
11500 need_lib_prefix=no
11501 need_version=no
11502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11503 soname_spec='${libname}${release}${major}$shared_ext'
11504 shlibpath_overrides_runpath=yes
11505 shlibpath_var=DYLD_LIBRARY_PATH
11506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11507
a243b558
JF
11508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11510 ;;
9c60689e 11511
a243b558
JF
11512dgux*)
11513 version_type=linux # correct to gnu/linux during the next big refactor
11514 need_lib_prefix=no
11515 need_version=no
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 ;;
11520
11521freebsd* | dragonfly*)
11522 # DragonFly does not have aout. When/if they implement a new
11523 # versioning mechanism, adjust this.
11524 if test -x /usr/bin/objformat; then
11525 objformat=`/usr/bin/objformat`
11526 else
11527 case $host_os in
11528 freebsd[23].*) objformat=aout ;;
11529 *) objformat=elf ;;
11530 esac
11531 fi
11532 version_type=freebsd-$objformat
11533 case $version_type in
11534 freebsd-elf*)
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11536 need_version=no
11537 need_lib_prefix=no
11538 ;;
11539 freebsd-*)
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11541 need_version=yes
11542 ;;
11543 esac
11544 shlibpath_var=LD_LIBRARY_PATH
11545 case $host_os in
11546 freebsd2.*)
11547 shlibpath_overrides_runpath=yes
11548 ;;
11549 freebsd3.[01]* | freebsdelf3.[01]*)
11550 shlibpath_overrides_runpath=yes
11551 hardcode_into_libs=yes
11552 ;;
11553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11555 shlibpath_overrides_runpath=no
11556 hardcode_into_libs=yes
11557 ;;
11558 *) # from 4.6 on, and DragonFly
11559 shlibpath_overrides_runpath=yes
11560 hardcode_into_libs=yes
11561 ;;
11562 esac
11563 ;;
9c60689e 11564
a243b558
JF
11565gnu*)
11566 version_type=linux # correct to gnu/linux during the next big refactor
11567 need_lib_prefix=no
11568 need_version=no
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=no
11573 hardcode_into_libs=yes
11574 ;;
9c60689e 11575
a243b558
JF
11576haiku*)
11577 version_type=linux # correct to gnu/linux during the next big refactor
11578 need_lib_prefix=no
11579 need_version=no
11580 dynamic_linker="$host_os runtime_loader"
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LIBRARY_PATH
11584 shlibpath_overrides_runpath=yes
11585 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11586 hardcode_into_libs=yes
11587 ;;
9c60689e 11588
a243b558
JF
11589hpux9* | hpux10* | hpux11*)
11590 # Give a soname corresponding to the major version so that dld.sl refuses to
11591 # link against other versions.
11592 version_type=sunos
11593 need_lib_prefix=no
11594 need_version=no
11595 case $host_cpu in
11596 ia64*)
11597 shrext_cmds='.so'
11598 hardcode_into_libs=yes
11599 dynamic_linker="$host_os dld.so"
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603 soname_spec='${libname}${release}${shared_ext}$major'
11604 if test "X$HPUX_IA64_MODE" = X32; then
11605 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11606 else
11607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11608 fi
11609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11610 ;;
11611 hppa*64*)
11612 shrext_cmds='.sl'
11613 hardcode_into_libs=yes
11614 dynamic_linker="$host_os dld.sl"
11615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11621 ;;
11622 *)
11623 shrext_cmds='.sl'
11624 dynamic_linker="$host_os dld.sl"
11625 shlibpath_var=SHLIB_PATH
11626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
9c60689e
DWT
11629 ;;
11630 esac
a243b558
JF
11631 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11632 postinstall_cmds='chmod 555 $lib'
11633 # or fails outright, so override atomically:
11634 install_override_mode=555
11635 ;;
9c60689e 11636
a243b558
JF
11637interix[3-9]*)
11638 version_type=linux # correct to gnu/linux during the next big refactor
11639 need_lib_prefix=no
11640 need_version=no
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=no
11646 hardcode_into_libs=yes
11647 ;;
9c60689e 11648
a243b558
JF
11649irix5* | irix6* | nonstopux*)
11650 case $host_os in
11651 nonstopux*) version_type=nonstopux ;;
11652 *)
11653 if test "$lt_cv_prog_gnu_ld" = yes; then
11654 version_type=linux # correct to gnu/linux during the next big refactor
11655 else
11656 version_type=irix
11657 fi ;;
11658 esac
11659 need_lib_prefix=no
11660 need_version=no
11661 soname_spec='${libname}${release}${shared_ext}$major'
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11663 case $host_os in
11664 irix5* | nonstopux*)
11665 libsuff= shlibsuff=
11666 ;;
11667 *)
11668 case $LD in # libtool.m4 will add one of these switches to LD
11669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11670 libsuff= shlibsuff= libmagic=32-bit;;
11671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11672 libsuff=32 shlibsuff=N32 libmagic=N32;;
11673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11675 *) libsuff= shlibsuff= libmagic=never-match;;
11676 esac
11677 ;;
11678 esac
11679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11680 shlibpath_overrides_runpath=no
11681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11683 hardcode_into_libs=yes
11684 ;;
9c60689e 11685
a243b558
JF
11686# No shared lib support for Linux oldld, aout, or coff.
11687linux*oldld* | linux*aout* | linux*coff*)
11688 dynamic_linker=no
11689 ;;
9c60689e 11690
a243b558
JF
11691# This must be glibc/ELF.
11692linux* | k*bsd*-gnu | kopensolaris*-gnu)
11693 version_type=linux # correct to gnu/linux during the next big refactor
11694 need_lib_prefix=no
11695 need_version=no
11696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11697 soname_spec='${libname}${release}${shared_ext}$major'
11698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11699 shlibpath_var=LD_LIBRARY_PATH
11700 shlibpath_overrides_runpath=no
9c60689e 11701
a243b558
JF
11702 # Some binutils ld are patched to set DT_RUNPATH
11703 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
11704 $as_echo_n "(cached) " >&6
11705else
a243b558
JF
11706 lt_cv_shlibpath_overrides_runpath=no
11707 save_LDFLAGS=$LDFLAGS
11708 save_libdir=$libdir
11709 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11710 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712/* end confdefs.h. */
ee134472 11713
a243b558
JF
11714int
11715main ()
9c60689e 11716{
9c60689e 11717
a243b558
JF
11718 ;
11719 return 0;
11720}
11721_ACEOF
11722if ac_fn_c_try_link "$LINENO"; then :
11723 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11724 lt_cv_shlibpath_overrides_runpath=yes
11725fi
11726fi
11727rm -f core conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 LDFLAGS=$save_LDFLAGS
11730 libdir=$save_libdir
9c60689e 11731
a243b558 11732fi
9c60689e 11733
a243b558 11734 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 11735
a243b558
JF
11736 # This implies no fast_install, which is unacceptable.
11737 # Some rework will be needed to allow for fast_install
11738 # before this can be enabled.
11739 hardcode_into_libs=yes
9c60689e 11740
a243b558
JF
11741 # Append ld.so.conf contents to the search path
11742 if test -f /etc/ld.so.conf; then
11743 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' ' '`
11744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11745 fi
ee134472 11746
a243b558
JF
11747 # We used to test for /lib/ld.so.1 and disable shared libraries on
11748 # powerpc, because MkLinux only supported shared libraries with the
11749 # GNU dynamic linker. Since this was broken with cross compilers,
11750 # most powerpc-linux boxes support dynamic linking these days and
11751 # people can always --disable-shared, the test was removed, and we
11752 # assume the GNU/Linux dynamic linker is in use.
11753 dynamic_linker='GNU/Linux ld.so'
11754 ;;
9c60689e 11755
a243b558
JF
11756netbsd*)
11757 version_type=sunos
11758 need_lib_prefix=no
11759 need_version=no
11760 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11763 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 11764 else
a243b558
JF
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11766 soname_spec='${libname}${release}${shared_ext}$major'
11767 dynamic_linker='NetBSD ld.elf_so'
9c60689e 11768 fi
a243b558
JF
11769 shlibpath_var=LD_LIBRARY_PATH
11770 shlibpath_overrides_runpath=yes
11771 hardcode_into_libs=yes
11772 ;;
9c60689e 11773
a243b558
JF
11774newsos6)
11775 version_type=linux # correct to gnu/linux during the next big refactor
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 shlibpath_overrides_runpath=yes
11779 ;;
9c60689e 11780
a243b558
JF
11781*nto* | *qnx*)
11782 version_type=qnx
11783 need_lib_prefix=no
11784 need_version=no
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786 soname_spec='${libname}${release}${shared_ext}$major'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 shlibpath_overrides_runpath=no
11789 hardcode_into_libs=yes
11790 dynamic_linker='ldqnx.so'
11791 ;;
9c60689e 11792
a243b558
JF
11793openbsd*)
11794 version_type=sunos
11795 sys_lib_dlsearch_path_spec="/usr/lib"
11796 need_lib_prefix=no
11797 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11798 case $host_os in
11799 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11800 *) need_version=no ;;
9c60689e 11801 esac
a243b558
JF
11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11806 case $host_os in
11807 openbsd2.[89] | openbsd2.[89].*)
11808 shlibpath_overrides_runpath=no
11809 ;;
11810 *)
11811 shlibpath_overrides_runpath=yes
11812 ;;
11813 esac
11814 else
11815 shlibpath_overrides_runpath=yes
11816 fi
11817 ;;
9c60689e 11818
a243b558
JF
11819os2*)
11820 libname_spec='$name'
11821 shrext_cmds=".dll"
11822 need_lib_prefix=no
11823 library_names_spec='$libname${shared_ext} $libname.a'
11824 dynamic_linker='OS/2 ld.exe'
11825 shlibpath_var=LIBPATH
11826 ;;
9c60689e 11827
a243b558
JF
11828osf3* | osf4* | osf5*)
11829 version_type=osf
11830 need_lib_prefix=no
11831 need_version=no
11832 soname_spec='${libname}${release}${shared_ext}$major'
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11836 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11837 ;;
11838
11839rdos*)
11840 dynamic_linker=no
11841 ;;
11842
11843solaris*)
11844 version_type=linux # correct to gnu/linux during the next big refactor
11845 need_lib_prefix=no
11846 need_version=no
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 shlibpath_var=LD_LIBRARY_PATH
11850 shlibpath_overrides_runpath=yes
11851 hardcode_into_libs=yes
11852 # ldd complains unless libraries are executable
11853 postinstall_cmds='chmod +x $lib'
11854 ;;
9c60689e 11855
a243b558
JF
11856sunos4*)
11857 version_type=sunos
11858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11860 shlibpath_var=LD_LIBRARY_PATH
11861 shlibpath_overrides_runpath=yes
11862 if test "$with_gnu_ld" = yes; then
11863 need_lib_prefix=no
11864 fi
11865 need_version=yes
11866 ;;
9c60689e 11867
a243b558
JF
11868sysv4 | sysv4.3*)
11869 version_type=linux # correct to gnu/linux during the next big refactor
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871 soname_spec='${libname}${release}${shared_ext}$major'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 case $host_vendor in
11874 sni)
11875 shlibpath_overrides_runpath=no
11876 need_lib_prefix=no
11877 runpath_var=LD_RUN_PATH
11878 ;;
11879 siemens)
11880 need_lib_prefix=no
11881 ;;
11882 motorola)
11883 need_lib_prefix=no
11884 need_version=no
11885 shlibpath_overrides_runpath=no
11886 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11887 ;;
11888 esac
11889 ;;
9c60689e 11890
a243b558
JF
11891sysv4*MP*)
11892 if test -d /usr/nec ;then
11893 version_type=linux # correct to gnu/linux during the next big refactor
11894 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11895 soname_spec='$libname${shared_ext}.$major'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 fi
11898 ;;
9c60689e 11899
a243b558
JF
11900sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11901 version_type=freebsd-elf
11902 need_lib_prefix=no
11903 need_version=no
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11905 soname_spec='${libname}${release}${shared_ext}$major'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=yes
11908 hardcode_into_libs=yes
11909 if test "$with_gnu_ld" = yes; then
11910 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11911 else
11912 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11913 case $host_os in
11914 sco3.2v5*)
11915 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11916 ;;
11917 esac
11918 fi
11919 sys_lib_dlsearch_path_spec='/usr/lib'
11920 ;;
9c60689e 11921
a243b558
JF
11922tpf*)
11923 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11924 version_type=linux # correct to gnu/linux during the next big refactor
11925 need_lib_prefix=no
11926 need_version=no
11927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 shlibpath_overrides_runpath=no
11930 hardcode_into_libs=yes
11931 ;;
9c60689e 11932
a243b558
JF
11933uts4*)
11934 version_type=linux # correct to gnu/linux during the next big refactor
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936 soname_spec='${libname}${release}${shared_ext}$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 ;;
9c60689e 11939
a243b558
JF
11940*)
11941 dynamic_linker=no
11942 ;;
11943esac
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11945$as_echo "$dynamic_linker" >&6; }
11946test "$dynamic_linker" = no && can_build_shared=no
9c60689e 11947
a243b558
JF
11948variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11949if test "$GCC" = yes; then
11950 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11951fi
9c60689e 11952
a243b558
JF
11953if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11954 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11955fi
11956if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11957 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11958fi
9c60689e
DWT
11959
11960
11961
11962
11963
11964
11965
11966
9c60689e
DWT
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
9c60689e 11979
9c60689e 11980
9c60689e 11981
9c60689e 11982
9c60689e
DWT
11983
11984
11985
11986
9c60689e 11987
9c60689e
DWT
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
53ba6704
JF
12001
12002
9c60689e
DWT
12003
12004
12005
12006
9c60689e
DWT
12007
12008
3fd51f51 12009
66170b30
JF
12010
12011
12012
3fd51f51 12013
12833ad8
JF
12014
12015
12016
12017
3fd51f51 12018
3fd51f51
DWT
12019
12020
3fd51f51 12021
3fd51f51 12022
3fd51f51 12023
66170b30 12024
632b71ea 12025
632b71ea
DWT
12026
12027
790e5246 12028
66170b30 12029
9c60689e 12030
9c60689e
DWT
12031
12032
9c60689e 12033
9c60689e
DWT
12034
12035
66170b30 12036
66170b30 12037
9c60689e 12038
e9c9a47c
DWT
12039
12040
12041
66170b30
JF
12042
12043
66170b30 12044
e9c9a47c 12045
a243b558
JF
12046
12047
12048
12049
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12052$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12053hardcode_action=
12054if test -n "$hardcode_libdir_flag_spec" ||
12055 test -n "$runpath_var" ||
12056 test "X$hardcode_automatic" = "Xyes" ; then
12057
12058 # We can hardcode non-existent directories.
12059 if test "$hardcode_direct" != no &&
12060 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12061 # have to relink, otherwise we might link with an installed library
12062 # when we should be linking with a yet-to-be-installed one
12063 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12064 test "$hardcode_minus_L" != no; then
12065 # Linking always hardcodes the temporary library directory.
12066 hardcode_action=relink
12067 else
12068 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12069 hardcode_action=immediate
9c60689e 12070 fi
e9c9a47c 12071else
a243b558
JF
12072 # We cannot hardcode anything, or else we can only hardcode existing
12073 # directories.
12074 hardcode_action=unsupported
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12077$as_echo "$hardcode_action" >&6; }
12078
12079if test "$hardcode_action" = relink ||
12080 test "$inherit_rpath" = yes; then
12081 # Fast installation is not supported
12082 enable_fast_install=no
12083elif test "$shlibpath_overrides_runpath" = yes ||
12084 test "$enable_shared" = no; then
12085 # Fast installation is not necessary
12086 enable_fast_install=needless
9c60689e 12087fi
9c60689e 12088
9c60689e 12089
66170b30 12090
66170b30 12091
9c60689e 12092
a243b558
JF
12093
12094 if test "x$enable_dlopen" != xyes; then
12095 enable_dlopen=unknown
12096 enable_dlopen_self=unknown
12097 enable_dlopen_self_static=unknown
66170b30 12098else
a243b558
JF
12099 lt_cv_dlopen=no
12100 lt_cv_dlopen_libs=
66170b30 12101
a243b558
JF
12102 case $host_os in
12103 beos*)
12104 lt_cv_dlopen="load_add_on"
12105 lt_cv_dlopen_libs=
12106 lt_cv_dlopen_self=yes
12107 ;;
66170b30 12108
a243b558
JF
12109 mingw* | pw32* | cegcc*)
12110 lt_cv_dlopen="LoadLibrary"
12111 lt_cv_dlopen_libs=
12112 ;;
66170b30 12113
a243b558
JF
12114 cygwin*)
12115 lt_cv_dlopen="dlopen"
12116 lt_cv_dlopen_libs=
12117 ;;
66170b30 12118
a243b558
JF
12119 darwin*)
12120 # if libdl is installed we need to link against it
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12122$as_echo_n "checking for dlopen in -ldl... " >&6; }
12123if ${ac_cv_lib_dl_dlopen+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125else
12126 ac_check_lib_save_LIBS=$LIBS
12127LIBS="-ldl $LIBS"
12128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h. */
66170b30 12130
a243b558
JF
12131/* Override any GCC internal prototype to avoid an error.
12132 Use char because int might match the return type of a GCC
12133 builtin and then its argument prototype would still apply. */
12134#ifdef __cplusplus
12135extern "C"
12136#endif
12137char dlopen ();
12138int
12139main ()
12140{
12141return dlopen ();
12142 ;
12143 return 0;
12144}
12145_ACEOF
12146if ac_fn_c_try_link "$LINENO"; then :
12147 ac_cv_lib_dl_dlopen=yes
12148else
12149 ac_cv_lib_dl_dlopen=no
66170b30 12150fi
a243b558
JF
12151rm -f core conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
12153LIBS=$ac_check_lib_save_LIBS
66170b30 12154fi
a243b558
JF
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12156$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12157if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12158 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12159else
66170b30 12160
a243b558
JF
12161 lt_cv_dlopen="dyld"
12162 lt_cv_dlopen_libs=
12163 lt_cv_dlopen_self=yes
66170b30 12164
a243b558 12165fi
9c60689e 12166
a243b558 12167 ;;
9c60689e 12168
a243b558
JF
12169 *)
12170 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12171if test "x$ac_cv_func_shl_load" = xyes; then :
12172 lt_cv_dlopen="shl_load"
12173else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12175$as_echo_n "checking for shl_load in -ldld... " >&6; }
12176if ${ac_cv_lib_dld_shl_load+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178else
12179 ac_check_lib_save_LIBS=$LIBS
12180LIBS="-ldld $LIBS"
12181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h. */
66170b30 12183
a243b558
JF
12184/* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12187#ifdef __cplusplus
12188extern "C"
12189#endif
12190char shl_load ();
12191int
12192main ()
12193{
12194return shl_load ();
12195 ;
12196 return 0;
12197}
12198_ACEOF
12199if ac_fn_c_try_link "$LINENO"; then :
12200 ac_cv_lib_dld_shl_load=yes
66170b30 12201else
a243b558
JF
12202 ac_cv_lib_dld_shl_load=no
12203fi
12204rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206LIBS=$ac_check_lib_save_LIBS
66170b30 12207fi
a243b558
JF
12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12209$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12210if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12211 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12212else
12213 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12214if test "x$ac_cv_func_dlopen" = xyes; then :
12215 lt_cv_dlopen="dlopen"
12216else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12218$as_echo_n "checking for dlopen in -ldl... " >&6; }
12219if ${ac_cv_lib_dl_dlopen+:} false; then :
12220 $as_echo_n "(cached) " >&6
12221else
12222 ac_check_lib_save_LIBS=$LIBS
12223LIBS="-ldl $LIBS"
12224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h. */
e9c9a47c 12226
a243b558
JF
12227/* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12230#ifdef __cplusplus
12231extern "C"
12232#endif
12233char dlopen ();
12234int
12235main ()
12236{
12237return dlopen ();
12238 ;
12239 return 0;
12240}
12241_ACEOF
12242if ac_fn_c_try_link "$LINENO"; then :
12243 ac_cv_lib_dl_dlopen=yes
12244else
12245 ac_cv_lib_dl_dlopen=no
12246fi
12247rm -f core conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12249LIBS=$ac_check_lib_save_LIBS
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12252$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12253if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12255else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12257$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12258if ${ac_cv_lib_svld_dlopen+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260else
12261 ac_check_lib_save_LIBS=$LIBS
12262LIBS="-lsvld $LIBS"
12263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264/* end confdefs.h. */
12265
12266/* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12269#ifdef __cplusplus
12270extern "C"
12271#endif
12272char dlopen ();
12273int
12274main ()
12275{
12276return dlopen ();
12277 ;
12278 return 0;
12279}
12280_ACEOF
12281if ac_fn_c_try_link "$LINENO"; then :
12282 ac_cv_lib_svld_dlopen=yes
12283else
12284 ac_cv_lib_svld_dlopen=no
12285fi
12286rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288LIBS=$ac_check_lib_save_LIBS
12289fi
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12291$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12292if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12294else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12296$as_echo_n "checking for dld_link in -ldld... " >&6; }
12297if ${ac_cv_lib_dld_dld_link+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299else
12300 ac_check_lib_save_LIBS=$LIBS
12301LIBS="-ldld $LIBS"
12302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303/* end confdefs.h. */
12304
12305/* Override any GCC internal prototype to avoid an error.
12306 Use char because int might match the return type of a GCC
12307 builtin and then its argument prototype would still apply. */
12308#ifdef __cplusplus
12309extern "C"
12310#endif
12311char dld_link ();
12312int
12313main ()
12314{
12315return dld_link ();
12316 ;
12317 return 0;
12318}
12319_ACEOF
12320if ac_fn_c_try_link "$LINENO"; then :
12321 ac_cv_lib_dld_dld_link=yes
9c60689e 12322else
a243b558
JF
12323 ac_cv_lib_dld_dld_link=no
12324fi
12325rm -f core conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327LIBS=$ac_check_lib_save_LIBS
12328fi
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12330$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12331if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12332 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9c60689e
DWT
12333fi
12334
12335
a243b558 12336fi
66170b30 12337
66170b30 12338
a243b558 12339fi
66170b30 12340
66170b30
JF
12341
12342fi
e9c9a47c 12343
66170b30 12344
a243b558 12345fi
66170b30 12346
66170b30 12347
66170b30 12348fi
e9c9a47c 12349
a243b558
JF
12350 ;;
12351 esac
9c60689e 12352
a243b558
JF
12353 if test "x$lt_cv_dlopen" != xno; then
12354 enable_dlopen=yes
12355 else
12356 enable_dlopen=no
12357 fi
9c60689e 12358
a243b558
JF
12359 case $lt_cv_dlopen in
12360 dlopen)
12361 save_CPPFLAGS="$CPPFLAGS"
12362 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12363
a243b558
JF
12364 save_LDFLAGS="$LDFLAGS"
12365 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12366
a243b558
JF
12367 save_LIBS="$LIBS"
12368 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12369
a243b558
JF
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12371$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12372if ${lt_cv_dlopen_self+:} false; then :
12373 $as_echo_n "(cached) " >&6
e9c9a47c 12374else
a243b558
JF
12375 if test "$cross_compiling" = yes; then :
12376 lt_cv_dlopen_self=cross
12377else
12378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12379 lt_status=$lt_dlunknown
12380 cat > conftest.$ac_ext <<_LT_EOF
12381#line $LINENO "configure"
12382#include "confdefs.h"
e9c9a47c 12383
a243b558
JF
12384#if HAVE_DLFCN_H
12385#include <dlfcn.h>
12386#endif
e9c9a47c 12387
a243b558 12388#include <stdio.h>
66170b30 12389
a243b558
JF
12390#ifdef RTLD_GLOBAL
12391# define LT_DLGLOBAL RTLD_GLOBAL
12392#else
12393# ifdef DL_GLOBAL
12394# define LT_DLGLOBAL DL_GLOBAL
12395# else
12396# define LT_DLGLOBAL 0
12397# endif
12398#endif
66170b30 12399
a243b558
JF
12400/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12401 find out it does not work in some platform. */
12402#ifndef LT_DLLAZY_OR_NOW
12403# ifdef RTLD_LAZY
12404# define LT_DLLAZY_OR_NOW RTLD_LAZY
12405# else
12406# ifdef DL_LAZY
12407# define LT_DLLAZY_OR_NOW DL_LAZY
12408# else
12409# ifdef RTLD_NOW
12410# define LT_DLLAZY_OR_NOW RTLD_NOW
12411# else
12412# ifdef DL_NOW
12413# define LT_DLLAZY_OR_NOW DL_NOW
12414# else
12415# define LT_DLLAZY_OR_NOW 0
12416# endif
12417# endif
12418# endif
12419# endif
12420#endif
e9c9a47c 12421
a243b558
JF
12422/* When -fvisbility=hidden is used, assume the code has been annotated
12423 correspondingly for the symbols needed. */
12424#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12425int fnord () __attribute__((visibility("default")));
12426#endif
e9c9a47c 12427
a243b558
JF
12428int fnord () { return 42; }
12429int main ()
12430{
12431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12432 int status = $lt_dlunknown;
e9c9a47c 12433
a243b558
JF
12434 if (self)
12435 {
12436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12437 else
12438 {
12439 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12440 else puts (dlerror ());
12441 }
12442 /* dlclose (self); */
12443 }
12444 else
12445 puts (dlerror ());
e9c9a47c 12446
a243b558
JF
12447 return status;
12448}
12449_LT_EOF
12450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12451 (eval $ac_link) 2>&5
12452 ac_status=$?
12453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12454 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12455 (./conftest; exit; ) >&5 2>/dev/null
12456 lt_status=$?
12457 case x$lt_status in
12458 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12459 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12460 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12461 esac
12462 else :
12463 # compilation failed
12464 lt_cv_dlopen_self=no
12465 fi
12466fi
12467rm -fr conftest*
e9c9a47c 12468
e9c9a47c 12469
e9c9a47c 12470fi
a243b558
JF
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12472$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12473
a243b558
JF
12474 if test "x$lt_cv_dlopen_self" = xyes; then
12475 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12477$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12478if ${lt_cv_dlopen_self_static+:} false; then :
12479 $as_echo_n "(cached) " >&6
e9c9a47c 12480else
a243b558
JF
12481 if test "$cross_compiling" = yes; then :
12482 lt_cv_dlopen_self_static=cross
12483else
12484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12485 lt_status=$lt_dlunknown
12486 cat > conftest.$ac_ext <<_LT_EOF
12487#line $LINENO "configure"
12488#include "confdefs.h"
12489
12490#if HAVE_DLFCN_H
12491#include <dlfcn.h>
12492#endif
12493
12494#include <stdio.h>
e9c9a47c 12495
a243b558
JF
12496#ifdef RTLD_GLOBAL
12497# define LT_DLGLOBAL RTLD_GLOBAL
12498#else
12499# ifdef DL_GLOBAL
12500# define LT_DLGLOBAL DL_GLOBAL
12501# else
12502# define LT_DLGLOBAL 0
12503# endif
12504#endif
e9c9a47c 12505
a243b558
JF
12506/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12507 find out it does not work in some platform. */
12508#ifndef LT_DLLAZY_OR_NOW
12509# ifdef RTLD_LAZY
12510# define LT_DLLAZY_OR_NOW RTLD_LAZY
12511# else
12512# ifdef DL_LAZY
12513# define LT_DLLAZY_OR_NOW DL_LAZY
12514# else
12515# ifdef RTLD_NOW
12516# define LT_DLLAZY_OR_NOW RTLD_NOW
12517# else
12518# ifdef DL_NOW
12519# define LT_DLLAZY_OR_NOW DL_NOW
12520# else
12521# define LT_DLLAZY_OR_NOW 0
12522# endif
12523# endif
12524# endif
12525# endif
12526#endif
66170b30 12527
a243b558
JF
12528/* When -fvisbility=hidden is used, assume the code has been annotated
12529 correspondingly for the symbols needed. */
12530#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12531int fnord () __attribute__((visibility("default")));
12532#endif
e9c9a47c 12533
a243b558
JF
12534int fnord () { return 42; }
12535int main ()
12536{
12537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12538 int status = $lt_dlunknown;
e9c9a47c 12539
a243b558
JF
12540 if (self)
12541 {
12542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12543 else
12544 {
12545 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12546 else puts (dlerror ());
12547 }
12548 /* dlclose (self); */
12549 }
12550 else
12551 puts (dlerror ());
e9c9a47c 12552
a243b558
JF
12553 return status;
12554}
12555_LT_EOF
12556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12557 (eval $ac_link) 2>&5
12558 ac_status=$?
12559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12560 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12561 (./conftest; exit; ) >&5 2>/dev/null
12562 lt_status=$?
12563 case x$lt_status in
12564 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12565 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12566 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12567 esac
12568 else :
12569 # compilation failed
12570 lt_cv_dlopen_self_static=no
12571 fi
12572fi
12573rm -fr conftest*
e9c9a47c 12574
b65019fe 12575
a243b558
JF
12576fi
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12578$as_echo "$lt_cv_dlopen_self_static" >&6; }
12579 fi
66170b30 12580
a243b558
JF
12581 CPPFLAGS="$save_CPPFLAGS"
12582 LDFLAGS="$save_LDFLAGS"
12583 LIBS="$save_LIBS"
12584 ;;
12585 esac
66170b30 12586
a243b558
JF
12587 case $lt_cv_dlopen_self in
12588 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12589 *) enable_dlopen_self=unknown ;;
12590 esac
12591
12592 case $lt_cv_dlopen_self_static in
12593 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12594 *) enable_dlopen_self_static=unknown ;;
12595 esac
b65019fe
DWT
12596fi
12597
12598
66170b30 12599
b65019fe 12600
e9c9a47c 12601
e9c9a47c
DWT
12602
12603
e9c9a47c 12604
e9c9a47c
DWT
12605
12606
e9c9a47c 12607
e9c9a47c 12608
3530897b 12609
47aaa820 12610
47aaa820 12611
a243b558
JF
12612
12613
12614striplib=
12615old_striplib=
12616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12617$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12618if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12619 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12620 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622$as_echo "yes" >&6; }
47aaa820 12623else
a243b558
JF
12624# FIXME - insert some real tests, host_os isn't really good enough
12625 case $host_os in
12626 darwin*)
12627 if test -n "$STRIP" ; then
12628 striplib="$STRIP -x"
12629 old_striplib="$STRIP -S"
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12631$as_echo "yes" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634$as_echo "no" >&6; }
12635 fi
12636 ;;
12637 *)
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639$as_echo "no" >&6; }
12640 ;;
12641 esac
3530897b 12642fi
47aaa820 12643
3530897b
DWT
12644
12645
9c60689e 12646
9c60689e 12647
9c60689e 12648
9c60689e 12649
9c60689e 12650
66170b30 12651
66170b30 12652
66170b30 12653
66170b30 12654
a243b558
JF
12655 # Report which library types will actually be built
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12657$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12659$as_echo "$can_build_shared" >&6; }
66170b30 12660
a243b558
JF
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12662$as_echo_n "checking whether to build shared libraries... " >&6; }
12663 test "$can_build_shared" = "no" && enable_shared=no
66170b30 12664
a243b558
JF
12665 # On AIX, shared libraries and static libraries use the same namespace, and
12666 # are all built from PIC.
12667 case $host_os in
12668 aix3*)
12669 test "$enable_shared" = yes && enable_static=no
12670 if test -n "$RANLIB"; then
12671 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12672 postinstall_cmds='$RANLIB $lib'
12673 fi
12674 ;;
66170b30 12675
a243b558
JF
12676 aix[4-9]*)
12677 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12678 test "$enable_shared" = yes && enable_static=no
12679 fi
12680 ;;
12681 esac
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12683$as_echo "$enable_shared" >&6; }
66170b30 12684
a243b558
JF
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12686$as_echo_n "checking whether to build static libraries... " >&6; }
12687 # Make sure either enable_shared or enable_static is yes.
12688 test "$enable_shared" = yes || enable_static=yes
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12690$as_echo "$enable_static" >&6; }
66170b30 12691
9c60689e 12692
e9c9a47c 12693
9c60689e 12694
a243b558
JF
12695fi
12696ac_ext=c
12697ac_cpp='$CPP $CPPFLAGS'
12698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701
12702CC="$lt_save_CC"
e9c9a47c 12703
ee134472 12704 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
12705 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12706 (test "X$CXX" != "Xg++"))) ; then
12707 ac_ext=cpp
12708ac_cpp='$CXXCPP $CPPFLAGS'
12709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12713$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12714if test -z "$CXXCPP"; then
ee134472 12715 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
12716 $as_echo_n "(cached) " >&6
12717else
12718 # Double quotes because CXXCPP needs to be expanded
12719 for CXXCPP in "$CXX -E" "/lib/cpp"
12720 do
12721 ac_preproc_ok=false
12722for ac_cxx_preproc_warn_flag in '' yes
12723do
12724 # Use a header file that comes with gcc, so configuring glibc
12725 # with a fresh cross-compiler works.
12726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 # <limits.h> exists even on freestanding compilers.
12728 # On the NeXT, cc -E runs the code through the compiler's parser,
12729 # not just through cpp. "Syntax error" is here to catch this case.
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731/* end confdefs.h. */
12732#ifdef __STDC__
12733# include <limits.h>
12734#else
12735# include <assert.h>
12736#endif
12737 Syntax error
12738_ACEOF
12739if ac_fn_cxx_try_cpp "$LINENO"; then :
12740
12741else
12742 # Broken: fails on valid input.
12743continue
12744fi
12833ad8 12745rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12746
12747 # OK, works on sane cases. Now check whether nonexistent headers
12748 # can be detected and how.
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750/* end confdefs.h. */
12751#include <ac_nonexistent.h>
12752_ACEOF
12753if ac_fn_cxx_try_cpp "$LINENO"; then :
12754 # Broken: success on invalid input.
12755continue
12756else
12757 # Passes both tests.
12758ac_preproc_ok=:
12759break
12760fi
12833ad8 12761rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12762
12763done
12764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12765rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12766if $ac_preproc_ok; then :
12767 break
12768fi
12769
12770 done
12771 ac_cv_prog_CXXCPP=$CXXCPP
12772
12773fi
12774 CXXCPP=$ac_cv_prog_CXXCPP
12775else
12776 ac_cv_prog_CXXCPP=$CXXCPP
12777fi
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12779$as_echo "$CXXCPP" >&6; }
12780ac_preproc_ok=false
12781for ac_cxx_preproc_warn_flag in '' yes
12782do
12783 # Use a header file that comes with gcc, so configuring glibc
12784 # with a fresh cross-compiler works.
12785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12786 # <limits.h> exists even on freestanding compilers.
12787 # On the NeXT, cc -E runs the code through the compiler's parser,
12788 # not just through cpp. "Syntax error" is here to catch this case.
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790/* end confdefs.h. */
12791#ifdef __STDC__
12792# include <limits.h>
12793#else
12794# include <assert.h>
12795#endif
12796 Syntax error
12797_ACEOF
12798if ac_fn_cxx_try_cpp "$LINENO"; then :
12799
12800else
12801 # Broken: fails on valid input.
12802continue
12803fi
12833ad8 12804rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12805
12806 # OK, works on sane cases. Now check whether nonexistent headers
12807 # can be detected and how.
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809/* end confdefs.h. */
12810#include <ac_nonexistent.h>
12811_ACEOF
12812if ac_fn_cxx_try_cpp "$LINENO"; then :
12813 # Broken: success on invalid input.
12814continue
12815else
12816 # Passes both tests.
12817ac_preproc_ok=:
12818break
12819fi
12833ad8 12820rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12821
12822done
12823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12824rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12825if $ac_preproc_ok; then :
12826
12827else
12828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
12830as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12831See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
12832fi
12833
a243b558
JF
12834ac_ext=c
12835ac_cpp='$CPP $CPPFLAGS'
12836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12838ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
12839
12840else
e9c9a47c
DWT
12841 _lt_caught_CXX_error=yes
12842fi
12843
9c60689e
DWT
12844ac_ext=cpp
12845ac_cpp='$CXXCPP $CPPFLAGS'
12846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 12849
47aaa820
DWT
12850archive_cmds_need_lc_CXX=no
12851allow_undefined_flag_CXX=
12852always_export_symbols_CXX=no
12853archive_expsym_cmds_CXX=
12854compiler_needs_object_CXX=no
12855export_dynamic_flag_spec_CXX=
12856hardcode_direct_CXX=no
12857hardcode_direct_absolute_CXX=no
12858hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
12859hardcode_libdir_separator_CXX=
12860hardcode_minus_L_CXX=no
12861hardcode_shlibpath_var_CXX=unsupported
12862hardcode_automatic_CXX=no
12863inherit_rpath_CXX=no
12864module_cmds_CXX=
12865module_expsym_cmds_CXX=
12866link_all_deplibs_CXX=unknown
12867old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
12868reload_flag_CXX=$reload_flag
12869reload_cmds_CXX=$reload_cmds
47aaa820
DWT
12870no_undefined_flag_CXX=
12871whole_archive_flag_spec_CXX=
12872enable_shared_with_static_runtimes_CXX=no
9c60689e 12873
47aaa820
DWT
12874# Source file extension for C++ test sources.
12875ac_ext=cpp
9c60689e 12876
47aaa820
DWT
12877# Object file extension for compiled C++ test sources.
12878objext=o
12879objext_CXX=$objext
9c60689e 12880
47aaa820
DWT
12881# No sense in running all these tests if we already determined that
12882# the CXX compiler isn't working. Some variables (like enable_shared)
12883# are currently assumed to apply to all compilers on this platform,
12884# and will be corrupted by setting them based on a non-working compiler.
12885if test "$_lt_caught_CXX_error" != yes; then
12886 # Code to be used in simple compile tests
12887 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 12888
47aaa820
DWT
12889 # Code to be used in simple link tests
12890 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 12891
47aaa820 12892 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 12893
9c60689e 12894
9c60689e 12895
9c60689e 12896
9c60689e 12897
9c60689e 12898
47aaa820
DWT
12899# If no C compiler was specified, use CC.
12900LTCC=${LTCC-"$CC"}
9c60689e 12901
47aaa820
DWT
12902# If no C compiler flags were specified, use CFLAGS.
12903LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 12904
47aaa820
DWT
12905# Allow CC to be a program name with arguments.
12906compiler=$CC
9c60689e 12907
9c60689e 12908
47aaa820
DWT
12909 # save warnings/boilerplate of simple test code
12910 ac_outfile=conftest.$ac_objext
12911echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12912eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12913_lt_compiler_boilerplate=`cat conftest.err`
00a96142 12914$RM -r conftest*
9c60689e 12915
47aaa820
DWT
12916 ac_outfile=conftest.$ac_objext
12917echo "$lt_simple_link_test_code" >conftest.$ac_ext
12918eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12919_lt_linker_boilerplate=`cat conftest.err`
12920$RM -r conftest*
9c60689e 12921
9c60689e 12922
47aaa820
DWT
12923 # Allow CC to be a program name with arguments.
12924 lt_save_CC=$CC
ee134472 12925 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
12926 lt_save_LD=$LD
12927 lt_save_GCC=$GCC
12928 GCC=$GXX
12929 lt_save_with_gnu_ld=$with_gnu_ld
12930 lt_save_path_LD=$lt_cv_path_LD
12931 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12932 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 12933 else
47aaa820 12934 $as_unset lt_cv_prog_gnu_ld
9c60689e 12935 fi
47aaa820
DWT
12936 if test -n "${lt_cv_path_LDCXX+set}"; then
12937 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 12938 else
47aaa820 12939 $as_unset lt_cv_path_LD
9c60689e 12940 fi
47aaa820
DWT
12941 test -z "${LDCXX+set}" || LD=$LDCXX
12942 CC=${CXX-"c++"}
ee134472 12943 CFLAGS=$CXXFLAGS
47aaa820
DWT
12944 compiler=$CC
12945 compiler_CXX=$CC
12946 for cc_temp in $compiler""; do
12947 case $cc_temp in
12948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12950 \-*) ;;
12951 *) break;;
12952 esac
12953done
ee134472 12954cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
12955
12956
47aaa820
DWT
12957 if test -n "$compiler"; then
12958 # We don't want -fno-exception when compiling C++ code, so set the
12959 # no_builtin_flag separately
12960 if test "$GXX" = yes; then
12961 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12962 else
12963 lt_prog_compiler_no_builtin_flag_CXX=
12964 fi
9c60689e 12965
47aaa820
DWT
12966 if test "$GXX" = yes; then
12967 # Set up default GNU C++ configuration
12968
12969
12970
12971# Check whether --with-gnu-ld was given.
12972if test "${with_gnu_ld+set}" = set; then :
12973 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12974else
47aaa820 12975 with_gnu_ld=no
9c60689e
DWT
12976fi
12977
47aaa820
DWT
12978ac_prog=ld
12979if test "$GCC" = yes; then
12980 # Check if gcc -print-prog-name=ld gives a path.
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12982$as_echo_n "checking for ld used by $CC... " >&6; }
12983 case $host in
12984 *-*-mingw*)
12985 # gcc leaves a trailing carriage return which upsets mingw
12986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12987 *)
12988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12989 esac
12990 case $ac_prog in
12991 # Accept absolute paths.
12992 [\\/]* | ?:[\\/]*)
12993 re_direlt='/[^/][^/]*/\.\./'
12994 # Canonicalize the pathname of ld
12995 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12996 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12997 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12998 done
12999 test -z "$LD" && LD="$ac_prog"
13000 ;;
13001 "")
13002 # If it fails, then pretend we aren't using GCC.
13003 ac_prog=ld
13004 ;;
13005 *)
13006 # If it is relative, then search for the first ld in PATH.
13007 with_gnu_ld=unknown
13008 ;;
13009 esac
13010elif test "$with_gnu_ld" = yes; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13012$as_echo_n "checking for GNU ld... " >&6; }
13013else
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13015$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 13016fi
ee134472 13017if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
13018 $as_echo_n "(cached) " >&6
13019else
47aaa820
DWT
13020 if test -z "$LD"; then
13021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13022 for ac_dir in $PATH; do
13023 IFS="$lt_save_ifs"
13024 test -z "$ac_dir" && ac_dir=.
13025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13026 lt_cv_path_LD="$ac_dir/$ac_prog"
13027 # Check to see if the program is GNU ld. I'd rather use --version,
13028 # but apparently some variants of GNU ld only accept -v.
13029 # Break only if it was the GNU/non-GNU ld that we prefer.
13030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13031 *GNU* | *'with BFD'*)
13032 test "$with_gnu_ld" != no && break
13033 ;;
13034 *)
13035 test "$with_gnu_ld" != yes && break
13036 ;;
13037 esac
13038 fi
9c60689e 13039 done
47aaa820
DWT
13040 IFS="$lt_save_ifs"
13041else
13042 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
13043fi
13044fi
47aaa820
DWT
13045
13046LD="$lt_cv_path_LD"
13047if test -n "$LD"; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13049$as_echo "$LD" >&6; }
9c60689e
DWT
13050else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
13053fi
12833ad8 13054test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13056$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 13057if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
13058 $as_echo_n "(cached) " >&6
13059else
13060 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13061case `$LD -v 2>&1 </dev/null` in
13062*GNU* | *'with BFD'*)
13063 lt_cv_prog_gnu_ld=yes
13064 ;;
13065*)
13066 lt_cv_prog_gnu_ld=no
13067 ;;
13068esac
13069fi
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13071$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13072with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
13073
13074
9c60689e 13075
9c60689e 13076
9c60689e 13077
9c60689e 13078
9c60689e 13079
47aaa820
DWT
13080 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13081 # archiving commands below assume that GNU ld is being used.
13082 if test "$with_gnu_ld" = yes; then
ee134472
JF
13083 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13084 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9c60689e 13085
47aaa820
DWT
13086 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13087 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13088
47aaa820
DWT
13089 # If archive_cmds runs LD, not CC, wlarc should be empty
13090 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13091 # investigate it a little bit more. (MM)
13092 wlarc='${wl}'
9c60689e 13093
47aaa820
DWT
13094 # ancient GNU ld didn't support --whole-archive et. al.
13095 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13096 $GREP 'no-whole-archive' > /dev/null; then
13097 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13098 else
13099 whole_archive_flag_spec_CXX=
13100 fi
13101 else
13102 with_gnu_ld=no
13103 wlarc=
13104
13105 # A generic and very simple default shared library creation
13106 # command for GNU C++ for the case where it uses the native
13107 # linker, instead of GNU ld. If possible, this setting should
13108 # overridden to take advantage of the native linker features on
13109 # the platform it is being used on.
13110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13111 fi
13112
13113 # Commands to make compiler produce verbose output that lists
13114 # what "hidden" libraries, object files and flags are used when
13115 # linking a shared library.
ee134472 13116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13117
13118 else
13119 GXX=no
13120 with_gnu_ld=no
13121 wlarc=
13122 fi
13123
13124 # PORTME: fill in a description of your system's C++ link characteristics
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13126$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13127 ld_shlibs_CXX=yes
13128 case $host_os in
13129 aix3*)
13130 # FIXME: insert proper C++ library support
13131 ld_shlibs_CXX=no
13132 ;;
13133 aix[4-9]*)
13134 if test "$host_cpu" = ia64; then
13135 # On IA64, the linker does run time linking by default, so we don't
13136 # have to do anything special.
13137 aix_use_runtimelinking=no
13138 exp_sym_flag='-Bexport'
13139 no_entry_flag=""
13140 else
13141 aix_use_runtimelinking=no
13142
13143 # Test if we are trying to use run time linking or normal
13144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13145 # need to do runtime linking.
13146 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13147 for ld_flag in $LDFLAGS; do
13148 case $ld_flag in
13149 *-brtl*)
13150 aix_use_runtimelinking=yes
13151 break
13152 ;;
13153 esac
13154 done
13155 ;;
13156 esac
13157
13158 exp_sym_flag='-bexport'
13159 no_entry_flag='-bnoentry'
13160 fi
13161
13162 # When large executables or shared objects are built, AIX ld can
13163 # have problems creating the table of contents. If linking a library
13164 # or program results in "error TOC overflow" add -mminimal-toc to
13165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13167
13168 archive_cmds_CXX=''
13169 hardcode_direct_CXX=yes
13170 hardcode_direct_absolute_CXX=yes
13171 hardcode_libdir_separator_CXX=':'
13172 link_all_deplibs_CXX=yes
13173 file_list_spec_CXX='${wl}-f,'
13174
13175 if test "$GXX" = yes; then
13176 case $host_os in aix4.[012]|aix4.[012].*)
13177 # We only want to do this on AIX 4.2 and lower, the check
13178 # below for broken collect2 doesn't work under 4.3+
13179 collect2name=`${CC} -print-prog-name=collect2`
13180 if test -f "$collect2name" &&
13181 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13182 then
13183 # We have reworked collect2
13184 :
13185 else
13186 # We have old collect2
13187 hardcode_direct_CXX=unsupported
13188 # It fails to find uninstalled libraries when the uninstalled
13189 # path is not listed in the libpath. Setting hardcode_minus_L
13190 # to unsupported forces relinking
13191 hardcode_minus_L_CXX=yes
13192 hardcode_libdir_flag_spec_CXX='-L$libdir'
13193 hardcode_libdir_separator_CXX=
13194 fi
13195 esac
13196 shared_flag='-shared'
13197 if test "$aix_use_runtimelinking" = yes; then
13198 shared_flag="$shared_flag "'${wl}-G'
13199 fi
13200 else
13201 # not using gcc
13202 if test "$host_cpu" = ia64; then
13203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13204 # chokes on -Wl,-G. The following line is correct:
13205 shared_flag='-G'
13206 else
13207 if test "$aix_use_runtimelinking" = yes; then
13208 shared_flag='${wl}-G'
13209 else
13210 shared_flag='${wl}-bM:SRE'
13211 fi
13212 fi
13213 fi
13214
13215 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13216 # It seems that -bexpall does not export symbols beginning with
13217 # underscore (_), so it is better to generate a list of symbols to
13218 # export.
13219 always_export_symbols_CXX=yes
13220 if test "$aix_use_runtimelinking" = yes; then
13221 # Warning - without using the other runtime loading flags (-brtl),
13222 # -berok will link without error, but may produce a broken library.
13223 allow_undefined_flag_CXX='-berok'
13224 # Determine the default libpath from the value encoded in an empty
13225 # executable.
ee134472
JF
13226 if test "${lt_cv_aix_libpath+set}" = set; then
13227 aix_libpath=$lt_cv_aix_libpath
13228else
13229 if ${lt_cv_aix_libpath__CXX+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231else
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13233/* end confdefs.h. */
13234
13235int
13236main ()
13237{
13238
13239 ;
13240 return 0;
13241}
13242_ACEOF
47aaa820 13243if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13244
ee134472
JF
13245 lt_aix_libpath_sed='
13246 /Import File Strings/,/^$/ {
13247 /^0/ {
13248 s/^0 *\([^ ]*\) *$/\1/
13249 p
13250 }
13251 }'
13252 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13253 # Check for a 64-bit object if we didn't find anything.
13254 if test -z "$lt_cv_aix_libpath__CXX"; then
13255 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13256 fi
47aaa820
DWT
13257fi
13258rm -f core conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13260 if test -z "$lt_cv_aix_libpath__CXX"; then
13261 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13262 fi
13263
13264fi
13265
13266 aix_libpath=$lt_cv_aix_libpath__CXX
13267fi
47aaa820
DWT
13268
13269 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13270
ee134472 13271 archive_expsym_cmds_CXX='$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"
47aaa820
DWT
13272 else
13273 if test "$host_cpu" = ia64; then
13274 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13275 allow_undefined_flag_CXX="-z nodefs"
13276 archive_expsym_cmds_CXX="\$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"
13277 else
13278 # Determine the default libpath from the value encoded in an
13279 # empty executable.
ee134472
JF
13280 if test "${lt_cv_aix_libpath+set}" = set; then
13281 aix_libpath=$lt_cv_aix_libpath
13282else
13283 if ${lt_cv_aix_libpath__CXX+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285else
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13287/* end confdefs.h. */
13288
13289int
13290main ()
13291{
13292
13293 ;
13294 return 0;
13295}
13296_ACEOF
47aaa820 13297if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13298
ee134472
JF
13299 lt_aix_libpath_sed='
13300 /Import File Strings/,/^$/ {
13301 /^0/ {
13302 s/^0 *\([^ ]*\) *$/\1/
13303 p
13304 }
13305 }'
13306 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13307 # Check for a 64-bit object if we didn't find anything.
13308 if test -z "$lt_cv_aix_libpath__CXX"; then
13309 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13310 fi
9c60689e 13311fi
47aaa820
DWT
13312rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13314 if test -z "$lt_cv_aix_libpath__CXX"; then
13315 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13316 fi
13317
13318fi
13319
13320 aix_libpath=$lt_cv_aix_libpath__CXX
13321fi
9c60689e 13322
47aaa820
DWT
13323 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13324 # Warning - without using the other run time loading flags,
13325 # -berok will link without error, but may produce a broken library.
13326 no_undefined_flag_CXX=' ${wl}-bernotok'
13327 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
13328 if test "$with_gnu_ld" = yes; then
13329 # We only use this code for GNU lds that support --whole-archive.
13330 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13331 else
13332 # Exported symbols can be pulled into shared objects from archives
13333 whole_archive_flag_spec_CXX='$convenience'
13334 fi
47aaa820
DWT
13335 archive_cmds_need_lc_CXX=yes
13336 # This is similar to how AIX traditionally builds its shared
13337 # libraries.
13338 archive_expsym_cmds_CXX="\$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'
13339 fi
13340 fi
13341 ;;
9c60689e 13342
47aaa820
DWT
13343 beos*)
13344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13345 allow_undefined_flag_CXX=unsupported
13346 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13347 # support --undefined. This deserves some investigation. FIXME
13348 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13349 else
13350 ld_shlibs_CXX=no
13351 fi
13352 ;;
9c60689e 13353
47aaa820
DWT
13354 chorus*)
13355 case $cc_basename in
13356 *)
13357 # FIXME: insert proper C++ library support
13358 ld_shlibs_CXX=no
13359 ;;
13360 esac
13361 ;;
9c60689e 13362
47aaa820 13363 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13364 case $GXX,$cc_basename in
13365 ,cl* | no,cl*)
13366 # Native MSVC
13367 # hardcode_libdir_flag_spec is actually meaningless, as there is
13368 # no search path for DLLs.
13369 hardcode_libdir_flag_spec_CXX=' '
13370 allow_undefined_flag_CXX=unsupported
13371 always_export_symbols_CXX=yes
13372 file_list_spec_CXX='@'
13373 # Tell ltmain to make .lib files, not .a files.
13374 libext=lib
13375 # Tell ltmain to make .dll files, not .so files.
13376 shrext_cmds=".dll"
13377 # FIXME: Setting linknames here is a bad hack.
13378 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13379 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13380 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13381 else
13382 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13383 fi~
13384 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13385 linknames='
13386 # The linker will not automatically build a static lib if we build a DLL.
13387 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13388 enable_shared_with_static_runtimes_CXX=yes
13389 # Don't use ranlib
13390 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13391 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13392 lt_tool_outputfile="@TOOL_OUTPUT@"~
13393 case $lt_outputfile in
13394 *.exe|*.EXE) ;;
13395 *)
13396 lt_outputfile="$lt_outputfile.exe"
13397 lt_tool_outputfile="$lt_tool_outputfile.exe"
13398 ;;
13399 esac~
13400 func_to_tool_file "$lt_outputfile"~
13401 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13402 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13403 $RM "$lt_outputfile.manifest";
13404 fi'
13405 ;;
13406 *)
13407 # g++
13408 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13409 # as there is no search path for DLLs.
13410 hardcode_libdir_flag_spec_CXX='-L$libdir'
13411 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13412 allow_undefined_flag_CXX=unsupported
13413 always_export_symbols_CXX=no
13414 enable_shared_with_static_runtimes_CXX=yes
13415
13416 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13417 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13418 # If the export-symbols file already is a .def file (1st line
13419 # is EXPORTS), use it as is; otherwise, prepend...
13420 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13421 cp $export_symbols $output_objdir/$soname.def;
13422 else
13423 echo EXPORTS > $output_objdir/$soname.def;
13424 cat $export_symbols >> $output_objdir/$soname.def;
13425 fi~
13426 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13427 else
13428 ld_shlibs_CXX=no
13429 fi
13430 ;;
13431 esac
13432 ;;
47aaa820 13433 darwin* | rhapsody*)
9c60689e 13434
9c60689e 13435
47aaa820
DWT
13436 archive_cmds_need_lc_CXX=no
13437 hardcode_direct_CXX=no
13438 hardcode_automatic_CXX=yes
13439 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
13440 if test "$lt_cv_ld_force_load" = "yes"; then
13441 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
53ba6704 13442
ee134472
JF
13443 else
13444 whole_archive_flag_spec_CXX=''
13445 fi
47aaa820
DWT
13446 link_all_deplibs_CXX=yes
13447 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13448 case $cc_basename in
13449 ifort*) _lt_dar_can_shared=yes ;;
13450 *) _lt_dar_can_shared=$GCC ;;
13451 esac
13452 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 13453 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13454 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13455 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13456 archive_expsym_cmds_CXX="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}"
13457 module_expsym_cmds_CXX="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}"
13458 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13459 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13460 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13461 fi
9c60689e 13462
47aaa820
DWT
13463 else
13464 ld_shlibs_CXX=no
13465 fi
9c60689e 13466
47aaa820 13467 ;;
9c60689e 13468
47aaa820
DWT
13469 dgux*)
13470 case $cc_basename in
13471 ec++*)
13472 # FIXME: insert proper C++ library support
13473 ld_shlibs_CXX=no
13474 ;;
13475 ghcx*)
13476 # Green Hills C++ Compiler
13477 # FIXME: insert proper C++ library support
13478 ld_shlibs_CXX=no
13479 ;;
13480 *)
13481 # FIXME: insert proper C++ library support
13482 ld_shlibs_CXX=no
13483 ;;
13484 esac
13485 ;;
9c60689e 13486
53ba6704 13487 freebsd2.*)
47aaa820
DWT
13488 # C++ shared libraries reported to be fairly broken before
13489 # switch to ELF
13490 ld_shlibs_CXX=no
13491 ;;
9c60689e 13492
47aaa820
DWT
13493 freebsd-elf*)
13494 archive_cmds_need_lc_CXX=no
13495 ;;
9c60689e 13496
47aaa820
DWT
13497 freebsd* | dragonfly*)
13498 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13499 # conventions
13500 ld_shlibs_CXX=yes
13501 ;;
9c60689e 13502
47aaa820
DWT
13503 gnu*)
13504 ;;
9c60689e 13505
ee134472
JF
13506 haiku*)
13507 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508 link_all_deplibs_CXX=yes
13509 ;;
13510
47aaa820
DWT
13511 hpux9*)
13512 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13513 hardcode_libdir_separator_CXX=:
13514 export_dynamic_flag_spec_CXX='${wl}-E'
13515 hardcode_direct_CXX=yes
13516 hardcode_minus_L_CXX=yes # Not in the search PATH,
13517 # but as the default
13518 # location of the library.
9c60689e 13519
47aaa820
DWT
13520 case $cc_basename in
13521 CC*)
13522 # FIXME: insert proper C++ library support
13523 ld_shlibs_CXX=no
13524 ;;
13525 aCC*)
13526 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13527 # Commands to make compiler produce verbose output that lists
13528 # what "hidden" libraries, object files and flags are used when
13529 # linking a shared library.
13530 #
13531 # There doesn't appear to be a way to prevent this compiler from
13532 # explicitly linking system object files so we need to strip them
13533 # from the output so that they don't get included in the library
13534 # dependencies.
ee134472 13535 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
47aaa820
DWT
13536 ;;
13537 *)
13538 if test "$GXX" = yes; then
ee134472 13539 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47aaa820
DWT
13540 else
13541 # FIXME: insert proper C++ library support
13542 ld_shlibs_CXX=no
13543 fi
13544 ;;
13545 esac
13546 ;;
9c60689e 13547
47aaa820
DWT
13548 hpux10*|hpux11*)
13549 if test $with_gnu_ld = no; then
13550 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13551 hardcode_libdir_separator_CXX=:
9c60689e 13552
47aaa820
DWT
13553 case $host_cpu in
13554 hppa*64*|ia64*)
13555 ;;
13556 *)
13557 export_dynamic_flag_spec_CXX='${wl}-E'
13558 ;;
13559 esac
13560 fi
13561 case $host_cpu in
13562 hppa*64*|ia64*)
13563 hardcode_direct_CXX=no
13564 hardcode_shlibpath_var_CXX=no
13565 ;;
13566 *)
13567 hardcode_direct_CXX=yes
13568 hardcode_direct_absolute_CXX=yes
13569 hardcode_minus_L_CXX=yes # Not in the search PATH,
13570 # but as the default
13571 # location of the library.
13572 ;;
13573 esac
9c60689e 13574
47aaa820
DWT
13575 case $cc_basename in
13576 CC*)
13577 # FIXME: insert proper C++ library support
13578 ld_shlibs_CXX=no
13579 ;;
13580 aCC*)
13581 case $host_cpu in
13582 hppa*64*)
13583 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13584 ;;
13585 ia64*)
13586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13587 ;;
13588 *)
13589 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13590 ;;
13591 esac
13592 # Commands to make compiler produce verbose output that lists
13593 # what "hidden" libraries, object files and flags are used when
13594 # linking a shared library.
13595 #
13596 # There doesn't appear to be a way to prevent this compiler from
13597 # explicitly linking system object files so we need to strip them
13598 # from the output so that they don't get included in the library
13599 # dependencies.
ee134472 13600 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
47aaa820
DWT
13601 ;;
13602 *)
13603 if test "$GXX" = yes; then
13604 if test $with_gnu_ld = no; then
13605 case $host_cpu in
13606 hppa*64*)
13607 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13608 ;;
13609 ia64*)
ee134472 13610 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
13611 ;;
13612 *)
ee134472 13613 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
13614 ;;
13615 esac
13616 fi
13617 else
13618 # FIXME: insert proper C++ library support
13619 ld_shlibs_CXX=no
13620 fi
13621 ;;
13622 esac
13623 ;;
9c60689e 13624
47aaa820
DWT
13625 interix[3-9]*)
13626 hardcode_direct_CXX=no
13627 hardcode_shlibpath_var_CXX=no
13628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13629 export_dynamic_flag_spec_CXX='${wl}-E'
13630 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13631 # Instead, shared libraries are loaded at an image base (0x10000000 by
13632 # default) and relocated if they conflict, which is a slow very memory
13633 # consuming and fragmenting process. To avoid this, we pick a random,
13634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13635 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13636 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13637 archive_expsym_cmds_CXX='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'
13638 ;;
13639 irix5* | irix6*)
13640 case $cc_basename in
13641 CC*)
13642 # SGI C++
ee134472 13643 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9c60689e 13644
47aaa820
DWT
13645 # Archives containing C++ object files must be created using
13646 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13647 # necessary to make sure instantiated templates are included
13648 # in the archive.
13649 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13650 ;;
13651 *)
13652 if test "$GXX" = yes; then
13653 if test "$with_gnu_ld" = no; then
ee134472 13654 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
47aaa820 13655 else
ee134472 13656 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
47aaa820
DWT
13657 fi
13658 fi
13659 link_all_deplibs_CXX=yes
13660 ;;
13661 esac
13662 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13663 hardcode_libdir_separator_CXX=:
13664 inherit_rpath_CXX=yes
13665 ;;
9c60689e 13666
1504c9b8 13667 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13668 case $cc_basename in
13669 KCC*)
13670 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13671
47aaa820
DWT
13672 # KCC will only create a shared library if the output file
13673 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13674 # to its proper name (with version) after linking.
13675 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13676 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13677 # Commands to make compiler produce verbose output that lists
13678 # what "hidden" libraries, object files and flags are used when
13679 # linking a shared library.
13680 #
13681 # There doesn't appear to be a way to prevent this compiler from
13682 # explicitly linking system object files so we need to strip them
13683 # from the output so that they don't get included in the library
13684 # dependencies.
ee134472 13685 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
9c60689e 13686
47aaa820
DWT
13687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13689
47aaa820
DWT
13690 # Archives containing C++ object files must be created using
13691 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13692 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13693 ;;
13694 icpc* | ecpc* )
13695 # Intel C++
13696 with_gnu_ld=yes
13697 # version 8.0 and above of icpc choke on multiply defined symbols
13698 # if we add $predep_objects and $postdep_objects, however 7.1 and
13699 # earlier do not add the objects themselves.
13700 case `$CC -V 2>&1` in
13701 *"Version 7."*)
13702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13703 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13704 ;;
13705 *) # Version 8.0 or newer
13706 tmp_idyn=
13707 case $host_cpu in
13708 ia64*) tmp_idyn=' -i_dynamic';;
13709 esac
13710 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13711 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13712 ;;
13713 esac
13714 archive_cmds_need_lc_CXX=no
13715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13717 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13718 ;;
13719 pgCC* | pgcpp*)
13720 # Portland Group C++ compiler
13721 case `$CC -V` in
ee134472 13722 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
13723 prelink_cmds_CXX='tpldir=Template.dir~
13724 rm -rf $tpldir~
13725 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 13726 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
13727 old_archive_cmds_CXX='tpldir=Template.dir~
13728 rm -rf $tpldir~
13729 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 13730 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
13731 $RANLIB $oldlib'
13732 archive_cmds_CXX='tpldir=Template.dir~
13733 rm -rf $tpldir~
13734 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13735 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
47aaa820
DWT
13736 archive_expsym_cmds_CXX='tpldir=Template.dir~
13737 rm -rf $tpldir~
13738 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13739 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
47aaa820 13740 ;;
ee134472 13741 *) # Version 6 and above use weak symbols
47aaa820
DWT
13742 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13743 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13744 ;;
13745 esac
9c60689e 13746
47aaa820
DWT
13747 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13748 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 13749 whole_archive_flag_spec_CXX='${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'
47aaa820
DWT
13750 ;;
13751 cxx*)
13752 # Compaq C++
13753 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9c60689e 13755
47aaa820
DWT
13756 runpath_var=LD_RUN_PATH
13757 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13758 hardcode_libdir_separator_CXX=:
9c60689e 13759
47aaa820
DWT
13760 # Commands to make compiler produce verbose output that lists
13761 # what "hidden" libraries, object files and flags are used when
13762 # linking a shared library.
13763 #
13764 # There doesn't appear to be a way to prevent this compiler from
13765 # explicitly linking system object files so we need to strip them
13766 # from the output so that they don't get included in the library
13767 # dependencies.
ee134472 13768 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
47aaa820 13769 ;;
ee134472 13770 xl* | mpixl* | bgxl*)
47aaa820
DWT
13771 # IBM XL 8.0 on PPC, with GNU ld
13772 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13774 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13775 if test "x$supports_anon_versioning" = xyes; then
13776 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13777 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13778 echo "local: *; };" >> $output_objdir/$libname.ver~
13779 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13780 fi
13781 ;;
13782 *)
13783 case `$CC -V 2>&1 | sed 5q` in
13784 *Sun\ C*)
13785 # Sun C++ 5.9
13786 no_undefined_flag_CXX=' -zdefs'
13787 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13788 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13789 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 13790 whole_archive_flag_spec_CXX='${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'
47aaa820 13791 compiler_needs_object_CXX=yes
9c60689e 13792
47aaa820
DWT
13793 # Not sure whether something based on
13794 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13795 # would be better.
ee134472 13796 output_verbose_link_cmd='func_echo_all'
9c60689e 13797
47aaa820
DWT
13798 # Archives containing C++ object files must be created using
13799 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13800 # necessary to make sure instantiated templates are included
13801 # in the archive.
13802 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13803 ;;
13804 esac
13805 ;;
13806 esac
13807 ;;
9c60689e 13808
47aaa820
DWT
13809 lynxos*)
13810 # FIXME: insert proper C++ library support
13811 ld_shlibs_CXX=no
13812 ;;
9c60689e 13813
47aaa820
DWT
13814 m88k*)
13815 # FIXME: insert proper C++ library support
13816 ld_shlibs_CXX=no
13817 ;;
9c60689e 13818
47aaa820
DWT
13819 mvs*)
13820 case $cc_basename in
13821 cxx*)
13822 # FIXME: insert proper C++ library support
13823 ld_shlibs_CXX=no
13824 ;;
13825 *)
13826 # FIXME: insert proper C++ library support
13827 ld_shlibs_CXX=no
13828 ;;
13829 esac
13830 ;;
9c60689e 13831
47aaa820
DWT
13832 netbsd*)
13833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13834 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13835 wlarc=
13836 hardcode_libdir_flag_spec_CXX='-R$libdir'
13837 hardcode_direct_CXX=yes
13838 hardcode_shlibpath_var_CXX=no
13839 fi
13840 # Workaround some broken pre-1.5 toolchains
13841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 13842 ;;
47aaa820
DWT
13843
13844 *nto* | *qnx*)
13845 ld_shlibs_CXX=yes
9c60689e 13846 ;;
9c60689e 13847
47aaa820
DWT
13848 openbsd2*)
13849 # C++ shared libraries are fairly broken
13850 ld_shlibs_CXX=no
13851 ;;
9c60689e 13852
47aaa820
DWT
13853 openbsd*)
13854 if test -f /usr/libexec/ld.so; then
13855 hardcode_direct_CXX=yes
13856 hardcode_shlibpath_var_CXX=no
13857 hardcode_direct_absolute_CXX=yes
13858 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13861 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13862 export_dynamic_flag_spec_CXX='${wl}-E'
13863 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13864 fi
ee134472 13865 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13866 else
13867 ld_shlibs_CXX=no
13868 fi
13869 ;;
9c60689e 13870
47aaa820
DWT
13871 osf3* | osf4* | osf5*)
13872 case $cc_basename in
13873 KCC*)
13874 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13875
47aaa820
DWT
13876 # KCC will only create a shared library if the output file
13877 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13878 # to its proper name (with version) after linking.
13879 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9c60689e 13880
47aaa820
DWT
13881 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13882 hardcode_libdir_separator_CXX=:
9c60689e 13883
47aaa820
DWT
13884 # Archives containing C++ object files must be created using
13885 # the KAI C++ compiler.
13886 case $host in
13887 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13888 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13889 esac
13890 ;;
13891 RCC*)
13892 # Rational C++ 2.4.1
13893 # FIXME: insert proper C++ library support
13894 ld_shlibs_CXX=no
13895 ;;
13896 cxx*)
13897 case $host in
13898 osf3*)
13899 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 13900 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
47aaa820
DWT
13901 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13902 ;;
13903 *)
13904 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 13905 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
47aaa820
DWT
13906 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13907 echo "-hidden">> $lib.exp~
ee134472 13908 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
47aaa820
DWT
13909 $RM $lib.exp'
13910 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13911 ;;
13912 esac
9c60689e 13913
47aaa820 13914 hardcode_libdir_separator_CXX=:
9c60689e 13915
47aaa820
DWT
13916 # Commands to make compiler produce verbose output that lists
13917 # what "hidden" libraries, object files and flags are used when
13918 # linking a shared library.
13919 #
13920 # There doesn't appear to be a way to prevent this compiler from
13921 # explicitly linking system object files so we need to strip them
13922 # from the output so that they don't get included in the library
13923 # dependencies.
ee134472 13924 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
47aaa820
DWT
13925 ;;
13926 *)
13927 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13928 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13929 case $host in
13930 osf3*)
ee134472 13931 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
47aaa820
DWT
13932 ;;
13933 *)
ee134472 13934 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
47aaa820
DWT
13935 ;;
13936 esac
9c60689e 13937
47aaa820
DWT
13938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13939 hardcode_libdir_separator_CXX=:
9c60689e 13940
47aaa820
DWT
13941 # Commands to make compiler produce verbose output that lists
13942 # what "hidden" libraries, object files and flags are used when
13943 # linking a shared library.
ee134472 13944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 13945
47aaa820
DWT
13946 else
13947 # FIXME: insert proper C++ library support
13948 ld_shlibs_CXX=no
13949 fi
13950 ;;
13951 esac
13952 ;;
9c60689e 13953
47aaa820 13954 psos*)
9c60689e
DWT
13955 # FIXME: insert proper C++ library support
13956 ld_shlibs_CXX=no
13957 ;;
9c60689e 13958
47aaa820
DWT
13959 sunos4*)
13960 case $cc_basename in
13961 CC*)
13962 # Sun C++ 4.x
13963 # FIXME: insert proper C++ library support
13964 ld_shlibs_CXX=no
9c60689e 13965 ;;
47aaa820
DWT
13966 lcc*)
13967 # Lucid
13968 # FIXME: insert proper C++ library support
13969 ld_shlibs_CXX=no
13970 ;;
13971 *)
13972 # FIXME: insert proper C++ library support
13973 ld_shlibs_CXX=no
13974 ;;
13975 esac
13976 ;;
9c60689e 13977
47aaa820
DWT
13978 solaris*)
13979 case $cc_basename in
ee134472 13980 CC* | sunCC*)
47aaa820
DWT
13981 # Sun C++ 4.2, 5.x and Centerline C++
13982 archive_cmds_need_lc_CXX=yes
13983 no_undefined_flag_CXX=' -zdefs'
13984 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13985 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13986 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13987
47aaa820
DWT
13988 hardcode_libdir_flag_spec_CXX='-R$libdir'
13989 hardcode_shlibpath_var_CXX=no
13990 case $host_os in
13991 solaris2.[0-5] | solaris2.[0-5].*) ;;
13992 *)
13993 # The compiler driver will combine and reorder linker options,
13994 # but understands `-z linker_flag'.
13995 # Supported since Solaris 2.6 (maybe 2.5.1?)
13996 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13997 ;;
13998 esac
13999 link_all_deplibs_CXX=yes
9c60689e 14000
ee134472 14001 output_verbose_link_cmd='func_echo_all'
9c60689e 14002
47aaa820
DWT
14003 # Archives containing C++ object files must be created using
14004 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14005 # necessary to make sure instantiated templates are included
14006 # in the archive.
14007 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14008 ;;
14009 gcx*)
14010 # Green Hills C++ Compiler
14011 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 14012
47aaa820
DWT
14013 # The C++ compiler must be used to create the archive.
14014 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14015 ;;
14016 *)
14017 # GNU C++ compiler with Solaris linker
14018 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14019 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14020 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 14021 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 14022 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 14023 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14024
47aaa820
DWT
14025 # Commands to make compiler produce verbose output that lists
14026 # what "hidden" libraries, object files and flags are used when
14027 # linking a shared library.
ee134472 14028 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
14029 else
14030 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14031 # platform.
14032 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14033 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14034 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14035
47aaa820
DWT
14036 # Commands to make compiler produce verbose output that lists
14037 # what "hidden" libraries, object files and flags are used when
14038 # linking a shared library.
ee134472 14039 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14040 fi
9c60689e 14041
47aaa820
DWT
14042 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14043 case $host_os in
14044 solaris2.[0-5] | solaris2.[0-5].*) ;;
14045 *)
14046 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14047 ;;
14048 esac
14049 fi
14050 ;;
14051 esac
14052 ;;
9c60689e 14053
47aaa820
DWT
14054 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14055 no_undefined_flag_CXX='${wl}-z,text'
14056 archive_cmds_need_lc_CXX=no
14057 hardcode_shlibpath_var_CXX=no
14058 runpath_var='LD_RUN_PATH'
9c60689e 14059
47aaa820
DWT
14060 case $cc_basename in
14061 CC*)
14062 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14063 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14064 ;;
14065 *)
14066 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14067 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 ;;
14069 esac
14070 ;;
9c60689e 14071
47aaa820
DWT
14072 sysv5* | sco3.2v5* | sco5v6*)
14073 # Note: We can NOT use -z defs as we might desire, because we do not
14074 # link with -lc, and that would cause any symbols used from libc to
14075 # always be unresolved, which means just about no library would
14076 # ever link correctly. If we're not using GNU ld we use -z text
14077 # though, which does catch some bad symbols but isn't as heavy-handed
14078 # as -z defs.
14079 no_undefined_flag_CXX='${wl}-z,text'
14080 allow_undefined_flag_CXX='${wl}-z,nodefs'
14081 archive_cmds_need_lc_CXX=no
14082 hardcode_shlibpath_var_CXX=no
14083 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14084 hardcode_libdir_separator_CXX=':'
14085 link_all_deplibs_CXX=yes
14086 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14087 runpath_var='LD_RUN_PATH'
9c60689e 14088
47aaa820
DWT
14089 case $cc_basename in
14090 CC*)
14091 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14092 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
14093 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14094 '"$old_archive_cmds_CXX"
14095 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14096 '"$reload_cmds_CXX"
47aaa820
DWT
14097 ;;
14098 *)
14099 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14100 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14101 ;;
14102 esac
14103 ;;
9c60689e 14104
47aaa820 14105 tandem*)
9c60689e 14106 case $cc_basename in
47aaa820
DWT
14107 NCC*)
14108 # NonStop-UX NCC 3.20
14109 # FIXME: insert proper C++ library support
14110 ld_shlibs_CXX=no
14111 ;;
9c60689e 14112 *)
47aaa820
DWT
14113 # FIXME: insert proper C++ library support
14114 ld_shlibs_CXX=no
14115 ;;
9c60689e
DWT
14116 esac
14117 ;;
14118
47aaa820
DWT
14119 vxworks*)
14120 # FIXME: insert proper C++ library support
14121 ld_shlibs_CXX=no
14122 ;;
9c60689e 14123
47aaa820
DWT
14124 *)
14125 # FIXME: insert proper C++ library support
14126 ld_shlibs_CXX=no
9c60689e 14127 ;;
47aaa820 14128 esac
9c60689e 14129
47aaa820
DWT
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14131$as_echo "$ld_shlibs_CXX" >&6; }
14132 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 14133
47aaa820
DWT
14134 GCC_CXX="$GXX"
14135 LD_CXX="$LD"
9c60689e 14136
47aaa820
DWT
14137 ## CAVEAT EMPTOR:
14138 ## There is no encapsulation within the following macros, do not change
14139 ## the running order or otherwise move them around unless you know exactly
14140 ## what you are doing...
14141 # Dependencies to place before and after the object being linked:
14142predep_objects_CXX=
14143postdep_objects_CXX=
14144predeps_CXX=
14145postdeps_CXX=
14146compiler_lib_search_path_CXX=
9c60689e 14147
47aaa820
DWT
14148cat > conftest.$ac_ext <<_LT_EOF
14149class Foo
14150{
14151public:
14152 Foo (void) { a = 0; }
14153private:
14154 int a;
14155};
14156_LT_EOF
9c60689e 14157
ee134472
JF
14158
14159_lt_libdeps_save_CFLAGS=$CFLAGS
14160case "$CC $CFLAGS " in #(
14161*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14162*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14163*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14164esac
14165
47aaa820
DWT
14166if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14167 (eval $ac_compile) 2>&5
14168 ac_status=$?
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; then
14171 # Parse the compiler output and extract the necessary
14172 # objects, libraries and library flags.
9c60689e 14173
47aaa820
DWT
14174 # Sentinel used to keep track of whether or not we are before
14175 # the conftest object file.
14176 pre_test_object_deps_done=no
9c60689e 14177
47aaa820 14178 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 14179 case ${prev}${p} in
9c60689e 14180
47aaa820
DWT
14181 -L* | -R* | -l*)
14182 # Some compilers place space between "-{L,R}" and the path.
14183 # Remove the space.
14184 if test $p = "-L" ||
14185 test $p = "-R"; then
14186 prev=$p
14187 continue
47aaa820 14188 fi
9c60689e 14189
ee134472
JF
14190 # Expand the sysroot to ease extracting the directories later.
14191 if test -z "$prev"; then
14192 case $p in
14193 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14194 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14195 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14196 esac
14197 fi
14198 case $p in
14199 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14200 esac
47aaa820 14201 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
14202 case ${prev} in
14203 -L | -R)
47aaa820
DWT
14204 # Internal compiler library paths should come after those
14205 # provided the user. The postdeps already come after the
14206 # user supplied libs so there is no need to process them.
14207 if test -z "$compiler_lib_search_path_CXX"; then
14208 compiler_lib_search_path_CXX="${prev}${p}"
14209 else
14210 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14211 fi
14212 ;;
14213 # The "-l" case would never come before the object being
14214 # linked, so don't bother handling this case.
14215 esac
14216 else
14217 if test -z "$postdeps_CXX"; then
14218 postdeps_CXX="${prev}${p}"
14219 else
14220 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14221 fi
14222 fi
ee134472 14223 prev=
47aaa820 14224 ;;
9c60689e 14225
ee134472 14226 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14227 *.$objext)
14228 # This assumes that the test object file only shows up
14229 # once in the compiler output.
14230 if test "$p" = "conftest.$objext"; then
14231 pre_test_object_deps_done=yes
14232 continue
14233 fi
9c60689e 14234
47aaa820
DWT
14235 if test "$pre_test_object_deps_done" = no; then
14236 if test -z "$predep_objects_CXX"; then
14237 predep_objects_CXX="$p"
14238 else
14239 predep_objects_CXX="$predep_objects_CXX $p"
14240 fi
14241 else
14242 if test -z "$postdep_objects_CXX"; then
14243 postdep_objects_CXX="$p"
14244 else
14245 postdep_objects_CXX="$postdep_objects_CXX $p"
14246 fi
14247 fi
14248 ;;
9c60689e 14249
47aaa820 14250 *) ;; # Ignore the rest.
9c60689e 14251
47aaa820
DWT
14252 esac
14253 done
9c60689e 14254
47aaa820
DWT
14255 # Clean up.
14256 rm -f a.out a.exe
14257else
14258 echo "libtool.m4: error: problem compiling CXX test program"
14259fi
9c60689e 14260
47aaa820 14261$RM -f confest.$objext
ee134472 14262CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14263
47aaa820
DWT
14264# PORTME: override above test on systems where it is broken
14265case $host_os in
14266interix[3-9]*)
14267 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14268 # hack all around it, let's just trust "g++" to DTRT.
14269 predep_objects_CXX=
14270 postdep_objects_CXX=
14271 postdeps_CXX=
14272 ;;
9c60689e 14273
47aaa820
DWT
14274linux*)
14275 case `$CC -V 2>&1 | sed 5q` in
14276 *Sun\ C*)
14277 # Sun C++ 5.9
9c60689e 14278
47aaa820
DWT
14279 # The more standards-conforming stlport4 library is
14280 # incompatible with the Cstd library. Avoid specifying
14281 # it if it's in CXXFLAGS. Ignore libCrun as
14282 # -library=stlport4 depends on it.
14283 case " $CXX $CXXFLAGS " in
14284 *" -library=stlport4 "*)
14285 solaris_use_stlport4=yes
14286 ;;
14287 esac
9c60689e 14288
47aaa820
DWT
14289 if test "$solaris_use_stlport4" != yes; then
14290 postdeps_CXX='-library=Cstd -library=Crun'
14291 fi
14292 ;;
14293 esac
14294 ;;
9c60689e 14295
47aaa820
DWT
14296solaris*)
14297 case $cc_basename in
ee134472 14298 CC* | sunCC*)
47aaa820
DWT
14299 # The more standards-conforming stlport4 library is
14300 # incompatible with the Cstd library. Avoid specifying
14301 # it if it's in CXXFLAGS. Ignore libCrun as
14302 # -library=stlport4 depends on it.
14303 case " $CXX $CXXFLAGS " in
14304 *" -library=stlport4 "*)
14305 solaris_use_stlport4=yes
14306 ;;
14307 esac
9c60689e 14308
47aaa820
DWT
14309 # Adding this requires a known-good setup of shared libraries for
14310 # Sun compiler versions before 5.6, else PIC objects from an old
14311 # archive will be linked into the output, leading to subtle bugs.
14312 if test "$solaris_use_stlport4" != yes; then
14313 postdeps_CXX='-library=Cstd -library=Crun'
14314 fi
14315 ;;
14316 esac
14317 ;;
14318esac
9c60689e 14319
9c60689e 14320
47aaa820
DWT
14321case " $postdeps_CXX " in
14322*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14323esac
14324 compiler_lib_search_dirs_CXX=
14325if test -n "${compiler_lib_search_path_CXX}"; then
14326 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14327fi
9c60689e 14328
9c60689e 14329
9c60689e 14330
9c60689e 14331
9c60689e 14332
9c60689e 14333
9c60689e 14334
9c60689e 14335
9c60689e 14336
9c60689e 14337
9c60689e 14338
9c60689e 14339
9c60689e 14340
9c60689e 14341
9c60689e 14342
9c60689e 14343
9c60689e 14344
9c60689e 14345
9c60689e 14346
9c60689e 14347
9c60689e 14348
9c60689e 14349
9c60689e 14350
9c60689e 14351
9c60689e 14352
9c60689e 14353
9c60689e 14354
9c60689e 14355
9c60689e 14356
9c60689e 14357
9c60689e 14358
47aaa820
DWT
14359 lt_prog_compiler_wl_CXX=
14360lt_prog_compiler_pic_CXX=
14361lt_prog_compiler_static_CXX=
9c60689e 14362
9c60689e
DWT
14363
14364 # C++ specific cases for pic, static, wl, etc.
14365 if test "$GXX" = yes; then
14366 lt_prog_compiler_wl_CXX='-Wl,'
14367 lt_prog_compiler_static_CXX='-static'
14368
14369 case $host_os in
14370 aix*)
14371 # All AIX code is PIC.
14372 if test "$host_cpu" = ia64; then
14373 # AIX 5 now supports IA64 processor
14374 lt_prog_compiler_static_CXX='-Bstatic'
14375 fi
14376 ;;
14377
14378 amigaos*)
14379 case $host_cpu in
14380 powerpc)
14381 # see comment about AmigaOS4 .so support
14382 lt_prog_compiler_pic_CXX='-fPIC'
14383 ;;
14384 m68k)
14385 # FIXME: we need at least 68020 code to build shared libraries, but
14386 # adding the `-m68020' flag to GCC prevents building anything better,
14387 # like `-m68040'.
14388 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14389 ;;
14390 esac
14391 ;;
14392
14393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14394 # PIC is the default for these OSes.
14395 ;;
14396 mingw* | cygwin* | os2* | pw32* | cegcc*)
14397 # This hack is so that the source file can tell whether it is being
14398 # built for inclusion in a dll (and should export symbols for example).
14399 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14400 # (--disable-auto-import) libraries
14401 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14402 ;;
14403 darwin* | rhapsody*)
14404 # PIC is the default on this platform
14405 # Common symbols not allowed in MH_DYLIB files
14406 lt_prog_compiler_pic_CXX='-fno-common'
14407 ;;
14408 *djgpp*)
14409 # DJGPP does not support shared libraries at all
14410 lt_prog_compiler_pic_CXX=
14411 ;;
ee134472
JF
14412 haiku*)
14413 # PIC is the default for Haiku.
14414 # The "-static" flag exists, but is broken.
14415 lt_prog_compiler_static_CXX=
14416 ;;
9c60689e
DWT
14417 interix[3-9]*)
14418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14419 # Instead, we relocate shared libraries at runtime.
14420 ;;
14421 sysv4*MP*)
14422 if test -d /usr/nec; then
14423 lt_prog_compiler_pic_CXX=-Kconform_pic
14424 fi
14425 ;;
14426 hpux*)
14427 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14428 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14429 # sets the default TLS model and affects inlining.
14430 case $host_cpu in
14431 hppa*64*)
14432 ;;
14433 *)
14434 lt_prog_compiler_pic_CXX='-fPIC'
14435 ;;
14436 esac
14437 ;;
14438 *qnx* | *nto*)
14439 # QNX uses GNU C++, but need to define -shared option too, otherwise
14440 # it will coredump.
14441 lt_prog_compiler_pic_CXX='-fPIC -shared'
14442 ;;
14443 *)
14444 lt_prog_compiler_pic_CXX='-fPIC'
14445 ;;
14446 esac
14447 else
14448 case $host_os in
14449 aix[4-9]*)
14450 # All AIX code is PIC.
14451 if test "$host_cpu" = ia64; then
14452 # AIX 5 now supports IA64 processor
14453 lt_prog_compiler_static_CXX='-Bstatic'
14454 else
14455 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14456 fi
14457 ;;
14458 chorus*)
14459 case $cc_basename in
14460 cxch68*)
14461 # Green Hills C++ Compiler
14462 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14463 ;;
14464 esac
14465 ;;
ee134472
JF
14466 mingw* | cygwin* | os2* | pw32* | cegcc*)
14467 # This hack is so that the source file can tell whether it is being
14468 # built for inclusion in a dll (and should export symbols for example).
14469 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14470 ;;
9c60689e
DWT
14471 dgux*)
14472 case $cc_basename in
14473 ec++*)
14474 lt_prog_compiler_pic_CXX='-KPIC'
14475 ;;
14476 ghcx*)
14477 # Green Hills C++ Compiler
14478 lt_prog_compiler_pic_CXX='-pic'
14479 ;;
14480 *)
14481 ;;
14482 esac
14483 ;;
14484 freebsd* | dragonfly*)
14485 # FreeBSD uses GNU C++
14486 ;;
14487 hpux9* | hpux10* | hpux11*)
14488 case $cc_basename in
14489 CC*)
14490 lt_prog_compiler_wl_CXX='-Wl,'
14491 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14492 if test "$host_cpu" != ia64; then
14493 lt_prog_compiler_pic_CXX='+Z'
14494 fi
14495 ;;
14496 aCC*)
14497 lt_prog_compiler_wl_CXX='-Wl,'
14498 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14499 case $host_cpu in
14500 hppa*64*|ia64*)
14501 # +Z the default
14502 ;;
14503 *)
14504 lt_prog_compiler_pic_CXX='+Z'
14505 ;;
14506 esac
14507 ;;
14508 *)
14509 ;;
14510 esac
14511 ;;
14512 interix*)
14513 # This is c89, which is MS Visual C++ (no shared libs)
14514 # Anyone wants to do a port?
14515 ;;
14516 irix5* | irix6* | nonstopux*)
14517 case $cc_basename in
14518 CC*)
14519 lt_prog_compiler_wl_CXX='-Wl,'
14520 lt_prog_compiler_static_CXX='-non_shared'
14521 # CC pic flag -KPIC is the default.
14522 ;;
14523 *)
14524 ;;
14525 esac
14526 ;;
1504c9b8 14527 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
14528 case $cc_basename in
14529 KCC*)
14530 # KAI C++ Compiler
14531 lt_prog_compiler_wl_CXX='--backend -Wl,'
14532 lt_prog_compiler_pic_CXX='-fPIC'
14533 ;;
14534 ecpc* )
14535 # old Intel C++ for x86_64 which still supported -KPIC.
14536 lt_prog_compiler_wl_CXX='-Wl,'
14537 lt_prog_compiler_pic_CXX='-KPIC'
14538 lt_prog_compiler_static_CXX='-static'
14539 ;;
14540 icpc* )
14541 # Intel C++, used to be incompatible with GCC.
14542 # ICC 10 doesn't accept -KPIC any more.
14543 lt_prog_compiler_wl_CXX='-Wl,'
14544 lt_prog_compiler_pic_CXX='-fPIC'
14545 lt_prog_compiler_static_CXX='-static'
14546 ;;
14547 pgCC* | pgcpp*)
14548 # Portland Group C++ compiler
14549 lt_prog_compiler_wl_CXX='-Wl,'
14550 lt_prog_compiler_pic_CXX='-fpic'
14551 lt_prog_compiler_static_CXX='-Bstatic'
14552 ;;
14553 cxx*)
14554 # Compaq C++
14555 # Make sure the PIC flag is empty. It appears that all Alpha
14556 # Linux and Compaq Tru64 Unix objects are PIC.
14557 lt_prog_compiler_pic_CXX=
14558 lt_prog_compiler_static_CXX='-non_shared'
14559 ;;
ee134472
JF
14560 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14561 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
14562 lt_prog_compiler_wl_CXX='-Wl,'
14563 lt_prog_compiler_pic_CXX='-qpic'
14564 lt_prog_compiler_static_CXX='-qstaticlink'
14565 ;;
14566 *)
14567 case `$CC -V 2>&1 | sed 5q` in
14568 *Sun\ C*)
14569 # Sun C++ 5.9
14570 lt_prog_compiler_pic_CXX='-KPIC'
14571 lt_prog_compiler_static_CXX='-Bstatic'
14572 lt_prog_compiler_wl_CXX='-Qoption ld '
14573 ;;
14574 esac
14575 ;;
14576 esac
14577 ;;
14578 lynxos*)
14579 ;;
14580 m88k*)
14581 ;;
14582 mvs*)
14583 case $cc_basename in
14584 cxx*)
14585 lt_prog_compiler_pic_CXX='-W c,exportall'
14586 ;;
14587 *)
14588 ;;
14589 esac
14590 ;;
53ba6704 14591 netbsd*)
9c60689e
DWT
14592 ;;
14593 *qnx* | *nto*)
14594 # QNX uses GNU C++, but need to define -shared option too, otherwise
14595 # it will coredump.
14596 lt_prog_compiler_pic_CXX='-fPIC -shared'
14597 ;;
14598 osf3* | osf4* | osf5*)
14599 case $cc_basename in
14600 KCC*)
14601 lt_prog_compiler_wl_CXX='--backend -Wl,'
14602 ;;
14603 RCC*)
14604 # Rational C++ 2.4.1
14605 lt_prog_compiler_pic_CXX='-pic'
14606 ;;
14607 cxx*)
14608 # Digital/Compaq C++
14609 lt_prog_compiler_wl_CXX='-Wl,'
14610 # Make sure the PIC flag is empty. It appears that all Alpha
14611 # Linux and Compaq Tru64 Unix objects are PIC.
14612 lt_prog_compiler_pic_CXX=
14613 lt_prog_compiler_static_CXX='-non_shared'
14614 ;;
14615 *)
14616 ;;
14617 esac
14618 ;;
14619 psos*)
14620 ;;
14621 solaris*)
14622 case $cc_basename in
ee134472 14623 CC* | sunCC*)
9c60689e
DWT
14624 # Sun C++ 4.2, 5.x and Centerline C++
14625 lt_prog_compiler_pic_CXX='-KPIC'
14626 lt_prog_compiler_static_CXX='-Bstatic'
14627 lt_prog_compiler_wl_CXX='-Qoption ld '
14628 ;;
14629 gcx*)
14630 # Green Hills C++ Compiler
14631 lt_prog_compiler_pic_CXX='-PIC'
14632 ;;
14633 *)
14634 ;;
14635 esac
14636 ;;
14637 sunos4*)
14638 case $cc_basename in
14639 CC*)
14640 # Sun C++ 4.x
14641 lt_prog_compiler_pic_CXX='-pic'
14642 lt_prog_compiler_static_CXX='-Bstatic'
14643 ;;
14644 lcc*)
14645 # Lucid
14646 lt_prog_compiler_pic_CXX='-pic'
14647 ;;
14648 *)
14649 ;;
14650 esac
14651 ;;
14652 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14653 case $cc_basename in
14654 CC*)
14655 lt_prog_compiler_wl_CXX='-Wl,'
14656 lt_prog_compiler_pic_CXX='-KPIC'
14657 lt_prog_compiler_static_CXX='-Bstatic'
14658 ;;
14659 esac
14660 ;;
14661 tandem*)
14662 case $cc_basename in
14663 NCC*)
14664 # NonStop-UX NCC 3.20
14665 lt_prog_compiler_pic_CXX='-KPIC'
14666 ;;
14667 *)
14668 ;;
14669 esac
14670 ;;
14671 vxworks*)
14672 ;;
14673 *)
14674 lt_prog_compiler_can_build_shared_CXX=no
14675 ;;
14676 esac
14677 fi
14678
14679case $host_os in
14680 # For platforms which do not support PIC, -DPIC is meaningless:
14681 *djgpp*)
14682 lt_prog_compiler_pic_CXX=
14683 ;;
14684 *)
14685 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14686 ;;
14687esac
9c60689e 14688
ee134472
JF
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14690$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14691if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14692 $as_echo_n "(cached) " >&6
14693else
14694 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14695fi
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14697$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14698lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
14699
14700#
14701# Check to make sure the PIC flag actually works.
14702#
14703if test -n "$lt_prog_compiler_pic_CXX"; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14705$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 14706if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
14707 $as_echo_n "(cached) " >&6
14708else
14709 lt_cv_prog_compiler_pic_works_CXX=no
14710 ac_outfile=conftest.$ac_objext
14711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14712 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14713 # Insert the option either (1) after the last *FLAGS variable, or
14714 # (2) before a word containing "conftest.", or (3) at the end.
14715 # Note that $ac_compile itself does not contain backslashes and begins
14716 # with a dollar sign (not a hyphen), so the echo should work correctly.
14717 # The option is referenced via a variable to avoid confusing sed.
14718 lt_compile=`echo "$ac_compile" | $SED \
14719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14721 -e 's:$: $lt_compiler_flag:'`
ee134472 14722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
14723 (eval "$lt_compile" 2>conftest.err)
14724 ac_status=$?
14725 cat conftest.err >&5
ee134472 14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
14727 if (exit $ac_status) && test -s "$ac_outfile"; then
14728 # The compiler can only warn and ignore the option if not recognized
14729 # So say no if there are warnings other than the usual output.
ee134472 14730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
14731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14733 lt_cv_prog_compiler_pic_works_CXX=yes
14734 fi
14735 fi
00a96142 14736 $RM -r conftest*
9c60689e
DWT
14737
14738fi
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14740$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14741
14742if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14743 case $lt_prog_compiler_pic_CXX in
14744 "" | " "*) ;;
14745 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14746 esac
14747else
14748 lt_prog_compiler_pic_CXX=
14749 lt_prog_compiler_can_build_shared_CXX=no
14750fi
14751
14752fi
14753
14754
14755
ee134472
JF
14756
14757
47aaa820
DWT
14758#
14759# Check to make sure the static flag actually works.
14760#
14761wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14763$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 14764if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
14765 $as_echo_n "(cached) " >&6
14766else
14767 lt_cv_prog_compiler_static_works_CXX=no
14768 save_LDFLAGS="$LDFLAGS"
14769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14770 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14772 # The linker can only warn and ignore the option if not recognized
14773 # So say no if there are warnings
14774 if test -s conftest.err; then
14775 # Append any errors to the config.log.
14776 cat conftest.err 1>&5
ee134472 14777 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
14778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779 if diff conftest.exp conftest.er2 >/dev/null; then
14780 lt_cv_prog_compiler_static_works_CXX=yes
14781 fi
14782 else
14783 lt_cv_prog_compiler_static_works_CXX=yes
14784 fi
14785 fi
14786 $RM -r conftest*
14787 LDFLAGS="$save_LDFLAGS"
14788
14789fi
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14791$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14792
14793if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14794 :
14795else
14796 lt_prog_compiler_static_CXX=
14797fi
14798
14799
14800
14801
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14803$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14804if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14805 $as_echo_n "(cached) " >&6
14806else
14807 lt_cv_prog_compiler_c_o_CXX=no
14808 $RM -r conftest 2>/dev/null
14809 mkdir conftest
14810 cd conftest
14811 mkdir out
14812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14813
14814 lt_compiler_flag="-o out/conftest2.$ac_objext"
14815 # Insert the option either (1) after the last *FLAGS variable, or
14816 # (2) before a word containing "conftest.", or (3) at the end.
14817 # Note that $ac_compile itself does not contain backslashes and begins
14818 # with a dollar sign (not a hyphen), so the echo should work correctly.
14819 lt_compile=`echo "$ac_compile" | $SED \
14820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14822 -e 's:$: $lt_compiler_flag:'`
ee134472 14823 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14824 (eval "$lt_compile" 2>out/conftest.err)
14825 ac_status=$?
14826 cat out/conftest.err >&5
ee134472 14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14828 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14829 then
14830 # The compiler can only warn and ignore the option if not recognized
14831 # So say no if there are warnings
ee134472 14832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14833 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14834 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14835 lt_cv_prog_compiler_c_o_CXX=yes
14836 fi
14837 fi
14838 chmod u+w . 2>&5
00a96142 14839 $RM -r conftest*
47aaa820
DWT
14840 # SGI C++ compiler will create directory out/ii_files/ for
14841 # template instantiation
14842 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14843 $RM out/* && rmdir out
14844 cd ..
14845 $RM -r conftest
00a96142 14846 $RM -r conftest*
47aaa820
DWT
14847
14848fi
14849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14850$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14851
14852
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14855$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14856if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14857 $as_echo_n "(cached) " >&6
14858else
14859 lt_cv_prog_compiler_c_o_CXX=no
14860 $RM -r conftest 2>/dev/null
14861 mkdir conftest
14862 cd conftest
14863 mkdir out
14864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14865
14866 lt_compiler_flag="-o out/conftest2.$ac_objext"
14867 # Insert the option either (1) after the last *FLAGS variable, or
14868 # (2) before a word containing "conftest.", or (3) at the end.
14869 # Note that $ac_compile itself does not contain backslashes and begins
14870 # with a dollar sign (not a hyphen), so the echo should work correctly.
14871 lt_compile=`echo "$ac_compile" | $SED \
14872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14874 -e 's:$: $lt_compiler_flag:'`
ee134472 14875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14876 (eval "$lt_compile" 2>out/conftest.err)
14877 ac_status=$?
14878 cat out/conftest.err >&5
ee134472 14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14881 then
14882 # The compiler can only warn and ignore the option if not recognized
14883 # So say no if there are warnings
ee134472 14884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14887 lt_cv_prog_compiler_c_o_CXX=yes
14888 fi
14889 fi
14890 chmod u+w . 2>&5
00a96142 14891 $RM -r conftest*
47aaa820
DWT
14892 # SGI C++ compiler will create directory out/ii_files/ for
14893 # template instantiation
14894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14895 $RM out/* && rmdir out
14896 cd ..
14897 $RM -r conftest
00a96142 14898 $RM -r conftest*
47aaa820
DWT
14899
14900fi
14901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14902$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14903
14904
14905
14906
14907hard_links="nottested"
14908if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14909 # do not overwrite the value of need_locks provided by the user
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14911$as_echo_n "checking if we can lock with hard links... " >&6; }
14912 hard_links=yes
00a96142 14913 $RM -r conftest*
47aaa820
DWT
14914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14915 touch conftest.a
14916 ln conftest.a conftest.b 2>&5 || hard_links=no
14917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14919$as_echo "$hard_links" >&6; }
14920 if test "$hard_links" = no; then
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14922$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14923 need_locks=warn
14924 fi
14925else
14926 need_locks=no
14927fi
14928
14929
14930
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14932$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14933
14934 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14935 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
14936 case $host_os in
14937 aix[4-9]*)
14938 # If we're using GNU nm, then we don't want the "-C" option.
14939 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
14940 # Also, AIX nm treats weak defined symbols like other global defined
14941 # symbols, whereas GNU nm marks them as "W".
47aaa820 14942 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 14943 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
47aaa820
DWT
14944 else
14945 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14946 fi
14947 ;;
14948 pw32*)
14949 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 14950 ;;
47aaa820 14951 cygwin* | mingw* | cegcc*)
ee134472 14952 case $cc_basename in
53ba6704
JF
14953 cl*)
14954 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14955 ;;
ee134472
JF
14956 *)
14957 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14958 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14959 ;;
14960 esac
14961 ;;
47aaa820
DWT
14962 *)
14963 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14964 ;;
47aaa820 14965 esac
47aaa820
DWT
14966
14967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14968$as_echo "$ld_shlibs_CXX" >&6; }
14969test "$ld_shlibs_CXX" = no && can_build_shared=no
14970
14971with_gnu_ld_CXX=$with_gnu_ld
14972
14973
14974
14975
14976
14977
14978#
14979# Do we need to explicitly link libc?
14980#
14981case "x$archive_cmds_need_lc_CXX" in
14982x|xyes)
14983 # Assume -lc should be added
14984 archive_cmds_need_lc_CXX=yes
14985
14986 if test "$enable_shared" = yes && test "$GCC" = yes; then
14987 case $archive_cmds_CXX in
14988 *'~'*)
14989 # FIXME: we may have to deal with multi-command sequences.
14990 ;;
14991 '$CC '*)
14992 # Test whether the compiler implicitly links with -lc since on some
14993 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14994 # to ld, don't add -lc before -lgcc.
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14996$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
14997if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999else
00a96142 15000 $RM -r conftest*
ee134472 15001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 15002
ee134472 15003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
15004 (eval $ac_compile) 2>&5
15005 ac_status=$?
15006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
15008 soname=conftest
15009 lib=conftest
15010 libobjs=conftest.$ac_objext
15011 deplibs=
15012 wl=$lt_prog_compiler_wl_CXX
15013 pic_flag=$lt_prog_compiler_pic_CXX
15014 compiler_flags=-v
15015 linker_flags=-v
15016 verstring=
15017 output_objdir=.
15018 libname=conftest
15019 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15020 allow_undefined_flag_CXX=
15021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
15022 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15023 ac_status=$?
15024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15025 test $ac_status = 0; }
ee134472
JF
15026 then
15027 lt_cv_archive_cmds_need_lc_CXX=no
15028 else
15029 lt_cv_archive_cmds_need_lc_CXX=yes
15030 fi
15031 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15032 else
15033 cat conftest.err 1>&5
15034 fi
00a96142 15035 $RM -r conftest*
ee134472
JF
15036
15037fi
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15039$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15040 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
15041 ;;
15042 esac
15043 fi
15044 ;;
15045esac
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
47aaa820
DWT
15105
15106
15107
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15109$as_echo_n "checking dynamic linker characteristics... " >&6; }
15110
15111library_names_spec=
15112libname_spec='lib$name'
15113soname_spec=
15114shrext_cmds=".so"
15115postinstall_cmds=
15116postuninstall_cmds=
15117finish_cmds=
15118finish_eval=
15119shlibpath_var=
15120shlibpath_overrides_runpath=unknown
15121version_type=none
15122dynamic_linker="$host_os ld.so"
15123sys_lib_dlsearch_path_spec="/lib /usr/lib"
15124need_lib_prefix=unknown
15125hardcode_into_libs=no
15126
15127# when you set need_version to no, make sure it does not cause -set_version
15128# flags to be left without arguments
15129need_version=unknown
15130
15131case $host_os in
15132aix3*)
53ba6704 15133 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15135 shlibpath_var=LIBPATH
15136
15137 # AIX 3 has no versioning support, so we append a major version to the name.
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 ;;
15140
15141aix[4-9]*)
53ba6704 15142 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15143 need_lib_prefix=no
15144 need_version=no
15145 hardcode_into_libs=yes
15146 if test "$host_cpu" = ia64; then
15147 # AIX 5 supports IA64
15148 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 else
15151 # With GCC up to 2.95.x, collect2 would create an import file
15152 # for dependence libraries. The import file would start with
15153 # the line `#! .'. This would cause the generated library to
15154 # depend on `.', always an invalid library. This was fixed in
15155 # development snapshots of GCC prior to 3.0.
15156 case $host_os in
15157 aix4 | aix4.[01] | aix4.[01].*)
15158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15159 echo ' yes '
15160 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15161 :
15162 else
15163 can_build_shared=no
15164 fi
15165 ;;
15166 esac
15167 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15168 # soname into executable. Probably we can add versioning support to
15169 # collect2, so additional links can be useful in future.
15170 if test "$aix_use_runtimelinking" = yes; then
15171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15172 # instead of lib<name>.a to let people know that these are not
15173 # typical AIX shared libraries.
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175 else
15176 # We preserve .a as extension for shared libraries through AIX4.2
15177 # and later when we are not doing run time linking.
15178 library_names_spec='${libname}${release}.a $libname.a'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 fi
15181 shlibpath_var=LIBPATH
15182 fi
15183 ;;
15184
15185amigaos*)
15186 case $host_cpu in
15187 powerpc)
15188 # Since July 2007 AmigaOS4 officially supports .so libraries.
15189 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191 ;;
15192 m68k)
15193 library_names_spec='$libname.ixlibrary $libname.a'
15194 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 15195 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'
47aaa820
DWT
15196 ;;
15197 esac
15198 ;;
15199
15200beos*)
15201 library_names_spec='${libname}${shared_ext}'
15202 dynamic_linker="$host_os ld.so"
15203 shlibpath_var=LIBRARY_PATH
15204 ;;
15205
15206bsdi[45]*)
53ba6704 15207 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15208 need_version=no
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15215 # the default ld.so.conf also contains /usr/contrib/lib and
15216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15217 # libtool to hard-code these into programs
15218 ;;
9c60689e 15219
47aaa820
DWT
15220cygwin* | mingw* | pw32* | cegcc*)
15221 version_type=windows
15222 shrext_cmds=".dll"
15223 need_version=no
15224 need_lib_prefix=no
9c60689e 15225
ee134472
JF
15226 case $GCC,$cc_basename in
15227 yes,*)
15228 # gcc
47aaa820
DWT
15229 library_names_spec='$libname.dll.a'
15230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15231 postinstall_cmds='base_file=`basename \${file}`~
15232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15233 dldir=$destdir/`dirname \$dlpath`~
15234 test -d \$dldir || mkdir -p \$dldir~
15235 $install_prog $dir/$dlname \$dldir/$dlname~
15236 chmod a+x \$dldir/$dlname~
15237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15239 fi'
15240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15241 dlpath=$dir/\$dldll~
15242 $RM \$dlpath'
15243 shlibpath_overrides_runpath=yes
9c60689e 15244
47aaa820
DWT
15245 case $host_os in
15246 cygwin*)
15247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 15249
47aaa820
DWT
15250 ;;
15251 mingw* | cegcc*)
15252 # MinGW DLLs use traditional 'lib' prefix
15253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
15254 ;;
15255 pw32*)
15256 # pw32 DLLs use 'pw' prefix rather than 'lib'
15257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15258 ;;
15259 esac
ee134472
JF
15260 dynamic_linker='Win32 ld.exe'
15261 ;;
15262
15263 *,cl*)
15264 # Native MSVC
15265 libname_spec='$name'
15266 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15267 library_names_spec='${libname}.dll.lib'
15268
15269 case $build_os in
15270 mingw*)
15271 sys_lib_search_path_spec=
15272 lt_save_ifs=$IFS
15273 IFS=';'
15274 for lt_path in $LIB
15275 do
15276 IFS=$lt_save_ifs
15277 # Let DOS variable expansion print the short 8.3 style file name.
15278 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15279 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15280 done
15281 IFS=$lt_save_ifs
15282 # Convert to MSYS style.
15283 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15284 ;;
15285 cygwin*)
15286 # Convert to unix form, then to dos form, then back to unix form
15287 # but this time dos style (no spaces!) so that the unix form looks
15288 # like /cygdrive/c/PROGRA~1:/cygdr...
15289 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15290 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15291 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15292 ;;
15293 *)
15294 sys_lib_search_path_spec="$LIB"
15295 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15296 # It is most probably a Windows format PATH.
15297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15298 else
15299 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15300 fi
15301 # FIXME: find the short name or the path components, as spaces are
15302 # common. (e.g. "Program Files" -> "PROGRA~1")
15303 ;;
15304 esac
15305
15306 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15307 postinstall_cmds='base_file=`basename \${file}`~
15308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15309 dldir=$destdir/`dirname \$dlpath`~
15310 test -d \$dldir || mkdir -p \$dldir~
15311 $install_prog $dir/$dlname \$dldir/$dlname'
15312 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15313 dlpath=$dir/\$dldll~
15314 $RM \$dlpath'
15315 shlibpath_overrides_runpath=yes
15316 dynamic_linker='Win32 link.exe'
47aaa820 15317 ;;
9c60689e 15318
47aaa820 15319 *)
ee134472 15320 # Assume MSVC wrapper
47aaa820 15321 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 15322 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15323 ;;
15324 esac
47aaa820
DWT
15325 # FIXME: first we should search . and the directory the executable is in
15326 shlibpath_var=PATH
15327 ;;
9c60689e 15328
47aaa820
DWT
15329darwin* | rhapsody*)
15330 dynamic_linker="$host_os dyld"
15331 version_type=darwin
15332 need_lib_prefix=no
15333 need_version=no
15334 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15335 soname_spec='${libname}${release}${major}$shared_ext'
15336 shlibpath_overrides_runpath=yes
15337 shlibpath_var=DYLD_LIBRARY_PATH
15338 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15339
47aaa820
DWT
15340 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15341 ;;
9c60689e 15342
47aaa820 15343dgux*)
53ba6704 15344 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15345 need_lib_prefix=no
15346 need_version=no
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 ;;
9c60689e 15351
47aaa820
DWT
15352freebsd* | dragonfly*)
15353 # DragonFly does not have aout. When/if they implement a new
15354 # versioning mechanism, adjust this.
15355 if test -x /usr/bin/objformat; then
15356 objformat=`/usr/bin/objformat`
15357 else
15358 case $host_os in
53ba6704 15359 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15360 *) objformat=elf ;;
15361 esac
15362 fi
15363 version_type=freebsd-$objformat
15364 case $version_type in
15365 freebsd-elf*)
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15367 need_version=no
15368 need_lib_prefix=no
15369 ;;
15370 freebsd-*)
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15372 need_version=yes
15373 ;;
15374 esac
15375 shlibpath_var=LD_LIBRARY_PATH
15376 case $host_os in
53ba6704 15377 freebsd2.*)
47aaa820
DWT
15378 shlibpath_overrides_runpath=yes
15379 ;;
15380 freebsd3.[01]* | freebsdelf3.[01]*)
15381 shlibpath_overrides_runpath=yes
15382 hardcode_into_libs=yes
15383 ;;
15384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15386 shlibpath_overrides_runpath=no
15387 hardcode_into_libs=yes
15388 ;;
15389 *) # from 4.6 on, and DragonFly
15390 shlibpath_overrides_runpath=yes
15391 hardcode_into_libs=yes
15392 ;;
15393 esac
15394 ;;
9c60689e 15395
47aaa820 15396gnu*)
53ba6704 15397 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15398 need_lib_prefix=no
15399 need_version=no
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
15403 shlibpath_overrides_runpath=no
15404 hardcode_into_libs=yes
15405 ;;
15406
15407haiku*)
53ba6704 15408 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15409 need_lib_prefix=no
15410 need_version=no
15411 dynamic_linker="$host_os runtime_loader"
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15413 soname_spec='${libname}${release}${shared_ext}$major'
15414 shlibpath_var=LIBRARY_PATH
15415 shlibpath_overrides_runpath=yes
15416 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15417 hardcode_into_libs=yes
15418 ;;
9c60689e 15419
47aaa820
DWT
15420hpux9* | hpux10* | hpux11*)
15421 # Give a soname corresponding to the major version so that dld.sl refuses to
15422 # link against other versions.
15423 version_type=sunos
15424 need_lib_prefix=no
15425 need_version=no
15426 case $host_cpu in
15427 ia64*)
15428 shrext_cmds='.so'
15429 hardcode_into_libs=yes
15430 dynamic_linker="$host_os dld.so"
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 if test "X$HPUX_IA64_MODE" = X32; then
15436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437 else
15438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15439 fi
15440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15441 ;;
15442 hppa*64*)
15443 shrext_cmds='.sl'
15444 hardcode_into_libs=yes
15445 dynamic_linker="$host_os dld.sl"
15446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15452 ;;
15453 *)
15454 shrext_cmds='.sl'
15455 dynamic_linker="$host_os dld.sl"
15456 shlibpath_var=SHLIB_PATH
15457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 ;;
15461 esac
ee134472 15462 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 15463 postinstall_cmds='chmod 555 $lib'
ee134472
JF
15464 # or fails outright, so override atomically:
15465 install_override_mode=555
47aaa820 15466 ;;
9c60689e 15467
47aaa820 15468interix[3-9]*)
53ba6704 15469 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15470 need_lib_prefix=no
15471 need_version=no
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=no
15477 hardcode_into_libs=yes
15478 ;;
9c60689e 15479
47aaa820
DWT
15480irix5* | irix6* | nonstopux*)
15481 case $host_os in
15482 nonstopux*) version_type=nonstopux ;;
15483 *)
15484 if test "$lt_cv_prog_gnu_ld" = yes; then
53ba6704 15485 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15486 else
15487 version_type=irix
15488 fi ;;
15489 esac
15490 need_lib_prefix=no
15491 need_version=no
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15494 case $host_os in
15495 irix5* | nonstopux*)
15496 libsuff= shlibsuff=
15497 ;;
15498 *)
15499 case $LD in # libtool.m4 will add one of these switches to LD
15500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15501 libsuff= shlibsuff= libmagic=32-bit;;
15502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15503 libsuff=32 shlibsuff=N32 libmagic=N32;;
15504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15506 *) libsuff= shlibsuff= libmagic=never-match;;
15507 esac
15508 ;;
15509 esac
15510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15511 shlibpath_overrides_runpath=no
15512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15514 hardcode_into_libs=yes
15515 ;;
9c60689e 15516
47aaa820
DWT
15517# No shared lib support for Linux oldld, aout, or coff.
15518linux*oldld* | linux*aout* | linux*coff*)
15519 dynamic_linker=no
15520 ;;
9c60689e 15521
53ba6704 15522# This must be glibc/ELF.
1504c9b8 15523linux* | k*bsd*-gnu | kopensolaris*-gnu)
53ba6704 15524 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15525 need_lib_prefix=no
15526 need_version=no
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=no
ee134472 15532
47aaa820 15533 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
15534 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15535 $as_echo_n "(cached) " >&6
15536else
15537 lt_cv_shlibpath_overrides_runpath=no
15538 save_LDFLAGS=$LDFLAGS
15539 save_libdir=$libdir
15540 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15541 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 15543/* end confdefs.h. */
9c60689e 15544
47aaa820
DWT
15545int
15546main ()
15547{
9c60689e 15548
47aaa820
DWT
15549 ;
15550 return 0;
15551}
15552_ACEOF
15553if ac_fn_cxx_try_link "$LINENO"; then :
15554 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 15555 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 15556fi
47aaa820
DWT
15557fi
15558rm -f core conftest.err conftest.$ac_objext \
15559 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
15560 LDFLAGS=$save_LDFLAGS
15561 libdir=$save_libdir
15562
15563fi
15564
15565 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 15566
47aaa820
DWT
15567 # This implies no fast_install, which is unacceptable.
15568 # Some rework will be needed to allow for fast_install
15569 # before this can be enabled.
15570 hardcode_into_libs=yes
9c60689e 15571
47aaa820
DWT
15572 # Append ld.so.conf contents to the search path
15573 if test -f /etc/ld.so.conf; then
ee134472 15574 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' ' '`
47aaa820
DWT
15575 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15576 fi
9c60689e 15577
47aaa820
DWT
15578 # We used to test for /lib/ld.so.1 and disable shared libraries on
15579 # powerpc, because MkLinux only supported shared libraries with the
15580 # GNU dynamic linker. Since this was broken with cross compilers,
15581 # most powerpc-linux boxes support dynamic linking these days and
15582 # people can always --disable-shared, the test was removed, and we
15583 # assume the GNU/Linux dynamic linker is in use.
15584 dynamic_linker='GNU/Linux ld.so'
9c60689e 15585 ;;
47aaa820 15586
47aaa820
DWT
15587netbsd*)
15588 version_type=sunos
15589 need_lib_prefix=no
15590 need_version=no
15591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15594 dynamic_linker='NetBSD (a.out) ld.so'
15595 else
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15597 soname_spec='${libname}${release}${shared_ext}$major'
15598 dynamic_linker='NetBSD ld.elf_so'
15599 fi
15600 shlibpath_var=LD_LIBRARY_PATH
15601 shlibpath_overrides_runpath=yes
15602 hardcode_into_libs=yes
9c60689e 15603 ;;
9c60689e 15604
47aaa820 15605newsos6)
53ba6704 15606 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 shlibpath_overrides_runpath=yes
15610 ;;
9c60689e 15611
47aaa820
DWT
15612*nto* | *qnx*)
15613 version_type=qnx
15614 need_lib_prefix=no
15615 need_version=no
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 shlibpath_overrides_runpath=no
15620 hardcode_into_libs=yes
15621 dynamic_linker='ldqnx.so'
15622 ;;
9c60689e 15623
47aaa820
DWT
15624openbsd*)
15625 version_type=sunos
15626 sys_lib_dlsearch_path_spec="/usr/lib"
15627 need_lib_prefix=no
15628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15629 case $host_os in
15630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15631 *) need_version=no ;;
15632 esac
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15637 case $host_os in
15638 openbsd2.[89] | openbsd2.[89].*)
15639 shlibpath_overrides_runpath=no
15640 ;;
15641 *)
15642 shlibpath_overrides_runpath=yes
15643 ;;
15644 esac
15645 else
15646 shlibpath_overrides_runpath=yes
15647 fi
15648 ;;
9c60689e 15649
47aaa820
DWT
15650os2*)
15651 libname_spec='$name'
15652 shrext_cmds=".dll"
15653 need_lib_prefix=no
15654 library_names_spec='$libname${shared_ext} $libname.a'
15655 dynamic_linker='OS/2 ld.exe'
15656 shlibpath_var=LIBPATH
15657 ;;
9c60689e 15658
47aaa820
DWT
15659osf3* | osf4* | osf5*)
15660 version_type=osf
15661 need_lib_prefix=no
15662 need_version=no
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 shlibpath_var=LD_LIBRARY_PATH
15666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15668 ;;
9c60689e 15669
47aaa820
DWT
15670rdos*)
15671 dynamic_linker=no
15672 ;;
9c60689e 15673
47aaa820 15674solaris*)
53ba6704 15675 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15676 need_lib_prefix=no
15677 need_version=no
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 shlibpath_overrides_runpath=yes
15682 hardcode_into_libs=yes
15683 # ldd complains unless libraries are executable
15684 postinstall_cmds='chmod +x $lib'
15685 ;;
9c60689e 15686
47aaa820
DWT
15687sunos4*)
15688 version_type=sunos
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15691 shlibpath_var=LD_LIBRARY_PATH
15692 shlibpath_overrides_runpath=yes
15693 if test "$with_gnu_ld" = yes; then
15694 need_lib_prefix=no
15695 fi
15696 need_version=yes
15697 ;;
9c60689e 15698
47aaa820 15699sysv4 | sysv4.3*)
53ba6704 15700 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15702 soname_spec='${libname}${release}${shared_ext}$major'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 case $host_vendor in
15705 sni)
15706 shlibpath_overrides_runpath=no
15707 need_lib_prefix=no
15708 runpath_var=LD_RUN_PATH
9c60689e 15709 ;;
47aaa820
DWT
15710 siemens)
15711 need_lib_prefix=no
9c60689e 15712 ;;
47aaa820
DWT
15713 motorola)
15714 need_lib_prefix=no
15715 need_version=no
15716 shlibpath_overrides_runpath=no
15717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15718 ;;
15719 esac
9c60689e 15720 ;;
9c60689e 15721
47aaa820
DWT
15722sysv4*MP*)
15723 if test -d /usr/nec ;then
53ba6704 15724 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15725 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15726 soname_spec='$libname${shared_ext}.$major'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 fi
15729 ;;
9c60689e 15730
47aaa820
DWT
15731sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15732 version_type=freebsd-elf
15733 need_lib_prefix=no
15734 need_version=no
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 shlibpath_var=LD_LIBRARY_PATH
15738 shlibpath_overrides_runpath=yes
15739 hardcode_into_libs=yes
15740 if test "$with_gnu_ld" = yes; then
15741 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15742 else
15743 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15744 case $host_os in
15745 sco3.2v5*)
15746 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15747 ;;
15748 esac
15749 fi
15750 sys_lib_dlsearch_path_spec='/usr/lib'
15751 ;;
9c60689e 15752
47aaa820
DWT
15753tpf*)
15754 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 15755 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15756 need_lib_prefix=no
15757 need_version=no
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 shlibpath_overrides_runpath=no
15761 hardcode_into_libs=yes
15762 ;;
9c60689e 15763
47aaa820 15764uts4*)
53ba6704 15765 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15767 soname_spec='${libname}${release}${shared_ext}$major'
15768 shlibpath_var=LD_LIBRARY_PATH
15769 ;;
9c60689e 15770
47aaa820
DWT
15771*)
15772 dynamic_linker=no
e9c9a47c
DWT
15773 ;;
15774esac
15775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15776$as_echo "$dynamic_linker" >&6; }
15777test "$dynamic_linker" = no && can_build_shared=no
15778
15779variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15780if test "$GCC" = yes; then
15781 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 15782fi
9c60689e 15783
e9c9a47c
DWT
15784if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15785 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 15786fi
e9c9a47c
DWT
15787if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15788 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 15789fi
9c60689e 15790
9c60689e 15791
9c60689e 15792
9c60689e 15793
47aaa820 15794
47aaa820 15795
47aaa820 15796
9c60689e 15797
9c60689e 15798
47aaa820 15799
47aaa820 15800
47aaa820 15801
47aaa820 15802
47aaa820 15803
47aaa820 15804
47aaa820 15805
47aaa820 15806
9c60689e 15807
9c60689e 15808
9c60689e 15809
9c60689e 15810
9c60689e 15811
e9c9a47c
DWT
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
ee134472
JF
15823
15824
e9c9a47c
DWT
15825
15826
15827
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15829$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15830hardcode_action_CXX=
15831if test -n "$hardcode_libdir_flag_spec_CXX" ||
15832 test -n "$runpath_var_CXX" ||
15833 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15834
15835 # We can hardcode non-existent directories.
15836 if test "$hardcode_direct_CXX" != no &&
15837 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15838 # have to relink, otherwise we might link with an installed library
15839 # when we should be linking with a yet-to-be-installed one
15840 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15841 test "$hardcode_minus_L_CXX" != no; then
15842 # Linking always hardcodes the temporary library directory.
15843 hardcode_action_CXX=relink
15844 else
15845 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15846 hardcode_action_CXX=immediate
15847 fi
15848else
15849 # We cannot hardcode anything, or else we can only hardcode existing
15850 # directories.
15851 hardcode_action_CXX=unsupported
15852fi
15853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15854$as_echo "$hardcode_action_CXX" >&6; }
15855
15856if test "$hardcode_action_CXX" = relink ||
15857 test "$inherit_rpath_CXX" = yes; then
15858 # Fast installation is not supported
15859 enable_fast_install=no
15860elif test "$shlibpath_overrides_runpath" = yes ||
15861 test "$enable_shared" = no; then
15862 # Fast installation is not necessary
15863 enable_fast_install=needless
47aaa820 15864fi
9c60689e 15865
47aaa820 15866
47aaa820 15867
e9c9a47c
DWT
15868
15869
15870
15871
a243b558
JF
15872 fi # test -n "$compiler"
15873
15874 CC=$lt_save_CC
15875 CFLAGS=$lt_save_CFLAGS
15876 LDCXX=$LD
15877 LD=$lt_save_LD
15878 GCC=$lt_save_GCC
15879 with_gnu_ld=$lt_save_with_gnu_ld
15880 lt_cv_path_LDCXX=$lt_cv_path_LD
15881 lt_cv_path_LD=$lt_save_path_LD
15882 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15883 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15884fi # test "$_lt_caught_CXX_error" != yes
15885
15886ac_ext=c
15887ac_cpp='$CPP $CPPFLAGS'
15888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15890ac_compiler_gnu=$ac_cv_c_compiler_gnu
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906 ac_config_commands="$ac_config_commands libtool"
15907
15908
15909
15910
15911# Only expand once:
15912
15913
15914
15915ac_ext=cpp
15916ac_cpp='$CXXCPP $CPPFLAGS'
15917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15920
15921
15922
15923
15924
15925
15926
15927
15928if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15929 if test -n "$ac_tool_prefix"; then
15930 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15931set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15933$as_echo_n "checking for $ac_word... " >&6; }
15934if ${ac_cv_path_PKG_CONFIG+:} false; then :
15935 $as_echo_n "(cached) " >&6
15936else
15937 case $PKG_CONFIG in
15938 [\\/]* | ?:[\\/]*)
15939 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15940 ;;
15941 *)
15942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15943for as_dir in $PATH
15944do
15945 IFS=$as_save_IFS
15946 test -z "$as_dir" && as_dir=.
15947 for ac_exec_ext in '' $ac_executable_extensions; do
15948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15949 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15951 break 2
15952 fi
15953done
15954 done
15955IFS=$as_save_IFS
15956
15957 ;;
15958esac
15959fi
15960PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15961if test -n "$PKG_CONFIG"; then
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15963$as_echo "$PKG_CONFIG" >&6; }
15964else
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15966$as_echo "no" >&6; }
15967fi
15968
15969
15970fi
15971if test -z "$ac_cv_path_PKG_CONFIG"; then
15972 ac_pt_PKG_CONFIG=$PKG_CONFIG
15973 # Extract the first word of "pkg-config", so it can be a program name with args.
15974set dummy pkg-config; ac_word=$2
15975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15976$as_echo_n "checking for $ac_word... " >&6; }
15977if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15978 $as_echo_n "(cached) " >&6
15979else
15980 case $ac_pt_PKG_CONFIG in
15981 [\\/]* | ?:[\\/]*)
15982 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15983 ;;
15984 *)
15985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15986for as_dir in $PATH
15987do
15988 IFS=$as_save_IFS
15989 test -z "$as_dir" && as_dir=.
15990 for ac_exec_ext in '' $ac_executable_extensions; do
15991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15992 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15994 break 2
15995 fi
15996done
15997 done
15998IFS=$as_save_IFS
15999
16000 ;;
16001esac
16002fi
16003ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16004if test -n "$ac_pt_PKG_CONFIG"; then
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16006$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16007else
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16009$as_echo "no" >&6; }
16010fi
16011
16012 if test "x$ac_pt_PKG_CONFIG" = x; then
16013 PKG_CONFIG=""
16014 else
16015 case $cross_compiling:$ac_tool_warned in
16016yes:)
16017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16019ac_tool_warned=yes ;;
16020esac
16021 PKG_CONFIG=$ac_pt_PKG_CONFIG
16022 fi
16023else
16024 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16025fi
16026
16027fi
16028if test -n "$PKG_CONFIG"; then
16029 _pkg_min_version=0.22
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16031$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16032 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16034$as_echo "yes" >&6; }
16035 else
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16037$as_echo "no" >&6; }
16038 PKG_CONFIG=""
16039 fi
16040fi
16041
a243b558
JF
16042# Extract the first word of "git", so it can be a program name with args.
16043set dummy git; ac_word=$2
16044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16045$as_echo_n "checking for $ac_word... " >&6; }
16046if ${ac_cv_path_GIT+:} false; then :
16047 $as_echo_n "(cached) " >&6
16048else
16049 case $GIT in
16050 [\\/]* | ?:[\\/]*)
16051 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16052 ;;
16053 *)
16054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055for as_dir in $PATH
16056do
16057 IFS=$as_save_IFS
16058 test -z "$as_dir" && as_dir=.
16059 for ac_exec_ext in '' $ac_executable_extensions; do
16060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16061 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16063 break 2
16064 fi
16065done
16066 done
16067IFS=$as_save_IFS
e9c9a47c 16068
a243b558
JF
16069 ;;
16070esac
16071fi
16072GIT=$ac_cv_path_GIT
16073if test -n "$GIT"; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16075$as_echo "$GIT" >&6; }
16076else
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16078$as_echo "no" >&6; }
16079fi
e9c9a47c
DWT
16080
16081
a243b558
JF
16082# Extract the first word of "time", so it can be a program name with args.
16083set dummy time; ac_word=$2
632b71ea
DWT
16084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16085$as_echo_n "checking for $ac_word... " >&6; }
a243b558 16086if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
16087 $as_echo_n "(cached) " >&6
16088else
a243b558
JF
16089 case $TIME in
16090 [\\/]* | ?:[\\/]*)
16091 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16092 ;;
16093 *)
16094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
16095for as_dir in $PATH
16096do
16097 IFS=$as_save_IFS
16098 test -z "$as_dir" && as_dir=.
16099 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16101 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16103 break 2
16104 fi
16105done
16106 done
16107IFS=$as_save_IFS
16108
a243b558
JF
16109 ;;
16110esac
632b71ea 16111fi
a243b558
JF
16112TIME=$ac_cv_path_TIME
16113if test -n "$TIME"; then
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16115$as_echo "$TIME" >&6; }
632b71ea
DWT
16116else
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118$as_echo "no" >&6; }
16119fi
16120
16121
a243b558
JF
16122
16123
16124
16125
16126
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16128$as_echo_n "checking for bison >= 2.3... " >&6; }
16129 if test -z "$BISON"; then
16130 ac_path_BISON_found=false
16131 # Loop through the user's path and test for each of PROGNAME-LIST
16132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16133for as_dir in $PATH
16134do
16135 IFS=$as_save_IFS
16136 test -z "$as_dir" && as_dir=.
16137 for ac_prog in bison; do
16138 for ac_exec_ext in '' $ac_executable_extensions; do
16139 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16140 as_fn_executable_p "$ac_path_BISON" || continue
16141version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16142 if ${version:+false} :; then :
16143
16144else
16145 as_awk_strverscmp='
16146 # Use only awk features that work with 7th edition Unix awk (1978).
16147 # My, what an old awk you have, Mr. Solaris!
16148 END {
16149 while (length(v1) && length(v2)) {
16150 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16151 # Normally this is a single character, but if v1 and v2 contain digits,
16152 # compare them as integers and fractions as strverscmp does.
16153 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16154 # Split v1 and v2 into their leading digit string components d1 and d2,
16155 # and advance v1 and v2 past the leading digit strings.
16156 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16157 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16158 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16159 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16160 if (d1 ~ /^0/) {
16161 if (d2 ~ /^0/) {
16162 # Compare two fractions.
16163 while (d1 ~ /^0/ && d2 ~ /^0/) {
16164 d1 = substr(d1, 2); len1--
16165 d2 = substr(d2, 2); len2--
16166 }
16167 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16168 # The two components differ in length, and the common prefix
16169 # contains only leading zeros. Consider the longer to be less.
16170 d1 = -len1
16171 d2 = -len2
16172 } else {
16173 # Otherwise, compare as strings.
16174 d1 = "x" d1
16175 d2 = "x" d2
16176 }
16177 } else {
16178 # A fraction is less than an integer.
16179 exit 1
16180 }
16181 } else {
16182 if (d2 ~ /^0/) {
16183 # An integer is greater than a fraction.
16184 exit 2
16185 } else {
16186 # Compare two integers.
16187 d1 += 0
16188 d2 += 0
16189 }
16190 }
16191 } else {
16192 # The normal case, without worrying about digits.
16193 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16194 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16195 }
16196 if (d1 < d2) exit 1
16197 if (d1 > d2) exit 2
16198 }
16199 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16200 # which mishandles some comparisons of empty strings to integers.
16201 if (length(v2)) exit 1
16202 if (length(v1)) exit 2
16203 }
16204'
16205as_arg_v1=$version
16206as_arg_v2=2.3
16207awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16208case $? in #(
16209 1) :
16210 ;; #(
16211 0) :
16212 ac_cv_path_BISON=$ac_path_BISON ;; #(
16213 2) :
16214 ac_cv_path_BISON=$ac_path_BISON ;; #(
16215 *) :
16216 ;;
16217esac
16218fi
16219
16220 $ac_path_BISON_found && break 3
16221 done
16222 done
e9c9a47c 16223 done
a243b558
JF
16224IFS=$as_save_IFS
16225 if test -z "$ac_cv_path_BISON"; then
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16227$as_echo "no" >&6; }
16228 fi
16229else
16230 ac_cv_path_BISON=$BISON
632b71ea 16231fi
a243b558
JF
16232
16233
16234 if true; then :
16235
16236 BISON=$ac_cv_path_BISON
16237
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16239$as_echo "$BISON" >&6; }
16240
47aaa820 16241else
a243b558
JF
16242 if true; then :
16243
16244 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16245
47aaa820 16246else
a243b558
JF
16247
16248 BISON=:
16249
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16251$as_echo "no" >&6; }
16252
16253fi
16254fi
16255
16256
16257
16258
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16260$as_echo_n "checking for flex >= 2.5.33... " >&6; }
16261 if test -z "$FLEX"; then
16262 ac_path_FLEX_found=false
16263 # Loop through the user's path and test for each of PROGNAME-LIST
16264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
16265for as_dir in $PATH
16266do
16267 IFS=$as_save_IFS
16268 test -z "$as_dir" && as_dir=.
a243b558 16269 for ac_prog in flex; do
47aaa820 16270 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
16271 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16272 as_fn_executable_p "$ac_path_FLEX" || continue
16273version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16274 if ${version:+false} :; then :
9c60689e 16275
47aaa820 16276else
a243b558
JF
16277 as_arg_v1=$version
16278as_arg_v2=2.5.33
16279awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16280case $? in #(
16281 1) :
16282 ;; #(
16283 0) :
16284 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16285 2) :
16286 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16287 *) :
16288 ;;
16289esac
16290fi
16291
16292 $ac_path_FLEX_found && break 3
16293 done
16294 done
16295 done
16296IFS=$as_save_IFS
16297 if test -z "$ac_cv_path_FLEX"; then
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 16299$as_echo "no" >&6; }
a243b558
JF
16300 fi
16301else
16302 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
16303fi
16304
16305
a243b558 16306 if true; then :
e9c9a47c 16307
a243b558 16308 FLEX=$ac_cv_path_FLEX
e9c9a47c 16309
a243b558
JF
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16311$as_echo "$FLEX" >&6; }
9c60689e 16312
632b71ea 16313else
a243b558 16314 if true; then :
e9c9a47c 16315
a243b558 16316 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 16317
e9c9a47c 16318else
a243b558
JF
16319
16320 FLEX=:
16321
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323$as_echo "no" >&6; }
9c60689e 16324
632b71ea 16325fi
a243b558
JF
16326fi
16327
16328
16329
16330
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16332$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16333 if test -z "$GPERF"; then
16334 ac_path_GPERF_found=false
16335 # Loop through the user's path and test for each of PROGNAME-LIST
16336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16337for as_dir in $PATH
16338do
16339 IFS=$as_save_IFS
16340 test -z "$as_dir" && as_dir=.
16341 for ac_prog in gperf; do
16342 for ac_exec_ext in '' $ac_executable_extensions; do
16343 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16344 as_fn_executable_p "$ac_path_GPERF" || continue
16345version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16346 if ${version:+false} :; then :
16347
e9c9a47c 16348else
a243b558
JF
16349 as_arg_v1=$version
16350as_arg_v2=3.0.3
16351awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16352case $? in #(
16353 1) :
16354 ;; #(
16355 0) :
16356 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16357 2) :
16358 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16359 *) :
16360 ;;
16361esac
632b71ea 16362fi
a243b558
JF
16363
16364 $ac_path_GPERF_found && break 3
16365 done
16366 done
16367 done
16368IFS=$as_save_IFS
16369 if test -z "$ac_cv_path_GPERF"; then
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16371$as_echo "no" >&6; }
16372 fi
47aaa820 16373else
a243b558
JF
16374 ac_cv_path_GPERF=$GPERF
16375fi
9c60689e
DWT
16376
16377
a243b558 16378 if true; then :
9c60689e 16379
a243b558 16380 GPERF=$ac_cv_path_GPERF
9c60689e 16381
a243b558
JF
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16383$as_echo "$GPERF" >&6; }
9c60689e 16384
47aaa820 16385else
a243b558 16386 if true; then :
9c60689e 16387
a243b558
JF
16388 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16389
16390else
16391
16392 GPERF=:
16393
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16395$as_echo "no" >&6; }
9c60689e 16396
47aaa820 16397fi
47aaa820 16398fi
a243b558
JF
16399
16400
16401
16402
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16404$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16405 if test -z "$GNUTAR"; then
16406 ac_path_GNUTAR_found=false
16407 # Loop through the user's path and test for each of PROGNAME-LIST
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409for as_dir in $PATH
16410do
16411 IFS=$as_save_IFS
16412 test -z "$as_dir" && as_dir=.
16413 for ac_prog in tar gtar gnutar; do
16414 for ac_exec_ext in '' $ac_executable_extensions; do
16415 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16416 as_fn_executable_p "$ac_path_GNUTAR" || continue
16417version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16418 if ${version:+false} :; then :
16419
16420else
16421 as_arg_v1=$version
16422as_arg_v2=1.19
16423awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16424case $? in #(
16425 1) :
16426 ;; #(
16427 0) :
16428 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16429 2) :
16430 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16431 *) :
16432 ;;
16433esac
790e5246 16434fi
a243b558
JF
16435
16436 $ac_path_GNUTAR_found && break 3
16437 done
16438 done
16439 done
16440IFS=$as_save_IFS
16441 if test -z "$ac_cv_path_GNUTAR"; then
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16443$as_echo "no" >&6; }
632b71ea 16444 fi
632b71ea 16445else
a243b558 16446 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 16447fi
66170b30 16448
66170b30 16449
a243b558 16450 if true; then :
66170b30 16451
a243b558 16452 GNUTAR=$ac_cv_path_GNUTAR
66170b30 16453
a243b558
JF
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16455$as_echo "$GNUTAR" >&6; }
66170b30 16456
a243b558
JF
16457else
16458 if true; then :
66170b30 16459
a243b558 16460 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 16461
66170b30 16462else
66170b30 16463
a243b558 16464 GNUTAR=:
66170b30 16465
a243b558
JF
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16467$as_echo "no" >&6; }
66170b30 16468
a243b558
JF
16469fi
16470fi
66170b30
JF
16471
16472
9228a43a
JF
16473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16474$as_echo_n "checking bison for %code{}... " >&6; }
16475echo '%code{}%%_:' >conftest.y
16476if $BISON conftest.y -o/dev/null 2>/dev/null; then
16477
16478 for element in Bison24; do
16479 haveit=
16480 for x in $CY_FILTERS; do
16481
16482 acl_save_prefix="$prefix"
16483 prefix="$acl_final_prefix"
16484 acl_save_exec_prefix="$exec_prefix"
16485 exec_prefix="$acl_final_exec_prefix"
16486 eval x=\"$x\"
16487 exec_prefix="$acl_save_exec_prefix"
16488 prefix="$acl_save_prefix"
16489
16490 if test "X$x" = "X$element"; then
16491 haveit=yes
16492 break
16493 fi
16494 done
16495 if test -z "$haveit"; then
16496 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16497 fi
16498 done
16499
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16501$as_echo "yes" >&6; }
16502else
16503
16504 for element in Bison23; do
16505 haveit=
16506 for x in $CY_FILTERS; do
16507
16508 acl_save_prefix="$prefix"
16509 prefix="$acl_final_prefix"
16510 acl_save_exec_prefix="$exec_prefix"
16511 exec_prefix="$acl_final_exec_prefix"
16512 eval x=\"$x\"
16513 exec_prefix="$acl_save_exec_prefix"
16514 prefix="$acl_save_prefix"
16515
16516 if test "X$x" = "X$element"; then
16517 haveit=yes
16518 break
16519 fi
16520 done
16521 if test -z "$haveit"; then
16522 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16523 fi
16524 done
16525
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527$as_echo "no" >&6; }
16528fi
16529
16530rm -f conftest.y
16531
16532
66170b30
JF
16533
16534
16535
16536
16537
16538
16539
16540
16541if ${CFLAGS+:} false; then :
16542 case " $CFLAGS " in
16543 *" "*)
16544 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16545 (: CFLAGS already contains ) 2>&5
16546 ac_status=$?
16547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16548 test $ac_status = 0; }
16549 ;;
16550 *)
16551 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16552 (: CFLAGS="$CFLAGS ") 2>&5
16553 ac_status=$?
16554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16555 test $ac_status = 0; }
16556 CFLAGS="$CFLAGS "
16557 ;;
16558 esac
16559else
16560 CFLAGS=""
16561fi
16562
e9c9a47c
DWT
16563ac_ext=c
16564ac_cpp='$CPP $CPPFLAGS'
16565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16567ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 16568
66170b30
JF
16569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16570$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16571if ${ac_cv_cflags_warn_all+:} false; then :
16572 $as_echo_n "(cached) " >&6
16573else
16574 ac_cv_cflags_warn_all="no, unknown"
16575ac_save_CFLAGS="$CFLAGS"
16576for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16577do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579/* end confdefs.h. */
16580
16581int
16582main ()
16583{
16584
16585 ;
16586 return 0;
16587}
16588_ACEOF
16589if ac_fn_c_try_compile "$LINENO"; then :
16590 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16591fi
16592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593done
16594CFLAGS="$ac_save_CFLAGS"
16595
16596fi
16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16598$as_echo "$ac_cv_cflags_warn_all" >&6; }
16599
16600case ".$ac_cv_cflags_warn_all" in
16601 .ok|.ok,*) ;;
16602 .|.no|.no,*) ;;
16603 *) if ${CFLAGS+:} false; then :
16604 case " $CFLAGS " in
16605 *" $ac_cv_cflags_warn_all "*)
16606 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16607 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16608 ac_status=$?
16609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610 test $ac_status = 0; }
16611 ;;
16612 *)
16613 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16614 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16615 ac_status=$?
16616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16617 test $ac_status = 0; }
16618 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16619 ;;
16620 esac
16621else
16622 CFLAGS="$ac_cv_cflags_warn_all"
16623fi
16624 ;;
16625esac
16626
b816329d
JF
16627ac_ext=cpp
16628ac_cpp='$CXXCPP $CPPFLAGS'
16629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16632
9c60689e 16633
66170b30
JF
16634ac_ext=cpp
16635ac_cpp='$CXXCPP $CPPFLAGS'
16636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 16639
66170b30
JF
16640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16641$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16642if ${ac_cv_cxxflags_warn_all+:} false; then :
16643 $as_echo_n "(cached) " >&6
16644else
16645 ac_cv_cxxflags_warn_all="no, unknown"
16646ac_save_CXXFLAGS="$CXXFLAGS"
16647for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16648do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650/* end confdefs.h. */
1504c9b8 16651
66170b30
JF
16652int
16653main ()
16654{
1504c9b8 16655
66170b30
JF
16656 ;
16657 return 0;
16658}
16659_ACEOF
16660if ac_fn_cxx_try_compile "$LINENO"; then :
16661 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16662fi
16663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664done
16665CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 16666
66170b30
JF
16667fi
16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16669$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16670
16671case ".$ac_cv_cxxflags_warn_all" in
16672 .ok|.ok,*) ;;
16673 .|.no|.no,*) ;;
16674 *) if ${CXXFLAGS+:} false; then :
16675 case " $CXXFLAGS " in
16676 *" $ac_cv_cxxflags_warn_all "*)
16677 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16678 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16679 ac_status=$?
16680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16681 test $ac_status = 0; }
16682 ;;
16683 *)
16684 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16685 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16686 ac_status=$?
16687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16688 test $ac_status = 0; }
16689 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16690 ;;
16691 esac
16692else
16693 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16694fi
16695 ;;
16696esac
16697
16698ac_ext=cpp
16699ac_cpp='$CXXCPP $CPPFLAGS'
16700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16703
16704
babf7fe8
JF
16705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16706$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16707if ${ac_cv_cxxflags_warn_all+:} false; then :
16708 $as_echo_n "(cached) " >&6
16709else
16710 ac_cv_cxxflags_warn_all="no, unknown"
16711ac_save_CXXFLAGS="$CXXFLAGS"
16712for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16713do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715/* end confdefs.h. */
16716
16717int
16718main ()
16719{
16720
16721 ;
16722 return 0;
16723}
16724_ACEOF
16725if ac_fn_cxx_try_compile "$LINENO"; then :
16726 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16727fi
16728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729done
16730CXXFLAGS="$ac_save_CXXFLAGS"
16731
16732fi
16733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16734$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16735
16736case ".$ac_cv_cxxflags_warn_all" in
16737 .ok|.ok,*) ;;
16738 .|.no|.no,*) ;;
16739 *) if ${CXXFLAGS+:} false; then :
16740 case " $CXXFLAGS " in
16741 *" $ac_cv_cxxflags_warn_all "*)
16742 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16743 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16744 ac_status=$?
16745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16746 test $ac_status = 0; }
16747 ;;
16748 *)
16749 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16750 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16751 ac_status=$?
16752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16753 test $ac_status = 0; }
16754 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16755 ;;
16756 esac
16757else
16758 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16759fi
16760 ;;
16761esac
16762
66170b30
JF
16763
16764
66170b30 16765
66170b30 16766
c10a2228
JF
16767 ac_ext=c
16768ac_cpp='$CPP $CPPFLAGS'
16769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16771ac_compiler_gnu=$ac_cv_c_compiler_gnu
16772
babf7fe8
JF
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
16774$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
16775
16776 cy_save=$CFLAGS
16777
babf7fe8 16778 for element in -Werror; do
c10a2228
JF
16779 haveit=
16780 for x in $CFLAGS; do
16781
16782 acl_save_prefix="$prefix"
16783 prefix="$acl_final_prefix"
16784 acl_save_exec_prefix="$exec_prefix"
16785 exec_prefix="$acl_final_exec_prefix"
16786 eval x=\"$x\"
16787 exec_prefix="$acl_save_exec_prefix"
16788 prefix="$acl_save_prefix"
16789
16790 if test "X$x" = "X$element"; then
16791 haveit=yes
16792 break
16793 fi
16794 done
16795 if test -z "$haveit"; then
16796 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16797 fi
16798 done
16799
16800
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802/* end confdefs.h. */
16803
16804_ACEOF
16805if ac_fn_c_try_compile "$LINENO"; then :
16806 cy_good=1
16807else
16808 cy_good=0
16809fi
16810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811
16812 CFLAGS=$cy_save
16813 if test "x$cy_good" = x1; then :
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16815$as_echo "yes" >&6; }
16816
babf7fe8 16817 for element in -Werror; do
c10a2228
JF
16818 haveit=
16819 for x in $CFLAGS; do
16820
16821 acl_save_prefix="$prefix"
16822 prefix="$acl_final_prefix"
16823 acl_save_exec_prefix="$exec_prefix"
16824 exec_prefix="$acl_final_exec_prefix"
16825 eval x=\"$x\"
16826 exec_prefix="$acl_save_exec_prefix"
16827 prefix="$acl_save_prefix"
16828
16829 if test "X$x" = "X$element"; then
16830 haveit=yes
16831 break
16832 fi
16833 done
16834 if test -z "$haveit"; then
16835 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16836 fi
16837 done
16838
16839
16840else
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842$as_echo "no" >&6; }
16843fi
16844
16845 ac_ext=cpp
16846ac_cpp='$CXXCPP $CPPFLAGS'
16847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16850
16851
16852
16853 ac_ext=cpp
16854ac_cpp='$CXXCPP $CPPFLAGS'
16855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16858
babf7fe8
JF
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
16860$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
16861
16862 cy_save=$CXXFLAGS
16863
babf7fe8 16864 for element in -Werror; do
c10a2228
JF
16865 haveit=
16866 for x in $CXXFLAGS; do
16867
16868 acl_save_prefix="$prefix"
16869 prefix="$acl_final_prefix"
16870 acl_save_exec_prefix="$exec_prefix"
16871 exec_prefix="$acl_final_exec_prefix"
16872 eval x=\"$x\"
16873 exec_prefix="$acl_save_exec_prefix"
16874 prefix="$acl_save_prefix"
16875
16876 if test "X$x" = "X$element"; then
16877 haveit=yes
16878 break
16879 fi
16880 done
16881 if test -z "$haveit"; then
16882 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16883 fi
16884 done
16885
16886
16887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16888/* end confdefs.h. */
16889
16890_ACEOF
16891if ac_fn_cxx_try_compile "$LINENO"; then :
16892 cy_good=1
16893else
16894 cy_good=0
16895fi
16896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897
16898 CXXFLAGS=$cy_save
16899 if test "x$cy_good" = x1; then :
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16901$as_echo "yes" >&6; }
16902
babf7fe8 16903 for element in -Werror; do
c10a2228
JF
16904 haveit=
16905 for x in $CXXFLAGS; do
16906
16907 acl_save_prefix="$prefix"
16908 prefix="$acl_final_prefix"
16909 acl_save_exec_prefix="$exec_prefix"
16910 exec_prefix="$acl_final_exec_prefix"
16911 eval x=\"$x\"
16912 exec_prefix="$acl_save_exec_prefix"
16913 prefix="$acl_save_prefix"
16914
16915 if test "X$x" = "X$element"; then
16916 haveit=yes
16917 break
16918 fi
16919 done
16920 if test -z "$haveit"; then
16921 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16922 fi
16923 done
16924
16925
16926else
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16928$as_echo "no" >&6; }
16929fi
16930
16931 ac_ext=cpp
16932ac_cpp='$CXXCPP $CPPFLAGS'
16933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16936
16937
16938
16939 ac_ext=mm
16940ac_cpp='$OBJCXXCPP $CPPFLAGS'
16941ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16942ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16943ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16944
babf7fe8
JF
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
16946$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
16947
16948 cy_save=$OBJCXXFLAGS
16949
babf7fe8 16950 for element in -Werror; do
c10a2228
JF
16951 haveit=
16952 for x in $OBJCXXFLAGS; do
16953
16954 acl_save_prefix="$prefix"
16955 prefix="$acl_final_prefix"
16956 acl_save_exec_prefix="$exec_prefix"
16957 exec_prefix="$acl_final_exec_prefix"
16958 eval x=\"$x\"
16959 exec_prefix="$acl_save_exec_prefix"
16960 prefix="$acl_save_prefix"
16961
16962 if test "X$x" = "X$element"; then
16963 haveit=yes
16964 break
16965 fi
16966 done
16967 if test -z "$haveit"; then
16968 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16969 fi
16970 done
16971
16972
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974/* end confdefs.h. */
16975
16976_ACEOF
16977if ac_fn_objcxx_try_compile "$LINENO"; then :
16978 cy_good=1
16979else
16980 cy_good=0
16981fi
16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983
16984 OBJCXXFLAGS=$cy_save
16985 if test "x$cy_good" = x1; then :
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16987$as_echo "yes" >&6; }
16988
babf7fe8 16989 for element in -Werror; do
c10a2228
JF
16990 haveit=
16991 for x in $OBJCXXFLAGS; do
16992
16993 acl_save_prefix="$prefix"
16994 prefix="$acl_final_prefix"
16995 acl_save_exec_prefix="$exec_prefix"
16996 exec_prefix="$acl_final_exec_prefix"
16997 eval x=\"$x\"
16998 exec_prefix="$acl_save_exec_prefix"
16999 prefix="$acl_save_prefix"
17000
17001 if test "X$x" = "X$element"; then
17002 haveit=yes
17003 break
17004 fi
17005 done
17006 if test -z "$haveit"; then
17007 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17008 fi
17009 done
17010
17011
17012else
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17014$as_echo "no" >&6; }
17015fi
17016
17017 ac_ext=cpp
17018ac_cpp='$CXXCPP $CPPFLAGS'
17019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17022
17023
17024
17025
17026
17027
17028 ac_ext=c
17029ac_cpp='$CPP $CPPFLAGS'
17030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17032ac_compiler_gnu=$ac_cv_c_compiler_gnu
17033
babf7fe8
JF
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17035$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17036
17037 cy_save=$CFLAGS
17038
babf7fe8 17039 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17040 haveit=
17041 for x in $CFLAGS; do
17042
17043 acl_save_prefix="$prefix"
17044 prefix="$acl_final_prefix"
17045 acl_save_exec_prefix="$exec_prefix"
17046 exec_prefix="$acl_final_exec_prefix"
17047 eval x=\"$x\"
17048 exec_prefix="$acl_save_exec_prefix"
17049 prefix="$acl_save_prefix"
17050
17051 if test "X$x" = "X$element"; then
17052 haveit=yes
17053 break
17054 fi
17055 done
17056 if test -z "$haveit"; then
17057 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17058 fi
17059 done
17060
17061
17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063/* end confdefs.h. */
17064
17065_ACEOF
17066if ac_fn_c_try_compile "$LINENO"; then :
17067 cy_good=1
17068else
17069 cy_good=0
17070fi
17071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072
17073 CFLAGS=$cy_save
17074 if test "x$cy_good" = x1; then :
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17076$as_echo "yes" >&6; }
17077
babf7fe8 17078 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17079 haveit=
17080 for x in $CFLAGS; do
17081
17082 acl_save_prefix="$prefix"
17083 prefix="$acl_final_prefix"
17084 acl_save_exec_prefix="$exec_prefix"
17085 exec_prefix="$acl_final_exec_prefix"
17086 eval x=\"$x\"
17087 exec_prefix="$acl_save_exec_prefix"
17088 prefix="$acl_save_prefix"
17089
17090 if test "X$x" = "X$element"; then
17091 haveit=yes
17092 break
17093 fi
17094 done
17095 if test -z "$haveit"; then
17096 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17097 fi
17098 done
17099
17100
17101else
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17103$as_echo "no" >&6; }
17104fi
17105
17106 ac_ext=cpp
17107ac_cpp='$CXXCPP $CPPFLAGS'
17108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17111
17112
17113
17114 ac_ext=cpp
17115ac_cpp='$CXXCPP $CPPFLAGS'
17116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17119
babf7fe8
JF
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17121$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17122
17123 cy_save=$CXXFLAGS
17124
babf7fe8 17125 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17126 haveit=
17127 for x in $CXXFLAGS; do
17128
17129 acl_save_prefix="$prefix"
17130 prefix="$acl_final_prefix"
17131 acl_save_exec_prefix="$exec_prefix"
17132 exec_prefix="$acl_final_exec_prefix"
17133 eval x=\"$x\"
17134 exec_prefix="$acl_save_exec_prefix"
17135 prefix="$acl_save_prefix"
17136
17137 if test "X$x" = "X$element"; then
17138 haveit=yes
17139 break
17140 fi
17141 done
17142 if test -z "$haveit"; then
17143 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17144 fi
17145 done
17146
17147
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149/* end confdefs.h. */
17150
17151_ACEOF
17152if ac_fn_cxx_try_compile "$LINENO"; then :
17153 cy_good=1
17154else
17155 cy_good=0
17156fi
17157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17158
17159 CXXFLAGS=$cy_save
17160 if test "x$cy_good" = x1; then :
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17162$as_echo "yes" >&6; }
17163
babf7fe8 17164 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17165 haveit=
17166 for x in $CXXFLAGS; do
17167
17168 acl_save_prefix="$prefix"
17169 prefix="$acl_final_prefix"
17170 acl_save_exec_prefix="$exec_prefix"
17171 exec_prefix="$acl_final_exec_prefix"
17172 eval x=\"$x\"
17173 exec_prefix="$acl_save_exec_prefix"
17174 prefix="$acl_save_prefix"
17175
17176 if test "X$x" = "X$element"; then
17177 haveit=yes
17178 break
17179 fi
17180 done
17181 if test -z "$haveit"; then
17182 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17183 fi
17184 done
17185
17186
17187else
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189$as_echo "no" >&6; }
17190fi
17191
17192 ac_ext=cpp
17193ac_cpp='$CXXCPP $CPPFLAGS'
17194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17197
17198
17199
17200 ac_ext=mm
17201ac_cpp='$OBJCXXCPP $CPPFLAGS'
17202ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17203ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17204ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17205
babf7fe8
JF
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17207$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17208
17209 cy_save=$OBJCXXFLAGS
17210
babf7fe8 17211 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17212 haveit=
17213 for x in $OBJCXXFLAGS; do
17214
17215 acl_save_prefix="$prefix"
17216 prefix="$acl_final_prefix"
17217 acl_save_exec_prefix="$exec_prefix"
17218 exec_prefix="$acl_final_exec_prefix"
17219 eval x=\"$x\"
17220 exec_prefix="$acl_save_exec_prefix"
17221 prefix="$acl_save_prefix"
17222
17223 if test "X$x" = "X$element"; then
17224 haveit=yes
17225 break
17226 fi
17227 done
17228 if test -z "$haveit"; then
17229 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17230 fi
17231 done
17232
17233
17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235/* end confdefs.h. */
17236
17237_ACEOF
17238if ac_fn_objcxx_try_compile "$LINENO"; then :
17239 cy_good=1
17240else
17241 cy_good=0
17242fi
17243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17244
17245 OBJCXXFLAGS=$cy_save
17246 if test "x$cy_good" = x1; then :
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17248$as_echo "yes" >&6; }
17249
babf7fe8 17250 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17251 haveit=
17252 for x in $OBJCXXFLAGS; do
17253
17254 acl_save_prefix="$prefix"
17255 prefix="$acl_final_prefix"
17256 acl_save_exec_prefix="$exec_prefix"
17257 exec_prefix="$acl_final_exec_prefix"
17258 eval x=\"$x\"
17259 exec_prefix="$acl_save_exec_prefix"
17260 prefix="$acl_save_prefix"
17261
17262 if test "X$x" = "X$element"; then
17263 haveit=yes
17264 break
17265 fi
17266 done
17267 if test -z "$haveit"; then
17268 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17269 fi
17270 done
17271
17272
17273else
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17275$as_echo "no" >&6; }
17276fi
17277
17278 ac_ext=cpp
17279ac_cpp='$CXXCPP $CPPFLAGS'
17280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17283
17284
17285
17286
17287
babf7fe8 17288
c10a2228
JF
17289 ac_ext=c
17290ac_cpp='$CPP $CPPFLAGS'
17291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17293ac_compiler_gnu=$ac_cv_c_compiler_gnu
17294
babf7fe8
JF
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17296$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
17297
17298 cy_save=$CFLAGS
17299
babf7fe8 17300 for element in -Wno-dangling-else; do
c10a2228
JF
17301 haveit=
17302 for x in $CFLAGS; do
17303
17304 acl_save_prefix="$prefix"
17305 prefix="$acl_final_prefix"
17306 acl_save_exec_prefix="$exec_prefix"
17307 exec_prefix="$acl_final_exec_prefix"
17308 eval x=\"$x\"
17309 exec_prefix="$acl_save_exec_prefix"
17310 prefix="$acl_save_prefix"
17311
17312 if test "X$x" = "X$element"; then
17313 haveit=yes
17314 break
17315 fi
17316 done
17317 if test -z "$haveit"; then
17318 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17319 fi
17320 done
17321
17322
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324/* end confdefs.h. */
17325
17326_ACEOF
17327if ac_fn_c_try_compile "$LINENO"; then :
17328 cy_good=1
17329else
17330 cy_good=0
17331fi
17332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333
17334 CFLAGS=$cy_save
17335 if test "x$cy_good" = x1; then :
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17337$as_echo "yes" >&6; }
17338
babf7fe8 17339 for element in -Wno-dangling-else; do
c10a2228
JF
17340 haveit=
17341 for x in $CFLAGS; do
17342
17343 acl_save_prefix="$prefix"
17344 prefix="$acl_final_prefix"
17345 acl_save_exec_prefix="$exec_prefix"
17346 exec_prefix="$acl_final_exec_prefix"
17347 eval x=\"$x\"
17348 exec_prefix="$acl_save_exec_prefix"
17349 prefix="$acl_save_prefix"
17350
17351 if test "X$x" = "X$element"; then
17352 haveit=yes
17353 break
17354 fi
17355 done
17356 if test -z "$haveit"; then
17357 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17358 fi
17359 done
17360
17361
17362else
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17364$as_echo "no" >&6; }
17365fi
17366
17367 ac_ext=cpp
17368ac_cpp='$CXXCPP $CPPFLAGS'
17369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17372
17373
17374
17375 ac_ext=cpp
17376ac_cpp='$CXXCPP $CPPFLAGS'
17377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17380
babf7fe8
JF
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
17382$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
17383
17384 cy_save=$CXXFLAGS
17385
babf7fe8 17386 for element in -Wno-dangling-else; do
c10a2228
JF
17387 haveit=
17388 for x in $CXXFLAGS; do
17389
17390 acl_save_prefix="$prefix"
17391 prefix="$acl_final_prefix"
17392 acl_save_exec_prefix="$exec_prefix"
17393 exec_prefix="$acl_final_exec_prefix"
17394 eval x=\"$x\"
17395 exec_prefix="$acl_save_exec_prefix"
17396 prefix="$acl_save_prefix"
17397
17398 if test "X$x" = "X$element"; then
17399 haveit=yes
17400 break
17401 fi
17402 done
17403 if test -z "$haveit"; then
17404 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17405 fi
17406 done
17407
17408
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410/* end confdefs.h. */
17411
17412_ACEOF
17413if ac_fn_cxx_try_compile "$LINENO"; then :
17414 cy_good=1
17415else
17416 cy_good=0
17417fi
17418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419
17420 CXXFLAGS=$cy_save
17421 if test "x$cy_good" = x1; then :
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17423$as_echo "yes" >&6; }
17424
babf7fe8 17425 for element in -Wno-dangling-else; do
c10a2228
JF
17426 haveit=
17427 for x in $CXXFLAGS; do
17428
17429 acl_save_prefix="$prefix"
17430 prefix="$acl_final_prefix"
17431 acl_save_exec_prefix="$exec_prefix"
17432 exec_prefix="$acl_final_exec_prefix"
17433 eval x=\"$x\"
17434 exec_prefix="$acl_save_exec_prefix"
17435 prefix="$acl_save_prefix"
17436
17437 if test "X$x" = "X$element"; then
17438 haveit=yes
17439 break
17440 fi
17441 done
17442 if test -z "$haveit"; then
17443 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17444 fi
17445 done
17446
17447
17448else
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17450$as_echo "no" >&6; }
17451fi
17452
17453 ac_ext=cpp
17454ac_cpp='$CXXCPP $CPPFLAGS'
17455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17458
17459
17460
17461 ac_ext=mm
17462ac_cpp='$OBJCXXCPP $CPPFLAGS'
17463ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17464ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17465ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17466
babf7fe8
JF
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17468$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
17469
17470 cy_save=$OBJCXXFLAGS
17471
babf7fe8 17472 for element in -Wno-dangling-else; do
c10a2228
JF
17473 haveit=
17474 for x in $OBJCXXFLAGS; do
17475
17476 acl_save_prefix="$prefix"
17477 prefix="$acl_final_prefix"
17478 acl_save_exec_prefix="$exec_prefix"
17479 exec_prefix="$acl_final_exec_prefix"
17480 eval x=\"$x\"
17481 exec_prefix="$acl_save_exec_prefix"
17482 prefix="$acl_save_prefix"
17483
17484 if test "X$x" = "X$element"; then
17485 haveit=yes
17486 break
17487 fi
17488 done
17489 if test -z "$haveit"; then
17490 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17491 fi
17492 done
17493
17494
17495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496/* end confdefs.h. */
17497
17498_ACEOF
17499if ac_fn_objcxx_try_compile "$LINENO"; then :
17500 cy_good=1
17501else
17502 cy_good=0
17503fi
17504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17505
17506 OBJCXXFLAGS=$cy_save
17507 if test "x$cy_good" = x1; then :
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17509$as_echo "yes" >&6; }
17510
babf7fe8 17511 for element in -Wno-dangling-else; do
c10a2228
JF
17512 haveit=
17513 for x in $OBJCXXFLAGS; do
17514
17515 acl_save_prefix="$prefix"
17516 prefix="$acl_final_prefix"
17517 acl_save_exec_prefix="$exec_prefix"
17518 exec_prefix="$acl_final_exec_prefix"
17519 eval x=\"$x\"
17520 exec_prefix="$acl_save_exec_prefix"
17521 prefix="$acl_save_prefix"
17522
17523 if test "X$x" = "X$element"; then
17524 haveit=yes
17525 break
17526 fi
17527 done
17528 if test -z "$haveit"; then
17529 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17530 fi
17531 done
17532
17533
17534else
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17536$as_echo "no" >&6; }
17537fi
17538
17539 ac_ext=cpp
17540ac_cpp='$CXXCPP $CPPFLAGS'
17541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17544
17545
17546
17547
17548
17549 ac_ext=c
17550ac_cpp='$CPP $CPPFLAGS'
17551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17553ac_compiler_gnu=$ac_cv_c_compiler_gnu
17554
babf7fe8
JF
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17556$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
17557
17558 cy_save=$CFLAGS
17559
babf7fe8 17560 for element in -Wno-overloaded-virtual; do
1504c9b8 17561 haveit=
c10a2228 17562 for x in $CFLAGS; do
1504c9b8
DWT
17563
17564 acl_save_prefix="$prefix"
17565 prefix="$acl_final_prefix"
17566 acl_save_exec_prefix="$exec_prefix"
17567 exec_prefix="$acl_final_exec_prefix"
17568 eval x=\"$x\"
17569 exec_prefix="$acl_save_exec_prefix"
17570 prefix="$acl_save_prefix"
17571
17572 if test "X$x" = "X$element"; then
17573 haveit=yes
17574 break
17575 fi
17576 done
17577 if test -z "$haveit"; then
c10a2228 17578 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
17579 fi
17580 done
17581
66170b30
JF
17582
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
17584/* end confdefs.h. */
17585
66170b30 17586_ACEOF
c10a2228 17587if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
17588 cy_good=1
17589else
17590 cy_good=0
17591fi
17592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593
c10a2228 17594 CFLAGS=$cy_save
66170b30
JF
17595 if test "x$cy_good" = x1; then :
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17597$as_echo "yes" >&6; }
17598
babf7fe8 17599 for element in -Wno-overloaded-virtual; do
66170b30
JF
17600 haveit=
17601 for x in $CFLAGS; do
17602
17603 acl_save_prefix="$prefix"
17604 prefix="$acl_final_prefix"
17605 acl_save_exec_prefix="$exec_prefix"
17606 exec_prefix="$acl_final_exec_prefix"
17607 eval x=\"$x\"
17608 exec_prefix="$acl_save_exec_prefix"
17609 prefix="$acl_save_prefix"
17610
17611 if test "X$x" = "X$element"; then
17612 haveit=yes
17613 break
17614 fi
17615 done
17616 if test -z "$haveit"; then
17617 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17618 fi
17619 done
17620
17621
c10a2228
JF
17622else
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17624$as_echo "no" >&6; }
17625fi
17626
17627 ac_ext=cpp
17628ac_cpp='$CXXCPP $CPPFLAGS'
17629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17632
17633
17634
17635 ac_ext=cpp
17636ac_cpp='$CXXCPP $CPPFLAGS'
17637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17640
babf7fe8
JF
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17642$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
17643
17644 cy_save=$CXXFLAGS
17645
babf7fe8 17646 for element in -Wno-overloaded-virtual; do
66170b30
JF
17647 haveit=
17648 for x in $CXXFLAGS; do
17649
17650 acl_save_prefix="$prefix"
17651 prefix="$acl_final_prefix"
17652 acl_save_exec_prefix="$exec_prefix"
17653 exec_prefix="$acl_final_exec_prefix"
17654 eval x=\"$x\"
17655 exec_prefix="$acl_save_exec_prefix"
17656 prefix="$acl_save_prefix"
17657
17658 if test "X$x" = "X$element"; then
17659 haveit=yes
17660 break
17661 fi
17662 done
17663 if test -z "$haveit"; then
17664 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17665 fi
17666 done
17667
17668
c10a2228
JF
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670/* end confdefs.h. */
17671
17672_ACEOF
17673if ac_fn_cxx_try_compile "$LINENO"; then :
17674 cy_good=1
17675else
17676 cy_good=0
17677fi
17678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17679
17680 CXXFLAGS=$cy_save
17681 if test "x$cy_good" = x1; then :
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17683$as_echo "yes" >&6; }
17684
babf7fe8 17685 for element in -Wno-overloaded-virtual; do
66170b30 17686 haveit=
c10a2228 17687 for x in $CXXFLAGS; do
66170b30
JF
17688
17689 acl_save_prefix="$prefix"
17690 prefix="$acl_final_prefix"
17691 acl_save_exec_prefix="$exec_prefix"
17692 exec_prefix="$acl_final_exec_prefix"
17693 eval x=\"$x\"
17694 exec_prefix="$acl_save_exec_prefix"
17695 prefix="$acl_save_prefix"
17696
17697 if test "X$x" = "X$element"; then
17698 haveit=yes
17699 break
17700 fi
17701 done
17702 if test -z "$haveit"; then
c10a2228 17703 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
17704 fi
17705 done
17706
17707
66170b30
JF
17708else
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17710$as_echo "no" >&6; }
17711fi
17712
c10a2228
JF
17713 ac_ext=cpp
17714ac_cpp='$CXXCPP $CPPFLAGS'
17715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17718
66170b30
JF
17719
17720
c10a2228
JF
17721 ac_ext=mm
17722ac_cpp='$OBJCXXCPP $CPPFLAGS'
17723ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17726
babf7fe8
JF
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17728$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 17729
c10a2228 17730 cy_save=$OBJCXXFLAGS
66170b30 17731
babf7fe8 17732 for element in -Wno-overloaded-virtual; do
66170b30 17733 haveit=
c10a2228 17734 for x in $OBJCXXFLAGS; do
66170b30
JF
17735
17736 acl_save_prefix="$prefix"
17737 prefix="$acl_final_prefix"
17738 acl_save_exec_prefix="$exec_prefix"
17739 exec_prefix="$acl_final_exec_prefix"
17740 eval x=\"$x\"
17741 exec_prefix="$acl_save_exec_prefix"
17742 prefix="$acl_save_prefix"
17743
17744 if test "X$x" = "X$element"; then
17745 haveit=yes
17746 break
17747 fi
17748 done
17749 if test -z "$haveit"; then
c10a2228 17750 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
17751 fi
17752 done
17753
17754
17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756/* end confdefs.h. */
1504c9b8 17757
1504c9b8 17758_ACEOF
c10a2228 17759if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
17760 cy_good=1
17761else
17762 cy_good=0
17763fi
17764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765
c10a2228 17766 OBJCXXFLAGS=$cy_save
66170b30
JF
17767 if test "x$cy_good" = x1; then :
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17769$as_echo "yes" >&6; }
1504c9b8 17770
babf7fe8 17771 for element in -Wno-overloaded-virtual; do
1504c9b8 17772 haveit=
c10a2228 17773 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17774
17775 acl_save_prefix="$prefix"
17776 prefix="$acl_final_prefix"
17777 acl_save_exec_prefix="$exec_prefix"
17778 exec_prefix="$acl_final_exec_prefix"
17779 eval x=\"$x\"
17780 exec_prefix="$acl_save_exec_prefix"
17781 prefix="$acl_save_prefix"
17782
17783 if test "X$x" = "X$element"; then
17784 haveit=yes
17785 break
17786 fi
17787 done
17788 if test -z "$haveit"; then
c10a2228 17789 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
17790 fi
17791 done
17792
17793
c10a2228
JF
17794else
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17796$as_echo "no" >&6; }
17797fi
17798
17799 ac_ext=cpp
17800ac_cpp='$CXXCPP $CPPFLAGS'
17801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17804
17805
17806
17807
17808
17809 ac_ext=c
17810ac_cpp='$CPP $CPPFLAGS'
17811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17813ac_compiler_gnu=$ac_cv_c_compiler_gnu
17814
babf7fe8
JF
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17816$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
17817
17818 cy_save=$CFLAGS
17819
babf7fe8 17820 for element in -Wno-parentheses; do
66170b30 17821 haveit=
c10a2228 17822 for x in $CFLAGS; do
66170b30
JF
17823
17824 acl_save_prefix="$prefix"
17825 prefix="$acl_final_prefix"
17826 acl_save_exec_prefix="$exec_prefix"
17827 exec_prefix="$acl_final_exec_prefix"
17828 eval x=\"$x\"
17829 exec_prefix="$acl_save_exec_prefix"
17830 prefix="$acl_save_prefix"
17831
17832 if test "X$x" = "X$element"; then
17833 haveit=yes
17834 break
17835 fi
17836 done
17837 if test -z "$haveit"; then
c10a2228 17838 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17839 fi
17840 done
17841
17842
c10a2228
JF
17843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844/* end confdefs.h. */
17845
17846_ACEOF
17847if ac_fn_c_try_compile "$LINENO"; then :
17848 cy_good=1
17849else
17850 cy_good=0
17851fi
17852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853
17854 CFLAGS=$cy_save
17855 if test "x$cy_good" = x1; then :
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17857$as_echo "yes" >&6; }
17858
babf7fe8 17859 for element in -Wno-parentheses; do
66170b30 17860 haveit=
c10a2228 17861 for x in $CFLAGS; do
66170b30
JF
17862
17863 acl_save_prefix="$prefix"
17864 prefix="$acl_final_prefix"
17865 acl_save_exec_prefix="$exec_prefix"
17866 exec_prefix="$acl_final_exec_prefix"
17867 eval x=\"$x\"
17868 exec_prefix="$acl_save_exec_prefix"
17869 prefix="$acl_save_prefix"
17870
17871 if test "X$x" = "X$element"; then
17872 haveit=yes
17873 break
17874 fi
17875 done
17876 if test -z "$haveit"; then
c10a2228 17877 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17878 fi
17879 done
17880
17881
66170b30
JF
17882else
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17884$as_echo "no" >&6; }
17885fi
17886
c10a2228
JF
17887 ac_ext=cpp
17888ac_cpp='$CXXCPP $CPPFLAGS'
17889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17892
66170b30
JF
17893
17894
c10a2228
JF
17895 ac_ext=cpp
17896ac_cpp='$CXXCPP $CPPFLAGS'
17897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17900
babf7fe8
JF
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
17902$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
17903
17904 cy_save=$CXXFLAGS
17905
babf7fe8 17906 for element in -Wno-parentheses; do
66170b30
JF
17907 haveit=
17908 for x in $CXXFLAGS; do
17909
17910 acl_save_prefix="$prefix"
17911 prefix="$acl_final_prefix"
17912 acl_save_exec_prefix="$exec_prefix"
17913 exec_prefix="$acl_final_exec_prefix"
17914 eval x=\"$x\"
17915 exec_prefix="$acl_save_exec_prefix"
17916 prefix="$acl_save_prefix"
17917
17918 if test "X$x" = "X$element"; then
17919 haveit=yes
17920 break
17921 fi
17922 done
17923 if test -z "$haveit"; then
17924 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17925 fi
17926 done
17927
17928
17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930/* end confdefs.h. */
17931
17932_ACEOF
17933if ac_fn_cxx_try_compile "$LINENO"; then :
17934 cy_good=1
17935else
17936 cy_good=0
17937fi
17938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17939
17940 CXXFLAGS=$cy_save
17941 if test "x$cy_good" = x1; then :
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17943$as_echo "yes" >&6; }
17944
babf7fe8 17945 for element in -Wno-parentheses; do
1504c9b8 17946 haveit=
c10a2228 17947 for x in $CXXFLAGS; do
1504c9b8
DWT
17948
17949 acl_save_prefix="$prefix"
17950 prefix="$acl_final_prefix"
17951 acl_save_exec_prefix="$exec_prefix"
17952 exec_prefix="$acl_final_exec_prefix"
17953 eval x=\"$x\"
17954 exec_prefix="$acl_save_exec_prefix"
17955 prefix="$acl_save_prefix"
17956
17957 if test "X$x" = "X$element"; then
17958 haveit=yes
17959 break
17960 fi
17961 done
17962 if test -z "$haveit"; then
c10a2228 17963 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
17964 fi
17965 done
17966
17967
c10a2228
JF
17968else
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17970$as_echo "no" >&6; }
17971fi
17972
17973 ac_ext=cpp
17974ac_cpp='$CXXCPP $CPPFLAGS'
17975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17978
17979
17980
17981 ac_ext=mm
17982ac_cpp='$OBJCXXCPP $CPPFLAGS'
17983ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17986
babf7fe8
JF
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
17988$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
17989
17990 cy_save=$OBJCXXFLAGS
17991
babf7fe8 17992 for element in -Wno-parentheses; do
1504c9b8 17993 haveit=
c10a2228 17994 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17995
17996 acl_save_prefix="$prefix"
17997 prefix="$acl_final_prefix"
17998 acl_save_exec_prefix="$exec_prefix"
17999 exec_prefix="$acl_final_exec_prefix"
18000 eval x=\"$x\"
18001 exec_prefix="$acl_save_exec_prefix"
18002 prefix="$acl_save_prefix"
18003
18004 if test "X$x" = "X$element"; then
18005 haveit=yes
18006 break
18007 fi
18008 done
18009 if test -z "$haveit"; then
c10a2228 18010 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18011 fi
18012 done
18013
18014
c10a2228
JF
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016/* end confdefs.h. */
18017
18018_ACEOF
18019if ac_fn_objcxx_try_compile "$LINENO"; then :
18020 cy_good=1
18021else
18022 cy_good=0
18023fi
18024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025
18026 OBJCXXFLAGS=$cy_save
18027 if test "x$cy_good" = x1; then :
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18029$as_echo "yes" >&6; }
18030
babf7fe8 18031 for element in -Wno-parentheses; do
1504c9b8 18032 haveit=
c10a2228 18033 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18034
18035 acl_save_prefix="$prefix"
18036 prefix="$acl_final_prefix"
18037 acl_save_exec_prefix="$exec_prefix"
18038 exec_prefix="$acl_final_exec_prefix"
18039 eval x=\"$x\"
18040 exec_prefix="$acl_save_exec_prefix"
18041 prefix="$acl_save_prefix"
18042
18043 if test "X$x" = "X$element"; then
18044 haveit=yes
18045 break
18046 fi
18047 done
18048 if test -z "$haveit"; then
c10a2228 18049 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18050 fi
18051 done
18052
18053
66170b30
JF
18054else
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18056$as_echo "no" >&6; }
1504c9b8 18057fi
1504c9b8 18058
c10a2228
JF
18059 ac_ext=cpp
18060ac_cpp='$CXXCPP $CPPFLAGS'
18061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18064
18065
1504c9b8 18066
1504c9b8 18067
1504c9b8 18068
babf7fe8
JF
18069 ac_ext=c
18070ac_cpp='$CPP $CPPFLAGS'
18071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18073ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 18074
babf7fe8
JF
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18076$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18077
18078 cy_save=$CFLAGS
18079
18080 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18081 haveit=
babf7fe8 18082 for x in $CFLAGS; do
1504c9b8
DWT
18083
18084 acl_save_prefix="$prefix"
18085 prefix="$acl_final_prefix"
18086 acl_save_exec_prefix="$exec_prefix"
18087 exec_prefix="$acl_final_exec_prefix"
18088 eval x=\"$x\"
18089 exec_prefix="$acl_save_exec_prefix"
18090 prefix="$acl_save_prefix"
18091
18092 if test "X$x" = "X$element"; then
18093 haveit=yes
18094 break
18095 fi
18096 done
18097 if test -z "$haveit"; then
babf7fe8 18098 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18099 fi
18100 done
18101
66170b30
JF
18102
18103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18104/* end confdefs.h. */
18105
a243b558 18106_ACEOF
babf7fe8 18107if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
18108 cy_good=1
18109else
18110 cy_good=0
18111fi
babf7fe8 18112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 18113
babf7fe8 18114 CFLAGS=$cy_save
a243b558
JF
18115 if test "x$cy_good" = x1; then :
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18117$as_echo "yes" >&6; }
66170b30 18118
babf7fe8 18119 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18120 haveit=
babf7fe8 18121 for x in $CFLAGS; do
1504c9b8
DWT
18122
18123 acl_save_prefix="$prefix"
18124 prefix="$acl_final_prefix"
18125 acl_save_exec_prefix="$exec_prefix"
18126 exec_prefix="$acl_final_exec_prefix"
18127 eval x=\"$x\"
18128 exec_prefix="$acl_save_exec_prefix"
18129 prefix="$acl_save_prefix"
18130
18131 if test "X$x" = "X$element"; then
18132 haveit=yes
18133 break
18134 fi
18135 done
18136 if test -z "$haveit"; then
babf7fe8 18137 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18138 fi
18139 done
18140
18141
18142else
66170b30
JF
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18144$as_echo "no" >&6; }
1504c9b8
DWT
18145fi
18146
babf7fe8
JF
18147 ac_ext=cpp
18148ac_cpp='$CXXCPP $CPPFLAGS'
18149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 18152
9c60689e 18153
632b71ea 18154
babf7fe8
JF
18155 ac_ext=cpp
18156ac_cpp='$CXXCPP $CPPFLAGS'
18157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 18160
babf7fe8
JF
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18162$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 18163
babf7fe8 18164 cy_save=$CXXFLAGS
9c60689e 18165
babf7fe8
JF
18166 for element in -Wno-unneeded-internal-declaration; do
18167 haveit=
18168 for x in $CXXFLAGS; do
9c60689e 18169
babf7fe8
JF
18170 acl_save_prefix="$prefix"
18171 prefix="$acl_final_prefix"
18172 acl_save_exec_prefix="$exec_prefix"
18173 exec_prefix="$acl_final_exec_prefix"
18174 eval x=\"$x\"
18175 exec_prefix="$acl_save_exec_prefix"
18176 prefix="$acl_save_prefix"
66170b30 18177
babf7fe8
JF
18178 if test "X$x" = "X$element"; then
18179 haveit=yes
18180 break
18181 fi
18182 done
18183 if test -z "$haveit"; then
18184 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18185 fi
18186 done
7eda51e0 18187
7eda51e0 18188
babf7fe8
JF
18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190/* end confdefs.h. */
7eda51e0 18191
7eda51e0 18192_ACEOF
babf7fe8
JF
18193if ac_fn_cxx_try_compile "$LINENO"; then :
18194 cy_good=1
9c60689e 18195else
babf7fe8 18196 cy_good=0
9c60689e 18197fi
babf7fe8 18198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 18199
babf7fe8
JF
18200 CXXFLAGS=$cy_save
18201 if test "x$cy_good" = x1; then :
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18203$as_echo "yes" >&6; }
7eda51e0 18204
babf7fe8 18205 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18206 haveit=
babf7fe8 18207 for x in $CXXFLAGS; do
9c60689e 18208
7eda51e0
JF
18209 acl_save_prefix="$prefix"
18210 prefix="$acl_final_prefix"
18211 acl_save_exec_prefix="$exec_prefix"
18212 exec_prefix="$acl_final_exec_prefix"
18213 eval x=\"$x\"
18214 exec_prefix="$acl_save_exec_prefix"
18215 prefix="$acl_save_prefix"
9c60689e 18216
7eda51e0
JF
18217 if test "X$x" = "X$element"; then
18218 haveit=yes
18219 break
18220 fi
18221 done
18222 if test -z "$haveit"; then
babf7fe8 18223 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
18224 fi
18225 done
9c60689e 18226
9c60689e 18227
5053a6d1 18228else
babf7fe8
JF
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18230$as_echo "no" >&6; }
632b71ea
DWT
18231fi
18232
babf7fe8
JF
18233 ac_ext=cpp
18234ac_cpp='$CXXCPP $CPPFLAGS'
18235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
18238
18239
5053a6d1 18240
babf7fe8
JF
18241 ac_ext=mm
18242ac_cpp='$OBJCXXCPP $CPPFLAGS'
18243ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 18246
babf7fe8
JF
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18248$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 18249
babf7fe8 18250 cy_save=$OBJCXXFLAGS
632b71ea 18251
babf7fe8 18252 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 18253 haveit=
babf7fe8 18254 for x in $OBJCXXFLAGS; do
632b71ea
DWT
18255
18256 acl_save_prefix="$prefix"
18257 prefix="$acl_final_prefix"
18258 acl_save_exec_prefix="$exec_prefix"
18259 exec_prefix="$acl_final_exec_prefix"
5053a6d1 18260 eval x=\"$x\"
632b71ea
DWT
18261 exec_prefix="$acl_save_exec_prefix"
18262 prefix="$acl_save_prefix"
18263
5053a6d1
DWT
18264 if test "X$x" = "X$element"; then
18265 haveit=yes
18266 break
18267 fi
18268 done
18269 if test -z "$haveit"; then
babf7fe8 18270 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
18271 fi
18272 done
18273
66170b30 18274
babf7fe8
JF
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276/* end confdefs.h. */
18277
18278_ACEOF
18279if ac_fn_objcxx_try_compile "$LINENO"; then :
18280 cy_good=1
18281else
18282 cy_good=0
18283fi
18284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18285
18286 OBJCXXFLAGS=$cy_save
18287 if test "x$cy_good" = x1; then :
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18289$as_echo "yes" >&6; }
18290
18291 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18292 haveit=
babf7fe8 18293 for x in $OBJCXXFLAGS; do
7eda51e0
JF
18294
18295 acl_save_prefix="$prefix"
18296 prefix="$acl_final_prefix"
18297 acl_save_exec_prefix="$exec_prefix"
18298 exec_prefix="$acl_final_exec_prefix"
18299 eval x=\"$x\"
18300 exec_prefix="$acl_save_exec_prefix"
18301 prefix="$acl_save_prefix"
18302
18303 if test "X$x" = "X$element"; then
18304 haveit=yes
18305 break
18306 fi
18307 done
18308 if test -z "$haveit"; then
babf7fe8 18309 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
18310 fi
18311 done
66170b30
JF
18312
18313
babf7fe8
JF
18314else
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18316$as_echo "no" >&6; }
5053a6d1 18317fi
7eda51e0 18318
babf7fe8
JF
18319 ac_ext=cpp
18320ac_cpp='$CXXCPP $CPPFLAGS'
18321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 18324
5053a6d1
DWT
18325
18326
5053a6d1 18327
babf7fe8
JF
18328
18329
3615a2f7 18330for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
abc804fa
JF
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
18332$as_echo_n "checking for -arch $cy_arch... " >&6; }
18333
18334 cy_save=$CXXFLAGS
18335
18336 for element in "-arch $cy_arch"; do
18337 haveit=
18338 for x in $CXXFLAGS; do
18339
18340 acl_save_prefix="$prefix"
18341 prefix="$acl_final_prefix"
18342 acl_save_exec_prefix="$exec_prefix"
18343 exec_prefix="$acl_final_exec_prefix"
18344 eval x=\"$x\"
18345 exec_prefix="$acl_save_exec_prefix"
18346 prefix="$acl_save_prefix"
18347
18348 if test "X$x" = "X$element"; then
18349 haveit=yes
18350 break
18351 fi
18352 done
18353 if test -z "$haveit"; then
18354 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18355 fi
18356 done
18357
18358
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360/* end confdefs.h. */
18361
18362int
18363main ()
18364{
18365
18366 ;
18367 return 0;
18368}
18369_ACEOF
18370if ac_fn_cxx_try_link "$LINENO"; then :
18371 cy_good=1
18372else
18373 cy_good=0
18374fi
18375rm -f core conftest.err conftest.$ac_objext \
18376 conftest$ac_exeext conftest.$ac_ext
18377
18378 CXXFLAGS=$cy_save
18379 if test "x$cy_good" = x1; then :
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18381$as_echo "yes" >&6; }
18382
18383 for element in "-arch $cy_arch"; do
18384 haveit=
18385 for x in $CY_ARCH; do
18386
18387 acl_save_prefix="$prefix"
18388 prefix="$acl_final_prefix"
18389 acl_save_exec_prefix="$exec_prefix"
18390 exec_prefix="$acl_final_exec_prefix"
18391 eval x=\"$x\"
18392 exec_prefix="$acl_save_exec_prefix"
18393 prefix="$acl_save_prefix"
18394
18395 if test "X$x" = "X$element"; then
18396 haveit=yes
18397 break
18398 fi
18399 done
18400 if test -z "$haveit"; then
18401 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
18402 fi
18403 done
18404
18405
18406else
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18408$as_echo "no" >&6; }
18409fi
18410
18411done
18412
18413
babf7fe8
JF
18414
18415
18416
18417
18418# Check whether --enable-javascript was given.
18419if test "${enable_javascript+set}" = set; then :
18420 enableval=$enable_javascript;
18421 case $enableval in #(
18422 yes) :
18423
18424
18425
18426
18427 cy_save=$LIBS
18428 LIBS=
9918a0fa
JF
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
18430$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
18431if ${ac_cv_search_JSEvaluateScript+:} false; then :
18432 $as_echo_n "(cached) " >&6
18433else
18434 ac_func_search_save_LIBS=$LIBS
18435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436/* end confdefs.h. */
18437
18438/* Override any GCC internal prototype to avoid an error.
18439 Use char because int might match the return type of a GCC
18440 builtin and then its argument prototype would still apply. */
18441#ifdef __cplusplus
18442extern "C"
18443#endif
18444char JSEvaluateScript ();
18445int
18446main ()
18447{
18448return JSEvaluateScript ();
18449 ;
18450 return 0;
18451}
18452_ACEOF
18453for ac_lib in '' JavaScriptCore; do
18454 if test -z "$ac_lib"; then
18455 ac_res="none required"
18456 else
18457 ac_res=-l$ac_lib
18458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18459 fi
18460 if ac_fn_cxx_try_link "$LINENO"; then :
18461 ac_cv_search_JSEvaluateScript=$ac_res
18462fi
18463rm -f core conftest.err conftest.$ac_objext \
18464 conftest$ac_exeext
18465 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18466 break
18467fi
18468done
18469if ${ac_cv_search_JSEvaluateScript+:} false; then :
18470
18471else
18472 ac_cv_search_JSEvaluateScript=no
18473fi
18474rm conftest.$ac_ext
18475LIBS=$ac_func_search_save_LIBS
18476fi
18477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
18478$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
18479ac_res=$ac_cv_search_JSEvaluateScript
18480if test "$ac_res" != no; then :
18481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18482
18483 CY_EXECUTE=1
18484
18485
18486else
babf7fe8
JF
18487
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18489$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18490if ${ac_cv_framework_JavaScriptCore+:} false; then :
18491 $as_echo_n "(cached) " >&6
18492else
18493
18494 ac_check_framework_save_LIBS=$LIBS
18495 LIBS="-framework JavaScriptCore $LIBS"
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497/* end confdefs.h. */
18498
18499 #include <JavaScriptCore/JSBase.h>
18500
18501int
18502main ()
18503{
18504
18505 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18506
18507 ;
18508 return 0;
18509}
18510_ACEOF
18511if ac_fn_cxx_try_link "$LINENO"; then :
18512
18513 ac_cv_framework_JavaScriptCore=yes
18514
18515else
18516 ac_cv_framework_JavaScriptCore=no
18517fi
18518rm -f core conftest.err conftest.$ac_objext \
18519 conftest$ac_exeext conftest.$ac_ext
18520 LIBS=$ac_check_framework_save_LIBS
18521
18522fi
18523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18524$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18525 if test $ac_cv_framework_JavaScriptCore = yes; then :
18526
18527
18528 for element in "-framework JavaScriptCore"; do
18529 haveit=
18530 for x in $LIBS; do
18531
18532 acl_save_prefix="$prefix"
18533 prefix="$acl_final_prefix"
18534 acl_save_exec_prefix="$exec_prefix"
18535 exec_prefix="$acl_final_exec_prefix"
18536 eval x=\"$x\"
18537 exec_prefix="$acl_save_exec_prefix"
18538 prefix="$acl_save_prefix"
18539
18540 if test "X$x" = "X$element"; then
18541 haveit=yes
18542 break
18543 fi
18544 done
18545 if test -z "$haveit"; then
18546 LIBS="${LIBS}${LIBS:+ }$element"
18547 fi
18548 done
18549
18550
18551 CY_EXECUTE=1
18552
18553
18554
18555else
18556
18557 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18558
18559pkg_failed=no
18560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 18561$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 18562
7eda51e0
JF
18563if test -n "$WEBKIT_CFLAGS"; then
18564 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18565 elif test -n "$PKG_CONFIG"; then
18566 if test -n "$PKG_CONFIG" && \
18567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18568 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18569 ac_status=$?
18570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18571 test $ac_status = 0; }; then
18572 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18573else
18574 pkg_failed=yes
18575fi
18576 else
18577 pkg_failed=untried
18578fi
18579if test -n "$WEBKIT_LIBS"; then
18580 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18581 elif test -n "$PKG_CONFIG"; then
18582 if test -n "$PKG_CONFIG" && \
18583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18584 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18585 ac_status=$?
18586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18587 test $ac_status = 0; }; then
18588 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18589else
18590 pkg_failed=yes
18591fi
18592 else
18593 pkg_failed=untried
18594fi
632b71ea 18595
7eda51e0
JF
18596
18597
18598if test $pkg_failed = yes; then
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18600$as_echo "no" >&6; }
18601
18602if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18603 _pkg_short_errors_supported=yes
18604else
18605 _pkg_short_errors_supported=no
18606fi
18607 if test $_pkg_short_errors_supported = yes; then
00a96142 18608 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0 18609 else
00a96142 18610 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
18611 fi
18612 # Put the nasty error message in config.log where it belongs
18613 echo "$WEBKIT_PKG_ERRORS" >&5
18614
18615 :
18616elif test $pkg_failed = untried; then
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18618$as_echo "no" >&6; }
18619 :
18620else
18621 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18622 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18624$as_echo "yes" >&6; }
18625
18626 CY_EXECUTE=1
18627
18628
7eda51e0
JF
18629 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18630 haveit=
d70419f1 18631 for x in $CPPFLAGS; do
5053a6d1 18632
7eda51e0
JF
18633 acl_save_prefix="$prefix"
18634 prefix="$acl_final_prefix"
18635 acl_save_exec_prefix="$exec_prefix"
18636 exec_prefix="$acl_final_exec_prefix"
18637 eval x=\"$x\"
18638 exec_prefix="$acl_save_exec_prefix"
18639 prefix="$acl_save_prefix"
5053a6d1 18640
7eda51e0
JF
18641 if test "X$x" = "X$element"; then
18642 haveit=yes
18643 break
18644 fi
18645 done
18646 if test -z "$haveit"; then
d70419f1 18647 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
18648 fi
18649 done
5053a6d1 18650
5053a6d1 18651
7eda51e0 18652 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 18653 haveit=
5053a6d1 18654 for x in $LIBS; do
9c60689e 18655
632b71ea
DWT
18656 acl_save_prefix="$prefix"
18657 prefix="$acl_final_prefix"
18658 acl_save_exec_prefix="$exec_prefix"
18659 exec_prefix="$acl_final_exec_prefix"
18660 eval x=\"$x\"
18661 exec_prefix="$acl_save_exec_prefix"
18662 prefix="$acl_save_prefix"
18663
18664 if test "X$x" = "X$element"; then
18665 haveit=yes
18666 break
18667 fi
18668 done
18669 if test -z "$haveit"; then
5053a6d1 18670 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
18671 fi
18672 done
b128dfee 18673
66170b30 18674
7eda51e0
JF
18675fi; if test "x$CY_EXECUTE" = x1; then break; fi
18676 done
5053a6d1
DWT
18677
18678fi
9918a0fa
JF
18679fi
18680
babf7fe8
JF
18681 LTJAVASCRIPTCORE=$LIBS
18682 LIBS=$cy_save
18683
18684
7eda51e0 18685 ;; #(
babf7fe8 18686 no) :
7eda51e0 18687
babf7fe8
JF
18688 CY_EXECUTE=0
18689 ;; #(
18690 JavaScriptCore) :
c823f118 18691
5053a6d1
DWT
18692
18693
babf7fe8
JF
18694 cy_save=$LIBS
18695 LIBS=
9918a0fa
JF
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
18697$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
18698if ${ac_cv_search_JSEvaluateScript+:} false; then :
18699 $as_echo_n "(cached) " >&6
18700else
18701 ac_func_search_save_LIBS=$LIBS
18702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703/* end confdefs.h. */
18704
18705/* Override any GCC internal prototype to avoid an error.
18706 Use char because int might match the return type of a GCC
18707 builtin and then its argument prototype would still apply. */
18708#ifdef __cplusplus
18709extern "C"
18710#endif
18711char JSEvaluateScript ();
18712int
18713main ()
18714{
18715return JSEvaluateScript ();
18716 ;
18717 return 0;
18718}
18719_ACEOF
18720for ac_lib in '' JavaScriptCore; do
18721 if test -z "$ac_lib"; then
18722 ac_res="none required"
18723 else
18724 ac_res=-l$ac_lib
18725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18726 fi
18727 if ac_fn_cxx_try_link "$LINENO"; then :
18728 ac_cv_search_JSEvaluateScript=$ac_res
18729fi
18730rm -f core conftest.err conftest.$ac_objext \
18731 conftest$ac_exeext
18732 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18733 break
18734fi
18735done
18736if ${ac_cv_search_JSEvaluateScript+:} false; then :
18737
18738else
18739 ac_cv_search_JSEvaluateScript=no
18740fi
18741rm conftest.$ac_ext
18742LIBS=$ac_func_search_save_LIBS
18743fi
18744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
18745$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
18746ac_res=$ac_cv_search_JSEvaluateScript
18747if test "$ac_res" != no; then :
18748 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18749
18750 CY_EXECUTE=1
18751
18752
18753else
babf7fe8 18754
5053a6d1
DWT
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18756$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18757if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
18758 $as_echo_n "(cached) " >&6
18759else
18760
5053a6d1
DWT
18761 ac_check_framework_save_LIBS=$LIBS
18762 LIBS="-framework JavaScriptCore $LIBS"
18763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 18764/* end confdefs.h. */
5053a6d1 18765
7eda51e0 18766 #include <JavaScriptCore/JSBase.h>
5053a6d1 18767
632b71ea
DWT
18768int
18769main ()
18770{
66170b30 18771
7eda51e0 18772 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 18773
632b71ea
DWT
18774 ;
18775 return 0;
18776}
18777_ACEOF
5053a6d1
DWT
18778if ac_fn_cxx_try_link "$LINENO"; then :
18779
18780 ac_cv_framework_JavaScriptCore=yes
18781
18782else
18783 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
18784fi
18785rm -f core conftest.err conftest.$ac_objext \
18786 conftest$ac_exeext conftest.$ac_ext
5053a6d1 18787 LIBS=$ac_check_framework_save_LIBS
b128dfee 18788
c823f118 18789fi
5053a6d1
DWT
18790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18791$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18792 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
18793
18794
7eda51e0 18795 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
18796 haveit=
18797 for x in $LIBS; do
18798
18799 acl_save_prefix="$prefix"
18800 prefix="$acl_final_prefix"
18801 acl_save_exec_prefix="$exec_prefix"
18802 exec_prefix="$acl_final_exec_prefix"
18803 eval x=\"$x\"
18804 exec_prefix="$acl_save_exec_prefix"
18805 prefix="$acl_save_prefix"
18806
18807 if test "X$x" = "X$element"; then
18808 haveit=yes
18809 break
18810 fi
18811 done
18812 if test -z "$haveit"; then
18813 LIBS="${LIBS}${LIBS:+ }$element"
18814 fi
18815 done
c823f118 18816
66170b30 18817
7eda51e0
JF
18818 CY_EXECUTE=1
18819
18820
18821
18822else
18823
18824 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18825
18826pkg_failed=no
18827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18828$as_echo_n "checking for WEBKIT... " >&6; }
18829
18830if test -n "$WEBKIT_CFLAGS"; then
18831 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18832 elif test -n "$PKG_CONFIG"; then
18833 if test -n "$PKG_CONFIG" && \
18834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18835 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18836 ac_status=$?
18837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18838 test $ac_status = 0; }; then
18839 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18840else
18841 pkg_failed=yes
18842fi
18843 else
18844 pkg_failed=untried
18845fi
18846if test -n "$WEBKIT_LIBS"; then
18847 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18848 elif test -n "$PKG_CONFIG"; then
18849 if test -n "$PKG_CONFIG" && \
18850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18851 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18852 ac_status=$?
18853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18854 test $ac_status = 0; }; then
18855 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18856else
18857 pkg_failed=yes
18858fi
18859 else
18860 pkg_failed=untried
18861fi
18862
66170b30
JF
18863
18864
7eda51e0
JF
18865if test $pkg_failed = yes; then
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18867$as_echo "no" >&6; }
b128dfee 18868
7eda51e0
JF
18869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18870 _pkg_short_errors_supported=yes
18871else
18872 _pkg_short_errors_supported=no
632b71ea 18873fi
7eda51e0 18874 if test $_pkg_short_errors_supported = yes; then
00a96142 18875 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0 18876 else
00a96142 18877 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
18878 fi
18879 # Put the nasty error message in config.log where it belongs
18880 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 18881
7eda51e0
JF
18882 :
18883elif test $pkg_failed = untried; then
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18885$as_echo "no" >&6; }
18886 :
5053a6d1
DWT
18887else
18888 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18889 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18891$as_echo "yes" >&6; }
c823f118 18892
7eda51e0
JF
18893 CY_EXECUTE=1
18894
66170b30 18895
7eda51e0 18896 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 18897 haveit=
d70419f1 18898 for x in $CPPFLAGS; do
c823f118 18899
5053a6d1
DWT
18900 acl_save_prefix="$prefix"
18901 prefix="$acl_final_prefix"
18902 acl_save_exec_prefix="$exec_prefix"
18903 exec_prefix="$acl_final_exec_prefix"
18904 eval x=\"$x\"
18905 exec_prefix="$acl_save_exec_prefix"
18906 prefix="$acl_save_prefix"
c823f118 18907
5053a6d1
DWT
18908 if test "X$x" = "X$element"; then
18909 haveit=yes
18910 break
18911 fi
18912 done
18913 if test -z "$haveit"; then
d70419f1 18914 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
18915 fi
18916 done
c823f118 18917
b66977f1 18918
7eda51e0 18919 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
18920 haveit=
18921 for x in $LIBS; do
18922
18923 acl_save_prefix="$prefix"
18924 prefix="$acl_final_prefix"
18925 acl_save_exec_prefix="$exec_prefix"
18926 exec_prefix="$acl_final_exec_prefix"
18927 eval x=\"$x\"
18928 exec_prefix="$acl_save_exec_prefix"
18929 prefix="$acl_save_prefix"
18930
18931 if test "X$x" = "X$element"; then
18932 haveit=yes
18933 break
18934 fi
18935 done
18936 if test -z "$haveit"; then
18937 LIBS="${LIBS}${LIBS:+ }$element"
18938 fi
18939 done
18940
18941
7eda51e0
JF
18942fi; if test "x$CY_EXECUTE" = x1; then break; fi
18943 done
18944
5053a6d1 18945fi
9918a0fa
JF
18946fi
18947
babf7fe8
JF
18948 LTJAVASCRIPTCORE=$LIBS
18949 LIBS=$cy_save
5053a6d1 18950
b66977f1 18951
babf7fe8
JF
18952 ;; #(
18953 *) :
18954 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18955esac
b66977f1 18956
babf7fe8 18957else
b66977f1 18958
7eda51e0 18959
7eda51e0 18960
babf7fe8
JF
18961 cy_save=$LIBS
18962 LIBS=
9918a0fa
JF
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
18964$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
18965if ${ac_cv_search_JSEvaluateScript+:} false; then :
18966 $as_echo_n "(cached) " >&6
18967else
18968 ac_func_search_save_LIBS=$LIBS
18969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18970/* end confdefs.h. */
18971
18972/* Override any GCC internal prototype to avoid an error.
18973 Use char because int might match the return type of a GCC
18974 builtin and then its argument prototype would still apply. */
18975#ifdef __cplusplus
18976extern "C"
18977#endif
18978char JSEvaluateScript ();
18979int
18980main ()
18981{
18982return JSEvaluateScript ();
18983 ;
18984 return 0;
18985}
18986_ACEOF
18987for ac_lib in '' JavaScriptCore; do
18988 if test -z "$ac_lib"; then
18989 ac_res="none required"
18990 else
18991 ac_res=-l$ac_lib
18992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18993 fi
18994 if ac_fn_cxx_try_link "$LINENO"; then :
18995 ac_cv_search_JSEvaluateScript=$ac_res
18996fi
18997rm -f core conftest.err conftest.$ac_objext \
18998 conftest$ac_exeext
18999 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19000 break
19001fi
19002done
19003if ${ac_cv_search_JSEvaluateScript+:} false; then :
19004
19005else
19006 ac_cv_search_JSEvaluateScript=no
19007fi
19008rm conftest.$ac_ext
19009LIBS=$ac_func_search_save_LIBS
19010fi
19011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19012$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19013ac_res=$ac_cv_search_JSEvaluateScript
19014if test "$ac_res" != no; then :
19015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19016
19017 CY_EXECUTE=1
19018
19019
19020else
7eda51e0 19021
babf7fe8
JF
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19023$as_echo_n "checking for framework JavaScriptCore... " >&6; }
19024if ${ac_cv_framework_JavaScriptCore+:} false; then :
19025 $as_echo_n "(cached) " >&6
19026else
7eda51e0 19027
babf7fe8
JF
19028 ac_check_framework_save_LIBS=$LIBS
19029 LIBS="-framework JavaScriptCore $LIBS"
19030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031/* end confdefs.h. */
7eda51e0 19032
babf7fe8 19033 #include <JavaScriptCore/JSBase.h>
7eda51e0 19034
babf7fe8
JF
19035int
19036main ()
19037{
7eda51e0 19038
babf7fe8 19039 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 19040
babf7fe8
JF
19041 ;
19042 return 0;
19043}
19044_ACEOF
19045if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 19046
babf7fe8 19047 ac_cv_framework_JavaScriptCore=yes
b66977f1 19048
b66977f1 19049else
babf7fe8
JF
19050 ac_cv_framework_JavaScriptCore=no
19051fi
19052rm -f core conftest.err conftest.$ac_objext \
19053 conftest$ac_exeext conftest.$ac_ext
19054 LIBS=$ac_check_framework_save_LIBS
7eda51e0 19055
babf7fe8
JF
19056fi
19057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19058$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19059 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 19060
7eda51e0 19061
babf7fe8
JF
19062 for element in "-framework JavaScriptCore"; do
19063 haveit=
19064 for x in $LIBS; do
19065
19066 acl_save_prefix="$prefix"
19067 prefix="$acl_final_prefix"
19068 acl_save_exec_prefix="$exec_prefix"
19069 exec_prefix="$acl_final_exec_prefix"
19070 eval x=\"$x\"
19071 exec_prefix="$acl_save_exec_prefix"
19072 prefix="$acl_save_prefix"
19073
19074 if test "X$x" = "X$element"; then
19075 haveit=yes
19076 break
19077 fi
19078 done
19079 if test -z "$haveit"; then
19080 LIBS="${LIBS}${LIBS:+ }$element"
19081 fi
19082 done
19083
19084
19085 CY_EXECUTE=1
19086
19087
19088
19089else
19090
19091 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19092
19093pkg_failed=no
19094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19095$as_echo_n "checking for WEBKIT... " >&6; }
19096
19097if test -n "$WEBKIT_CFLAGS"; then
19098 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19099 elif test -n "$PKG_CONFIG"; then
19100 if test -n "$PKG_CONFIG" && \
19101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19102 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19103 ac_status=$?
19104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19105 test $ac_status = 0; }; then
19106 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
19107else
19108 pkg_failed=yes
19109fi
19110 else
19111 pkg_failed=untried
19112fi
19113if test -n "$WEBKIT_LIBS"; then
19114 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19115 elif test -n "$PKG_CONFIG"; then
19116 if test -n "$PKG_CONFIG" && \
19117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19118 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19119 ac_status=$?
19120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19121 test $ac_status = 0; }; then
19122 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19123else
19124 pkg_failed=yes
19125fi
19126 else
19127 pkg_failed=untried
19128fi
19129
19130
19131
19132if test $pkg_failed = yes; then
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19134$as_echo "no" >&6; }
19135
19136if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19137 _pkg_short_errors_supported=yes
19138else
19139 _pkg_short_errors_supported=no
19140fi
19141 if test $_pkg_short_errors_supported = yes; then
00a96142 19142 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
babf7fe8 19143 else
00a96142 19144 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
19145 fi
19146 # Put the nasty error message in config.log where it belongs
19147 echo "$WEBKIT_PKG_ERRORS" >&5
19148
19149 :
19150elif test $pkg_failed = untried; then
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152$as_echo "no" >&6; }
19153 :
19154else
19155 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19156 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19158$as_echo "yes" >&6; }
19159
19160 CY_EXECUTE=1
19161
19162
19163 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19164 haveit=
19165 for x in $CPPFLAGS; do
19166
19167 acl_save_prefix="$prefix"
19168 prefix="$acl_final_prefix"
19169 acl_save_exec_prefix="$exec_prefix"
19170 exec_prefix="$acl_final_exec_prefix"
19171 eval x=\"$x\"
19172 exec_prefix="$acl_save_exec_prefix"
19173 prefix="$acl_save_prefix"
19174
19175 if test "X$x" = "X$element"; then
19176 haveit=yes
19177 break
19178 fi
19179 done
19180 if test -z "$haveit"; then
19181 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19182 fi
19183 done
19184
19185
19186 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19187 haveit=
19188 for x in $LIBS; do
19189
19190 acl_save_prefix="$prefix"
19191 prefix="$acl_final_prefix"
19192 acl_save_exec_prefix="$exec_prefix"
19193 exec_prefix="$acl_final_exec_prefix"
19194 eval x=\"$x\"
19195 exec_prefix="$acl_save_exec_prefix"
19196 prefix="$acl_save_prefix"
19197
19198 if test "X$x" = "X$element"; then
19199 haveit=yes
19200 break
19201 fi
19202 done
19203 if test -z "$haveit"; then
19204 LIBS="${LIBS}${LIBS:+ }$element"
19205 fi
19206 done
19207
19208
19209fi; if test "x$CY_EXECUTE" = x1; then break; fi
19210 done
19211
19212fi
9918a0fa
JF
19213fi
19214
babf7fe8
JF
19215 LTJAVASCRIPTCORE=$LIBS
19216 LIBS=$cy_save
19217
19218
19219
19220fi
19221
19222
a93f15c0
JF
19223# Check whether --enable-console was given.
19224if test "${enable_console+set}" = set; then :
19225 enableval=$enable_console;
19226fi
19227
19228 if test "x$enable_console" != "xno"; then
19229 CY_CONSOLE_TRUE=
19230 CY_CONSOLE_FALSE='#'
19231else
19232 CY_CONSOLE_TRUE='#'
19233 CY_CONSOLE_FALSE=
19234fi
19235
19236
7eda51e0
JF
19237
19238
19239 if test "x$CY_EXECUTE" = x1; then
19240 CY_EXECUTE_TRUE=
19241 CY_EXECUTE_FALSE='#'
b66977f1 19242else
7eda51e0
JF
19243 CY_EXECUTE_TRUE='#'
19244 CY_EXECUTE_FALSE=
b66977f1
DWT
19245fi
19246
19247
19248
7eda51e0
JF
19249case $CY_EXECUTE in #(
19250 1) :
19251
19252 for ac_header in ffi.h ffi/ffi.h
19253do :
19254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19255ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19256if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19257 cat >>confdefs.h <<_ACEOF
19258#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19259_ACEOF
19260 break
b66977f1 19261fi
7eda51e0
JF
19262
19263done
19264
296ee9a6
JF
19265
19266
19267 cy_save=$LIBS
19268 LIBS=
7eda51e0 19269 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 19270
b66977f1 19271
296ee9a6
JF
19272 LIBFFI_CFLAGS
19273 C compiler flags for LIBFFI, overriding pkg-config
19274 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
19275
19276pkg_failed=no
7eda51e0
JF
19277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19278$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 19279
7eda51e0
JF
19280if test -n "$LIBFFI_CFLAGS"; then
19281 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
19282 elif test -n "$PKG_CONFIG"; then
19283 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19284 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19285 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19286 ac_status=$?
19287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19288 test $ac_status = 0; }; then
7eda51e0 19289 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
19290else
19291 pkg_failed=yes
19292fi
12833ad8
JF
19293 else
19294 pkg_failed=untried
b66977f1 19295fi
7eda51e0
JF
19296if test -n "$LIBFFI_LIBS"; then
19297 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19298 elif test -n "$PKG_CONFIG"; then
19299 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19300 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19301 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19302 ac_status=$?
19303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19304 test $ac_status = 0; }; then
7eda51e0 19305 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
19306else
19307 pkg_failed=yes
19308fi
12833ad8
JF
19309 else
19310 pkg_failed=untried
b66977f1
DWT
19311fi
19312
19313
19314
19315if test $pkg_failed = yes; then
12833ad8
JF
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19317$as_echo "no" >&6; }
b66977f1
DWT
19318
19319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19320 _pkg_short_errors_supported=yes
19321else
19322 _pkg_short_errors_supported=no
19323fi
19324 if test $_pkg_short_errors_supported = yes; then
00a96142 19325 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 19326 else
00a96142 19327 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
19328 fi
19329 # Put the nasty error message in config.log where it belongs
7eda51e0 19330 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19331
7eda51e0
JF
19332 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19333elif test $pkg_failed = untried; then
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19335$as_echo "no" >&6; }
19336 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19337else
19338 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19339 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19341$as_echo "yes" >&6; }
b66977f1
DWT
19342
19343
7eda51e0 19344 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19345 haveit=
d70419f1 19346 for x in $CPPFLAGS; do
b66977f1
DWT
19347
19348 acl_save_prefix="$prefix"
19349 prefix="$acl_final_prefix"
19350 acl_save_exec_prefix="$exec_prefix"
19351 exec_prefix="$acl_final_exec_prefix"
19352 eval x=\"$x\"
19353 exec_prefix="$acl_save_exec_prefix"
19354 prefix="$acl_save_prefix"
19355
19356 if test "X$x" = "X$element"; then
19357 haveit=yes
19358 break
19359 fi
19360 done
19361 if test -z "$haveit"; then
d70419f1 19362 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
19363 fi
19364 done
19365
19366
7eda51e0 19367 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
19368 haveit=
19369 for x in $LIBS; do
19370
19371 acl_save_prefix="$prefix"
19372 prefix="$acl_final_prefix"
19373 acl_save_exec_prefix="$exec_prefix"
19374 exec_prefix="$acl_final_exec_prefix"
19375 eval x=\"$x\"
19376 exec_prefix="$acl_save_exec_prefix"
19377 prefix="$acl_save_prefix"
19378
19379 if test "X$x" = "X$element"; then
19380 haveit=yes
19381 break
19382 fi
19383 done
19384 if test -z "$haveit"; then
19385 LIBS="${LIBS}${LIBS:+ }$element"
19386 fi
19387 done
19388
19389
19390fi
19391
7eda51e0
JF
19392else
19393
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19395$as_echo_n "checking for library containing ffi_call... " >&6; }
19396if ${ac_cv_search_ffi_call+:} false; then :
19397 $as_echo_n "(cached) " >&6
19398else
19399 ac_func_search_save_LIBS=$LIBS
19400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401/* end confdefs.h. */
19402
19403/* Override any GCC internal prototype to avoid an error.
19404 Use char because int might match the return type of a GCC
19405 builtin and then its argument prototype would still apply. */
19406#ifdef __cplusplus
19407extern "C"
19408#endif
19409char ffi_call ();
19410int
19411main ()
19412{
19413return ffi_call ();
19414 ;
19415 return 0;
19416}
19417_ACEOF
19418for ac_lib in '' ffi; do
19419 if test -z "$ac_lib"; then
19420 ac_res="none required"
19421 else
19422 ac_res=-l$ac_lib
19423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19424 fi
19425 if ac_fn_cxx_try_link "$LINENO"; then :
19426 ac_cv_search_ffi_call=$ac_res
19427fi
19428rm -f core conftest.err conftest.$ac_objext \
19429 conftest$ac_exeext
19430 if ${ac_cv_search_ffi_call+:} false; then :
19431 break
19432fi
19433done
19434if ${ac_cv_search_ffi_call+:} false; then :
19435
19436else
19437 ac_cv_search_ffi_call=no
19438fi
19439rm conftest.$ac_ext
19440LIBS=$ac_func_search_save_LIBS
19441fi
19442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19443$as_echo "$ac_cv_search_ffi_call" >&6; }
19444ac_res=$ac_cv_search_ffi_call
19445if test "$ac_res" != no; then :
19446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19447
19448fi
19449
19450 case $ac_cv_search_ffi_call in #(
19451 no) :
b66977f1
DWT
19452
19453
19454pkg_failed=no
7eda51e0
JF
19455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19456$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 19457
7eda51e0
JF
19458if test -n "$LIBFFI_CFLAGS"; then
19459 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
19460 elif test -n "$PKG_CONFIG"; then
19461 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19463 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19464 ac_status=$?
19465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19466 test $ac_status = 0; }; then
7eda51e0 19467 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
19468else
19469 pkg_failed=yes
19470fi
12833ad8
JF
19471 else
19472 pkg_failed=untried
b66977f1 19473fi
7eda51e0
JF
19474if test -n "$LIBFFI_LIBS"; then
19475 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19476 elif test -n "$PKG_CONFIG"; then
19477 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19479 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19480 ac_status=$?
19481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19482 test $ac_status = 0; }; then
7eda51e0 19483 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
19484else
19485 pkg_failed=yes
19486fi
12833ad8
JF
19487 else
19488 pkg_failed=untried
b66977f1
DWT
19489fi
19490
19491
19492
19493if test $pkg_failed = yes; then
12833ad8
JF
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19495$as_echo "no" >&6; }
b66977f1
DWT
19496
19497if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19498 _pkg_short_errors_supported=yes
19499else
19500 _pkg_short_errors_supported=no
19501fi
19502 if test $_pkg_short_errors_supported = yes; then
00a96142 19503 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 19504 else
00a96142 19505 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
19506 fi
19507 # Put the nasty error message in config.log where it belongs
7eda51e0 19508 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19509
7eda51e0
JF
19510 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19511elif test $pkg_failed = untried; then
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19513$as_echo "no" >&6; }
19514 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 19515else
7eda51e0
JF
19516 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19517 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19519$as_echo "yes" >&6; }
b66977f1 19520
b66977f1 19521
7eda51e0 19522 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19523 haveit=
d70419f1 19524 for x in $CPPFLAGS; do
7eda51e0
JF
19525
19526 acl_save_prefix="$prefix"
19527 prefix="$acl_final_prefix"
19528 acl_save_exec_prefix="$exec_prefix"
19529 exec_prefix="$acl_final_exec_prefix"
19530 eval x=\"$x\"
19531 exec_prefix="$acl_save_exec_prefix"
19532 prefix="$acl_save_prefix"
19533
19534 if test "X$x" = "X$element"; then
19535 haveit=yes
19536 break
19537 fi
19538 done
19539 if test -z "$haveit"; then
d70419f1 19540 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
19541 fi
19542 done
19543
19544
7eda51e0
JF
19545 for element in `$PKG_CONFIG --libs libffi`; do
19546 haveit=
19547 for x in $LIBS; do
19548
19549 acl_save_prefix="$prefix"
19550 prefix="$acl_final_prefix"
19551 acl_save_exec_prefix="$exec_prefix"
19552 exec_prefix="$acl_final_exec_prefix"
19553 eval x=\"$x\"
19554 exec_prefix="$acl_save_exec_prefix"
19555 prefix="$acl_save_prefix"
19556
19557 if test "X$x" = "X$element"; then
19558 haveit=yes
19559 break
19560 fi
19561 done
19562 if test -z "$haveit"; then
19563 LIBS="${LIBS}${LIBS:+ }$element"
19564 fi
19565 done
19566
19567
19568fi ;; #(
19569 *) :
19570 ;;
19571esac
19572
19573fi
296ee9a6
JF
19574 LTLIBFFI=$LIBS
19575 LIBS=$cy_save
19576
19577
7eda51e0
JF
19578
19579 ac_ext=mm
19580ac_cpp='$OBJCXXCPP $CPPFLAGS'
19581ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19582ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19583ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19584
19585
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19587$as_echo_n "checking if we really have Objective C++... " >&6; }
19588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589/* end confdefs.h. */
19590
19591_ACEOF
19592if ac_fn_objcxx_try_compile "$LINENO"; then :
19593
19594 CY_OBJECTIVEC=1
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19596$as_echo "yes" >&6; }
19597
19598else
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19600$as_echo "no" >&6; }
7eda51e0
JF
19601fi
19602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 19603
7eda51e0 19604 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 19605
7eda51e0 19606
babf7fe8
JF
19607 cy_save=$LIBS
19608 LIBS=
19609
7eda51e0
JF
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19611$as_echo_n "checking for framework CoreFoundation... " >&6; }
19612if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
19613 $as_echo_n "(cached) " >&6
19614else
19615
19616 ac_check_framework_save_LIBS=$LIBS
7eda51e0 19617 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619/* end confdefs.h. */
19620
7eda51e0 19621 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
19622
19623int
19624main ()
19625{
7eda51e0 19626CFAllocatorGetDefault();
b66977f1
DWT
19627 ;
19628 return 0;
19629}
19630_ACEOF
7eda51e0 19631if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19632
7eda51e0 19633 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
19634
19635else
7eda51e0 19636 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
19637fi
19638rm -f core conftest.err conftest.$ac_objext \
19639 conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_framework_save_LIBS
19641
19642fi
7eda51e0
JF
19643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19644$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19645 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
19646
19647
7eda51e0 19648 for element in "-framework CoreFoundation"; do
b66977f1
DWT
19649 haveit=
19650 for x in $LIBS; do
19651
19652 acl_save_prefix="$prefix"
19653 prefix="$acl_final_prefix"
19654 acl_save_exec_prefix="$exec_prefix"
19655 exec_prefix="$acl_final_exec_prefix"
19656 eval x=\"$x\"
19657 exec_prefix="$acl_save_exec_prefix"
19658 prefix="$acl_save_prefix"
19659
19660 if test "X$x" = "X$element"; then
19661 haveit=yes
19662 break
19663 fi
19664 done
19665 if test -z "$haveit"; then
19666 LIBS="${LIBS}${LIBS:+ }$element"
19667 fi
19668 done
19669
66170b30 19670
66170b30
JF
19671
19672
b66977f1 19673
b66977f1 19674
7eda51e0
JF
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19676$as_echo_n "checking for framework Foundation... " >&6; }
19677if ${ac_cv_framework_Foundation+:} false; then :
19678 $as_echo_n "(cached) " >&6
b66977f1 19679else
b66977f1 19680
7eda51e0
JF
19681 ac_check_framework_save_LIBS=$LIBS
19682 LIBS="-framework Foundation $LIBS"
19683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684/* end confdefs.h. */
66170b30 19685
7eda51e0 19686 #include <Foundation/NSObject.h>
b66977f1 19687
7eda51e0
JF
19688int
19689main ()
19690{
19691[[NSObject alloc] init];
19692 ;
19693 return 0;
19694}
19695_ACEOF
19696if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19697
7eda51e0 19698 ac_cv_framework_Foundation=yes
b66977f1 19699
7eda51e0
JF
19700else
19701 ac_cv_framework_Foundation=no
19702fi
19703rm -f core conftest.err conftest.$ac_objext \
19704 conftest$ac_exeext conftest.$ac_ext
19705 LIBS=$ac_check_framework_save_LIBS
19706
19707fi
19708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19709$as_echo "$ac_cv_framework_Foundation" >&6; }
19710 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
19711
19712
7eda51e0 19713 for element in "-framework Foundation"; do
b66977f1
DWT
19714 haveit=
19715 for x in $LIBS; do
19716
19717 acl_save_prefix="$prefix"
19718 prefix="$acl_final_prefix"
19719 acl_save_exec_prefix="$exec_prefix"
19720 exec_prefix="$acl_final_exec_prefix"
19721 eval x=\"$x\"
19722 exec_prefix="$acl_save_exec_prefix"
19723 prefix="$acl_save_prefix"
19724
19725 if test "X$x" = "X$element"; then
19726 haveit=yes
19727 break
19728 fi
19729 done
19730 if test -z "$haveit"; then
19731 LIBS="${LIBS}${LIBS:+ }$element"
19732 fi
19733 done
19734
7eda51e0
JF
19735 cat >>confdefs.h <<_ACEOF
19736#define HAVE_FRAMEWORK_FOUNDATION 1
19737_ACEOF
19738
b66977f1 19739
7eda51e0 19740fi
b66977f1
DWT
19741
19742
7eda51e0 19743else
b66977f1 19744
b66977f1 19745
7eda51e0
JF
19746 for ac_prog in gnustep-config
19747do
19748 # Extract the first word of "$ac_prog", so it can be a program name with args.
19749set dummy $ac_prog; ac_word=$2
19750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19751$as_echo_n "checking for $ac_word... " >&6; }
19752if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19753 $as_echo_n "(cached) " >&6
b66977f1 19754else
7eda51e0
JF
19755 if test -n "$GNUSTEP_CONFIG"; then
19756 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 19757else
7eda51e0
JF
19758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19759for as_dir in $PATH
19760do
19761 IFS=$as_save_IFS
19762 test -z "$as_dir" && as_dir=.
19763 for ac_exec_ext in '' $ac_executable_extensions; do
19764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19765 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19767 break 2
19768 fi
19769done
19770 done
19771IFS=$as_save_IFS
b66977f1 19772
b66977f1 19773fi
b66977f1 19774fi
7eda51e0
JF
19775GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19776if test -n "$GNUSTEP_CONFIG"; then
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19778$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 19779else
7eda51e0 19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19781$as_echo "no" >&6; }
b66977f1 19782fi
66170b30 19783
66170b30 19784
7eda51e0
JF
19785 test -n "$GNUSTEP_CONFIG" && break
19786done
b66977f1 19787
b66977f1 19788
7eda51e0 19789 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 19790
b66977f1
DWT
19791
19792
7eda51e0 19793 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 19794 haveit=
7eda51e0 19795 for x in $OBJCXXFLAGS; do
b66977f1
DWT
19796
19797 acl_save_prefix="$prefix"
19798 prefix="$acl_final_prefix"
19799 acl_save_exec_prefix="$exec_prefix"
19800 exec_prefix="$acl_final_exec_prefix"
19801 eval x=\"$x\"
19802 exec_prefix="$acl_save_exec_prefix"
19803 prefix="$acl_save_prefix"
19804
19805 if test "X$x" = "X$element"; then
19806 haveit=yes
19807 break
19808 fi
19809 done
babf7fe8
JF
19810 if test -z "$haveit"; then
19811 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19812 fi
19813 done
a667869d 19814
a667869d 19815
babf7fe8 19816 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 19817 haveit=
babf7fe8 19818 for x in $LIBS; do
a667869d 19819
632b71ea
DWT
19820 acl_save_prefix="$prefix"
19821 prefix="$acl_final_prefix"
19822 acl_save_exec_prefix="$exec_prefix"
19823 exec_prefix="$acl_final_exec_prefix"
19824 eval x=\"$x\"
19825 exec_prefix="$acl_save_exec_prefix"
19826 prefix="$acl_save_prefix"
19827
19828 if test "X$x" = "X$element"; then
19829 haveit=yes
19830 break
19831 fi
19832 done
19833 if test -z "$haveit"; then
babf7fe8 19834 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
19835 fi
19836 done
19837
5053a6d1 19838
babf7fe8
JF
19839else
19840 CY_OBJECTIVEC=0
19841
19842fi
19843
19844fi
19845 LTOBJECTIVEC=$LIBS
19846 LIBS=$cy_save
19847
19848
19849
19850fi
19851
19852 ac_ext=cpp
19853ac_cpp='$CXXCPP $CPPFLAGS'
19854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19857
19858 ;; #(
19859 *) :
19860 ;;
19861esac
19862
19863 if test "x$CY_OBJECTIVEC" = x1; then
19864 CY_OBJECTIVEC_TRUE=
19865 CY_OBJECTIVEC_FALSE='#'
19866else
19867 CY_OBJECTIVEC_TRUE='#'
19868 CY_OBJECTIVEC_FALSE=
19869fi
19870
19871
19872
19873 cy_save=$LIBS
19874 LIBS=
19875
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19877$as_echo_n "checking for a readline compatible library... " >&6; }
19878if ${ax_cv_lib_readline+:} false; then :
5053a6d1 19879 $as_echo_n "(cached) " >&6
a667869d 19880else
632b71ea 19881
babf7fe8
JF
19882 ORIG_LIBS="$LIBS"
19883 for readline_lib in readline edit editline; do
19884 for termcap_lib in "" termcap curses ncurses; do
19885 if test -z "$termcap_lib"; then
19886 TRY_LIB="-l$readline_lib"
19887 else
19888 TRY_LIB="-l$readline_lib -l$termcap_lib"
19889 fi
19890 LIBS="$ORIG_LIBS $TRY_LIB"
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 19892/* end confdefs.h. */
632b71ea 19893
babf7fe8
JF
19894/* Override any GCC internal prototype to avoid an error.
19895 Use char because int might match the return type of a GCC
19896 builtin and then its argument prototype would still apply. */
19897#ifdef __cplusplus
19898extern "C"
19899#endif
19900char readline ();
5053a6d1
DWT
19901int
19902main ()
19903{
babf7fe8 19904return readline ();
5053a6d1
DWT
19905 ;
19906 return 0;
19907}
19908_ACEOF
babf7fe8
JF
19909if ac_fn_cxx_try_link "$LINENO"; then :
19910 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
19911fi
19912rm -f core conftest.err conftest.$ac_objext \
19913 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
19914 if test -n "$ax_cv_lib_readline"; then
19915 break
19916 fi
19917 done
19918 if test -n "$ax_cv_lib_readline"; then
19919 break
19920 fi
19921 done
19922 if test -z "$ax_cv_lib_readline"; then
19923 ax_cv_lib_readline="no"
19924 fi
19925 LIBS="$ORIG_LIBS"
19926
19927fi
19928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19929$as_echo "$ax_cv_lib_readline" >&6; }
19930
19931 if test "$ax_cv_lib_readline" != "no"; then
19932 LIBS="$LIBS $ax_cv_lib_readline"
19933
19934$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19935
19936 for ac_header in readline.h readline/readline.h
19937do :
19938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19939ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19940if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19941 cat >>confdefs.h <<_ACEOF
19942#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19943_ACEOF
19944
19945fi
19946
19947done
19948
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19950$as_echo_n "checking whether readline supports history... " >&6; }
19951if ${ax_cv_lib_readline_history+:} false; then :
19952 $as_echo_n "(cached) " >&6
19953else
19954
19955 ax_cv_lib_readline_history="no"
7eda51e0
JF
19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957/* end confdefs.h. */
5053a6d1 19958
babf7fe8
JF
19959/* Override any GCC internal prototype to avoid an error.
19960 Use char because int might match the return type of a GCC
19961 builtin and then its argument prototype would still apply. */
19962#ifdef __cplusplus
19963extern "C"
19964#endif
19965char add_history ();
058f1bc8
DWT
19966int
19967main ()
19968{
babf7fe8 19969return add_history ();
058f1bc8
DWT
19970 ;
19971 return 0;
19972}
19973_ACEOF
babf7fe8
JF
19974if ac_fn_cxx_try_link "$LINENO"; then :
19975 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
19976fi
19977rm -f core conftest.err conftest.$ac_objext \
19978 conftest$ac_exeext conftest.$ac_ext
a667869d 19979
a667869d 19980fi
babf7fe8
JF
19981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19982$as_echo "$ax_cv_lib_readline_history" >&6; }
19983 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 19984
babf7fe8 19985$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 19986
babf7fe8
JF
19987 for ac_header in history.h readline/history.h
19988do :
19989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19990ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19991if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19992 cat >>confdefs.h <<_ACEOF
19993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 19994_ACEOF
babf7fe8 19995
7eda51e0 19996fi
058f1bc8 19997
babf7fe8 19998done
058f1bc8 19999
babf7fe8 20000 fi
7eda51e0 20001 fi
058f1bc8 20002
babf7fe8
JF
20003 LTLIBREADLINE=$LIBS
20004 LIBS=$cy_save
058f1bc8 20005
058f1bc8 20006
babf7fe8
JF
20007case $ax_cv_lib_readline in #(
20008 no) :
20009 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20010 *) :
20011 ;;
20012esac
058f1bc8
DWT
20013
20014
babf7fe8
JF
20015 cy_save=$LIBS
20016 LIBS=
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20018$as_echo_n "checking for library containing cur_term... " >&6; }
20019if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
20020 $as_echo_n "(cached) " >&6
20021else
babf7fe8
JF
20022 ac_func_search_save_LIBS=$LIBS
20023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
20024/* end confdefs.h. */
20025
babf7fe8
JF
20026/* Override any GCC internal prototype to avoid an error.
20027 Use char because int might match the return type of a GCC
20028 builtin and then its argument prototype would still apply. */
7eda51e0 20029#ifdef __cplusplus
babf7fe8 20030extern "C"
7eda51e0 20031#endif
babf7fe8 20032char cur_term ();
7eda51e0
JF
20033int
20034main ()
20035{
babf7fe8 20036return cur_term ();
7eda51e0
JF
20037 ;
20038 return 0;
20039}
20040_ACEOF
a93f15c0 20041for ac_lib in '' termcap ncurses; do
babf7fe8
JF
20042 if test -z "$ac_lib"; then
20043 ac_res="none required"
20044 else
20045 ac_res=-l$ac_lib
20046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20047 fi
20048 if ac_fn_cxx_try_link "$LINENO"; then :
20049 ac_cv_search_cur_term=$ac_res
7eda51e0 20050fi
babf7fe8
JF
20051rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext
20053 if ${ac_cv_search_cur_term+:} false; then :
20054 break
7eda51e0 20055fi
babf7fe8
JF
20056done
20057if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 20058
babf7fe8
JF
20059else
20060 ac_cv_search_cur_term=no
20061fi
20062rm conftest.$ac_ext
20063LIBS=$ac_func_search_save_LIBS
20064fi
20065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20066$as_echo "$ac_cv_search_cur_term" >&6; }
20067ac_res=$ac_cv_search_cur_term
20068if test "$ac_res" != no; then :
20069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 20070
babf7fe8 20071fi
058f1bc8 20072
babf7fe8
JF
20073 LTLIBTERMCAP=$LIBS
20074 LIBS=$cy_save
058f1bc8 20075
058f1bc8 20076
66170b30
JF
20077
20078
3615a2f7
JF
20079
20080
9777bd50
JF
20081SO=$acl_shlibext
20082
e1cce270 20083
7eda51e0
JF
20084if test "x$CY_EXECUTE" = x1; then :
20085
20086 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 20087if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 20088
7eda51e0 20089 if test -n "$ac_tool_prefix"; then
a243b558 20090 for ac_prog in lipo
794e88e7
DWT
20091 do
20092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20095$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20096if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
20097 $as_echo_n "(cached) " >&6
20098else
a243b558
JF
20099 if test -n "$_LIPO"; then
20100 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
20101else
20102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20103for as_dir in $PATH
20104do
20105 IFS=$as_save_IFS
20106 test -z "$as_dir" && as_dir=.
20107 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20109 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20111 break 2
20112 fi
20113done
20114 done
20115IFS=$as_save_IFS
20116
20117fi
20118fi
a243b558
JF
20119_LIPO=$ac_cv_prog__LIPO
20120if test -n "$_LIPO"; then
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20122$as_echo "$_LIPO" >&6; }
794e88e7
DWT
20123else
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20125$as_echo "no" >&6; }
20126fi
20127
20128
a243b558 20129 test -n "$_LIPO" && break
794e88e7
DWT
20130 done
20131fi
a243b558
JF
20132if test -z "$_LIPO"; then
20133 ac_ct__LIPO=$_LIPO
20134 for ac_prog in lipo
794e88e7
DWT
20135do
20136 # Extract the first word of "$ac_prog", so it can be a program name with args.
20137set dummy $ac_prog; ac_word=$2
20138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20139$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20140if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
20141 $as_echo_n "(cached) " >&6
20142else
a243b558
JF
20143 if test -n "$ac_ct__LIPO"; then
20144 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
20145else
20146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20147for as_dir in $PATH
20148do
20149 IFS=$as_save_IFS
20150 test -z "$as_dir" && as_dir=.
20151 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20153 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
20154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20155 break 2
20156 fi
20157done
20158 done
20159IFS=$as_save_IFS
20160
20161fi
20162fi
a243b558
JF
20163ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20164if test -n "$ac_ct__LIPO"; then
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20166$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
20167else
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169$as_echo "no" >&6; }
20170fi
20171
20172
a243b558 20173 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
20174done
20175
a243b558
JF
20176 if test "x$ac_ct__LIPO" = x; then
20177 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
20178 else
20179 case $cross_compiling:$ac_tool_warned in
20180yes:)
20181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20183ac_tool_warned=yes ;;
e1cce270 20184esac
a243b558 20185 _LIPO=$ac_ct__LIPO
794e88e7
DWT
20186 fi
20187fi
20188
7eda51e0 20189 if test -n "$ac_tool_prefix"; then
a243b558 20190 for ac_prog in nm
794e88e7
DWT
20191 do
20192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20195$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20196if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
20197 $as_echo_n "(cached) " >&6
20198else
a243b558
JF
20199 if test -n "$_NM"; then
20200 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
20201else
20202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20203for as_dir in $PATH
20204do
20205 IFS=$as_save_IFS
20206 test -z "$as_dir" && as_dir=.
20207 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20209 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20211 break 2
20212 fi
20213done
20214 done
20215IFS=$as_save_IFS
20216
20217fi
20218fi
a243b558
JF
20219_NM=$ac_cv_prog__NM
20220if test -n "$_NM"; then
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20222$as_echo "$_NM" >&6; }
794e88e7
DWT
20223else
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20225$as_echo "no" >&6; }
20226fi
20227
20228
a243b558 20229 test -n "$_NM" && break
794e88e7
DWT
20230 done
20231fi
a243b558
JF
20232if test -z "$_NM"; then
20233 ac_ct__NM=$_NM
20234 for ac_prog in nm
794e88e7
DWT
20235do
20236 # Extract the first word of "$ac_prog", so it can be a program name with args.
20237set dummy $ac_prog; ac_word=$2
20238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20239$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20240if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
20241 $as_echo_n "(cached) " >&6
20242else
a243b558
JF
20243 if test -n "$ac_ct__NM"; then
20244 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
20245else
20246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20247for as_dir in $PATH
20248do
20249 IFS=$as_save_IFS
20250 test -z "$as_dir" && as_dir=.
20251 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20253 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
20254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20255 break 2
20256 fi
20257done
20258 done
20259IFS=$as_save_IFS
20260
20261fi
20262fi
a243b558
JF
20263ac_ct__NM=$ac_cv_prog_ac_ct__NM
20264if test -n "$ac_ct__NM"; then
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20266$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
20267else
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20269$as_echo "no" >&6; }
20270fi
20271
20272
a243b558 20273 test -n "$ac_ct__NM" && break
794e88e7
DWT
20274done
20275
a243b558
JF
20276 if test "x$ac_ct__NM" = x; then
20277 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
20278 else
20279 case $cross_compiling:$ac_tool_warned in
20280yes:)
20281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20283ac_tool_warned=yes ;;
20284esac
a243b558 20285 _NM=$ac_ct__NM
794e88e7
DWT
20286 fi
20287fi
20288
7eda51e0 20289 if test -n "$ac_tool_prefix"; then
a243b558 20290 for ac_prog in otool
794e88e7
DWT
20291 do
20292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20295$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20296if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
20297 $as_echo_n "(cached) " >&6
20298else
a243b558
JF
20299 if test -n "$_OTOOL"; then
20300 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
20301else
20302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20303for as_dir in $PATH
20304do
20305 IFS=$as_save_IFS
20306 test -z "$as_dir" && as_dir=.
20307 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20309 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20311 break 2
20312 fi
20313done
20314 done
20315IFS=$as_save_IFS
20316
20317fi
20318fi
a243b558
JF
20319_OTOOL=$ac_cv_prog__OTOOL
20320if test -n "$_OTOOL"; then
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20322$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
20323else
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20325$as_echo "no" >&6; }
20326fi
20327
20328
a243b558 20329 test -n "$_OTOOL" && break
794e88e7
DWT
20330 done
20331fi
a243b558
JF
20332if test -z "$_OTOOL"; then
20333 ac_ct__OTOOL=$_OTOOL
20334 for ac_prog in otool
794e88e7
DWT
20335do
20336 # Extract the first word of "$ac_prog", so it can be a program name with args.
20337set dummy $ac_prog; ac_word=$2
20338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20339$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20340if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
20341 $as_echo_n "(cached) " >&6
20342else
a243b558
JF
20343 if test -n "$ac_ct__OTOOL"; then
20344 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
20345else
20346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20347for as_dir in $PATH
20348do
20349 IFS=$as_save_IFS
20350 test -z "$as_dir" && as_dir=.
20351 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20353 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
20354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20355 break 2
20356 fi
20357done
20358 done
20359IFS=$as_save_IFS
20360
20361fi
20362fi
a243b558
JF
20363ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20364if test -n "$ac_ct__OTOOL"; then
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20366$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
20367else
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20369$as_echo "no" >&6; }
20370fi
20371
20372
a243b558 20373 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
20374done
20375
a243b558
JF
20376 if test "x$ac_ct__OTOOL" = x; then
20377 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
20378 else
20379 case $cross_compiling:$ac_tool_warned in
20380yes:)
20381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20383ac_tool_warned=yes ;;
20384esac
a243b558 20385 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
20386 fi
20387fi
20388
7eda51e0 20389 CY_ATTACH_GROUP=procmod
794e88e7 20390
7eda51e0 20391 CY_MACH=1
e1cce270
DWT
20392
20393fi
20394
20395
7eda51e0 20396fi
a243b558
JF
20397 if test "x$CY_MACH" = x1; then
20398 CY_MACH_TRUE=
20399 CY_MACH_FALSE='#'
20400else
20401 CY_MACH_TRUE='#'
20402 CY_MACH_FALSE=
47aaa820 20403fi
9c60689e 20404
66170b30 20405
a243b558
JF
20406ac_config_files="$ac_config_files Makefile"
20407
9c60689e
DWT
20408cat >confcache <<\_ACEOF
20409# This file is a shell script that caches the results of configure
20410# tests run on this system so they can be shared between configure
20411# scripts and configure runs, see configure's option --config-cache.
20412# It is not useful on other systems. If it contains results you don't
20413# want to keep, you may remove or edit it.
20414#
20415# config.status only pays attention to the cache file if you give it
20416# the --recheck option to rerun configure.
20417#
20418# `ac_cv_env_foo' variables (set or unset) will be overridden when
20419# loading this file, other *unset* `ac_cv_foo' will be assigned the
20420# following values.
20421
20422_ACEOF
20423
20424# The following way of writing the cache mishandles newlines in values,
20425# but we know of no workaround that is simple, portable, and efficient.
20426# So, we kill variables containing newlines.
20427# Ultrix sh set writes to stderr and can't be redirected directly,
20428# and sets the high bit in the cache file unless we assign to the vars.
20429(
20430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20431 eval ac_val=\$$ac_var
20432 case $ac_val in #(
20433 *${as_nl}*)
20434 case $ac_var in #(
20435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20436$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20437 esac
20438 case $ac_var in #(
20439 _ | IFS | as_nl) ;; #(
20440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20441 *) { eval $ac_var=; unset $ac_var;} ;;
20442 esac ;;
20443 esac
20444 done
20445
20446 (set) 2>&1 |
20447 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20448 *${as_nl}ac_space=\ *)
20449 # `set' does not quote correctly, so add quotes: double-quote
20450 # substitution turns \\\\ into \\, and sed turns \\ into \.
20451 sed -n \
20452 "s/'/'\\\\''/g;
20453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20454 ;; #(
20455 *)
20456 # `set' quotes correctly as required by POSIX, so do not add quotes.
20457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20458 ;;
20459 esac |
20460 sort
20461) |
20462 sed '
20463 /^ac_cv_env_/b end
20464 t clear
20465 :clear
20466 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20467 t end
20468 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20469 :end' >>confcache
20470if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20471 if test -w "$cache_file"; then
ee134472 20472 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20474$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
20475 if test ! -f "$cache_file" || test -h "$cache_file"; then
20476 cat confcache >"$cache_file"
20477 else
20478 case $cache_file in #(
20479 */* | ?:*)
20480 mv -f confcache "$cache_file"$$ &&
20481 mv -f "$cache_file"$$ "$cache_file" ;; #(
20482 *)
20483 mv -f confcache "$cache_file" ;;
20484 esac
20485 fi
20486 fi
9c60689e
DWT
20487 else
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20489$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20490 fi
20491fi
20492rm -f confcache
20493
20494test "x$prefix" = xNONE && prefix=$ac_default_prefix
20495# Let make expand exec_prefix.
20496test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20497
296ee9a6 20498DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
20499
20500ac_libobjs=
20501ac_ltlibobjs=
12833ad8 20502U=
9c60689e
DWT
20503for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20504 # 1. Remove the extension, and $U if already installed.
20505 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20506 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20507 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20508 # will be set to the directory where LIBOBJS objects are built.
20509 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20510 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20511done
20512LIBOBJS=$ac_libobjs
20513
20514LTLIBOBJS=$ac_ltlibobjs
20515
20516
66170b30
JF
20517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20518$as_echo_n "checking that generated files are newer than configure... " >&6; }
20519 if test -n "$am_sleep_pid"; then
20520 # Hide warnings about reused PIDs.
20521 wait $am_sleep_pid 2>/dev/null
20522 fi
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20524$as_echo "done" >&6; }
20525 if test -n "$EXEEXT"; then
20526 am__EXEEXT_TRUE=
20527 am__EXEEXT_FALSE='#'
20528else
20529 am__EXEEXT_TRUE='#'
20530 am__EXEEXT_FALSE=
20531fi
20532
babf7fe8
JF
20533if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20534 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20535Usually this means the macro was only invoked conditionally." "$LINENO" 5
20536fi
66170b30
JF
20537if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20538 as_fn_error $? "conditional \"AMDEP\" was never defined.
20539Usually this means the macro was only invoked conditionally." "$LINENO" 5
20540fi
a93f15c0
JF
20541if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20542 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20543Usually this means the macro was only invoked conditionally." "$LINENO" 5
20544fi
66170b30
JF
20545if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20546 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20547Usually this means the macro was only invoked conditionally." "$LINENO" 5
20548fi
20549if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20550 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20551Usually this means the macro was only invoked conditionally." "$LINENO" 5
20552fi
a93f15c0
JF
20553if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
20554 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
20555Usually this means the macro was only invoked conditionally." "$LINENO" 5
20556fi
a243b558
JF
20557if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20558 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20559Usually this means the macro was only invoked conditionally." "$LINENO" 5
20560fi
20561if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20562 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20563Usually this means the macro was only invoked conditionally." "$LINENO" 5
20564fi
20565if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20566 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20567Usually this means the macro was only invoked conditionally." "$LINENO" 5
20568fi
9c60689e 20569
ee134472 20570: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
20571ac_write_fail=0
20572ac_clean_files_save=$ac_clean_files
20573ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20574{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20575$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20576as_write_fail=0
20577cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20578#! $SHELL
20579# Generated by $as_me.
20580# Run this file to recreate the current configuration.
20581# Compiler output produced by configure, useful for debugging
20582# configure, is in config.log if it exists.
20583
20584debug=false
20585ac_cs_recheck=false
20586ac_cs_silent=false
20587
20588SHELL=\${CONFIG_SHELL-$SHELL}
20589export SHELL
20590_ASEOF
20591cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20592## -------------------- ##
20593## M4sh Initialization. ##
20594## -------------------- ##
20595
20596# Be more Bourne compatible
20597DUALCASE=1; export DUALCASE # for MKS sh
20598if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20599 emulate sh
20600 NULLCMD=:
20601 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20602 # is contrary to our usage. Disable this feature.
20603 alias -g '${1+"$@"}'='"$@"'
20604 setopt NO_GLOB_SUBST
20605else
20606 case `(set -o) 2>/dev/null` in #(
20607 *posix*) :
20608 set -o posix ;; #(
20609 *) :
20610 ;;
20611esac
20612fi
20613
20614
20615as_nl='
20616'
20617export as_nl
20618# Printing a long string crashes Solaris 7 /usr/bin/printf.
20619as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20620as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20621as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20622# Prefer a ksh shell builtin over an external printf program on Solaris,
20623# but without wasting forks for bash or zsh.
20624if test -z "$BASH_VERSION$ZSH_VERSION" \
20625 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20626 as_echo='print -r --'
20627 as_echo_n='print -rn --'
20628elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20629 as_echo='printf %s\n'
20630 as_echo_n='printf %s'
20631else
20632 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20633 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20634 as_echo_n='/usr/ucb/echo -n'
20635 else
20636 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20637 as_echo_n_body='eval
20638 arg=$1;
20639 case $arg in #(
20640 *"$as_nl"*)
20641 expr "X$arg" : "X\\(.*\\)$as_nl";
20642 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20643 esac;
20644 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20645 '
20646 export as_echo_n_body
20647 as_echo_n='sh -c $as_echo_n_body as_echo'
20648 fi
20649 export as_echo_body
20650 as_echo='sh -c $as_echo_body as_echo'
20651fi
20652
20653# The user is always right.
20654if test "${PATH_SEPARATOR+set}" != set; then
20655 PATH_SEPARATOR=:
20656 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20657 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20658 PATH_SEPARATOR=';'
20659 }
20660fi
20661
20662
20663# IFS
20664# We need space, tab and new line, in precisely that order. Quoting is
20665# there to prevent editors from complaining about space-tab.
20666# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20667# splitting by setting IFS to empty value.)
20668IFS=" "" $as_nl"
20669
20670# Find who we are. Look in the path if we contain no directory separator.
ee134472 20671as_myself=
9c60689e
DWT
20672case $0 in #((
20673 *[\\/]* ) as_myself=$0 ;;
20674 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20675for as_dir in $PATH
20676do
20677 IFS=$as_save_IFS
20678 test -z "$as_dir" && as_dir=.
20679 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20680 done
20681IFS=$as_save_IFS
20682
20683 ;;
20684esac
20685# We did not find ourselves, most probably we were run as `sh COMMAND'
20686# in which case we are not to be found in the path.
20687if test "x$as_myself" = x; then
20688 as_myself=$0
20689fi
20690if test ! -f "$as_myself"; then
20691 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20692 exit 1
20693fi
20694
20695# Unset variables that we do not need and which cause bugs (e.g. in
20696# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20697# suppresses any "Segmentation fault" message there. '((' could
20698# trigger a bug in pdksh 5.2.14.
20699for as_var in BASH_ENV ENV MAIL MAILPATH
20700do eval test x\${$as_var+set} = xset \
20701 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20702done
20703PS1='$ '
20704PS2='> '
20705PS4='+ '
20706
20707# NLS nuisances.
20708LC_ALL=C
20709export LC_ALL
20710LANGUAGE=C
20711export LANGUAGE
20712
20713# CDPATH.
20714(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20715
20716
12833ad8
JF
20717# as_fn_error STATUS ERROR [LINENO LOG_FD]
20718# ----------------------------------------
9c60689e
DWT
20719# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20720# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 20721# script with STATUS, using 1 if that was 0.
9c60689e
DWT
20722as_fn_error ()
20723{
12833ad8
JF
20724 as_status=$1; test $as_status -eq 0 && as_status=1
20725 if test "$4"; then
20726 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20727 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 20728 fi
12833ad8 20729 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
20730 as_fn_exit $as_status
20731} # as_fn_error
20732
20733
20734# as_fn_set_status STATUS
20735# -----------------------
20736# Set $? to STATUS, without forking.
20737as_fn_set_status ()
20738{
20739 return $1
20740} # as_fn_set_status
20741
20742# as_fn_exit STATUS
20743# -----------------
20744# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20745as_fn_exit ()
20746{
20747 set +e
20748 as_fn_set_status $1
20749 exit $1
20750} # as_fn_exit
20751
20752# as_fn_unset VAR
20753# ---------------
20754# Portably unset VAR.
20755as_fn_unset ()
20756{
20757 { eval $1=; unset $1;}
20758}
20759as_unset=as_fn_unset
20760# as_fn_append VAR VALUE
20761# ----------------------
20762# Append the text in VALUE to the end of the definition contained in VAR. Take
20763# advantage of any shell optimizations that allow amortized linear growth over
20764# repeated appends, instead of the typical quadratic growth present in naive
20765# implementations.
20766if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20767 eval 'as_fn_append ()
20768 {
20769 eval $1+=\$2
20770 }'
20771else
20772 as_fn_append ()
20773 {
20774 eval $1=\$$1\$2
20775 }
20776fi # as_fn_append
20777
20778# as_fn_arith ARG...
20779# ------------------
20780# Perform arithmetic evaluation on the ARGs, and store the result in the
20781# global $as_val. Take advantage of shells that can avoid forks. The arguments
20782# must be portable across $(()) and expr.
20783if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20784 eval 'as_fn_arith ()
20785 {
20786 as_val=$(( $* ))
20787 }'
20788else
20789 as_fn_arith ()
20790 {
20791 as_val=`expr "$@" || test $? -eq 1`
20792 }
20793fi # as_fn_arith
20794
20795
20796if expr a : '\(a\)' >/dev/null 2>&1 &&
20797 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20798 as_expr=expr
20799else
20800 as_expr=false
20801fi
20802
20803if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20804 as_basename=basename
20805else
20806 as_basename=false
20807fi
20808
20809if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20810 as_dirname=dirname
20811else
20812 as_dirname=false
20813fi
20814
20815as_me=`$as_basename -- "$0" ||
20816$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20817 X"$0" : 'X\(//\)$' \| \
20818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20819$as_echo X/"$0" |
20820 sed '/^.*\/\([^/][^/]*\)\/*$/{
20821 s//\1/
20822 q
20823 }
20824 /^X\/\(\/\/\)$/{
20825 s//\1/
20826 q
20827 }
20828 /^X\/\(\/\).*/{
20829 s//\1/
20830 q
20831 }
20832 s/.*/./; q'`
20833
20834# Avoid depending upon Character Ranges.
20835as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20836as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20837as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20838as_cr_digits='0123456789'
20839as_cr_alnum=$as_cr_Letters$as_cr_digits
20840
20841ECHO_C= ECHO_N= ECHO_T=
20842case `echo -n x` in #(((((
20843-n*)
20844 case `echo 'xy\c'` in
20845 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20846 xy) ECHO_C='\c';;
20847 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20848 ECHO_T=' ';;
20849 esac;;
20850*)
20851 ECHO_N='-n';;
20852esac
20853
20854rm -f conf$$ conf$$.exe conf$$.file
20855if test -d conf$$.dir; then
20856 rm -f conf$$.dir/conf$$.file
20857else
20858 rm -f conf$$.dir
20859 mkdir conf$$.dir 2>/dev/null
20860fi
20861if (echo >conf$$.file) 2>/dev/null; then
20862 if ln -s conf$$.file conf$$ 2>/dev/null; then
20863 as_ln_s='ln -s'
20864 # ... but there are two gotchas:
20865 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20866 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 20867 # In both cases, we have to default to `cp -pR'.
9c60689e 20868 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 20869 as_ln_s='cp -pR'
9c60689e
DWT
20870 elif ln conf$$.file conf$$ 2>/dev/null; then
20871 as_ln_s=ln
20872 else
53ba6704 20873 as_ln_s='cp -pR'
9c60689e
DWT
20874 fi
20875else
53ba6704 20876 as_ln_s='cp -pR'
9c60689e
DWT
20877fi
20878rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20879rmdir conf$$.dir 2>/dev/null
20880
20881
20882# as_fn_mkdir_p
20883# -------------
20884# Create "$as_dir" as a directory, including parents if necessary.
20885as_fn_mkdir_p ()
20886{
20887
20888 case $as_dir in #(
20889 -*) as_dir=./$as_dir;;
20890 esac
20891 test -d "$as_dir" || eval $as_mkdir_p || {
20892 as_dirs=
20893 while :; do
20894 case $as_dir in #(
20895 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20896 *) as_qdir=$as_dir;;
20897 esac
20898 as_dirs="'$as_qdir' $as_dirs"
20899 as_dir=`$as_dirname -- "$as_dir" ||
20900$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20901 X"$as_dir" : 'X\(//\)[^/]' \| \
20902 X"$as_dir" : 'X\(//\)$' \| \
20903 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20904$as_echo X"$as_dir" |
20905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20906 s//\1/
20907 q
20908 }
20909 /^X\(\/\/\)[^/].*/{
20910 s//\1/
20911 q
20912 }
20913 /^X\(\/\/\)$/{
20914 s//\1/
20915 q
20916 }
20917 /^X\(\/\).*/{
20918 s//\1/
20919 q
20920 }
20921 s/.*/./; q'`
20922 test -d "$as_dir" && break
20923 done
20924 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 20925 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
20926
20927
20928} # as_fn_mkdir_p
20929if mkdir -p . 2>/dev/null; then
20930 as_mkdir_p='mkdir -p "$as_dir"'
20931else
20932 test -d ./-p && rmdir ./-p
20933 as_mkdir_p=false
20934fi
20935
53ba6704
JF
20936
20937# as_fn_executable_p FILE
20938# -----------------------
20939# Test if FILE is an executable regular file.
20940as_fn_executable_p ()
20941{
20942 test -f "$1" && test -x "$1"
20943} # as_fn_executable_p
20944as_test_x='test -x'
20945as_executable_p=as_fn_executable_p
9c60689e
DWT
20946
20947# Sed expression to map a string onto a valid CPP name.
20948as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20949
20950# Sed expression to map a string onto a valid variable name.
20951as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20952
20953
20954exec 6>&1
20955## ----------------------------------- ##
20956## Main body of $CONFIG_STATUS script. ##
20957## ----------------------------------- ##
20958_ASEOF
20959test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20960
20961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20962# Save the log message, to keep $0 and so on meaningful, and to
20963# report actual input values of CONFIG_FILES etc. instead of their
20964# values after options handling.
20965ac_log="
20966This file was extended by Cycript $as_me 0.9, which was
53ba6704 20967generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
20968
20969 CONFIG_FILES = $CONFIG_FILES
20970 CONFIG_HEADERS = $CONFIG_HEADERS
20971 CONFIG_LINKS = $CONFIG_LINKS
20972 CONFIG_COMMANDS = $CONFIG_COMMANDS
20973 $ $0 $@
20974
20975on `(hostname || uname -n) 2>/dev/null | sed 1q`
20976"
20977
20978_ACEOF
20979
20980case $ac_config_files in *"
20981"*) set x $ac_config_files; shift; ac_config_files=$*;;
20982esac
20983
296ee9a6
JF
20984case $ac_config_headers in *"
20985"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20986esac
9c60689e
DWT
20987
20988
20989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20990# Files that config.status was made for.
20991config_files="$ac_config_files"
296ee9a6 20992config_headers="$ac_config_headers"
9c60689e
DWT
20993config_commands="$ac_config_commands"
20994
20995_ACEOF
20996
20997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20998ac_cs_usage="\
20999\`$as_me' instantiates files and other configuration actions
21000from templates according to the current configuration. Unless the files
21001and actions are specified as TAGs, all are instantiated by default.
21002
21003Usage: $0 [OPTION]... [TAG]...
21004
21005 -h, --help print this help, then exit
21006 -V, --version print version number and configuration settings, then exit
21007 --config print configuration, then exit
21008 -q, --quiet, --silent
21009 do not print progress messages
21010 -d, --debug don't remove temporary files
21011 --recheck update $as_me by reconfiguring in the same conditions
21012 --file=FILE[:TEMPLATE]
21013 instantiate the configuration file FILE
296ee9a6
JF
21014 --header=FILE[:TEMPLATE]
21015 instantiate the configuration header FILE
9c60689e
DWT
21016
21017Configuration files:
21018$config_files
21019
296ee9a6
JF
21020Configuration headers:
21021$config_headers
21022
9c60689e
DWT
21023Configuration commands:
21024$config_commands
21025
21026Report bugs to <saurik@saurik.com>.
21027Cycript home page: <http://www.cycript.org/>."
21028
21029_ACEOF
21030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21031ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21032ac_cs_version="\\
21033Cycript config.status 0.9
53ba6704 21034configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
21035 with options \\"\$ac_cs_config\\"
21036
53ba6704 21037Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
21038This config.status script is free software; the Free Software Foundation
21039gives unlimited permission to copy, distribute and modify it."
21040
21041ac_pwd='$ac_pwd'
21042srcdir='$srcdir'
21043INSTALL='$INSTALL'
66170b30
JF
21044MKDIR_P='$MKDIR_P'
21045AWK='$AWK'
9c60689e
DWT
21046test -n "\$AWK" || AWK=awk
21047_ACEOF
21048
21049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21050# The default lists apply if the user does not specify any file.
21051ac_need_defaults=:
21052while test $# != 0
21053do
21054 case $1 in
12833ad8 21055 --*=?*)
9c60689e
DWT
21056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21057 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21058 ac_shift=:
21059 ;;
12833ad8
JF
21060 --*=)
21061 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21062 ac_optarg=
21063 ac_shift=:
21064 ;;
9c60689e
DWT
21065 *)
21066 ac_option=$1
21067 ac_optarg=$2
21068 ac_shift=shift
21069 ;;
21070 esac
21071
21072 case $ac_option in
21073 # Handling of the options.
21074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21075 ac_cs_recheck=: ;;
21076 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21077 $as_echo "$ac_cs_version"; exit ;;
21078 --config | --confi | --conf | --con | --co | --c )
21079 $as_echo "$ac_cs_config"; exit ;;
21080 --debug | --debu | --deb | --de | --d | -d )
21081 debug=: ;;
21082 --file | --fil | --fi | --f )
21083 $ac_shift
21084 case $ac_optarg in
21085 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 21086 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
21087 esac
21088 as_fn_append CONFIG_FILES " '$ac_optarg'"
21089 ac_need_defaults=false;;
296ee9a6
JF
21090 --header | --heade | --head | --hea )
21091 $ac_shift
21092 case $ac_optarg in
21093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21094 esac
21095 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21096 ac_need_defaults=false;;
21097 --he | --h)
21098 # Conflict between --help and --header
21099 as_fn_error $? "ambiguous option: \`$1'
21100Try \`$0 --help' for more information.";;
21101 --help | --hel | -h )
9c60689e
DWT
21102 $as_echo "$ac_cs_usage"; exit ;;
21103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21104 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21105 ac_cs_silent=: ;;
21106
21107 # This is an error.
12833ad8 21108 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
21109Try \`$0 --help' for more information." ;;
21110
21111 *) as_fn_append ac_config_targets " $1"
21112 ac_need_defaults=false ;;
21113
21114 esac
21115 shift
21116done
21117
21118ac_configure_extra_args=
21119
21120if $ac_cs_silent; then
21121 exec 6>/dev/null
21122 ac_configure_extra_args="$ac_configure_extra_args --silent"
21123fi
21124
21125_ACEOF
21126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21127if \$ac_cs_recheck; then
53ba6704 21128 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
21129 shift
21130 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21131 CONFIG_SHELL='$SHELL'
21132 export CONFIG_SHELL
21133 exec "\$@"
21134fi
21135
21136_ACEOF
21137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21138exec 5>>config.log
21139{
21140 echo
21141 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21142## Running $as_me. ##
21143_ASBOX
21144 $as_echo "$ac_log"
21145} >&5
21146
21147_ACEOF
21148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21149#
21150# INIT-COMMANDS
21151#
66170b30 21152AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
21153
21154
21155# The HP-UX ksh and POSIX shell print the target directory to stdout
21156# if CDPATH is set.
21157(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21158
21159sed_quote_subst='$sed_quote_subst'
21160double_quote_subst='$double_quote_subst'
21161delay_variable_subst='$delay_variable_subst'
ee134472
JF
21162macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21163macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21164enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21165enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21166pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21167enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21168SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21169ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 21170PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21171host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21172host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21173host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21174build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21175build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21176build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21177SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21178Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21179GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21180EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21181FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21182LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21183NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21184LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21185max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21186ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21187exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21188lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21189lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21190lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21191lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21192lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21193reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21194reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21195OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21196deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21197file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21198file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21199want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21200DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21201sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21202AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21203AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21204archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21205STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21206RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21207old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21208old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21209old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21210lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21211CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21212CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21213compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21214GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21215lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21216lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21217lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21218lt_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"`'
21219nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21220lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21221objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21222MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21223lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21224lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21225lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21226lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21227lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21228need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21229MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21230DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21231NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21232LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21233OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21234OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21235libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21236shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21237extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21238archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21239enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21240export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21241whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21242compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21243old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21244old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21245archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21246archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21247module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21248module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21249with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21250allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21251no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21252hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21253hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21254hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21255hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21256hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21257hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21258hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21259inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21260link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21261always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21262export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21263exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21264include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21265prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21266postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21267file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21268variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21269need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21270need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21271version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21272runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21273shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21274shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21275libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21276library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21277soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21278install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21279postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21280postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21281finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21282finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21283hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21284sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21285sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21286hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21287enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21288enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21289enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21290old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21291striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21292compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21293predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21294postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21295predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21296postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21297compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21298LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21299reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21300reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21301old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21302compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21303GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21304lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21305lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21306lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21307lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21308lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21309archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21310enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21311export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21312whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21313compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21314old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21315old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21316archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21317archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21318module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21319module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21320with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21321allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21322no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21323hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21324hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21325hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21326hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21327hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21328hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21329hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21330inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21331link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21332always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21333export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21334exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21335include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21336prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21337postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21338file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21339hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21340compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21341predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21342postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21343predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21344postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21345compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
21346
21347LTCC='$LTCC'
21348LTCFLAGS='$LTCFLAGS'
21349compiler='$compiler_DEFAULT'
21350
ee134472
JF
21351# A function that is used when there is no print builtin or printf.
21352func_fallback_echo ()
21353{
21354 eval 'cat <<_LTECHO_EOF
21355\$1
21356_LTECHO_EOF'
21357}
21358
9c60689e 21359# Quote evaled strings.
ee134472
JF
21360for var in SHELL \
21361ECHO \
53ba6704 21362PATH_SEPARATOR \
ee134472 21363SED \
9c60689e
DWT
21364GREP \
21365EGREP \
21366FGREP \
21367LD \
21368NM \
21369LN_S \
21370lt_SP2NL \
21371lt_NL2SP \
21372reload_flag \
21373OBJDUMP \
21374deplibs_check_method \
21375file_magic_cmd \
ee134472
JF
21376file_magic_glob \
21377want_nocaseglob \
21378DLLTOOL \
21379sharedlib_from_linklib_cmd \
9c60689e
DWT
21380AR \
21381AR_FLAGS \
ee134472 21382archiver_list_spec \
9c60689e
DWT
21383STRIP \
21384RANLIB \
21385CC \
21386CFLAGS \
21387compiler \
21388lt_cv_sys_global_symbol_pipe \
21389lt_cv_sys_global_symbol_to_cdecl \
21390lt_cv_sys_global_symbol_to_c_name_address \
21391lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 21392nm_file_list_spec \
9c60689e 21393lt_prog_compiler_no_builtin_flag \
9c60689e 21394lt_prog_compiler_pic \
ee134472 21395lt_prog_compiler_wl \
9c60689e
DWT
21396lt_prog_compiler_static \
21397lt_cv_prog_compiler_c_o \
21398need_locks \
ee134472 21399MANIFEST_TOOL \
9c60689e
DWT
21400DSYMUTIL \
21401NMEDIT \
21402LIPO \
21403OTOOL \
21404OTOOL64 \
21405shrext_cmds \
21406export_dynamic_flag_spec \
21407whole_archive_flag_spec \
21408compiler_needs_object \
21409with_gnu_ld \
21410allow_undefined_flag \
21411no_undefined_flag \
21412hardcode_libdir_flag_spec \
9c60689e 21413hardcode_libdir_separator \
9c60689e
DWT
21414exclude_expsyms \
21415include_expsyms \
21416file_list_spec \
21417variables_saved_for_relink \
21418libname_spec \
21419library_names_spec \
21420soname_spec \
ee134472 21421install_override_mode \
9c60689e
DWT
21422finish_eval \
21423old_striplib \
21424striplib \
21425compiler_lib_search_dirs \
21426predep_objects \
21427postdep_objects \
21428predeps \
21429postdeps \
21430compiler_lib_search_path \
21431LD_CXX \
ee134472 21432reload_flag_CXX \
9c60689e
DWT
21433compiler_CXX \
21434lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 21435lt_prog_compiler_pic_CXX \
ee134472 21436lt_prog_compiler_wl_CXX \
9c60689e
DWT
21437lt_prog_compiler_static_CXX \
21438lt_cv_prog_compiler_c_o_CXX \
21439export_dynamic_flag_spec_CXX \
21440whole_archive_flag_spec_CXX \
21441compiler_needs_object_CXX \
21442with_gnu_ld_CXX \
21443allow_undefined_flag_CXX \
21444no_undefined_flag_CXX \
21445hardcode_libdir_flag_spec_CXX \
9c60689e 21446hardcode_libdir_separator_CXX \
9c60689e
DWT
21447exclude_expsyms_CXX \
21448include_expsyms_CXX \
21449file_list_spec_CXX \
21450compiler_lib_search_dirs_CXX \
21451predep_objects_CXX \
21452postdep_objects_CXX \
21453predeps_CXX \
21454postdeps_CXX \
21455compiler_lib_search_path_CXX; do
ee134472 21456 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21457 *[\\\\\\\`\\"\\\$]*)
ee134472 21458 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
21459 ;;
21460 *)
21461 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21462 ;;
21463 esac
21464done
21465
21466# Double-quote double-evaled strings.
21467for var in reload_cmds \
21468old_postinstall_cmds \
21469old_postuninstall_cmds \
21470old_archive_cmds \
21471extract_expsyms_cmds \
21472old_archive_from_new_cmds \
21473old_archive_from_expsyms_cmds \
21474archive_cmds \
21475archive_expsym_cmds \
21476module_cmds \
21477module_expsym_cmds \
21478export_symbols_cmds \
21479prelink_cmds \
ee134472 21480postlink_cmds \
9c60689e
DWT
21481postinstall_cmds \
21482postuninstall_cmds \
21483finish_cmds \
21484sys_lib_search_path_spec \
21485sys_lib_dlsearch_path_spec \
ee134472 21486reload_cmds_CXX \
9c60689e
DWT
21487old_archive_cmds_CXX \
21488old_archive_from_new_cmds_CXX \
21489old_archive_from_expsyms_cmds_CXX \
21490archive_cmds_CXX \
21491archive_expsym_cmds_CXX \
21492module_cmds_CXX \
21493module_expsym_cmds_CXX \
21494export_symbols_cmds_CXX \
ee134472
JF
21495prelink_cmds_CXX \
21496postlink_cmds_CXX; do
21497 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21498 *[\\\\\\\`\\"\\\$]*)
ee134472 21499 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
21500 ;;
21501 *)
21502 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21503 ;;
21504 esac
21505done
21506
9c60689e
DWT
21507ac_aux_dir='$ac_aux_dir'
21508xsi_shell='$xsi_shell'
21509lt_shell_append='$lt_shell_append'
21510
21511# See if we are running on zsh, and set the options which allow our
21512# commands through without removal of \ escapes INIT.
21513if test -n "\${ZSH_VERSION+set}" ; then
21514 setopt NO_GLOB_SUBST
21515fi
21516
21517
21518 PACKAGE='$PACKAGE'
21519 VERSION='$VERSION'
21520 TIMESTAMP='$TIMESTAMP'
21521 RM='$RM'
21522 ofile='$ofile'
21523
21524
21525
21526
21527
21528
21529_ACEOF
21530
21531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21532
21533# Handling of arguments.
21534for ac_config_target in $ac_config_targets
21535do
21536 case $ac_config_target in
296ee9a6 21537 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 21538 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 21539 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 21540 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 21541
ee134472 21542 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
21543 esac
21544done
21545
21546
21547# If the user did not use the arguments to specify the items to instantiate,
21548# then the envvar interface is used. Set only those that are not.
21549# We use the long form for the default assignment because of an extremely
21550# bizarre bug on SunOS 4.1.3.
21551if $ac_need_defaults; then
21552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 21553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
21554 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21555fi
21556
21557# Have a temporary directory for convenience. Make it in the build tree
21558# simply because there is no reason against having it here, and in addition,
21559# creating and moving files from /tmp can sometimes cause problems.
21560# Hook for its removal unless debugging.
21561# Note that there is a small window in which the directory will not be cleaned:
21562# after its creation but before its name has been assigned to `$tmp'.
21563$debug ||
21564{
ee134472 21565 tmp= ac_tmp=
9c60689e 21566 trap 'exit_status=$?
ee134472
JF
21567 : "${ac_tmp:=$tmp}"
21568 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
21569' 0
21570 trap 'as_fn_exit 1' 1 2 13 15
21571}
21572# Create a (secure) tmp directory for tmp files.
21573
21574{
21575 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 21576 test -d "$tmp"
9c60689e
DWT
21577} ||
21578{
21579 tmp=./conf$$-$RANDOM
21580 (umask 077 && mkdir "$tmp")
12833ad8 21581} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 21582ac_tmp=$tmp
9c60689e
DWT
21583
21584# Set up the scripts for CONFIG_FILES section.
21585# No need to generate them if there are no CONFIG_FILES.
21586# This happens for instance with `./config.status config.h'.
21587if test -n "$CONFIG_FILES"; then
21588
21589
21590ac_cr=`echo X | tr X '\015'`
21591# On cygwin, bash can eat \r inside `` if the user requested igncr.
21592# But we know of no other shell where ac_cr would be empty at this
21593# point, so we can use a bashism as a fallback.
21594if test "x$ac_cr" = x; then
21595 eval ac_cr=\$\'\\r\'
21596fi
21597ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21598if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 21599 ac_cs_awk_cr='\\r'
9c60689e
DWT
21600else
21601 ac_cs_awk_cr=$ac_cr
21602fi
21603
ee134472 21604echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
21605_ACEOF
21606
21607
21608{
21609 echo "cat >conf$$subs.awk <<_ACEOF" &&
21610 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21611 echo "_ACEOF"
21612} >conf$$subs.sh ||
12833ad8
JF
21613 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21614ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
21615ac_delim='%!_!# '
21616for ac_last_try in false false false false false :; do
21617 . ./conf$$subs.sh ||
12833ad8 21618 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21619
21620 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21621 if test $ac_delim_n = $ac_delim_num; then
21622 break
21623 elif $ac_last_try; then
12833ad8 21624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21625 else
21626 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21627 fi
21628done
21629rm -f conf$$subs.sh
21630
21631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 21632cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
21633_ACEOF
21634sed -n '
21635h
21636s/^/S["/; s/!.*/"]=/
21637p
21638g
21639s/^[^!]*!//
21640:repl
21641t repl
21642s/'"$ac_delim"'$//
21643t delim
21644:nl
21645h
21646s/\(.\{148\}\)..*/\1/
21647t more1
21648s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21649p
21650n
21651b repl
21652:more1
21653s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21654p
21655g
21656s/.\{148\}//
21657t nl
21658:delim
21659h
21660s/\(.\{148\}\)..*/\1/
21661t more2
21662s/["\\]/\\&/g; s/^/"/; s/$/"/
21663p
21664b
21665:more2
21666s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21667p
21668g
21669s/.\{148\}//
21670t delim
21671' <conf$$subs.awk | sed '
21672/^[^""]/{
21673 N
21674 s/\n//
21675}
21676' >>$CONFIG_STATUS || ac_write_fail=1
21677rm -f conf$$subs.awk
21678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21679_ACAWK
ee134472 21680cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
21681 for (key in S) S_is_set[key] = 1
21682 FS = "\a"
21683
21684}
21685{
21686 line = $ 0
21687 nfields = split(line, field, "@")
21688 substed = 0
21689 len = length(field[1])
21690 for (i = 2; i < nfields; i++) {
21691 key = field[i]
21692 keylen = length(key)
21693 if (S_is_set[key]) {
21694 value = S[key]
21695 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21696 len += length(value) + length(field[++i])
21697 substed = 1
21698 } else
21699 len += 1 + keylen
21700 }
21701
21702 print line
21703}
21704
21705_ACAWK
21706_ACEOF
21707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21708if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21709 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21710else
21711 cat
ee134472 21712fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 21713 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
21714_ACEOF
21715
12833ad8
JF
21716# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21717# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
21718# trailing colons and then remove the whole line if VPATH becomes empty
21719# (actually we leave an empty line to preserve line numbers).
21720if test "x$srcdir" = x.; then
12833ad8
JF
21721 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21722h
21723s///
21724s/^/:/
21725s/[ ]*$/:/
21726s/:\$(srcdir):/:/g
21727s/:\${srcdir}:/:/g
21728s/:@srcdir@:/:/g
21729s/^:*//
9c60689e 21730s/:*$//
12833ad8
JF
21731x
21732s/\(=[ ]*\).*/\1/
21733G
21734s/\n//
9c60689e
DWT
21735s/^[^=]*=[ ]*$//
21736}'
21737fi
21738
21739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21740fi # test -n "$CONFIG_FILES"
21741
296ee9a6
JF
21742# Set up the scripts for CONFIG_HEADERS section.
21743# No need to generate them if there are no CONFIG_HEADERS.
21744# This happens for instance with `./config.status Makefile'.
21745if test -n "$CONFIG_HEADERS"; then
21746cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21747BEGIN {
21748_ACEOF
21749
21750# Transform confdefs.h into an awk script `defines.awk', embedded as
21751# here-document in config.status, that substitutes the proper values into
21752# config.h.in to produce config.h.
21753
21754# Create a delimiter string that does not exist in confdefs.h, to ease
21755# handling of long lines.
21756ac_delim='%!_!# '
21757for ac_last_try in false false :; do
21758 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21759 if test -z "$ac_tt"; then
21760 break
21761 elif $ac_last_try; then
21762 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21763 else
21764 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21765 fi
21766done
21767
21768# For the awk script, D is an array of macro values keyed by name,
21769# likewise P contains macro parameters if any. Preserve backslash
21770# newline sequences.
21771
21772ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21773sed -n '
21774s/.\{148\}/&'"$ac_delim"'/g
21775t rset
21776:rset
21777s/^[ ]*#[ ]*define[ ][ ]*/ /
21778t def
21779d
21780:def
21781s/\\$//
21782t bsnl
21783s/["\\]/\\&/g
21784s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21785D["\1"]=" \3"/p
21786s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21787d
21788:bsnl
21789s/["\\]/\\&/g
21790s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21791D["\1"]=" \3\\\\\\n"\\/p
21792t cont
21793s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21794t cont
21795d
21796:cont
21797n
21798s/.\{148\}/&'"$ac_delim"'/g
21799t clear
21800:clear
21801s/\\$//
21802t bsnlc
21803s/["\\]/\\&/g; s/^/"/; s/$/"/p
21804d
21805:bsnlc
21806s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21807b cont
21808' <confdefs.h | sed '
21809s/'"$ac_delim"'/"\\\
21810"/g' >>$CONFIG_STATUS || ac_write_fail=1
21811
21812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21813 for (key in D) D_is_set[key] = 1
21814 FS = "\a"
21815}
21816/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21817 line = \$ 0
21818 split(line, arg, " ")
21819 if (arg[1] == "#") {
21820 defundef = arg[2]
21821 mac1 = arg[3]
21822 } else {
21823 defundef = substr(arg[1], 2)
21824 mac1 = arg[2]
21825 }
21826 split(mac1, mac2, "(") #)
21827 macro = mac2[1]
21828 prefix = substr(line, 1, index(line, defundef) - 1)
21829 if (D_is_set[macro]) {
21830 # Preserve the white space surrounding the "#".
21831 print prefix "define", macro P[macro] D[macro]
21832 next
21833 } else {
21834 # Replace #undef with comments. This is necessary, for example,
21835 # in the case of _POSIX_SOURCE, which is predefined and required
21836 # on some systems where configure will not decide to define it.
21837 if (defundef == "undef") {
21838 print "/*", prefix defundef, macro, "*/"
21839 next
21840 }
21841 }
21842}
21843{ print }
21844_ACAWK
21845_ACEOF
21846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21847 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21848fi # test -n "$CONFIG_HEADERS"
21849
9c60689e 21850
296ee9a6 21851eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
21852shift
21853for ac_tag
21854do
21855 case $ac_tag in
21856 :[FHLC]) ac_mode=$ac_tag; continue;;
21857 esac
21858 case $ac_mode$ac_tag in
21859 :[FHL]*:*);;
ee134472 21860 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
21861 :[FH]-) ac_tag=-:-;;
21862 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21863 esac
21864 ac_save_IFS=$IFS
21865 IFS=:
21866 set x $ac_tag
21867 IFS=$ac_save_IFS
21868 shift
21869 ac_file=$1
21870 shift
21871
21872 case $ac_mode in
21873 :L) ac_source=$1;;
21874 :[FH])
21875 ac_file_inputs=
21876 for ac_f
21877 do
21878 case $ac_f in
ee134472 21879 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
21880 *) # Look for the file first in the build tree, then in the source tree
21881 # (if the path is not absolute). The absolute path cannot be DOS-style,
21882 # because $ac_f cannot contain `:'.
21883 test -f "$ac_f" ||
21884 case $ac_f in
21885 [\\/$]*) false;;
21886 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21887 esac ||
ee134472 21888 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
21889 esac
21890 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21891 as_fn_append ac_file_inputs " '$ac_f'"
21892 done
21893
21894 # Let's still pretend it is `configure' which instantiates (i.e., don't
21895 # use $as_me), people would be surprised to read:
21896 # /* config.h. Generated by config.status. */
21897 configure_input='Generated from '`
21898 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21899 `' by configure.'
21900 if test x"$ac_file" != x-; then
21901 configure_input="$ac_file. $configure_input"
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21903$as_echo "$as_me: creating $ac_file" >&6;}
21904 fi
21905 # Neutralize special characters interpreted by sed in replacement strings.
21906 case $configure_input in #(
21907 *\&* | *\|* | *\\* )
21908 ac_sed_conf_input=`$as_echo "$configure_input" |
21909 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21910 *) ac_sed_conf_input=$configure_input;;
21911 esac
21912
21913 case $ac_tag in
ee134472
JF
21914 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
21916 esac
21917 ;;
21918 esac
21919
21920 ac_dir=`$as_dirname -- "$ac_file" ||
21921$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21922 X"$ac_file" : 'X\(//\)[^/]' \| \
21923 X"$ac_file" : 'X\(//\)$' \| \
21924 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21925$as_echo X"$ac_file" |
21926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21927 s//\1/
21928 q
21929 }
21930 /^X\(\/\/\)[^/].*/{
21931 s//\1/
21932 q
21933 }
21934 /^X\(\/\/\)$/{
21935 s//\1/
21936 q
21937 }
21938 /^X\(\/\).*/{
21939 s//\1/
21940 q
21941 }
21942 s/.*/./; q'`
21943 as_dir="$ac_dir"; as_fn_mkdir_p
21944 ac_builddir=.
21945
21946case "$ac_dir" in
21947.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21948*)
21949 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21950 # A ".." for each directory in $ac_dir_suffix.
21951 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21952 case $ac_top_builddir_sub in
21953 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21954 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21955 esac ;;
21956esac
21957ac_abs_top_builddir=$ac_pwd
21958ac_abs_builddir=$ac_pwd$ac_dir_suffix
21959# for backward compatibility:
21960ac_top_builddir=$ac_top_build_prefix
35fa52c0 21961
9c60689e
DWT
21962case $srcdir in
21963 .) # We are building in place.
21964 ac_srcdir=.
21965 ac_top_srcdir=$ac_top_builddir_sub
21966 ac_abs_top_srcdir=$ac_pwd ;;
21967 [\\/]* | ?:[\\/]* ) # Absolute name.
21968 ac_srcdir=$srcdir$ac_dir_suffix;
21969 ac_top_srcdir=$srcdir
21970 ac_abs_top_srcdir=$srcdir ;;
21971 *) # Relative name.
21972 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21973 ac_top_srcdir=$ac_top_build_prefix$srcdir
21974 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21975esac
21976ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
21977
21978
9c60689e
DWT
21979 case $ac_mode in
21980 :F)
21981 #
21982 # CONFIG_FILE
21983 #
35fa52c0 21984
9c60689e
DWT
21985 case $INSTALL in
21986 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21987 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21988 esac
66170b30
JF
21989 ac_MKDIR_P=$MKDIR_P
21990 case $MKDIR_P in
21991 [\\/$]* | ?:[\\/]* ) ;;
21992 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21993 esac
9c60689e 21994_ACEOF
35fa52c0 21995
9c60689e
DWT
21996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21997# If the template does not know about datarootdir, expand it.
21998# FIXME: This hack should be removed a few years after 2.60.
21999ac_datarootdir_hack=; ac_datarootdir_seen=
22000ac_sed_dataroot='
22001/datarootdir/ {
22002 p
22003 q
22004}
22005/@datadir@/p
22006/@docdir@/p
22007/@infodir@/p
22008/@localedir@/p
22009/@mandir@/p'
22010case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22011*datarootdir*) ac_datarootdir_seen=yes;;
22012*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22014$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22015_ACEOF
22016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22017 ac_datarootdir_hack='
22018 s&@datadir@&$datadir&g
22019 s&@docdir@&$docdir&g
22020 s&@infodir@&$infodir&g
22021 s&@localedir@&$localedir&g
22022 s&@mandir@&$mandir&g
22023 s&\\\${datarootdir}&$datarootdir&g' ;;
22024esac
22025_ACEOF
35fa52c0 22026
9c60689e
DWT
22027# Neutralize VPATH when `$srcdir' = `.'.
22028# Shell code in configure.ac might set extrasub.
22029# FIXME: do we really want to maintain this feature?
22030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22031ac_sed_extra="$ac_vpsub
22032$extrasub
22033_ACEOF
22034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22035:t
22036/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22037s|@configure_input@|$ac_sed_conf_input|;t t
22038s&@top_builddir@&$ac_top_builddir_sub&;t t
22039s&@top_build_prefix@&$ac_top_build_prefix&;t t
22040s&@srcdir@&$ac_srcdir&;t t
22041s&@abs_srcdir@&$ac_abs_srcdir&;t t
22042s&@top_srcdir@&$ac_top_srcdir&;t t
22043s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22044s&@builddir@&$ac_builddir&;t t
22045s&@abs_builddir@&$ac_abs_builddir&;t t
22046s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22047s&@INSTALL@&$ac_INSTALL&;t t
66170b30 22048s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
22049$ac_datarootdir_hack
22050"
ee134472
JF
22051eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22052 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
22053
22054test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
22055 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22056 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22057 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 22058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22059which seems to be undefined. Please make sure it is defined" >&5
9c60689e 22060$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22061which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 22062
ee134472 22063 rm -f "$ac_tmp/stdin"
9c60689e 22064 case $ac_file in
ee134472
JF
22065 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22066 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 22067 esac \
12833ad8 22068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 22069 ;;
296ee9a6
JF
22070 :H)
22071 #
22072 # CONFIG_HEADER
22073 #
22074 if test x"$ac_file" != x-; then
22075 {
22076 $as_echo "/* $configure_input */" \
22077 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22078 } >"$ac_tmp/config.h" \
22079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22080 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22082$as_echo "$as_me: $ac_file is unchanged" >&6;}
22083 else
22084 rm -f "$ac_file"
22085 mv "$ac_tmp/config.h" "$ac_file" \
22086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22087 fi
22088 else
22089 $as_echo "/* $configure_input */" \
22090 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22091 || as_fn_error $? "could not create -" "$LINENO" 5
22092 fi
22093# Compute "$ac_file"'s index in $config_headers.
22094_am_arg="$ac_file"
22095_am_stamp_count=1
22096for _am_header in $config_headers :; do
22097 case $_am_header in
22098 $_am_arg | $_am_arg:* )
22099 break ;;
22100 * )
22101 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22102 esac
22103done
22104echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22105$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22106 X"$_am_arg" : 'X\(//\)[^/]' \| \
22107 X"$_am_arg" : 'X\(//\)$' \| \
22108 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22109$as_echo X"$_am_arg" |
22110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22111 s//\1/
22112 q
22113 }
22114 /^X\(\/\/\)[^/].*/{
22115 s//\1/
22116 q
22117 }
22118 /^X\(\/\/\)$/{
22119 s//\1/
22120 q
22121 }
22122 /^X\(\/\).*/{
22123 s//\1/
22124 q
22125 }
22126 s/.*/./; q'`/stamp-h$_am_stamp_count
22127 ;;
35fa52c0 22128
9c60689e
DWT
22129 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22130$as_echo "$as_me: executing $ac_file commands" >&6;}
22131 ;;
22132 esac
35fa52c0 22133
35fa52c0 22134
9c60689e 22135 case $ac_file$ac_mode in
66170b30
JF
22136 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22137 # Older Autoconf quotes --file arguments for eval, but not when files
22138 # are listed without --file. Let's play safe and only enable the eval
22139 # if we detect the quoting.
22140 case $CONFIG_FILES in
22141 *\'*) eval set x "$CONFIG_FILES" ;;
22142 *) set x $CONFIG_FILES ;;
22143 esac
22144 shift
22145 for mf
22146 do
22147 # Strip MF so we end up with the name of the file.
22148 mf=`echo "$mf" | sed -e 's/:.*$//'`
22149 # Check whether this is an Automake generated Makefile or not.
22150 # We used to match only the files named 'Makefile.in', but
22151 # some people rename them; so instead we look at the file content.
22152 # Grep'ing the first line is not enough: some people post-process
22153 # each Makefile.in and add a new line on top of each file to say so.
22154 # Grep'ing the whole file is not good either: AIX grep has a line
22155 # limit of 2048, but all sed's we know have understand at least 4000.
22156 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22157 dirpart=`$as_dirname -- "$mf" ||
22158$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22159 X"$mf" : 'X\(//\)[^/]' \| \
22160 X"$mf" : 'X\(//\)$' \| \
22161 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22162$as_echo X"$mf" |
22163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22164 s//\1/
22165 q
22166 }
22167 /^X\(\/\/\)[^/].*/{
22168 s//\1/
22169 q
22170 }
22171 /^X\(\/\/\)$/{
22172 s//\1/
22173 q
22174 }
22175 /^X\(\/\).*/{
22176 s//\1/
22177 q
22178 }
22179 s/.*/./; q'`
22180 else
22181 continue
22182 fi
22183 # Extract the definition of DEPDIR, am__include, and am__quote
22184 # from the Makefile without running 'make'.
22185 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22186 test -z "$DEPDIR" && continue
22187 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 22188 test -z "$am__include" && continue
66170b30
JF
22189 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22190 # Find all dependency output files, they are included files with
22191 # $(DEPDIR) in their names. We invoke sed twice because it is the
22192 # simplest approach to changing $(DEPDIR) to its actual value in the
22193 # expansion.
22194 for file in `sed -n "
22195 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22197 # Make sure the directory exists.
22198 test -f "$dirpart/$file" && continue
22199 fdir=`$as_dirname -- "$file" ||
22200$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201 X"$file" : 'X\(//\)[^/]' \| \
22202 X"$file" : 'X\(//\)$' \| \
22203 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22204$as_echo X"$file" |
22205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22206 s//\1/
22207 q
22208 }
22209 /^X\(\/\/\)[^/].*/{
22210 s//\1/
22211 q
22212 }
22213 /^X\(\/\/\)$/{
22214 s//\1/
22215 q
22216 }
22217 /^X\(\/\).*/{
22218 s//\1/
22219 q
22220 }
22221 s/.*/./; q'`
22222 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22223 # echo "creating $dirpart/$file"
22224 echo '# dummy' > "$dirpart/$file"
22225 done
22226 done
22227}
22228 ;;
9c60689e
DWT
22229 "libtool":C)
22230
22231 # See if we are running on zsh, and set the options which allow our
22232 # commands through without removal of \ escapes.
22233 if test -n "${ZSH_VERSION+set}" ; then
22234 setopt NO_GLOB_SUBST
35fa52c0 22235 fi
35fa52c0 22236
9c60689e
DWT
22237 cfgfile="${ofile}T"
22238 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22239 $RM "$cfgfile"
35fa52c0 22240
9c60689e
DWT
22241 cat <<_LT_EOF >> "$cfgfile"
22242#! $SHELL
35fa52c0 22243
9c60689e
DWT
22244# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22245# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22246# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22247# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22248#
22249# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
53ba6704
JF
22250# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22251# Foundation, Inc.
9c60689e
DWT
22252# Written by Gordon Matzigkeit, 1996
22253#
22254# This file is part of GNU Libtool.
22255#
22256# GNU Libtool is free software; you can redistribute it and/or
22257# modify it under the terms of the GNU General Public License as
22258# published by the Free Software Foundation; either version 2 of
22259# the License, or (at your option) any later version.
22260#
22261# As a special exception to the GNU General Public License,
22262# if you distribute this file as part of a program or library that
22263# is built using GNU Libtool, you may include this file under the
22264# same distribution terms that you use for the rest of that program.
22265#
22266# GNU Libtool is distributed in the hope that it will be useful,
22267# but WITHOUT ANY WARRANTY; without even the implied warranty of
22268# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22269# GNU General Public License for more details.
22270#
22271# You should have received a copy of the GNU General Public License
22272# along with GNU Libtool; see the file COPYING. If not, a copy
22273# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22274# obtained by writing to the Free Software Foundation, Inc.,
22275# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 22276
35fa52c0 22277
9c60689e
DWT
22278# The names of the tagged configurations supported by this script.
22279available_tags="CXX "
35fa52c0 22280
9c60689e 22281# ### BEGIN LIBTOOL CONFIG
35fa52c0 22282
9c60689e
DWT
22283# Which release of libtool.m4 was used?
22284macro_version=$macro_version
22285macro_revision=$macro_revision
35fa52c0 22286
9c60689e
DWT
22287# Whether or not to build static libraries.
22288build_old_libs=$enable_static
35fa52c0 22289
549f29b5
DWT
22290# Whether or not to build shared libraries.
22291build_libtool_libs=$enable_shared
22292
9c60689e
DWT
22293# What type of objects to build.
22294pic_mode=$pic_mode
35fa52c0 22295
9c60689e
DWT
22296# Whether or not to optimize for fast installation.
22297fast_install=$enable_fast_install
35fa52c0 22298
ee134472
JF
22299# Shell to use when invoking shell scripts.
22300SHELL=$lt_SHELL
22301
22302# An echo program that protects backslashes.
22303ECHO=$lt_ECHO
22304
53ba6704
JF
22305# The PATH separator for the build system.
22306PATH_SEPARATOR=$lt_PATH_SEPARATOR
22307
9c60689e
DWT
22308# The host system.
22309host_alias=$host_alias
22310host=$host
22311host_os=$host_os
35fa52c0 22312
9c60689e
DWT
22313# The build system.
22314build_alias=$build_alias
22315build=$build
22316build_os=$build_os
22317
22318# A sed program that does not truncate output.
22319SED=$lt_SED
22320
22321# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22322Xsed="\$SED -e 1s/^X//"
22323
22324# A grep program that handles long lines.
22325GREP=$lt_GREP
22326
22327# An ERE matcher.
22328EGREP=$lt_EGREP
22329
22330# A literal string matcher.
22331FGREP=$lt_FGREP
22332
22333# A BSD- or MS-compatible name lister.
22334NM=$lt_NM
22335
22336# Whether we need soft or hard links.
22337LN_S=$lt_LN_S
22338
22339# What is the maximum length of a command?
22340max_cmd_len=$max_cmd_len
22341
22342# Object file suffix (normally "o").
22343objext=$ac_objext
22344
22345# Executable file suffix (normally "").
22346exeext=$exeext
22347
22348# whether the shell understands "unset".
22349lt_unset=$lt_unset
22350
22351# turn spaces into newlines.
22352SP2NL=$lt_lt_SP2NL
22353
22354# turn newlines into spaces.
22355NL2SP=$lt_lt_NL2SP
22356
ee134472
JF
22357# convert \$build file names to \$host format.
22358to_host_file_cmd=$lt_cv_to_host_file_cmd
22359
22360# convert \$build files to toolchain format.
22361to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
22362
22363# An object symbol dumper.
22364OBJDUMP=$lt_OBJDUMP
22365
22366# Method to check whether dependent libraries are shared objects.
22367deplibs_check_method=$lt_deplibs_check_method
22368
ee134472 22369# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
22370file_magic_cmd=$lt_file_magic_cmd
22371
ee134472
JF
22372# How to find potential files when deplibs_check_method = "file_magic".
22373file_magic_glob=$lt_file_magic_glob
22374
22375# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22376want_nocaseglob=$lt_want_nocaseglob
22377
22378# DLL creation program.
22379DLLTOOL=$lt_DLLTOOL
22380
22381# Command to associate shared and link libraries.
22382sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22383
9c60689e
DWT
22384# The archiver.
22385AR=$lt_AR
ee134472
JF
22386
22387# Flags to create an archive.
9c60689e
DWT
22388AR_FLAGS=$lt_AR_FLAGS
22389
ee134472
JF
22390# How to feed a file listing to the archiver.
22391archiver_list_spec=$lt_archiver_list_spec
22392
9c60689e
DWT
22393# A symbol stripping program.
22394STRIP=$lt_STRIP
22395
22396# Commands used to install an old-style archive.
22397RANLIB=$lt_RANLIB
22398old_postinstall_cmds=$lt_old_postinstall_cmds
22399old_postuninstall_cmds=$lt_old_postuninstall_cmds
22400
ee134472
JF
22401# Whether to use a lock for old archive extraction.
22402lock_old_archive_extraction=$lock_old_archive_extraction
22403
9c60689e
DWT
22404# A C compiler.
22405LTCC=$lt_CC
22406
22407# LTCC compiler flags.
22408LTCFLAGS=$lt_CFLAGS
22409
22410# Take the output of nm and produce a listing of raw symbols and C names.
22411global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22412
22413# Transform the output of nm in a proper C declaration.
22414global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22415
22416# Transform the output of nm in a C name address pair.
22417global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22418
22419# Transform the output of nm in a C name address pair when lib prefix is needed.
22420global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22421
ee134472
JF
22422# Specify filename containing input files for \$NM.
22423nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 22424
ee134472
JF
22425# The root where to search for dependent libraries,and in which our libraries should be installed.
22426lt_sysroot=$lt_sysroot
9c60689e 22427
ee134472
JF
22428# The name of the directory that contains temporary libtool files.
22429objdir=$objdir
9c60689e
DWT
22430
22431# Used to examine libraries when file_magic_cmd begins with "file".
22432MAGIC_CMD=$MAGIC_CMD
22433
22434# Must we lock files when doing compilation?
22435need_locks=$lt_need_locks
22436
ee134472
JF
22437# Manifest tool.
22438MANIFEST_TOOL=$lt_MANIFEST_TOOL
22439
9c60689e
DWT
22440# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22441DSYMUTIL=$lt_DSYMUTIL
22442
22443# Tool to change global to local symbols on Mac OS X.
22444NMEDIT=$lt_NMEDIT
22445
22446# Tool to manipulate fat objects and archives on Mac OS X.
22447LIPO=$lt_LIPO
22448
22449# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22450OTOOL=$lt_OTOOL
22451
22452# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22453OTOOL64=$lt_OTOOL64
22454
22455# Old archive suffix (normally "a").
22456libext=$libext
22457
22458# Shared library suffix (normally ".so").
22459shrext_cmds=$lt_shrext_cmds
35fa52c0 22460
9c60689e
DWT
22461# The commands to extract the exported symbol list from a shared archive.
22462extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 22463
9c60689e
DWT
22464# Variables whose values should be saved in libtool wrapper scripts and
22465# restored at link time.
22466variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 22467
9c60689e
DWT
22468# Do we need the "lib" prefix for modules?
22469need_lib_prefix=$need_lib_prefix
35fa52c0 22470
9c60689e
DWT
22471# Do we need a version for libraries?
22472need_version=$need_version
35fa52c0 22473
9c60689e
DWT
22474# Library versioning type.
22475version_type=$version_type
35fa52c0 22476
9c60689e
DWT
22477# Shared library runtime path variable.
22478runpath_var=$runpath_var
35fa52c0 22479
9c60689e
DWT
22480# Shared library path variable.
22481shlibpath_var=$shlibpath_var
35fa52c0 22482
9c60689e
DWT
22483# Is shlibpath searched before the hard-coded library search path?
22484shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 22485
9c60689e
DWT
22486# Format of library name prefix.
22487libname_spec=$lt_libname_spec
35fa52c0 22488
9c60689e
DWT
22489# List of archive names. First name is the real one, the rest are links.
22490# The last name is the one that the linker finds with -lNAME
22491library_names_spec=$lt_library_names_spec
dbadc56a 22492
9c60689e
DWT
22493# The coded name of the library, if different from the real name.
22494soname_spec=$lt_soname_spec
dbadc56a 22495
ee134472
JF
22496# Permission mode override for installation of shared libraries.
22497install_override_mode=$lt_install_override_mode
22498
9c60689e
DWT
22499# Command to use after installation of a shared archive.
22500postinstall_cmds=$lt_postinstall_cmds
35fa52c0 22501
9c60689e
DWT
22502# Command to use after uninstallation of a shared archive.
22503postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 22504
9c60689e
DWT
22505# Commands used to finish a libtool library installation in a directory.
22506finish_cmds=$lt_finish_cmds
35fa52c0 22507
9c60689e
DWT
22508# As "finish_cmds", except a single script fragment to be evaled but
22509# not shown.
22510finish_eval=$lt_finish_eval
35fa52c0 22511
9c60689e
DWT
22512# Whether we should hardcode library paths into libraries.
22513hardcode_into_libs=$hardcode_into_libs
dbadc56a 22514
9c60689e
DWT
22515# Compile-time system search path for libraries.
22516sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 22517
9c60689e
DWT
22518# Run-time system search path for libraries.
22519sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 22520
9c60689e
DWT
22521# Whether dlopen is supported.
22522dlopen_support=$enable_dlopen
dbadc56a 22523
9c60689e
DWT
22524# Whether dlopen of programs is supported.
22525dlopen_self=$enable_dlopen_self
35fa52c0 22526
9c60689e
DWT
22527# Whether dlopen of statically linked programs is supported.
22528dlopen_self_static=$enable_dlopen_self_static
35fa52c0 22529
9c60689e
DWT
22530# Commands to strip libraries.
22531old_striplib=$lt_old_striplib
22532striplib=$lt_striplib
35fa52c0 22533
35fa52c0 22534
9c60689e
DWT
22535# The linker used to build libraries.
22536LD=$lt_LD
dbadc56a 22537
ee134472
JF
22538# How to create reloadable object files.
22539reload_flag=$lt_reload_flag
22540reload_cmds=$lt_reload_cmds
22541
9c60689e
DWT
22542# Commands used to build an old-style archive.
22543old_archive_cmds=$lt_old_archive_cmds
dbadc56a 22544
9c60689e
DWT
22545# A language specific compiler.
22546CC=$lt_compiler
35fa52c0 22547
9c60689e
DWT
22548# Is the compiler the GNU compiler?
22549with_gcc=$GCC
dbadc56a 22550
9c60689e
DWT
22551# Compiler flag to turn off builtin functions.
22552no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 22553
9c60689e
DWT
22554# Additional compiler flags for building library objects.
22555pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 22556
ee134472
JF
22557# How to pass a linker flag through the compiler.
22558wl=$lt_lt_prog_compiler_wl
22559
9c60689e
DWT
22560# Compiler flag to prevent dynamic linking.
22561link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 22562
9c60689e
DWT
22563# Does compiler simultaneously support -c and -o options?
22564compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 22565
9c60689e
DWT
22566# Whether or not to add -lc for building shared libraries.
22567build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 22568
9c60689e
DWT
22569# Whether or not to disallow shared libs when runtime libs are static.
22570allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 22571
9c60689e
DWT
22572# Compiler flag to allow reflexive dlopens.
22573export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 22574
9c60689e
DWT
22575# Compiler flag to generate shared objects directly from archives.
22576whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 22577
9c60689e
DWT
22578# Whether the compiler copes with passing no objects directly.
22579compiler_needs_object=$lt_compiler_needs_object
dbadc56a 22580
9c60689e
DWT
22581# Create an old-style archive from a shared archive.
22582old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 22583
9c60689e
DWT
22584# Create a temporary old-style archive to link instead of a shared archive.
22585old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 22586
9c60689e
DWT
22587# Commands used to build a shared archive.
22588archive_cmds=$lt_archive_cmds
22589archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 22590
9c60689e
DWT
22591# Commands used to build a loadable module if different from building
22592# a shared archive.
22593module_cmds=$lt_module_cmds
22594module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 22595
9c60689e
DWT
22596# Whether we are building with GNU ld or not.
22597with_gnu_ld=$lt_with_gnu_ld
6b66678a 22598
9c60689e
DWT
22599# Flag that allows shared libraries with undefined symbols to be built.
22600allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 22601
9c60689e
DWT
22602# Flag that enforces no undefined symbols.
22603no_undefined_flag=$lt_no_undefined_flag
6b66678a 22604
9c60689e
DWT
22605# Flag to hardcode \$libdir into a binary during linking.
22606# This must work even if \$libdir does not exist
22607hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 22608
9c60689e
DWT
22609# Whether we need a single "-rpath" flag with a separated argument.
22610hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 22611
9c60689e
DWT
22612# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22613# DIR into the resulting binary.
22614hardcode_direct=$hardcode_direct
6b66678a 22615
9c60689e
DWT
22616# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22617# DIR into the resulting binary and the resulting library dependency is
22618# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22619# library is relocated.
22620hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 22621
9c60689e
DWT
22622# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22623# into the resulting binary.
22624hardcode_minus_L=$hardcode_minus_L
6b66678a 22625
9c60689e
DWT
22626# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22627# into the resulting binary.
22628hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 22629
9c60689e
DWT
22630# Set to "yes" if building a shared library automatically hardcodes DIR
22631# into the library and all subsequent libraries and executables linked
22632# against it.
22633hardcode_automatic=$hardcode_automatic
6b66678a 22634
9c60689e
DWT
22635# Set to yes if linker adds runtime paths of dependent libraries
22636# to runtime path list.
22637inherit_rpath=$inherit_rpath
6b66678a 22638
9c60689e
DWT
22639# Whether libtool must link a program against all its dependency libraries.
22640link_all_deplibs=$link_all_deplibs
22641
9c60689e
DWT
22642# Set to "yes" if exported symbols are required.
22643always_export_symbols=$always_export_symbols
6b66678a 22644
9c60689e
DWT
22645# The commands to list exported symbols.
22646export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 22647
9c60689e
DWT
22648# Symbols that should not be listed in the preloaded symbols.
22649exclude_expsyms=$lt_exclude_expsyms
6b66678a 22650
9c60689e
DWT
22651# Symbols that must always be exported.
22652include_expsyms=$lt_include_expsyms
6b66678a 22653
9c60689e
DWT
22654# Commands necessary for linking programs (against libraries) with templates.
22655prelink_cmds=$lt_prelink_cmds
6b66678a 22656
ee134472
JF
22657# Commands necessary for finishing linking programs.
22658postlink_cmds=$lt_postlink_cmds
22659
9c60689e
DWT
22660# Specify filename containing input files.
22661file_list_spec=$lt_file_list_spec
6b66678a 22662
9c60689e
DWT
22663# How to hardcode a shared library path into an executable.
22664hardcode_action=$hardcode_action
22665
22666# The directories searched by this compiler when creating a shared library.
22667compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22668
22669# Dependencies to place before and after the objects being linked to
22670# create a shared library.
22671predep_objects=$lt_predep_objects
22672postdep_objects=$lt_postdep_objects
22673predeps=$lt_predeps
22674postdeps=$lt_postdeps
22675
22676# The library search path used internally by the compiler when linking
22677# a shared library.
22678compiler_lib_search_path=$lt_compiler_lib_search_path
22679
22680# ### END LIBTOOL CONFIG
22681
22682_LT_EOF
22683
22684 case $host_os in
22685 aix3*)
22686 cat <<\_LT_EOF >> "$cfgfile"
22687# AIX sometimes has problems with the GCC collect2 program. For some
22688# reason, if we set the COLLECT_NAMES environment variable, the problems
22689# vanish in a puff of smoke.
22690if test "X${COLLECT_NAMES+set}" != Xset; then
22691 COLLECT_NAMES=
22692 export COLLECT_NAMES
6b66678a 22693fi
9c60689e
DWT
22694_LT_EOF
22695 ;;
22696 esac
6b66678a
DWT
22697
22698
9c60689e 22699ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 22700
9c60689e
DWT
22701
22702 # We use sed instead of cat because bash on DJGPP gets confused if
22703 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22704 # text mode, it properly converts lines to CR/LF. This bash problem
22705 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
22706 sed '$q' "$ltmain" >> "$cfgfile" \
22707 || (rm -f "$cfgfile"; exit 1)
22708
22709 if test x"$xsi_shell" = xyes; then
22710 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22711func_dirname ()\
22712{\
22713\ case ${1} in\
22714\ */*) func_dirname_result="${1%/*}${2}" ;;\
22715\ * ) func_dirname_result="${3}" ;;\
22716\ esac\
22717} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22718 && mv -f "$cfgfile.tmp" "$cfgfile" \
22719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22720test 0 -eq $? || _lt_function_replace_fail=:
22721
22722
22723 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22724func_basename ()\
22725{\
22726\ func_basename_result="${1##*/}"\
22727} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22728 && mv -f "$cfgfile.tmp" "$cfgfile" \
22729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22730test 0 -eq $? || _lt_function_replace_fail=:
22731
22732
22733 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22734func_dirname_and_basename ()\
22735{\
22736\ case ${1} in\
22737\ */*) func_dirname_result="${1%/*}${2}" ;;\
22738\ * ) func_dirname_result="${3}" ;;\
22739\ esac\
22740\ func_basename_result="${1##*/}"\
22741} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22742 && mv -f "$cfgfile.tmp" "$cfgfile" \
22743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22744test 0 -eq $? || _lt_function_replace_fail=:
22745
22746
22747 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22748func_stripname ()\
22749{\
22750\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22751\ # positional parameters, so assign one to ordinary parameter first.\
22752\ func_stripname_result=${3}\
22753\ func_stripname_result=${func_stripname_result#"${1}"}\
22754\ func_stripname_result=${func_stripname_result%"${2}"}\
22755} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22756 && mv -f "$cfgfile.tmp" "$cfgfile" \
22757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22758test 0 -eq $? || _lt_function_replace_fail=:
22759
22760
22761 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22762func_split_long_opt ()\
22763{\
22764\ func_split_long_opt_name=${1%%=*}\
22765\ func_split_long_opt_arg=${1#*=}\
22766} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22767 && mv -f "$cfgfile.tmp" "$cfgfile" \
22768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22769test 0 -eq $? || _lt_function_replace_fail=:
22770
22771
22772 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22773func_split_short_opt ()\
22774{\
22775\ func_split_short_opt_arg=${1#??}\
22776\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22777} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22778 && mv -f "$cfgfile.tmp" "$cfgfile" \
22779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22780test 0 -eq $? || _lt_function_replace_fail=:
22781
22782
22783 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22784func_lo2o ()\
22785{\
22786\ case ${1} in\
22787\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22788\ *) func_lo2o_result=${1} ;;\
22789\ esac\
22790} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22791 && mv -f "$cfgfile.tmp" "$cfgfile" \
22792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22793test 0 -eq $? || _lt_function_replace_fail=:
22794
22795
22796 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22797func_xform ()\
22798{\
22799 func_xform_result=${1%.*}.lo\
22800} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22801 && mv -f "$cfgfile.tmp" "$cfgfile" \
22802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22803test 0 -eq $? || _lt_function_replace_fail=:
22804
22805
22806 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22807func_arith ()\
22808{\
22809 func_arith_result=$(( $* ))\
22810} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22811 && mv -f "$cfgfile.tmp" "$cfgfile" \
22812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22813test 0 -eq $? || _lt_function_replace_fail=:
22814
22815
22816 sed -e '/^func_len ()$/,/^} # func_len /c\
22817func_len ()\
22818{\
22819 func_len_result=${#1}\
22820} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22821 && mv -f "$cfgfile.tmp" "$cfgfile" \
22822 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22823test 0 -eq $? || _lt_function_replace_fail=:
22824
22825fi
22826
22827if test x"$lt_shell_append" = xyes; then
22828 sed -e '/^func_append ()$/,/^} # func_append /c\
22829func_append ()\
22830{\
22831 eval "${1}+=\\${2}"\
22832} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22833 && mv -f "$cfgfile.tmp" "$cfgfile" \
22834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22835test 0 -eq $? || _lt_function_replace_fail=:
22836
22837
22838 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22839func_append_quoted ()\
22840{\
22841\ func_quote_for_eval "${2}"\
22842\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22843} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22844 && mv -f "$cfgfile.tmp" "$cfgfile" \
22845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22846test 0 -eq $? || _lt_function_replace_fail=:
22847
22848
22849 # Save a `func_append' function call where possible by direct use of '+='
22850 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22851 && mv -f "$cfgfile.tmp" "$cfgfile" \
22852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22853 test 0 -eq $? || _lt_function_replace_fail=:
22854else
22855 # Save a `func_append' function call even when '+=' is not available
22856 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22857 && mv -f "$cfgfile.tmp" "$cfgfile" \
22858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22859 test 0 -eq $? || _lt_function_replace_fail=:
22860fi
22861
22862if test x"$_lt_function_replace_fail" = x":"; then
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22864$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22865fi
22866
22867
22868 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
22869 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22870 chmod +x "$ofile"
22871
22872
22873 cat <<_LT_EOF >> "$ofile"
22874
22875# ### BEGIN LIBTOOL TAG CONFIG: CXX
22876
22877# The linker used to build libraries.
22878LD=$lt_LD_CXX
22879
ee134472
JF
22880# How to create reloadable object files.
22881reload_flag=$lt_reload_flag_CXX
22882reload_cmds=$lt_reload_cmds_CXX
22883
9c60689e
DWT
22884# Commands used to build an old-style archive.
22885old_archive_cmds=$lt_old_archive_cmds_CXX
22886
22887# A language specific compiler.
22888CC=$lt_compiler_CXX
22889
22890# Is the compiler the GNU compiler?
22891with_gcc=$GCC_CXX
22892
22893# Compiler flag to turn off builtin functions.
22894no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 22895
9c60689e
DWT
22896# Additional compiler flags for building library objects.
22897pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 22898
ee134472
JF
22899# How to pass a linker flag through the compiler.
22900wl=$lt_lt_prog_compiler_wl_CXX
22901
9c60689e
DWT
22902# Compiler flag to prevent dynamic linking.
22903link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 22904
9c60689e
DWT
22905# Does compiler simultaneously support -c and -o options?
22906compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 22907
9c60689e
DWT
22908# Whether or not to add -lc for building shared libraries.
22909build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 22910
9c60689e
DWT
22911# Whether or not to disallow shared libs when runtime libs are static.
22912allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 22913
9c60689e
DWT
22914# Compiler flag to allow reflexive dlopens.
22915export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 22916
9c60689e
DWT
22917# Compiler flag to generate shared objects directly from archives.
22918whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 22919
9c60689e
DWT
22920# Whether the compiler copes with passing no objects directly.
22921compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 22922
9c60689e
DWT
22923# Create an old-style archive from a shared archive.
22924old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 22925
9c60689e
DWT
22926# Create a temporary old-style archive to link instead of a shared archive.
22927old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 22928
9c60689e
DWT
22929# Commands used to build a shared archive.
22930archive_cmds=$lt_archive_cmds_CXX
22931archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 22932
9c60689e
DWT
22933# Commands used to build a loadable module if different from building
22934# a shared archive.
22935module_cmds=$lt_module_cmds_CXX
22936module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 22937
9c60689e
DWT
22938# Whether we are building with GNU ld or not.
22939with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 22940
9c60689e
DWT
22941# Flag that allows shared libraries with undefined symbols to be built.
22942allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 22943
9c60689e
DWT
22944# Flag that enforces no undefined symbols.
22945no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 22946
9c60689e
DWT
22947# Flag to hardcode \$libdir into a binary during linking.
22948# This must work even if \$libdir does not exist
22949hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 22950
9c60689e
DWT
22951# Whether we need a single "-rpath" flag with a separated argument.
22952hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 22953
9c60689e
DWT
22954# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22955# DIR into the resulting binary.
22956hardcode_direct=$hardcode_direct_CXX
6b66678a 22957
9c60689e
DWT
22958# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22959# DIR into the resulting binary and the resulting library dependency is
22960# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22961# library is relocated.
22962hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 22963
9c60689e
DWT
22964# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22965# into the resulting binary.
22966hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 22967
9c60689e
DWT
22968# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22969# into the resulting binary.
22970hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 22971
9c60689e
DWT
22972# Set to "yes" if building a shared library automatically hardcodes DIR
22973# into the library and all subsequent libraries and executables linked
22974# against it.
22975hardcode_automatic=$hardcode_automatic_CXX
6b66678a 22976
9c60689e
DWT
22977# Set to yes if linker adds runtime paths of dependent libraries
22978# to runtime path list.
22979inherit_rpath=$inherit_rpath_CXX
6b66678a 22980
9c60689e
DWT
22981# Whether libtool must link a program against all its dependency libraries.
22982link_all_deplibs=$link_all_deplibs_CXX
6b66678a 22983
9c60689e
DWT
22984# Set to "yes" if exported symbols are required.
22985always_export_symbols=$always_export_symbols_CXX
6b66678a 22986
9c60689e
DWT
22987# The commands to list exported symbols.
22988export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 22989
9c60689e
DWT
22990# Symbols that should not be listed in the preloaded symbols.
22991exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 22992
9c60689e
DWT
22993# Symbols that must always be exported.
22994include_expsyms=$lt_include_expsyms_CXX
6b66678a 22995
9c60689e
DWT
22996# Commands necessary for linking programs (against libraries) with templates.
22997prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 22998
ee134472
JF
22999# Commands necessary for finishing linking programs.
23000postlink_cmds=$lt_postlink_cmds_CXX
23001
9c60689e
DWT
23002# Specify filename containing input files.
23003file_list_spec=$lt_file_list_spec_CXX
dbadc56a 23004
9c60689e
DWT
23005# How to hardcode a shared library path into an executable.
23006hardcode_action=$hardcode_action_CXX
309b0535 23007
9c60689e
DWT
23008# The directories searched by this compiler when creating a shared library.
23009compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 23010
9c60689e
DWT
23011# Dependencies to place before and after the objects being linked to
23012# create a shared library.
23013predep_objects=$lt_predep_objects_CXX
23014postdep_objects=$lt_postdep_objects_CXX
23015predeps=$lt_predeps_CXX
23016postdeps=$lt_postdeps_CXX
309b0535 23017
9c60689e
DWT
23018# The library search path used internally by the compiler when linking
23019# a shared library.
23020compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23021
23022# ### END LIBTOOL TAG CONFIG: CXX
23023_LT_EOF
23024
23025 ;;
23026
23027 esac
23028done # for ac_tag
23029
23030
23031as_fn_exit 0
23032_ACEOF
23033ac_clean_files=$ac_clean_files_save
23034
23035test $ac_write_fail = 0 ||
12833ad8 23036 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23037
23038
23039# configure is writing to config.log, and then calls config.status.
23040# config.status does its own redirection, appending to config.log.
23041# Unfortunately, on DOS this fails, as config.log is still kept open
23042# by configure, so config.status won't be able to write to it; its
23043# output is simply discarded. So we exec the FD to /dev/null,
23044# effectively closing config.log, so it can be properly (re)opened and
23045# appended to by config.status. When coming back to configure, we
23046# need to make the FD available again.
23047if test "$no_create" != yes; then
23048 ac_cs_success=:
23049 ac_config_status_args=
23050 test "$silent" = yes &&
23051 ac_config_status_args="$ac_config_status_args --quiet"
23052 exec 5>/dev/null
23053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23054 exec 5>>config.log
23055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23056 # would make configure fail if this is the last instruction.
12833ad8 23057 $ac_cs_success || as_fn_exit 1
309b0535 23058fi
9c60689e
DWT
23059if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23061$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23062fi
23063