Add an empty Execute.cpp for Java support backend.
[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
39ed1631
JF
658CY_JAVA_FALSE
659CY_JAVA_TRUE
babf7fe8 660LTOBJECTIVEC
47aaa820 661GNUSTEP_CONFIG
c823f118 662CY_OBJECTIVEC
39ed1631
JF
663LTJAVA
664CY_JAVA
296ee9a6 665LTLIBFFI
309b0535 666LIBFFI_LIBS
35fa52c0 667LIBFFI_CFLAGS
a243b558
JF
668CY_EXECUTE_FALSE
669CY_EXECUTE_TRUE
a93f15c0
JF
670CY_CONSOLE_FALSE
671CY_CONSOLE_TRUE
babf7fe8 672LTJAVASCRIPTCORE
35fa52c0
DWT
673WEBKIT_LIBS
674WEBKIT_CFLAGS
7eda51e0 675CY_EXECUTE
abc804fa 676CY_ARCH
9228a43a 677CY_FILTERS
e9c9a47c 678GNUTAR
e9c9a47c
DWT
679GPERF
680FLEX
681BISON
682TIME
66170b30 683GIT
12833ad8
JF
684PKG_CONFIG_LIBDIR
685PKG_CONFIG_PATH
3fd51f51 686PKG_CONFIG
a243b558 687CXXCPP
9c60689e
DWT
688CPP
689OTOOL64
690OTOOL
691LIPO
692NMEDIT
693DSYMUTIL
ee134472 694MANIFEST_TOOL
9c60689e 695RANLIB
ee134472 696DLLTOOL
9c60689e
DWT
697OBJDUMP
698LN_S
699NM
700ac_ct_DUMPBIN
701DUMPBIN
702LD
703FGREP
704EGREP
705GREP
706SED
a243b558
JF
707host_os
708host_vendor
709host_cpu
710host
711build_os
712build_vendor
713build_cpu
714build
715LIBTOOL
a243b558
JF
716ac_ct_AR
717AR
718am__fastdepOBJCXX_FALSE
719am__fastdepOBJCXX_TRUE
720OBJCXXDEPMODE
721ac_ct_OBJCXX
722OBJCXXFLAGS
723OBJCXX
724am__fastdepCXX_FALSE
725am__fastdepCXX_TRUE
726CXXDEPMODE
a93f15c0
JF
727ac_ct_CXX
728CXXFLAGS
729CXX
730am__fastdepCC_FALSE
731am__fastdepCC_TRUE
732CCDEPMODE
66170b30
JF
733am__nodep
734AMDEPBACKSLASH
735AMDEP_FALSE
736AMDEP_TRUE
737am__quote
738am__include
739DEPDIR
35fa52c0
DWT
740OBJEXT
741EXEEXT
a93f15c0 742ac_ct_CC
35fa52c0
DWT
743CPPFLAGS
744LDFLAGS
a93f15c0
JF
745CFLAGS
746CC
babf7fe8
JF
747MAINT
748MAINTAINER_MODE_FALSE
749MAINTAINER_MODE_TRUE
66170b30
JF
750AM_BACKSLASH
751AM_DEFAULT_VERBOSITY
752AM_DEFAULT_V
753AM_V
754am__untar
755am__tar
756AMTAR
757am__leading_dot
758SET_MAKE
759AWK
760mkdir_p
761MKDIR_P
762INSTALL_STRIP_PROGRAM
763STRIP
764install_sh
765MAKEINFO
766AUTOHEADER
767AUTOMAKE
768AUTOCONF
769ACLOCAL
770VERSION
771PACKAGE
772CYGPATH_W
773am__isrc
774INSTALL_DATA
775INSTALL_SCRIPT
776INSTALL_PROGRAM
dbadc56a 777target_alias
c7aa54aa
DWT
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
796localstatedir
797sharedstatedir
798sysconfdir
799datadir
800datarootdir
801libexecdir
802sbindir
803bindir
804program_transform_name
805prefix
806exec_prefix
807PACKAGE_URL
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
814SHELL'
815ac_subst_files=''
816ac_user_opts='
817enable_option_checking
66170b30 818enable_silent_rules
babf7fe8 819enable_maintainer_mode
a243b558 820enable_dependency_tracking
9c60689e 821enable_static
549f29b5 822enable_shared
9c60689e
DWT
823with_pic
824enable_fast_install
35fa52c0 825with_gnu_ld
ee134472 826with_sysroot
9c60689e 827enable_libtool_lock
5053a6d1 828enable_javascript
a93f15c0 829enable_console
c7aa54aa
DWT
830'
831 ac_precious_vars='build_alias
832host_alias
dbadc56a 833target_alias
a93f15c0
JF
834CC
835CFLAGS
dbadc56a
DWT
836LDFLAGS
837LIBS
838CPPFLAGS
a93f15c0
JF
839CXX
840CXXFLAGS
a243b558
JF
841CCC
842OBJCXX
843OBJCXXFLAGS
9c60689e 844CPP
a243b558 845CXXCPP
3fd51f51 846PKG_CONFIG
12833ad8
JF
847PKG_CONFIG_PATH
848PKG_CONFIG_LIBDIR
e9c9a47c
DWT
849BISON
850FLEX
851GPERF
66170b30 852GNUTAR
35fa52c0
DWT
853WEBKIT_CFLAGS
854WEBKIT_LIBS
a667869d 855LIBFFI_CFLAGS
790e5246
DWT
856LIBFFI_LIBS
857GNUSTEP_CONFIG'
c7aa54aa
DWT
858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
12833ad8
JF
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
c7aa54aa
DWT
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 967 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972"enable_$ac_useropt"
973"*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 993 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1197 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202"with_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1213 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218"with_$ac_useropt"
1219"*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
12833ad8
JF
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
c7aa54aa
DWT
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1263 ;;
1264
1265 esac
1266done
1267
1268if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1270 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
12833ad8 1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
12833ad8 1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
c7aa54aa
DWT
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1327 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1329 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341$as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363else
1364 ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
12833ad8 1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1373 pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
12833ad8 1412 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451_ACEOF
1452
1453 cat <<\_ACEOF
35fa52c0 1454
66170b30
JF
1455Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
35fa52c0
DWT
1460System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of Cycript 0.9:";;
1469 esac
1470 cat <<\_ACEOF
1471
35fa52c0
DWT
1472Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
66170b30
JF
1481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
a243b558
JF
1485 --enable-static[=PKGS] build static libraries [default=no]
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
9c60689e 1489 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1490 --enable-javascript[=ENGINE]
790e5246 1491 use a JavaScript runtime (currently the only
b66977f1
DWT
1492 available option for ENGINE is JavaScriptCore)
1493 [default=yes]
a93f15c0 1494 --disable-console disable console
35fa52c0
DWT
1495
1496Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e
DWT
1500 both]
1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1502 --with-sysroot=DIR Search for dependent libraries within DIR
1503 (or the compiler's sysroot if not specified).
35fa52c0 1504
dbadc56a 1505Some influential environment variables:
a93f15c0
JF
1506 CC C compiler command
1507 CFLAGS C compiler flags
dbadc56a
DWT
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1511 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1512 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1513 CXX C++ compiler command
1514 CXXFLAGS C++ compiler flags
a243b558
JF
1515 OBJCXX Objective C++ compiler command
1516 OBJCXXFLAGS Objective C++ compiler flags
9c60689e 1517 CPP C preprocessor
a243b558 1518 CXXCPP C++ preprocessor
3fd51f51 1519 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1520 PKG_CONFIG_PATH
1521 directories to add to pkg-config's search path
1522 PKG_CONFIG_LIBDIR
1523 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1524 BISON GNU Project parser generator (yacc replacement)
1525 FLEX the fast lexical analyser generator
1526 GPERF perfect hash function generator
66170b30 1527 GNUTAR a very sticky lump of files
35fa52c0
DWT
1528 WEBKIT_CFLAGS
1529 C compiler flags for WEBKIT, overriding pkg-config
1530 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1531 GNUSTEP_CONFIG
1532 prints information about the current gnustep installation
dbadc56a
DWT
1533
1534Use these variables to override the choices made by `configure' or to help
1535it to find libraries and programs with nonstandard names/locations.
1536
c7aa54aa
DWT
1537Report bugs to <saurik@saurik.com>.
1538Cycript home page: <http://www.cycript.org/>.
1539_ACEOF
1540ac_status=$?
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1550
1551case "$ac_dir" in
1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553*)
1554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561esac
1562ac_abs_top_builddir=$ac_pwd
1563ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564# for backward compatibility:
1565ac_top_builddir=$ac_top_build_prefix
1566
1567case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580esac
1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1596fi
1597
1598test -n "$ac_init_help" && exit $ac_status
1599if $ac_init_version; then
1600 cat <<\_ACEOF
1601Cycript configure 0.9
53ba6704 1602generated by GNU Autoconf 2.69
c7aa54aa 1603
53ba6704 1604Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1605This configure script is free software; the Free Software Foundation
1606gives unlimited permission to copy, distribute and modify it.
66170b30
JF
1607
1608Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
1609_ACEOF
1610 exit
1611fi
1612
1613## ------------------------ ##
1614## Autoconf initialization. ##
1615## ------------------------ ##
dbadc56a 1616
a93f15c0
JF
1617# ac_fn_c_try_compile LINENO
1618# --------------------------
a243b558 1619# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1620ac_fn_c_try_compile ()
a243b558
JF
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1625case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
a93f15c0 1640 test -z "$ac_c_werror_flag" ||
a243b558
JF
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1643 ac_retval=0
1644else
1645 $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
a93f15c0 1653} # ac_fn_c_try_compile
a243b558 1654
a93f15c0
JF
1655# ac_fn_cxx_try_compile LINENO
1656# ----------------------------
a243b558 1657# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1658ac_fn_cxx_try_compile ()
a243b558
JF
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext
1662 if { { ac_try="$ac_compile"
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_compile") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
a93f15c0 1678 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1679 test ! -s conftest.err
1680 } && test -s conftest.$ac_objext; then :
1681 ac_retval=0
1682else
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687fi
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
a93f15c0 1691} # ac_fn_cxx_try_compile
a243b558 1692
a93f15c0
JF
1693# ac_fn_objcxx_try_compile LINENO
1694# -------------------------------
35fa52c0 1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1696ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
a93f15c0 1716 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
ee134472 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1727 as_fn_set_status $ac_retval
35fa52c0 1728
a93f15c0 1729} # ac_fn_objcxx_try_compile
35fa52c0
DWT
1730
1731# ac_fn_c_try_link LINENO
1732# -----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_link ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
53ba6704 1758 test -x conftest$ac_exeext
35fa52c0
DWT
1759 }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1773 as_fn_set_status $ac_retval
35fa52c0
DWT
1774
1775} # ac_fn_c_try_link
1776
9c60689e
DWT
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
dbadc56a
DWT
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
ee134472 1786if eval \${$3+:} false; then :
9c60689e
DWT
1787 $as_echo_n "(cached) " >&6
1788else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796else
1797 eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
ee134472 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1805
1806} # ac_fn_c_check_header_compile
1807
1808# ac_fn_c_try_cpp LINENO
1809# ----------------------
1810# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_cpp ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1815case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
9c60689e 1821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1829 test $ac_status = 0; } > conftest.i && {
9c60689e 1830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1831 test ! -s conftest.err
9c60689e 1832 }; then :
dbadc56a
DWT
1833 ac_retval=0
1834else
1835 $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
9c60689e 1838 ac_retval=1
dbadc56a 1839fi
ee134472 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1841 as_fn_set_status $ac_retval
dbadc56a 1842
9c60689e 1843} # ac_fn_c_try_cpp
35fa52c0
DWT
1844
1845# ac_fn_c_try_run LINENO
1846# ----------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848# that executables *can* be run.
1849ac_fn_c_try_run ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1883 as_fn_set_status $ac_retval
35fa52c0
DWT
1884
1885} # ac_fn_c_try_run
6b66678a 1886
9c60689e
DWT
1887# ac_fn_c_check_func LINENO FUNC VAR
1888# ----------------------------------
1889# Tests whether FUNC exists, setting the cache variable VAR accordingly
1890ac_fn_c_check_func ()
6b66678a
DWT
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
ee134472 1895if eval \${$3+:} false; then :
9c60689e 1896 $as_echo_n "(cached) " >&6
6b66678a 1897else
9c60689e
DWT
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h. */
1900/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1902#define $2 innocuous_$2
6b66678a 1903
9c60689e
DWT
1904/* System header to define __stub macros and hopefully few prototypes,
1905 which can conflict with char $2 (); below.
1906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907 <limits.h> exists even on freestanding compilers. */
1908
1909#ifdef __STDC__
1910# include <limits.h>
1911#else
1912# include <assert.h>
1913#endif
1914
1915#undef $2
1916
1917/* Override any GCC internal prototype to avoid an error.
1918 Use char because int might match the return type of a GCC
1919 builtin and then its argument prototype would still apply. */
1920#ifdef __cplusplus
1921extern "C"
1922#endif
1923char $2 ();
1924/* The GNU C library defines this for functions which it implements
1925 to always fail with ENOSYS. Some functions are actually named
1926 something starting with __ and the normal name is an alias. */
1927#if defined __stub_$2 || defined __stub___$2
1928choke me
1929#endif
1930
1931int
1932main ()
1933{
1934return $2 ();
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_link "$LINENO"; then :
1940 eval "$3=yes"
1941else
1942 eval "$3=no"
1943fi
1944rm -f core conftest.err conftest.$ac_objext \
1945 conftest$ac_exeext conftest.$ac_ext
6b66678a 1946fi
9c60689e
DWT
1947eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
ee134472 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1951
9c60689e 1952} # ac_fn_c_check_func
6b66678a 1953
9c60689e
DWT
1954# ac_fn_cxx_try_cpp LINENO
1955# ------------------------
1956# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1957ac_fn_cxx_try_cpp ()
1958{
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { { ac_try="$ac_cpp conftest.$ac_ext"
1961case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964esac
1965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966$as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1968 ac_status=$?
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1973 fi
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1975 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1977 test ! -s conftest.err
1978 }; then :
1979 ac_retval=0
1980else
1981 $as_echo "$as_me: failed program was:" >&5
1982sed 's/^/| /' conftest.$ac_ext >&5
1983
1984 ac_retval=1
1985fi
ee134472 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1987 as_fn_set_status $ac_retval
1988
1989} # ac_fn_cxx_try_cpp
1990
1991# ac_fn_cxx_try_link LINENO
1992# -------------------------
1993# Try to link conftest.$ac_ext, and return whether this succeeded.
1994ac_fn_cxx_try_link ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 rm -f conftest.$ac_objext conftest$ac_exeext
1998 if { { ac_try="$ac_link"
1999case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002esac
2003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004$as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_link") 2>conftest.err
2006 ac_status=$?
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2011 fi
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest$ac_exeext && {
2017 test "$cross_compiling" = yes ||
53ba6704 2018 test -x conftest$ac_exeext
9c60689e
DWT
2019 }; then :
2020 ac_retval=0
2021else
2022 $as_echo "$as_me: failed program was:" >&5
2023sed 's/^/| /' conftest.$ac_ext >&5
2024
2025 ac_retval=1
2026fi
2027 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2028 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2029 # interfere with the next link command; also delete a directory that is
2030 # left behind by Apple's compiler. We do this before executing the actions.
2031 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2033 as_fn_set_status $ac_retval
2034
2035} # ac_fn_cxx_try_link
2036
47aaa820
DWT
2037# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2038# ---------------------------------------------------------
2039# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2040# the include files in INCLUDES and setting the cache variable VAR
2041# accordingly.
2042ac_fn_cxx_check_header_mongrel ()
2043{
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2045 if eval \${$3+:} false; then :
47aaa820
DWT
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047$as_echo_n "checking for $2... " >&6; }
ee134472 2048if eval \${$3+:} false; then :
47aaa820
DWT
2049 $as_echo_n "(cached) " >&6
2050fi
2051eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054else
2055 # Is the header compilable?
2056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2057$as_echo_n "checking $2 usability... " >&6; }
2058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h. */
2060$4
2061#include <$2>
2062_ACEOF
2063if ac_fn_cxx_try_compile "$LINENO"; then :
2064 ac_header_compiler=yes
2065else
2066 ac_header_compiler=no
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2070$as_echo "$ac_header_compiler" >&6; }
2071
2072# Is the header present?
2073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2074$as_echo_n "checking $2 presence... " >&6; }
2075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h. */
2077#include <$2>
2078_ACEOF
2079if ac_fn_cxx_try_cpp "$LINENO"; then :
2080 ac_header_preproc=yes
2081else
2082 ac_header_preproc=no
2083fi
12833ad8 2084rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2086$as_echo "$ac_header_preproc" >&6; }
2087
2088# So? What about this header?
2089case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2090 yes:no: )
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2092$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2094$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 ;;
2096 no:yes:* )
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2098$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2100$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2102$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2104$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2107( $as_echo "## -------------------------------- ##
47aaa820 2108## Report this to saurik@saurik.com ##
12833ad8 2109## -------------------------------- ##"
47aaa820
DWT
2110 ) | sed "s/^/$as_me: WARNING: /" >&2
2111 ;;
2112esac
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114$as_echo_n "checking for $2... " >&6; }
ee134472 2115if eval \${$3+:} false; then :
47aaa820
DWT
2116 $as_echo_n "(cached) " >&6
2117else
2118 eval "$3=\$ac_header_compiler"
2119fi
2120eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123fi
ee134472 2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2125
2126} # ac_fn_cxx_check_header_mongrel
2127
c823f118
DWT
2128# ac_fn_objcxx_try_link LINENO
2129# ----------------------------
2130# Try to link conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_objcxx_try_link ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 rm -f conftest.$ac_objext conftest$ac_exeext
2135 if { { ac_try="$ac_link"
2136case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139esac
2140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141$as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_link") 2>conftest.err
2143 ac_status=$?
2144 if test -s conftest.err; then
2145 grep -v '^ *+' conftest.err >conftest.er1
2146 cat conftest.er1 >&5
2147 mv -f conftest.er1 conftest.err
2148 fi
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; } && {
2151 test -z "$ac_objcxx_werror_flag" ||
2152 test ! -s conftest.err
2153 } && test -s conftest$ac_exeext && {
2154 test "$cross_compiling" = yes ||
53ba6704 2155 test -x conftest$ac_exeext
c823f118
DWT
2156 }; then :
2157 ac_retval=0
2158else
2159 $as_echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 ac_retval=1
2163fi
2164 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2165 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2166 # interfere with the next link command; also delete a directory that is
2167 # left behind by Apple's compiler. We do this before executing the actions.
2168 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2170 as_fn_set_status $ac_retval
2171
2172} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2173cat >config.log <<_ACEOF
2174This file contains any messages produced by compilers while
2175running configure, to aid debugging if configure makes a mistake.
2176
2177It was created by Cycript $as_me 0.9, which was
53ba6704 2178generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2179
2180 $ $0 $@
2181
2182_ACEOF
2183exec 5>>config.log
2184{
2185cat <<_ASUNAME
2186## --------- ##
2187## Platform. ##
2188## --------- ##
2189
2190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2191uname -m = `(uname -m) 2>/dev/null || echo unknown`
2192uname -r = `(uname -r) 2>/dev/null || echo unknown`
2193uname -s = `(uname -s) 2>/dev/null || echo unknown`
2194uname -v = `(uname -v) 2>/dev/null || echo unknown`
2195
2196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2198
2199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2202/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2206
2207_ASUNAME
2208
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 $as_echo "PATH: $as_dir"
2215 done
2216IFS=$as_save_IFS
2217
2218} >&5
2219
2220cat >&5 <<_ACEOF
2221
2222
2223## ----------- ##
2224## Core tests. ##
2225## ----------- ##
2226
2227_ACEOF
2228
2229
2230# Keep a trace of the command line.
2231# Strip out --no-create and --no-recursion so they do not pile up.
2232# Strip out --silent because we don't want to record it for future runs.
2233# Also quote any args containing shell meta-characters.
2234# Make two passes to allow for proper duplicate-argument suppression.
2235ac_configure_args=
2236ac_configure_args0=
2237ac_configure_args1=
2238ac_must_keep_next=false
2239for ac_pass in 1 2
2240do
2241 for ac_arg
2242 do
2243 case $ac_arg in
2244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2246 | -silent | --silent | --silen | --sile | --sil)
2247 continue ;;
2248 *\'*)
2249 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 esac
2251 case $ac_pass in
2252 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2253 2)
2254 as_fn_append ac_configure_args1 " '$ac_arg'"
2255 if test $ac_must_keep_next = true; then
2256 ac_must_keep_next=false # Got value, back to normal.
2257 else
2258 case $ac_arg in
2259 *=* | --config-cache | -C | -disable-* | --disable-* \
2260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2262 | -with-* | --with-* | -without-* | --without-* | --x)
2263 case "$ac_configure_args0 " in
2264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265 esac
2266 ;;
2267 -* ) ac_must_keep_next=true ;;
2268 esac
2269 fi
2270 as_fn_append ac_configure_args " '$ac_arg'"
2271 ;;
2272 esac
2273 done
2274done
2275{ ac_configure_args0=; unset ac_configure_args0;}
2276{ ac_configure_args1=; unset ac_configure_args1;}
2277
2278# When interrupted or exit'd, cleanup temporary files, and complete
2279# config.log. We remove comments because anyway the quotes in there
2280# would cause problems or look ugly.
2281# WARNING: Use '\'' to represent an apostrophe within the trap.
2282# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2283trap 'exit_status=$?
2284 # Save into config.log some information that might help in debugging.
2285 {
2286 echo
2287
12833ad8 2288 $as_echo "## ---------------- ##
c7aa54aa 2289## Cache variables. ##
12833ad8 2290## ---------------- ##"
c7aa54aa
DWT
2291 echo
2292 # The following way of writing the cache mishandles newlines in values,
2293(
2294 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2295 eval ac_val=\$$ac_var
2296 case $ac_val in #(
2297 *${as_nl}*)
2298 case $ac_var in #(
2299 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2300$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 esac
2302 case $ac_var in #(
2303 _ | IFS | as_nl) ;; #(
2304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2305 *) { eval $ac_var=; unset $ac_var;} ;;
2306 esac ;;
2307 esac
2308 done
2309 (set) 2>&1 |
2310 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2311 *${as_nl}ac_space=\ *)
2312 sed -n \
2313 "s/'\''/'\''\\\\'\'''\''/g;
2314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 ;; #(
2316 *)
2317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2318 ;;
2319 esac |
2320 sort
2321)
2322 echo
2323
12833ad8 2324 $as_echo "## ----------------- ##
c7aa54aa 2325## Output variables. ##
12833ad8 2326## ----------------- ##"
c7aa54aa
DWT
2327 echo
2328 for ac_var in $ac_subst_vars
2329 do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2337
2338 if test -n "$ac_subst_files"; then
12833ad8 2339 $as_echo "## ------------------- ##
c7aa54aa 2340## File substitutions. ##
12833ad8 2341## ------------------- ##"
c7aa54aa
DWT
2342 echo
2343 for ac_var in $ac_subst_files
2344 do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2352 fi
2353
2354 if test -s confdefs.h; then
12833ad8 2355 $as_echo "## ----------- ##
c7aa54aa 2356## confdefs.h. ##
12833ad8 2357## ----------- ##"
c7aa54aa
DWT
2358 echo
2359 cat confdefs.h
2360 echo
2361 fi
2362 test "$ac_signal" != 0 &&
2363 $as_echo "$as_me: caught signal $ac_signal"
2364 $as_echo "$as_me: exit $exit_status"
2365 } >&5
2366 rm -f core *.core core.conftest.* &&
2367 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2368 exit $exit_status
2369' 0
2370for ac_signal in 1 2 13 15; do
2371 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2372done
2373ac_signal=0
2374
2375# confdefs.h avoids OS command line length limits that DEFS can exceed.
2376rm -f -r conftest* confdefs.h
2377
2378$as_echo "/* confdefs.h */" > confdefs.h
2379
2380# Predefined preprocessor variables.
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_NAME "$PACKAGE_NAME"
2384_ACEOF
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2388_ACEOF
2389
2390cat >>confdefs.h <<_ACEOF
2391#define PACKAGE_VERSION "$PACKAGE_VERSION"
2392_ACEOF
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_STRING "$PACKAGE_STRING"
2396_ACEOF
2397
2398cat >>confdefs.h <<_ACEOF
2399#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2400_ACEOF
2401
2402cat >>confdefs.h <<_ACEOF
2403#define PACKAGE_URL "$PACKAGE_URL"
2404_ACEOF
2405
2406
2407# Let the site file select an alternate cache file if it wants to.
2408# Prefer an explicitly selected file to automatically selected ones.
2409ac_site_file1=NONE
2410ac_site_file2=NONE
2411if test -n "$CONFIG_SITE"; then
12833ad8
JF
2412 # We do not want a PATH search for config.site.
2413 case $CONFIG_SITE in #((
2414 -*) ac_site_file1=./$CONFIG_SITE;;
2415 */*) ac_site_file1=$CONFIG_SITE;;
2416 *) ac_site_file1=./$CONFIG_SITE;;
2417 esac
c7aa54aa
DWT
2418elif test "x$prefix" != xNONE; then
2419 ac_site_file1=$prefix/share/config.site
2420 ac_site_file2=$prefix/etc/config.site
2421else
2422 ac_site_file1=$ac_default_prefix/share/config.site
2423 ac_site_file2=$ac_default_prefix/etc/config.site
2424fi
2425for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426do
2427 test "x$ac_site_file" = xNONE && continue
9c60689e 2428 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2430$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2431 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2432 . "$ac_site_file" \
2433 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435as_fn_error $? "failed to load site script $ac_site_file
ee134472 2436See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2437 fi
2438done
2439
2440if test -r "$cache_file"; then
9c60689e
DWT
2441 # Some versions of bash will fail to source /dev/null (special files
2442 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2443 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2445$as_echo "$as_me: loading cache $cache_file" >&6;}
2446 case $cache_file in
2447 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2448 *) . "./$cache_file";;
2449 esac
2450 fi
2451else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2453$as_echo "$as_me: creating cache $cache_file" >&6;}
2454 >$cache_file
2455fi
2456
2457# Check that the precious variables saved in the cache have kept the same
2458# value.
2459ac_cache_corrupted=false
2460for ac_var in $ac_precious_vars; do
2461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2462 eval ac_new_set=\$ac_env_${ac_var}_set
2463 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2464 eval ac_new_val=\$ac_env_${ac_var}_value
2465 case $ac_old_set,$ac_new_set in
2466 set,)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2468$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,set)
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2472$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2474 ,);;
2475 *)
2476 if test "x$ac_old_val" != "x$ac_new_val"; then
2477 # differences in whitespace do not lead to failure.
2478 ac_old_val_w=`echo x $ac_old_val`
2479 ac_new_val_w=`echo x $ac_new_val`
2480 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2482$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2483 ac_cache_corrupted=:
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2486$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2487 eval $ac_var=\$ac_old_val
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2490$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2492$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 fi;;
2494 esac
2495 # Pass precious variables to config.status.
2496 if test "$ac_new_set" = set; then
2497 case $ac_new_val in
2498 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2499 *) ac_arg=$ac_var=$ac_new_val ;;
2500 esac
2501 case " $ac_configure_args " in
2502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2503 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2504 esac
2505 fi
2506done
2507if $ac_cache_corrupted; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2511$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2512 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2513fi
2514## -------------------- ##
2515## Main body of script. ##
2516## -------------------- ##
2517
2518ac_ext=c
2519ac_cpp='$CPP $CPPFLAGS'
2520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
2524
66170b30
JF
2525
2526
35fa52c0 2527
6b66678a
DWT
2528ac_aux_dir=
2529for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2530 if 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/install.sh"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/install.sh -c"
2537 break
2538 elif test -f "$ac_dir/shtool"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/shtool install -c"
2541 break
2542 fi
6b66678a
DWT
2543done
2544if test -z "$ac_aux_dir"; then
12833ad8 2545 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2546fi
2547
2548# These three variables are undocumented and unsupported,
2549# and are intended to be withdrawn in a future Autoconf release.
2550# They can cause serious problems if a builder's source tree is in a directory
2551# whose full name contains unusual characters.
2552ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2553ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2554ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2555
2556
9c60689e 2557
296ee9a6
JF
2558ac_config_headers="$ac_config_headers config.h"
2559
9c60689e 2560
a93f15c0 2561am__api_version='1.14'
9c60689e 2562
66170b30
JF
2563# Find a good install program. We prefer a C program (faster),
2564# so one script is as good as another. But avoid the broken or
2565# incompatible versions:
2566# SysV /etc/install, /usr/sbin/install
2567# SunOS /usr/etc/install
2568# IRIX /sbin/install
2569# AIX /bin/install
2570# AmigaOS /C/install, which installs bootblocks on floppy discs
2571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574# OS/2's system install, which has a completely different semantic
2575# ./install, which can be erroneously created by make from ./install.sh.
2576# Reject install programs that cannot install multiple files.
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2578$as_echo_n "checking for a BSD-compatible install... " >&6; }
2579if test -z "$INSTALL"; then
2580if ${ac_cv_path_install+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 # Account for people who put trailing slashes in PATH elements.
2589case $as_dir/ in #((
2590 ./ | .// | /[cC]/* | \
2591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593 /usr/ucb/* ) ;;
2594 *)
2595 # OSF1 and SCO ODT 3.0 have their own names for install.
2596 # Don't use installbsd from OSF since it installs stuff as root
2597 # by default.
2598 for ac_prog in ginstall scoinst install; do
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2601 if test $ac_prog = install &&
2602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # AIX install. It has an incompatible calling convention.
2604 :
2605 elif test $ac_prog = install &&
2606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607 # program-specific install script used by HP pwplus--don't use.
2608 :
2609 else
2610 rm -rf conftest.one conftest.two conftest.dir
2611 echo one > conftest.one
2612 echo two > conftest.two
2613 mkdir conftest.dir
2614 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2615 test -s conftest.one && test -s conftest.two &&
2616 test -s conftest.dir/conftest.one &&
2617 test -s conftest.dir/conftest.two
2618 then
2619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2620 break 3
2621 fi
2622 fi
2623 fi
2624 done
2625 done
2626 ;;
2627esac
9c60689e 2628
66170b30
JF
2629 done
2630IFS=$as_save_IFS
9c60689e 2631
66170b30 2632rm -rf conftest.one conftest.two conftest.dir
9c60689e 2633
66170b30
JF
2634fi
2635 if test "${ac_cv_path_install+set}" = set; then
2636 INSTALL=$ac_cv_path_install
2637 else
2638 # As a last resort, use the slow shell script. Don't cache a
2639 # value for INSTALL within a source directory, because that will
2640 # break other packages using the cache if that directory is
2641 # removed, or if the value is a relative name.
2642 INSTALL=$ac_install_sh
2643 fi
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2646$as_echo "$INSTALL" >&6; }
9c60689e 2647
66170b30
JF
2648# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2649# It thinks the first close brace ends the variable substitution.
2650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2651
66170b30 2652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2653
66170b30 2654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2655
66170b30
JF
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2657$as_echo_n "checking whether build environment is sane... " >&6; }
2658# Reject unsafe characters in $srcdir or the absolute working directory
2659# name. Accept space and tab only in the latter.
2660am_lf='
2661'
2662case `pwd` in
2663 *[\\\"\#\$\&\'\`$am_lf]*)
2664 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2665esac
2666case $srcdir in
2667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2668 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2669esac
9c60689e 2670
66170b30
JF
2671# Do 'set' in a subshell so we don't clobber the current shell's
2672# arguments. Must try -L first in case configure is actually a
2673# symlink; some systems play weird games with the mod time of symlinks
2674# (eg FreeBSD returns the mod time of the symlink's containing
2675# directory).
2676if (
2677 am_has_slept=no
2678 for am_try in 1 2; do
2679 echo "timestamp, slept: $am_has_slept" > conftest.file
2680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2681 if test "$*" = "X"; then
2682 # -L didn't work.
2683 set X `ls -t "$srcdir/configure" conftest.file`
2684 fi
2685 if test "$*" != "X $srcdir/configure conftest.file" \
2686 && test "$*" != "X conftest.file $srcdir/configure"; then
2687
2688 # If neither matched, then we have a broken ls. This can happen
2689 # if, for instance, CONFIG_SHELL is bash and it inherits a
2690 # broken ls alias from the environment. This has actually
2691 # happened. Such a system could not be considered "sane".
2692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2693 alias in your environment" "$LINENO" 5
2694 fi
2695 if test "$2" = conftest.file || test $am_try -eq 2; then
2696 break
2697 fi
2698 # Just in case.
2699 sleep 1
2700 am_has_slept=yes
2701 done
2702 test "$2" = conftest.file
2703 )
2704then
2705 # Ok.
2706 :
2707else
2708 as_fn_error $? "newly created file is older than distributed files!
2709Check your system clock" "$LINENO" 5
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712$as_echo "yes" >&6; }
2713# If we didn't sleep, we still need to ensure time stamps of config.status and
2714# generated files are strictly newer.
2715am_sleep_pid=
2716if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2717 ( sleep 1 ) &
2718 am_sleep_pid=$!
2719fi
2720
2721rm -f conftest.file
2722
2723test "$program_prefix" != NONE &&
2724 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2725# Use a double $ so make ignores it.
2726test "$program_suffix" != NONE &&
2727 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2728# Double any \ or $.
2729# By default was `s,x,x', remove it if useless.
2730ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2731program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2732
2733# expand $ac_aux_dir to an absolute path
2734am_aux_dir=`cd $ac_aux_dir && pwd`
2735
2736if test x"${MISSING+set}" != xset; then
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2740 *)
2741 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2742 esac
2743fi
2744# Use eval to expand $SHELL
2745if eval "$MISSING --is-lightweight"; then
2746 am_missing_run="$MISSING "
2747else
2748 am_missing_run=
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2750$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2751fi
9c60689e 2752
66170b30
JF
2753if test x"${install_sh}" != xset; then
2754 case $am_aux_dir in
2755 *\ * | *\ *)
2756 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757 *)
2758 install_sh="\${SHELL} $am_aux_dir/install-sh"
2759 esac
2760fi
9c60689e 2761
66170b30
JF
2762# Installed binaries are usually stripped using 'strip' when the user
2763# run "make install-strip". However 'strip' might not be the right
2764# tool to use in cross-compilation environments, therefore Automake
2765# will honor the 'STRIP' environment variable to overrule this program.
2766if test "$cross_compiling" != no; then
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2769set dummy ${ac_tool_prefix}strip; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if ${ac_cv_prog_STRIP+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 if test -n "$STRIP"; then
2776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790 done
2791IFS=$as_save_IFS
9c60689e 2792
66170b30
JF
2793fi
2794fi
2795STRIP=$ac_cv_prog_STRIP
2796if test -n "$STRIP"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2798$as_echo "$STRIP" >&6; }
2799else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
9c60689e 2803
9c60689e 2804
66170b30
JF
2805fi
2806if test -z "$ac_cv_prog_STRIP"; then
2807 ac_ct_STRIP=$STRIP
2808 # Extract the first word of "strip", so it can be a program name with args.
2809set dummy strip; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
2812if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2813 $as_echo_n "(cached) " >&6
2814else
66170b30
JF
2815 if test -n "$ac_ct_STRIP"; then
2816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_ac_ct_STRIP="strip"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830 done
2831IFS=$as_save_IFS
9c60689e
DWT
2832
2833fi
66170b30
JF
2834fi
2835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2836if test -n "$ac_ct_STRIP"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2838$as_echo "$ac_ct_STRIP" >&6; }
2839else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841$as_echo "no" >&6; }
2842fi
2843
2844 if test "x$ac_ct_STRIP" = x; then
2845 STRIP=":"
2846 else
2847 case $cross_compiling:$ac_tool_warned in
2848yes:)
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851ac_tool_warned=yes ;;
9c60689e 2852esac
66170b30
JF
2853 STRIP=$ac_ct_STRIP
2854 fi
2855else
2856 STRIP="$ac_cv_prog_STRIP"
2857fi
9c60689e 2858
66170b30
JF
2859fi
2860INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2861
66170b30
JF
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2863$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2864if test -z "$MKDIR_P"; then
2865 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2866 $as_echo_n "(cached) " >&6
2867else
66170b30
JF
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_prog in mkdir gmkdir; do
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2876 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2877 'mkdir (GNU coreutils) '* | \
2878 'mkdir (coreutils) '* | \
2879 'mkdir (fileutils) '4.1*)
2880 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2881 break 3;;
2882 esac
2883 done
2884 done
2885 done
2886IFS=$as_save_IFS
2887
2888fi
2889
2890 test -d ./--version && rmdir ./--version
2891 if test "${ac_cv_path_mkdir+set}" = set; then
2892 MKDIR_P="$ac_cv_path_mkdir -p"
2893 else
2894 # As a last resort, use the slow shell script. Don't cache a
2895 # value for MKDIR_P within a source directory, because that will
2896 # break other packages using the cache if that directory is
2897 # removed, or if the value is a relative name.
2898 MKDIR_P="$ac_install_sh -d"
2899 fi
2900fi
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2902$as_echo "$MKDIR_P" >&6; }
2903
2904for ac_prog in gawk mawk nawk awk
2905do
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907set dummy $ac_prog; ac_word=$2
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909$as_echo_n "checking for $ac_word... " >&6; }
2910if ${ac_cv_prog_AWK+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912else
2913 if test -n "$AWK"; then
2914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2915else
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_AWK="$ac_prog"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927done
2928 done
2929IFS=$as_save_IFS
2930
2931fi
2932fi
2933AWK=$ac_cv_prog_AWK
2934if test -n "$AWK"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2936$as_echo "$AWK" >&6; }
2937else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939$as_echo "no" >&6; }
2940fi
2941
2942
2943 test -n "$AWK" && break
2944done
2945
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2947$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2948set x ${MAKE-make}
2949ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2950if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952else
2953 cat >conftest.make <<\_ACEOF
2954SHELL = /bin/sh
2955all:
2956 @echo '@@@%%%=$(MAKE)=@@@%%%'
2957_ACEOF
2958# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2959case `${MAKE-make} -f conftest.make 2>/dev/null` in
2960 *@@@%%%=?*=@@@%%%*)
2961 eval ac_cv_prog_make_${ac_make}_set=yes;;
2962 *)
2963 eval ac_cv_prog_make_${ac_make}_set=no;;
2964esac
2965rm -f conftest.make
2966fi
2967if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969$as_echo "yes" >&6; }
2970 SET_MAKE=
2971else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974 SET_MAKE="MAKE=${MAKE-make}"
2975fi
2976
2977rm -rf .tst 2>/dev/null
2978mkdir .tst 2>/dev/null
2979if test -d .tst; then
2980 am__leading_dot=.
2981else
2982 am__leading_dot=_
2983fi
2984rmdir .tst 2>/dev/null
2985
2986# Check whether --enable-silent-rules was given.
2987if test "${enable_silent_rules+set}" = set; then :
2988 enableval=$enable_silent_rules;
2989fi
2990
2991case $enable_silent_rules in # (((
2992 yes) AM_DEFAULT_VERBOSITY=0;;
2993 no) AM_DEFAULT_VERBOSITY=1;;
2994 *) AM_DEFAULT_VERBOSITY=1;;
2995esac
2996am_make=${MAKE-make}
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2998$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2999if ${am_cv_make_support_nested_variables+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001else
3002 if $as_echo 'TRUE=$(BAR$(V))
3003BAR0=false
3004BAR1=true
3005V=1
3006am__doit:
3007 @$(TRUE)
3008.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3009 am_cv_make_support_nested_variables=yes
3010else
3011 am_cv_make_support_nested_variables=no
3012fi
3013fi
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3015$as_echo "$am_cv_make_support_nested_variables" >&6; }
3016if test $am_cv_make_support_nested_variables = yes; then
3017 AM_V='$(V)'
3018 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3019else
3020 AM_V=$AM_DEFAULT_VERBOSITY
3021 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3022fi
3023AM_BACKSLASH='\'
3024
3025if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027 # is not polluted with repeated "-I."
3028 am__isrc=' -I$(srcdir)'
3029 # test to see if srcdir already configured
3030 if test -f $srcdir/config.status; then
3031 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3032 fi
3033fi
3034
3035# test whether we have cygpath
3036if test -z "$CYGPATH_W"; then
3037 if (cygpath --version) >/dev/null 2>/dev/null; then
3038 CYGPATH_W='cygpath -w'
3039 else
3040 CYGPATH_W=echo
3041 fi
3042fi
3043
3044
3045# Define the identity of the package.
3046 PACKAGE='cycript'
3047 VERSION='0.9'
3048
3049
3050cat >>confdefs.h <<_ACEOF
3051#define PACKAGE "$PACKAGE"
3052_ACEOF
3053
3054
3055cat >>confdefs.h <<_ACEOF
3056#define VERSION "$VERSION"
3057_ACEOF
3058
3059# Some tools Automake needs.
3060
3061ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062
3063
3064AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065
3066
3067AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068
3069
3070AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071
3072
3073MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074
3075# For better backward compatibility. To be removed once Automake 1.9.x
3076# dies out for good. For more background, see:
3077# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3078# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3079mkdir_p='$(MKDIR_P)'
3080
3081# We need awk for the "check" target. The system "awk" is bad on
3082# some platforms.
3083# Always define AMTAR for backward compatibility. Yes, it's still used
3084# in the wild :-( We should find a proper way to deprecate it ...
3085AMTAR='$${TAR-tar}'
3086
a93f15c0
JF
3087
3088# We'll loop over all known methods to create a tar archive until one works.
3089_am_tools='gnutar pax cpio none'
3090
66170b30
JF
3091am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3092
3093
3094
3095
3096
66170b30 3097
a93f15c0
JF
3098# POSIX will say in a future version that running "rm -f" with no argument
3099# is OK; and we want to be able to make that assumption in our Makefile
3100# recipes. So use an aggressive probe to check that the usage we want is
3101# actually supported "in the wild" to an acceptable degree.
3102# See automake bug#10828.
3103# To make any issue more visible, cause the running configure to be aborted
3104# by default if the 'rm' program in use doesn't match our expectations; the
3105# user can still override this though.
3106if rm -f && rm -fr && rm -rf; then : OK; else
3107 cat >&2 <<'END'
3108Oops!
3109
3110Your 'rm' program seems unable to run without file operands specified
3111on the command line, even when the '-f' option is present. This is contrary
3112to the behaviour of most rm programs out there, and not conforming with
3113the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3114
3115Please tell bug-automake@gnu.org about your system, including the value
3116of your $PATH and any error possibly output before this message. This
3117can help us improve future automake versions.
3118
3119END
3120 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3121 echo 'Configuration will proceed anyway, since you have set the' >&2
3122 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3123 echo >&2
3124 else
3125 cat >&2 <<'END'
3126Aborting the configuration process, to ensure you take notice of the issue.
3127
3128You can download and install GNU coreutils to get an 'rm' implementation
3129that behaves properly: <http://www.gnu.org/software/coreutils/>.
3130
3131If you want to complete the configuration process using your problematic
3132'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3133to "yes", and re-run configure.
3134
3135END
3136 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3137 fi
3138fi
3139
babf7fe8
JF
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3141$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3142 # Check whether --enable-maintainer-mode was given.
3143if test "${enable_maintainer_mode+set}" = set; then :
3144 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3145else
3146 USE_MAINTAINER_MODE=no
3147fi
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3150$as_echo "$USE_MAINTAINER_MODE" >&6; }
3151 if test $USE_MAINTAINER_MODE = yes; then
3152 MAINTAINER_MODE_TRUE=
3153 MAINTAINER_MODE_FALSE='#'
3154else
3155 MAINTAINER_MODE_TRUE='#'
3156 MAINTAINER_MODE_FALSE=
3157fi
3158
3159 MAINT=$MAINTAINER_MODE_TRUE
3160
3161
3162
a93f15c0
JF
3163ac_ext=c
3164ac_cpp='$CPP $CPPFLAGS'
3165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168if test -n "$ac_tool_prefix"; then
3169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3170set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3173if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3174 $as_echo_n "(cached) " >&6
3175else
a93f15c0
JF
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3186 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190done
3191 done
3192IFS=$as_save_IFS
3193
3194fi
3195fi
a93f15c0
JF
3196CC=$ac_cv_prog_CC
3197if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199$as_echo "$CC" >&6; }
35fa52c0
DWT
3200else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203fi
3204
3205
35fa52c0 3206fi
a93f15c0
JF
3207if test -z "$ac_cv_prog_CC"; then
3208 ac_ct_CC=$CC
3209 # Extract the first word of "gcc", so it can be a program name with args.
3210set dummy gcc; ac_word=$2
35fa52c0
DWT
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3213if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3214 $as_echo_n "(cached) " >&6
3215else
a93f15c0
JF
3216 if test -n "$ac_ct_CC"; then
3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3218else
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3226 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230done
3231 done
3232IFS=$as_save_IFS
3233
3234fi
3235fi
a93f15c0
JF
3236ac_ct_CC=$ac_cv_prog_ac_ct_CC
3237if test -n "$ac_ct_CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3239$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3240else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243fi
3244
a93f15c0
JF
3245 if test "x$ac_ct_CC" = x; then
3246 CC=""
35fa52c0
DWT
3247 else
3248 case $cross_compiling:$ac_tool_warned in
3249yes:)
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3252ac_tool_warned=yes ;;
3253esac
a93f15c0 3254 CC=$ac_ct_CC
35fa52c0 3255 fi
a93f15c0
JF
3256else
3257 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3258fi
3259
a93f15c0
JF
3260if test -z "$CC"; then
3261 if test -n "$ac_tool_prefix"; then
3262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3263set dummy ${ac_tool_prefix}cc; ac_word=$2
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265$as_echo_n "checking for $ac_word... " >&6; }
3266if ${ac_cv_prog_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268else
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_CC="${ac_tool_prefix}cc"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
a243b558 3282 fi
35fa52c0 3283done
a93f15c0
JF
3284 done
3285IFS=$as_save_IFS
35fa52c0 3286
a93f15c0
JF
3287fi
3288fi
3289CC=$ac_cv_prog_CC
3290if test -n "$CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292$as_echo "$CC" >&6; }
3293else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296fi
35fa52c0 3297
35fa52c0 3298
a93f15c0
JF
3299 fi
3300fi
3301if test -z "$CC"; then
3302 # Extract the first word of "cc", so it can be a program name with args.
3303set dummy cc; ac_word=$2
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305$as_echo_n "checking for $ac_word... " >&6; }
3306if ${ac_cv_prog_CC+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308else
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC="$CC" # Let the user override the test.
3311else
3312 ac_prog_rejected=no
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
35fa52c0 3315do
a93f15c0
JF
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3321 ac_prog_rejected=yes
3322 continue
3323 fi
3324 ac_cv_prog_CC="cc"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328done
3329 done
3330IFS=$as_save_IFS
3331
3332if test $ac_prog_rejected = yes; then
3333 # We found a bogon in the path, so make sure we never use it.
3334 set dummy $ac_cv_prog_CC
3335 shift
3336 if test $# != 0; then
3337 # We chose a different compiler from the bogus one.
3338 # However, it has the same basename, so the bogon will be chosen
3339 # first if we set CC to just the basename; use the full file name.
3340 shift
3341 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3342 fi
3343fi
3344fi
3345fi
3346CC=$ac_cv_prog_CC
3347if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349$as_echo "$CC" >&6; }
3350else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3353fi
3354
3355
3356fi
3357if test -z "$CC"; then
3358 if test -n "$ac_tool_prefix"; then
3359 for ac_prog in cl.exe
3360 do
3361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
3365if ${ac_cv_prog_CC+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367else
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3381 fi
3382done
3383 done
3384IFS=$as_save_IFS
3385
3386fi
3387fi
3388CC=$ac_cv_prog_CC
3389if test -n "$CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3391$as_echo "$CC" >&6; }
3392else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395fi
3396
3397
3398 test -n "$CC" && break
3399 done
3400fi
3401if test -z "$CC"; then
3402 ac_ct_CC=$CC
3403 for ac_prog in cl.exe
3404do
3405 # Extract the first word of "$ac_prog", so it can be a program name with args.
3406set dummy $ac_prog; ac_word=$2
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408$as_echo_n "checking for $ac_word... " >&6; }
3409if ${ac_cv_prog_ac_ct_CC+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411else
3412 if test -n "$ac_ct_CC"; then
3413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3414else
3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416for as_dir in $PATH
3417do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_ac_ct_CC="$ac_prog"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426done
3427 done
3428IFS=$as_save_IFS
3429
3430fi
3431fi
3432ac_ct_CC=$ac_cv_prog_ac_ct_CC
3433if test -n "$ac_ct_CC"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3435$as_echo "$ac_ct_CC" >&6; }
3436else
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438$as_echo "no" >&6; }
3439fi
3440
3441
3442 test -n "$ac_ct_CC" && break
3443done
3444
3445 if test "x$ac_ct_CC" = x; then
3446 CC=""
3447 else
3448 case $cross_compiling:$ac_tool_warned in
3449yes:)
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452ac_tool_warned=yes ;;
3453esac
3454 CC=$ac_ct_CC
3455 fi
3456fi
3457
3458fi
3459
3460
3461test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463as_fn_error $? "no acceptable C compiler found in \$PATH
3464See \`config.log' for more details" "$LINENO" 5; }
3465
3466# Provide some information about the compiler.
3467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3468set X $ac_compile
3469ac_compiler=$2
3470for ac_option in --version -v -V -qversion; do
3471 { { ac_try="$ac_compiler $ac_option >&5"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477$as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3479 ac_status=$?
3480 if test -s conftest.err; then
3481 sed '10a\
3482... rest of stderr output deleted ...
3483 10q' conftest.err >conftest.er1
3484 cat conftest.er1 >&5
3485 fi
3486 rm -f conftest.er1 conftest.err
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }
3489done
3490
3491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h. */
3493
3494int
3495main ()
3496{
3497
3498 ;
3499 return 0;
3500}
3501_ACEOF
3502ac_clean_files_save=$ac_clean_files
3503ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3504# Try to create an executable without -o first, disregard a.out.
3505# It will help us diagnose broken compilers, and finding out an intuition
3506# of exeext.
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3508$as_echo_n "checking whether the C compiler works... " >&6; }
3509ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3510
3511# The possible output files:
3512ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3513
3514ac_rmfiles=
3515for ac_file in $ac_files
3516do
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3520 esac
3521done
35fa52c0
DWT
3522rm -f $ac_rmfiles
3523
3524if { { ac_try="$ac_link_default"
3525case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link_default") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3536# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3537# in a Makefile. We should not override ac_cv_exeext if it was cached,
3538# so that the user can short-circuit this test for compilers unknown to
3539# Autoconf.
3540for ac_file in $ac_files ''
3541do
3542 test -f "$ac_file" || continue
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3545 ;;
3546 [ab].out )
3547 # We found the default executable, but exeext='' is most
3548 # certainly right.
3549 break;;
3550 *.* )
3551 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3552 then :; else
3553 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 fi
3555 # We set ac_cv_exeext here because the later test for it is not
3556 # safe: cross compilers may not add the suffix if given an `-o'
3557 # argument, so we may need to know it at that point already.
3558 # Even if this section looks crufty: it has the advantage of
3559 # actually working.
3560 break;;
3561 * )
3562 break;;
3563 esac
3564done
3565test "$ac_cv_exeext" = no && ac_cv_exeext=
3566
3567else
3568 ac_file=''
3569fi
35fa52c0 3570if test -z "$ac_file"; then :
9c60689e
DWT
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572$as_echo "no" >&6; }
3573$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3578as_fn_error 77 "C compiler cannot create executables
ee134472 3579See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3580else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3582$as_echo "yes" >&6; }
35fa52c0 3583fi
a93f15c0
JF
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3585$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3587$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3588ac_exeext=$ac_cv_exeext
3589
9c60689e 3590rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3591ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3593$as_echo_n "checking for suffix of executables... " >&6; }
3594if { { ac_try="$ac_link"
3595case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598esac
3599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600$as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_link") 2>&5
3602 ac_status=$?
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
3605 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3606# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3607# work properly (i.e., refer to `conftest.exe'), while it won't with
3608# `rm'.
3609for ac_file in conftest.exe conftest conftest.*; do
3610 test -f "$ac_file" || continue
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3614 break;;
3615 * ) break;;
3616 esac
3617done
3618else
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3621as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3622See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3623fi
9c60689e 3624rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3626$as_echo "$ac_cv_exeext" >&6; }
3627
3628rm -f conftest.$ac_ext
3629EXEEXT=$ac_cv_exeext
3630ac_exeext=$EXEEXT
9c60689e
DWT
3631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h. */
3633#include <stdio.h>
3634int
3635main ()
3636{
3637FILE *f = fopen ("conftest.out", "w");
3638 return ferror (f) || fclose (f) != 0;
3639
3640 ;
3641 return 0;
3642}
3643_ACEOF
3644ac_clean_files="$ac_clean_files conftest.out"
3645# Check that the compiler produces executables we can run. If not, either
3646# the compiler is broken, or we cross compile.
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3648$as_echo_n "checking whether we are cross compiling... " >&6; }
3649if test "$cross_compiling" != yes; then
3650 { { ac_try="$ac_link"
3651case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654esac
3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656$as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_link") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }
3661 if { ac_try='./conftest$ac_cv_exeext'
3662 { { case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667$as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_try") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; }; then
3672 cross_compiling=no
3673 else
3674 if test "$cross_compiling" = maybe; then
3675 cross_compiling=yes
3676 else
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3679as_fn_error $? "cannot run C compiled programs.
9c60689e 3680If you meant to cross compile, use \`--host'.
ee134472 3681See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3682 fi
3683 fi
3684fi
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3686$as_echo "$cross_compiling" >&6; }
3687
3688rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3689ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3691$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3692if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3693 $as_echo_n "(cached) " >&6
3694else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h. */
3697
3698int
3699main ()
3700{
3701
3702 ;
3703 return 0;
3704}
3705_ACEOF
3706rm -f conftest.o conftest.obj
3707if { { ac_try="$ac_compile"
3708case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713$as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compile") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 for ac_file in conftest.o conftest.obj conftest.*; do
3719 test -f "$ac_file" || continue;
3720 case $ac_file in
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3723 break;;
3724 esac
3725done
3726else
3727 $as_echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3732as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3733See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3734fi
3735rm -f conftest.$ac_cv_objext conftest.$ac_ext
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3738$as_echo "$ac_cv_objext" >&6; }
3739OBJEXT=$ac_cv_objext
3740ac_objext=$OBJEXT
a93f15c0
JF
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3742$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3743if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3744 $as_echo_n "(cached) " >&6
3745else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h. */
3748
3749int
3750main ()
3751{
3752#ifndef __GNUC__
3753 choke me
3754#endif
3755
3756 ;
3757 return 0;
3758}
3759_ACEOF
a93f15c0 3760if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3761 ac_compiler_gnu=yes
3762else
3763 ac_compiler_gnu=no
3764fi
3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3766ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3767
3768fi
a93f15c0
JF
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3770$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3771if test $ac_compiler_gnu = yes; then
a93f15c0 3772 GCC=yes
35fa52c0 3773else
a93f15c0 3774 GCC=
35fa52c0 3775fi
a93f15c0
JF
3776ac_test_CFLAGS=${CFLAGS+set}
3777ac_save_CFLAGS=$CFLAGS
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3779$as_echo_n "checking whether $CC accepts -g... " >&6; }
3780if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3781 $as_echo_n "(cached) " >&6
3782else
a93f15c0
JF
3783 ac_save_c_werror_flag=$ac_c_werror_flag
3784 ac_c_werror_flag=yes
3785 ac_cv_prog_cc_g=no
3786 CFLAGS="-g"
35fa52c0
DWT
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789
3790int
3791main ()
3792{
3793
3794 ;
3795 return 0;
3796}
3797_ACEOF
a93f15c0
JF
3798if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
35fa52c0 3800else
a93f15c0 3801 CFLAGS=""
35fa52c0
DWT
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h. */
3804
3805int
3806main ()
3807{
3808
3809 ;
3810 return 0;
3811}
3812_ACEOF
a93f15c0 3813if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3814
3815else
a93f15c0
JF
3816 ac_c_werror_flag=$ac_save_c_werror_flag
3817 CFLAGS="-g"
35fa52c0
DWT
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h. */
3820
3821int
3822main ()
3823{
3824
3825 ;
3826 return 0;
3827}
3828_ACEOF
a93f15c0
JF
3829if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3831fi
3832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833fi
3834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835fi
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3837 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3838fi
a93f15c0
JF
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3840$as_echo "$ac_cv_prog_cc_g" >&6; }
3841if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
35fa52c0 3846 else
a93f15c0 3847 CFLAGS="-g"
35fa52c0
DWT
3848 fi
3849else
a93f15c0
JF
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
35fa52c0 3852 else
a93f15c0 3853 CFLAGS=
35fa52c0
DWT
3854 fi
3855fi
a93f15c0
JF
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3857$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858if ${ac_cv_prog_cc_c89+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860else
3861 ac_cv_prog_cc_c89=no
3862ac_save_CC=$CC
3863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h. */
3865#include <stdarg.h>
3866#include <stdio.h>
3867struct stat;
3868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3869struct buf { int x; };
3870FILE * (*rcsopen) (struct buf *, struct stat *, int);
3871static char *e (p, i)
3872 char **p;
3873 int i;
3874{
3875 return p[i];
3876}
3877static char *f (char * (*g) (char **, int), char **p, ...)
3878{
3879 char *s;
3880 va_list v;
3881 va_start (v,p);
3882 s = g (p, va_arg (v,int));
3883 va_end (v);
3884 return s;
3885}
3886
3887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3888 function prototypes and stuff, but not '\xHH' hex character constants.
3889 These don't provoke an error unfortunately, instead are silently treated
3890 as 'x'. The following induces an error, until -std is added to get
3891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3892 array size at least. It's necessary to write '\x00'==0 to get something
3893 that's true only with -std. */
3894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3895
3896/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3897 inside strings and character constants. */
3898#define FOO(x) 'x'
3899int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3900
3901int test (int i, double x);
3902struct s1 {int (*f) (int a);};
3903struct s2 {int (*f) (double a);};
3904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905int argc;
3906char **argv;
3907int
3908main ()
3909{
3910return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3911 ;
3912 return 0;
3913}
3914_ACEOF
3915for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917do
3918 CC="$ac_save_CC $ac_arg"
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_c89=$ac_arg
3921fi
3922rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924done
3925rm -f conftest.$ac_ext
3926CC=$ac_save_CC
3927
3928fi
3929# AC_CACHE_VAL
3930case "x$ac_cv_prog_cc_c89" in
3931 x)
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3933$as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3936$as_echo "unsupported" >&6; } ;;
3937 *)
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3940$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941esac
3942if test "x$ac_cv_prog_cc_c89" != xno; then :
3943
3944fi
3945
3946ac_ext=c
3947ac_cpp='$CPP $CPPFLAGS'
3948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951
3952ac_ext=c
3953ac_cpp='$CPP $CPPFLAGS'
3954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3958$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3959if ${am_cv_prog_cc_c_o+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h. */
3964
3965int
3966main ()
3967{
3968
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973 # Make sure it works both with $CC and with simple cc.
3974 # Following AC_PROG_CC_C_O, we do the test twice because some
3975 # compilers refuse to overwrite an existing .o file with -o,
3976 # though they will create one.
3977 am_cv_prog_cc_c_o=yes
3978 for am_i in 1 2; do
3979 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3980 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } \
3984 && test -f conftest2.$ac_objext; then
3985 : OK
3986 else
3987 am_cv_prog_cc_c_o=no
3988 break
3989 fi
3990 done
3991 rm -f core conftest*
3992 unset am_i
3993fi
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3995$as_echo "$am_cv_prog_cc_c_o" >&6; }
3996if test "$am_cv_prog_cc_c_o" != yes; then
3997 # Losing compiler, so override with the script.
3998 # FIXME: It is wrong to rewrite CC.
3999 # But if we don't then we get into trouble of one sort or another.
4000 # A longer-term fix would be to have automake use am__CC in this case,
4001 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4002 CC="$am_aux_dir/compile $CC"
4003fi
a243b558
JF
4004ac_ext=c
4005ac_cpp='$CPP $CPPFLAGS'
4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4009
a243b558 4010DEPDIR="${am__leading_dot}deps"
35fa52c0 4011
a243b558 4012ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4013
35fa52c0 4014
a243b558
JF
4015am_make=${MAKE-make}
4016cat > confinc << 'END'
4017am__doit:
4018 @echo this is the am__doit target
4019.PHONY: am__doit
4020END
4021# If we don't find an include directive, just comment out the code.
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4023$as_echo_n "checking for style of include used by $am_make... " >&6; }
4024am__include="#"
4025am__quote=
4026_am_result=none
4027# First try GNU make style include.
4028echo "include confinc" > confmf
4029# Ignore all kinds of additional output from 'make'.
4030case `$am_make -s -f confmf 2> /dev/null` in #(
4031*the\ am__doit\ target*)
4032 am__include=include
4033 am__quote=
4034 _am_result=GNU
4035 ;;
4036esac
4037# Now try BSD make style include.
4038if test "$am__include" = "#"; then
4039 echo '.include "confinc"' > confmf
4040 case `$am_make -s -f confmf 2> /dev/null` in #(
4041 *the\ am__doit\ target*)
4042 am__include=.include
4043 am__quote="\""
4044 _am_result=BSD
4045 ;;
4046 esac
35fa52c0 4047fi
35fa52c0 4048
a243b558
JF
4049
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4051$as_echo "$_am_result" >&6; }
4052rm -f confinc confmf
4053
4054# Check whether --enable-dependency-tracking was given.
4055if test "${enable_dependency_tracking+set}" = set; then :
4056 enableval=$enable_dependency_tracking;
35fa52c0 4057fi
35fa52c0 4058
a243b558
JF
4059if test "x$enable_dependency_tracking" != xno; then
4060 am_depcomp="$ac_aux_dir/depcomp"
4061 AMDEPBACKSLASH='\'
4062 am__nodep='_no'
4063fi
4064 if test "x$enable_dependency_tracking" != xno; then
4065 AMDEP_TRUE=
4066 AMDEP_FALSE='#'
4067else
4068 AMDEP_TRUE='#'
4069 AMDEP_FALSE=
35fa52c0
DWT
4070fi
4071
35fa52c0 4072
a243b558 4073
a93f15c0 4074depcc="$CC" am_compiler_list=
66170b30
JF
4075
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4077$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4078if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4079 $as_echo_n "(cached) " >&6
4080else
4081 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4082 # We make a subdir and do the tests there. Otherwise we can end up
4083 # making bogus files that we don't know about and never remove. For
4084 # instance it was reported that on HP-UX the gcc test will end up
4085 # making a dummy file named 'D' -- because '-MD' means "put the output
4086 # in D".
4087 rm -rf conftest.dir
4088 mkdir conftest.dir
4089 # Copy depcomp to subdir because otherwise we won't find it if we're
4090 # using a relative directory.
4091 cp "$am_depcomp" conftest.dir
4092 cd conftest.dir
4093 # We will build objects and dependencies in a subdirectory because
4094 # it helps to detect inapplicable dependency modes. For instance
4095 # both Tru64's cc and ICC support -MD to output dependencies as a
4096 # side effect of compilation, but ICC will put the dependencies in
4097 # the current directory while Tru64 will put them in the object
4098 # directory.
4099 mkdir sub
4100
a93f15c0 4101 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4102 if test "$am_compiler_list" = ""; then
4103 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4104 fi
4105 am__universal=false
4106 case " $depcc " in #(
4107 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4108 esac
4109
4110 for depmode in $am_compiler_list; do
4111 # Setup a source with many dependencies, because some compilers
4112 # like to wrap large dependency lists on column 80 (with \), and
4113 # we should not choose a depcomp mode which is confused by this.
4114 #
4115 # We need to recreate these files for each test, as the compiler may
4116 # overwrite some of them when testing with obscure command lines.
4117 # This happens at least with the AIX C compiler.
4118 : > sub/conftest.c
4119 for i in 1 2 3 4 5 6; do
4120 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4121 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4122 # Solaris 10 /bin/sh.
4123 echo '/* dummy */' > sub/conftst$i.h
4124 done
4125 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4126
4127 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4128 # mode. It turns out that the SunPro C++ compiler does not properly
4129 # handle '-M -o', and we need to detect this. Also, some Intel
4130 # versions had trouble with output in subdirs.
4131 am__obj=sub/conftest.${OBJEXT-o}
4132 am__minus_obj="-o $am__obj"
4133 case $depmode in
4134 gcc)
4135 # This depmode causes a compiler race in universal mode.
4136 test "$am__universal" = false || continue
4137 ;;
4138 nosideeffect)
4139 # After this tag, mechanisms are not by side-effect, so they'll
4140 # only be used when explicitly requested.
4141 if test "x$enable_dependency_tracking" = xyes; then
4142 continue
4143 else
4144 break
4145 fi
4146 ;;
4147 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4148 # This compiler won't grok '-c -o', but also, the minuso test has
4149 # not run yet. These depmodes are late enough in the game, and
4150 # so weak that their functioning should not be impacted.
4151 am__obj=conftest.${OBJEXT-o}
4152 am__minus_obj=
4153 ;;
4154 none) break ;;
4155 esac
4156 if depmode=$depmode \
4157 source=sub/conftest.c object=$am__obj \
4158 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4159 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4160 >/dev/null 2>conftest.err &&
4161 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4162 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4163 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4164 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4165 # icc doesn't choke on unknown options, it will just issue warnings
4166 # or remarks (even with -Werror). So we grep stderr for any message
4167 # that says an option was ignored or not supported.
4168 # When given -MP, icc 7.0 and 7.1 complain thusly:
4169 # icc: Command line warning: ignoring option '-M'; no argument required
4170 # The diagnosis changed in icc 8.0:
4171 # icc: Command line remark: option '-MP' not supported
4172 if (grep 'ignoring option' conftest.err ||
4173 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4174 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4175 break
4176 fi
4177 fi
4178 done
4179
4180 cd ..
4181 rm -rf conftest.dir
4182else
a93f15c0 4183 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4184fi
4185
4186fi
a93f15c0
JF
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4188$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4189CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4190
4191 if
4192 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4193 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4194 am__fastdepCC_TRUE=
4195 am__fastdepCC_FALSE='#'
66170b30 4196else
a93f15c0
JF
4197 am__fastdepCC_TRUE='#'
4198 am__fastdepCC_FALSE=
66170b30
JF
4199fi
4200
4201
a93f15c0
JF
4202ac_ext=cpp
4203ac_cpp='$CXXCPP $CPPFLAGS'
4204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4207if test -z "$CXX"; then
4208 if test -n "$CCC"; then
4209 CXX=$CCC
4210 else
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4213 do
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4218if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4219 $as_echo_n "(cached) " >&6
4220else
a93f15c0
JF
4221 if test -n "$CXX"; then
4222 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4223else
4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
35fa52c0
DWT
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4231 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235done
9c60689e
DWT
4236 done
4237IFS=$as_save_IFS
35fa52c0 4238
9c60689e 4239fi
a243b558 4240fi
a93f15c0
JF
4241CXX=$ac_cv_prog_CXX
4242if test -n "$CXX"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4244$as_echo "$CXX" >&6; }
a243b558
JF
4245else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247$as_echo "no" >&6; }
4248fi
35fa52c0 4249
35fa52c0 4250
a93f15c0 4251 test -n "$CXX" && break
a243b558
JF
4252 done
4253fi
a93f15c0
JF
4254if test -z "$CXX"; then
4255 ac_ct_CXX=$CXX
4256 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4257do
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259set dummy $ac_prog; ac_word=$2
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4262if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4263 $as_echo_n "(cached) " >&6
4264else
a93f15c0
JF
4265 if test -n "$ac_ct_CXX"; then
4266 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4267else
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
9c60689e
DWT
4270do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
9c60689e 4273 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4275 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4278 fi
4279done
9c60689e
DWT
4280 done
4281IFS=$as_save_IFS
a243b558
JF
4282
4283fi
4284fi
a93f15c0
JF
4285ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4286if test -n "$ac_ct_CXX"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4288$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4289else
a243b558
JF
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
9c60689e 4292fi
6b66678a
DWT
4293
4294
a93f15c0 4295 test -n "$ac_ct_CXX" && break
a243b558 4296done
6b66678a 4297
a93f15c0
JF
4298 if test "x$ac_ct_CXX" = x; then
4299 CXX="g++"
a243b558
JF
4300 else
4301 case $cross_compiling:$ac_tool_warned in
4302yes:)
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305ac_tool_warned=yes ;;
9c60689e 4306esac
a93f15c0 4307 CXX=$ac_ct_CXX
9c60689e 4308 fi
9c60689e 4309fi
6b66678a 4310
a93f15c0
JF
4311 fi
4312fi
a243b558 4313# Provide some information about the compiler.
a93f15c0 4314$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4315set X $ac_compile
4316ac_compiler=$2
4317for ac_option in --version -v -V -qversion; do
4318 { { ac_try="$ac_compiler $ac_option >&5"
4319case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322esac
4323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324$as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4326 ac_status=$?
4327 if test -s conftest.err; then
4328 sed '10a\
4329... rest of stderr output deleted ...
4330 10q' conftest.err >conftest.er1
4331 cat conftest.er1 >&5
4332 fi
4333 rm -f conftest.er1 conftest.err
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }
4336done
6b66678a 4337
a93f15c0
JF
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4339$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4340if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4341 $as_echo_n "(cached) " >&6
6b66678a 4342else
a243b558
JF
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h. */
6b66678a 4345
a243b558
JF
4346int
4347main ()
4348{
4349#ifndef __GNUC__
4350 choke me
4351#endif
4352
4353 ;
4354 return 0;
4355}
4356_ACEOF
a93f15c0 4357if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4358 ac_compiler_gnu=yes
9c60689e 4359else
a243b558 4360 ac_compiler_gnu=no
6b66678a 4361fi
a243b558 4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4363ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4364
4365fi
a93f15c0
JF
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4367$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4368if test $ac_compiler_gnu = yes; then
a93f15c0 4369 GXX=yes
a243b558 4370else
a93f15c0 4371 GXX=
a243b558 4372fi
a93f15c0
JF
4373ac_test_CXXFLAGS=${CXXFLAGS+set}
4374ac_save_CXXFLAGS=$CXXFLAGS
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4376$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4377if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4378 $as_echo_n "(cached) " >&6
4379else
a93f15c0
JF
4380 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4381 ac_cxx_werror_flag=yes
4382 ac_cv_prog_cxx_g=no
4383 CXXFLAGS="-g"
a243b558
JF
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h. */
309b0535 4386
a243b558
JF
4387int
4388main ()
4389{
309b0535 4390
a243b558
JF
4391 ;
4392 return 0;
4393}
4394_ACEOF
a93f15c0
JF
4395if ac_fn_cxx_try_compile "$LINENO"; then :
4396 ac_cv_prog_cxx_g=yes
a243b558 4397else
a93f15c0 4398 CXXFLAGS=""
a243b558
JF
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h. */
309b0535 4401
a243b558
JF
4402int
4403main ()
4404{
309b0535 4405
a243b558
JF
4406 ;
4407 return 0;
4408}
4409_ACEOF
a93f15c0 4410if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4411
a243b558 4412else
a93f15c0
JF
4413 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4414 CXXFLAGS="-g"
a243b558
JF
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h. */
309b0535 4417
a243b558
JF
4418int
4419main ()
4420{
309b0535 4421
a243b558
JF
4422 ;
4423 return 0;
4424}
4425_ACEOF
a93f15c0
JF
4426if ac_fn_cxx_try_compile "$LINENO"; then :
4427 ac_cv_prog_cxx_g=yes
9c60689e 4428fi
a243b558 4429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4430fi
a243b558 4431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4432fi
a243b558 4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4434 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4435fi
a93f15c0
JF
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4437$as_echo "$ac_cv_prog_cxx_g" >&6; }
4438if test "$ac_test_CXXFLAGS" = set; then
4439 CXXFLAGS=$ac_save_CXXFLAGS
4440elif test $ac_cv_prog_cxx_g = yes; then
4441 if test "$GXX" = yes; then
4442 CXXFLAGS="-g -O2"
a243b558 4443 else
a93f15c0 4444 CXXFLAGS="-g"
a243b558 4445 fi
9c60689e 4446else
a93f15c0
JF
4447 if test "$GXX" = yes; then
4448 CXXFLAGS="-O2"
a243b558 4449 else
a93f15c0 4450 CXXFLAGS=
a243b558 4451 fi
9c60689e 4452fi
a243b558
JF
4453ac_ext=c
4454ac_cpp='$CPP $CPPFLAGS'
4455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4458
a93f15c0 4459depcc="$CXX" am_compiler_list=
309b0535 4460
a243b558
JF
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4462$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4463if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4464 $as_echo_n "(cached) " >&6
4465else
4466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4467 # We make a subdir and do the tests there. Otherwise we can end up
4468 # making bogus files that we don't know about and never remove. For
4469 # instance it was reported that on HP-UX the gcc test will end up
4470 # making a dummy file named 'D' -- because '-MD' means "put the output
4471 # in D".
4472 rm -rf conftest.dir
4473 mkdir conftest.dir
4474 # Copy depcomp to subdir because otherwise we won't find it if we're
4475 # using a relative directory.
4476 cp "$am_depcomp" conftest.dir
4477 cd conftest.dir
4478 # We will build objects and dependencies in a subdirectory because
4479 # it helps to detect inapplicable dependency modes. For instance
4480 # both Tru64's cc and ICC support -MD to output dependencies as a
4481 # side effect of compilation, but ICC will put the dependencies in
4482 # the current directory while Tru64 will put them in the object
4483 # directory.
4484 mkdir sub
309b0535 4485
a93f15c0 4486 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4487 if test "$am_compiler_list" = ""; then
4488 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4489 fi
4490 am__universal=false
a93f15c0
JF
4491 case " $depcc " in #(
4492 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4493 esac
9c60689e 4494
a243b558
JF
4495 for depmode in $am_compiler_list; do
4496 # Setup a source with many dependencies, because some compilers
4497 # like to wrap large dependency lists on column 80 (with \), and
4498 # we should not choose a depcomp mode which is confused by this.
4499 #
4500 # We need to recreate these files for each test, as the compiler may
4501 # overwrite some of them when testing with obscure command lines.
4502 # This happens at least with the AIX C compiler.
4503 : > sub/conftest.c
4504 for i in 1 2 3 4 5 6; do
4505 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4506 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4507 # Solaris 10 /bin/sh.
4508 echo '/* dummy */' > sub/conftst$i.h
4509 done
4510 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4511
a243b558
JF
4512 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4513 # mode. It turns out that the SunPro C++ compiler does not properly
4514 # handle '-M -o', and we need to detect this. Also, some Intel
4515 # versions had trouble with output in subdirs.
4516 am__obj=sub/conftest.${OBJEXT-o}
4517 am__minus_obj="-o $am__obj"
4518 case $depmode in
4519 gcc)
4520 # This depmode causes a compiler race in universal mode.
4521 test "$am__universal" = false || continue
4522 ;;
4523 nosideeffect)
4524 # After this tag, mechanisms are not by side-effect, so they'll
4525 # only be used when explicitly requested.
4526 if test "x$enable_dependency_tracking" = xyes; then
4527 continue
4528 else
4529 break
309b0535 4530 fi
a243b558
JF
4531 ;;
4532 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4533 # This compiler won't grok '-c -o', but also, the minuso test has
4534 # not run yet. These depmodes are late enough in the game, and
4535 # so weak that their functioning should not be impacted.
4536 am__obj=conftest.${OBJEXT-o}
4537 am__minus_obj=
4538 ;;
4539 none) break ;;
4540 esac
4541 if depmode=$depmode \
4542 source=sub/conftest.c object=$am__obj \
4543 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4544 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4545 >/dev/null 2>conftest.err &&
4546 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4548 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4549 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4550 # icc doesn't choke on unknown options, it will just issue warnings
4551 # or remarks (even with -Werror). So we grep stderr for any message
4552 # that says an option was ignored or not supported.
4553 # When given -MP, icc 7.0 and 7.1 complain thusly:
4554 # icc: Command line warning: ignoring option '-M'; no argument required
4555 # The diagnosis changed in icc 8.0:
4556 # icc: Command line remark: option '-MP' not supported
4557 if (grep 'ignoring option' conftest.err ||
4558 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4559 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4560 break
4561 fi
4562 fi
309b0535 4563 done
a243b558
JF
4564
4565 cd ..
4566 rm -rf conftest.dir
4567else
a93f15c0 4568 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4569fi
a243b558 4570
9c60689e 4571fi
a93f15c0
JF
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4573$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4574CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4575
4576 if
4577 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4578 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4579 am__fastdepCXX_TRUE=
4580 am__fastdepCXX_FALSE='#'
9c60689e 4581else
a93f15c0
JF
4582 am__fastdepCXX_TRUE='#'
4583 am__fastdepCXX_FALSE=
a243b558
JF
4584fi
4585
4586
a93f15c0
JF
4587ac_ext=mm
4588ac_cpp='$OBJCXXCPP $CPPFLAGS'
4589ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4592if test -n "$ac_tool_prefix"; then
a93f15c0 4593 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4594 do
4595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4599if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4600 $as_echo_n "(cached) " >&6
4601else
a93f15c0
JF
4602 if test -n "$OBJCXX"; then
4603 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4612 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
9c60689e 4615 fi
a243b558
JF
4616done
4617 done
4618IFS=$as_save_IFS
9c60689e 4619
a243b558
JF
4620fi
4621fi
a93f15c0
JF
4622OBJCXX=$ac_cv_prog_OBJCXX
4623if test -n "$OBJCXX"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4625$as_echo "$OBJCXX" >&6; }
35fa52c0 4626else
a243b558
JF
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
35fa52c0 4629fi
9c60689e 4630
a243b558 4631
a93f15c0 4632 test -n "$OBJCXX" && break
a243b558
JF
4633 done
4634fi
a93f15c0
JF
4635if test -z "$OBJCXX"; then
4636 ac_ct_OBJCXX=$OBJCXX
4637 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4638do
4639 # Extract the first word of "$ac_prog", so it can be a program name with args.
4640set dummy $ac_prog; ac_word=$2
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4643if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4644 $as_echo_n "(cached) " >&6
4645else
a93f15c0
JF
4646 if test -n "$ac_ct_OBJCXX"; then
4647 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4648else
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4656 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4659 fi
4660done
4661 done
4662IFS=$as_save_IFS
9c60689e 4663
a243b558
JF
4664fi
4665fi
a93f15c0
JF
4666ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4667if test -n "$ac_ct_OBJCXX"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4669$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4670else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672$as_echo "no" >&6; }
4673fi
35fa52c0 4674
35fa52c0 4675
a93f15c0 4676 test -n "$ac_ct_OBJCXX" && break
a243b558 4677done
35fa52c0 4678
a93f15c0
JF
4679 if test "x$ac_ct_OBJCXX" = x; then
4680 OBJCXX="g++"
a243b558
JF
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683yes:)
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686ac_tool_warned=yes ;;
4687esac
a93f15c0 4688 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4689 fi
4690fi
ee134472 4691
a243b558 4692# Provide some information about the compiler.
a93f15c0 4693$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4694set X $ac_compile
4695ac_compiler=$2
4696for ac_option in --version -v -V -qversion; do
4697 { { ac_try="$ac_compiler $ac_option >&5"
4698case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701esac
4702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4703$as_echo "$ac_try_echo"; } >&5
4704 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4705 ac_status=$?
4706 if test -s conftest.err; then
4707 sed '10a\
4708... rest of stderr output deleted ...
4709 10q' conftest.err >conftest.er1
4710 cat conftest.er1 >&5
4711 fi
4712 rm -f conftest.er1 conftest.err
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }
4715done
53ba6704 4716
a93f15c0
JF
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4718$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4719if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4720 $as_echo_n "(cached) " >&6
4721else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h. */
35fa52c0 4724
a243b558
JF
4725int
4726main ()
4727{
4728#ifndef __GNUC__
4729 choke me
4730#endif
9c60689e 4731
a243b558
JF
4732 ;
4733 return 0;
4734}
4735_ACEOF
a93f15c0 4736if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4737 ac_compiler_gnu=yes
35fa52c0 4738else
a243b558 4739 ac_compiler_gnu=no
35fa52c0 4740fi
a243b558 4741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4742ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4743
a243b558 4744fi
a93f15c0
JF
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4746$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4747if test $ac_compiler_gnu = yes; then
a93f15c0 4748 GOBJCXX=yes
35fa52c0 4749else
a93f15c0 4750 GOBJCXX=
9c60689e 4751fi
a93f15c0
JF
4752ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4753ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4755$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4756if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4757 $as_echo_n "(cached) " >&6
4758else
a93f15c0
JF
4759 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4760 ac_objcxx_werror_flag=yes
4761 ac_cv_prog_objcxx_g=no
4762 OBJCXXFLAGS="-g"
a243b558
JF
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h. */
9c60689e 4765
a243b558
JF
4766int
4767main ()
4768{
9c60689e 4769
a243b558
JF
4770 ;
4771 return 0;
4772}
4773_ACEOF
a93f15c0
JF
4774if ac_fn_objcxx_try_compile "$LINENO"; then :
4775 ac_cv_prog_objcxx_g=yes
a243b558 4776else
a93f15c0 4777 OBJCXXFLAGS=""
a243b558
JF
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h. */
9c60689e 4780
a243b558
JF
4781int
4782main ()
4783{
9c60689e 4784
a243b558
JF
4785 ;
4786 return 0;
4787}
4788_ACEOF
a93f15c0 4789if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4790
a243b558 4791else
a93f15c0
JF
4792 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4793 OBJCXXFLAGS="-g"
a243b558 4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4795/* end confdefs.h. */
4796
a243b558
JF
4797int
4798main ()
4799{
a93f15c0 4800
a243b558
JF
4801 ;
4802 return 0;
4803}
4804_ACEOF
a93f15c0
JF
4805if ac_fn_objcxx_try_compile "$LINENO"; then :
4806 ac_cv_prog_objcxx_g=yes
a243b558 4807fi
a93f15c0 4808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4809fi
a93f15c0
JF
4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811fi
4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4816$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4817if test "$ac_test_OBJCXXFLAGS" = set; then
4818 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4819elif test $ac_cv_prog_objcxx_g = yes; then
4820 if test "$GOBJCXX" = yes; then
4821 OBJCXXFLAGS="-g -O2"
4822 else
4823 OBJCXXFLAGS="-g"
4824 fi
4825else
4826 if test "$GOBJCXX" = yes; then
4827 OBJCXXFLAGS="-O2"
4828 else
4829 OBJCXXFLAGS=
4830 fi
35fa52c0 4831fi
a243b558
JF
4832ac_ext=c
4833ac_cpp='$CPP $CPPFLAGS'
4834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837
a93f15c0 4838depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4839
a243b558
JF
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4841$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4842if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4843 $as_echo_n "(cached) " >&6
4844else
a243b558
JF
4845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4846 # We make a subdir and do the tests there. Otherwise we can end up
4847 # making bogus files that we don't know about and never remove. For
4848 # instance it was reported that on HP-UX the gcc test will end up
4849 # making a dummy file named 'D' -- because '-MD' means "put the output
4850 # in D".
4851 rm -rf conftest.dir
4852 mkdir conftest.dir
4853 # Copy depcomp to subdir because otherwise we won't find it if we're
4854 # using a relative directory.
4855 cp "$am_depcomp" conftest.dir
4856 cd conftest.dir
4857 # We will build objects and dependencies in a subdirectory because
4858 # it helps to detect inapplicable dependency modes. For instance
4859 # both Tru64's cc and ICC support -MD to output dependencies as a
4860 # side effect of compilation, but ICC will put the dependencies in
4861 # the current directory while Tru64 will put them in the object
4862 # directory.
4863 mkdir sub
4864
a93f15c0 4865 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4866 if test "$am_compiler_list" = ""; then
4867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4868 fi
4869 am__universal=false
a93f15c0 4870
a243b558
JF
4871
4872 for depmode in $am_compiler_list; do
4873 # Setup a source with many dependencies, because some compilers
4874 # like to wrap large dependency lists on column 80 (with \), and
4875 # we should not choose a depcomp mode which is confused by this.
4876 #
4877 # We need to recreate these files for each test, as the compiler may
4878 # overwrite some of them when testing with obscure command lines.
4879 # This happens at least with the AIX C compiler.
4880 : > sub/conftest.c
4881 for i in 1 2 3 4 5 6; do
4882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4883 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4884 # Solaris 10 /bin/sh.
4885 echo '/* dummy */' > sub/conftst$i.h
4886 done
4887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4888
4889 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4890 # mode. It turns out that the SunPro C++ compiler does not properly
4891 # handle '-M -o', and we need to detect this. Also, some Intel
4892 # versions had trouble with output in subdirs.
4893 am__obj=sub/conftest.${OBJEXT-o}
4894 am__minus_obj="-o $am__obj"
4895 case $depmode in
4896 gcc)
4897 # This depmode causes a compiler race in universal mode.
4898 test "$am__universal" = false || continue
4899 ;;
4900 nosideeffect)
4901 # After this tag, mechanisms are not by side-effect, so they'll
4902 # only be used when explicitly requested.
4903 if test "x$enable_dependency_tracking" = xyes; then
4904 continue
4905 else
4906 break
4907 fi
4908 ;;
4909 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4910 # This compiler won't grok '-c -o', but also, the minuso test has
4911 # not run yet. These depmodes are late enough in the game, and
4912 # so weak that their functioning should not be impacted.
4913 am__obj=conftest.${OBJEXT-o}
4914 am__minus_obj=
4915 ;;
4916 none) break ;;
4917 esac
4918 if depmode=$depmode \
4919 source=sub/conftest.c object=$am__obj \
4920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4922 >/dev/null 2>conftest.err &&
4923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4927 # icc doesn't choke on unknown options, it will just issue warnings
4928 # or remarks (even with -Werror). So we grep stderr for any message
4929 # that says an option was ignored or not supported.
4930 # When given -MP, icc 7.0 and 7.1 complain thusly:
4931 # icc: Command line warning: ignoring option '-M'; no argument required
4932 # The diagnosis changed in icc 8.0:
4933 # icc: Command line remark: option '-MP' not supported
4934 if (grep 'ignoring option' conftest.err ||
4935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4936 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
4937 break
4938 fi
4939 fi
4940 done
9c60689e 4941
a243b558
JF
4942 cd ..
4943 rm -rf conftest.dir
4944else
a93f15c0 4945 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 4946fi
a243b558 4947
35fa52c0 4948fi
a93f15c0
JF
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4950$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4951OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
4952
4953 if
4954 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4955 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4956 am__fastdepOBJCXX_TRUE=
4957 am__fastdepOBJCXX_FALSE='#'
a243b558 4958else
a93f15c0
JF
4959 am__fastdepOBJCXX_TRUE='#'
4960 am__fastdepOBJCXX_FALSE=
a243b558
JF
4961fi
4962
4963
4964
a93f15c0 4965
a243b558
JF
4966if test -n "$ac_tool_prefix"; then
4967 for ac_prog in ar lib "link -lib"
4968 do
4969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972$as_echo_n "checking for $ac_word... " >&6; }
4973if ${ac_cv_prog_AR+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975else
4976 if test -n "$AR"; then
4977 ac_cv_prog_AR="$AR" # Let the user override the test.
4978else
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4989 fi
4990done
4991 done
4992IFS=$as_save_IFS
4993
4994fi
4995fi
4996AR=$ac_cv_prog_AR
4997if test -n "$AR"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4999$as_echo "$AR" >&6; }
35fa52c0
DWT
5000else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
5003fi
9c60689e 5004
a243b558
JF
5005
5006 test -n "$AR" && break
5007 done
5008fi
5009if test -z "$AR"; then
5010 ac_ct_AR=$AR
5011 for ac_prog in ar lib "link -lib"
5012do
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014set dummy $ac_prog; ac_word=$2
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if ${ac_cv_prog_ac_ct_AR+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 if test -n "$ac_ct_AR"; then
5021 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_ac_ct_AR="$ac_prog"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
5035 done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040ac_ct_AR=$ac_cv_prog_ac_ct_AR
5041if test -n "$ac_ct_AR"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5043$as_echo "$ac_ct_AR" >&6; }
5044else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048
5049
5050 test -n "$ac_ct_AR" && break
5051done
5052
5053 if test "x$ac_ct_AR" = x; then
5054 AR="false"
9c60689e
DWT
5055 else
5056 case $cross_compiling:$ac_tool_warned in
5057yes:)
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5060ac_tool_warned=yes ;;
35fa52c0 5061esac
a243b558 5062 AR=$ac_ct_AR
9c60689e 5063 fi
a243b558
JF
5064fi
5065
5066: ${AR=ar}
5067
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5069$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5070if ${am_cv_ar_interface+:} false; then :
5071 $as_echo_n "(cached) " >&6
9c60689e 5072else
a93f15c0
JF
5073 ac_ext=c
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078
5079 am_cv_ar_interface=ar
a243b558
JF
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h. */
5082int some_variable = 0;
5083_ACEOF
5084if ac_fn_c_try_compile "$LINENO"; then :
5085 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5087 (eval $am_ar_try) 2>&5
5088 ac_status=$?
5089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5090 test $ac_status = 0; }
5091 if test "$ac_status" -eq 0; then
5092 am_cv_ar_interface=ar
5093 else
5094 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5096 (eval $am_ar_try) 2>&5
5097 ac_status=$?
5098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5099 test $ac_status = 0; }
5100 if test "$ac_status" -eq 0; then
5101 am_cv_ar_interface=lib
5102 else
5103 am_cv_ar_interface=unknown
5104 fi
5105 fi
5106 rm -f conftest.lib libconftest.a
5107
35fa52c0 5108fi
a243b558 5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
5110 ac_ext=c
5111ac_cpp='$CPP $CPPFLAGS'
5112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 5115
a243b558
JF
5116fi
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5118$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 5119
a243b558
JF
5120case $am_cv_ar_interface in
5121ar)
5122 ;;
5123lib)
5124 # Microsoft lib, so override with the ar-lib wrapper script.
5125 # FIXME: It is wrong to rewrite AR.
5126 # But if we don't then we get into trouble of one sort or another.
5127 # A longer-term fix would be to have automake use am__AR in this case,
5128 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5129 # similar.
5130 AR="$am_aux_dir/ar-lib $AR"
5131 ;;
5132unknown)
5133 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5134 ;;
5135esac
35fa52c0 5136
35fa52c0 5137
35fa52c0 5138
a243b558
JF
5139case `pwd` in
5140 *\ * | *\ *)
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5142$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5143esac
35fa52c0
DWT
5144
5145
5146
a243b558
JF
5147macro_version='2.4.2'
5148macro_revision='1.3337'
35fa52c0
DWT
5149
5150
5151
5152
5153
5154
5155
5156
5157
35fa52c0 5158
35fa52c0 5159
ee134472 5160
35fa52c0 5161
a243b558 5162ltmain="$ac_aux_dir/ltmain.sh"
35fa52c0 5163
a243b558
JF
5164# Make sure we can run config.sub.
5165$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5166 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5167
a243b558
JF
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5169$as_echo_n "checking build system type... " >&6; }
5170if ${ac_cv_build+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172else
5173 ac_build_alias=$build_alias
5174test "x$ac_build_alias" = x &&
5175 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5176test "x$ac_build_alias" = x &&
5177 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5178ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5179 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5180
a243b558
JF
5181fi
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5183$as_echo "$ac_cv_build" >&6; }
5184case $ac_cv_build in
5185*-*-*) ;;
5186*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5187esac
5188build=$ac_cv_build
5189ac_save_IFS=$IFS; IFS='-'
5190set x $ac_cv_build
5191shift
5192build_cpu=$1
5193build_vendor=$2
5194shift; shift
5195# Remember, the first character of IFS is used to create $*,
5196# except with old shells:
5197build_os=$*
5198IFS=$ac_save_IFS
5199case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5200
35fa52c0 5201
a243b558
JF
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5203$as_echo_n "checking host system type... " >&6; }
5204if ${ac_cv_host+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206else
5207 if test "x$host_alias" = x; then
5208 ac_cv_host=$ac_cv_build
5209else
5210 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5211 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5212fi
35fa52c0 5213
a243b558
JF
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5216$as_echo "$ac_cv_host" >&6; }
5217case $ac_cv_host in
5218*-*-*) ;;
5219*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5220esac
5221host=$ac_cv_host
5222ac_save_IFS=$IFS; IFS='-'
5223set x $ac_cv_host
5224shift
5225host_cpu=$1
5226host_vendor=$2
5227shift; shift
5228# Remember, the first character of IFS is used to create $*,
5229# except with old shells:
5230host_os=$*
5231IFS=$ac_save_IFS
5232case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5233
9c60689e 5234
a243b558
JF
5235# Backslashify metacharacters that are still active within
5236# double-quoted strings.
5237sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5238
a243b558
JF
5239# Same as above, but do not quote variable references.
5240double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5241
a243b558
JF
5242# Sed substitution to delay expansion of an escaped shell variable in a
5243# double_quote_subst'ed string.
5244delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5245
a243b558
JF
5246# Sed substitution to delay expansion of an escaped single quote.
5247delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5248
a243b558
JF
5249# Sed substitution to avoid accidental globbing in evaled expressions
5250no_glob_subst='s/\*/\\\*/g'
35fa52c0 5251
a243b558
JF
5252ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5253ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5254ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5255
a243b558
JF
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5257$as_echo_n "checking how to print strings... " >&6; }
5258# Test print first, because it will be a builtin if present.
5259if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5260 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5261 ECHO='print -r --'
5262elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5263 ECHO='printf %s\n'
5264else
5265 # Use this function as a fallback that always works.
5266 func_fallback_echo ()
5267 {
5268 eval 'cat <<_LTECHO_EOF
5269$1
5270_LTECHO_EOF'
5271 }
5272 ECHO='func_fallback_echo'
ee134472
JF
5273fi
5274
a243b558
JF
5275# func_echo_all arg...
5276# Invoke $ECHO with all args, space-separated.
5277func_echo_all ()
5278{
5279 $ECHO ""
5280}
35fa52c0 5281
a243b558
JF
5282case "$ECHO" in
5283 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5284$as_echo "printf" >&6; } ;;
5285 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5286$as_echo "print -r" >&6; } ;;
5287 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5288$as_echo "cat" >&6; } ;;
5289esac
35fa52c0 5290
35fa52c0 5291
ee134472
JF
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
35fa52c0 5302
9c60689e 5303
a243b558
JF
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5305$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5306if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5307 $as_echo_n "(cached) " >&6
5308else
a243b558
JF
5309 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5310 for ac_i in 1 2 3 4 5 6 7; do
5311 ac_script="$ac_script$as_nl$ac_script"
5312 done
5313 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5314 { ac_script=; unset ac_script;}
5315 if test -z "$SED"; then
5316 ac_path_SED_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
a243b558 5323 for ac_prog in sed gsed; do
9c60689e 5324 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5325 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5326 as_fn_executable_p "$ac_path_SED" || continue
5327# Check for GNU ac_path_SED and select it if it is found.
5328 # Check for GNU $ac_path_SED
5329case `"$ac_path_SED" --version 2>&1` in
5330*GNU*)
5331 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5332*)
5333 ac_count=0
5334 $as_echo_n 0123456789 >"conftest.in"
5335 while :
5336 do
5337 cat "conftest.in" "conftest.in" >"conftest.tmp"
5338 mv "conftest.tmp" "conftest.in"
5339 cp "conftest.in" "conftest.nl"
5340 $as_echo '' >> "conftest.nl"
5341 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343 as_fn_arith $ac_count + 1 && ac_count=$as_val
5344 if test $ac_count -gt ${ac_path_SED_max-0}; then
5345 # Best one so far, save it but keep looking for a better one
5346 ac_cv_path_SED="$ac_path_SED"
5347 ac_path_SED_max=$ac_count
5348 fi
5349 # 10*(2^10) chars as input seems more than enough
5350 test $ac_count -gt 10 && break
35fa52c0 5351 done
a243b558
JF
5352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353esac
9c60689e 5354
a243b558
JF
5355 $ac_path_SED_found && break 3
5356 done
5357 done
9c60689e
DWT
5358 done
5359IFS=$as_save_IFS
a243b558
JF
5360 if test -z "$ac_cv_path_SED"; then
5361 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5362 fi
5363else
a243b558 5364 ac_cv_path_SED=$SED
9c60689e
DWT
5365fi
5366
a243b558
JF
5367fi
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5369$as_echo "$ac_cv_path_SED" >&6; }
5370 SED="$ac_cv_path_SED"
5371 rm -f conftest.sed
9c60689e 5372
a243b558
JF
5373test -z "$SED" && SED=sed
5374Xsed="$SED -e 1s/^X//"
9c60689e 5375
ee134472 5376
ee134472 5377
9c60689e
DWT
5378
5379
5380
5381
5382
5383
5384
5385
a243b558
JF
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5387$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5388if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5389 $as_echo_n "(cached) " >&6
5390else
a243b558
JF
5391 if test -z "$GREP"; then
5392 ac_path_GREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5396do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
a243b558 5399 for ac_prog in grep ggrep; do
9c60689e 5400 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5401 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5402 as_fn_executable_p "$ac_path_GREP" || continue
5403# Check for GNU ac_path_GREP and select it if it is found.
5404 # Check for GNU $ac_path_GREP
5405case `"$ac_path_GREP" --version 2>&1` in
5406*GNU*)
5407 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5408*)
5409 ac_count=0
5410 $as_echo_n 0123456789 >"conftest.in"
5411 while :
5412 do
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 $as_echo 'GREP' >> "conftest.nl"
5417 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val
5420 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_GREP="$ac_path_GREP"
5423 ac_path_GREP_max=$ac_count
5424 fi
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429esac
9c60689e 5430
a243b558
JF
5431 $ac_path_GREP_found && break 3
5432 done
ee134472 5433 done
a243b558
JF
5434 done
5435IFS=$as_save_IFS
5436 if test -z "$ac_cv_path_GREP"; then
5437 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5438 fi
5439else
5440 ac_cv_path_GREP=$GREP
9c60689e 5441fi
a243b558
JF
5442
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5445$as_echo "$ac_cv_path_GREP" >&6; }
5446 GREP="$ac_cv_path_GREP"
5447
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5450$as_echo_n "checking for egrep... " >&6; }
5451if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5452 $as_echo_n "(cached) " >&6
5453else
a243b558
JF
5454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5455 then ac_cv_path_EGREP="$GREP -E"
5456 else
5457 if test -z "$EGREP"; then
5458 ac_path_EGREP_found=false
5459 # Loop through the user's path and test for each of PROGNAME-LIST
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
a243b558 5465 for ac_prog in egrep; do
9c60689e 5466 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5467 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5468 as_fn_executable_p "$ac_path_EGREP" || continue
5469# Check for GNU ac_path_EGREP and select it if it is found.
5470 # Check for GNU $ac_path_EGREP
5471case `"$ac_path_EGREP" --version 2>&1` in
5472*GNU*)
5473 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5474*)
5475 ac_count=0
5476 $as_echo_n 0123456789 >"conftest.in"
5477 while :
5478 do
5479 cat "conftest.in" "conftest.in" >"conftest.tmp"
5480 mv "conftest.tmp" "conftest.in"
5481 cp "conftest.in" "conftest.nl"
5482 $as_echo 'EGREP' >> "conftest.nl"
5483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5485 as_fn_arith $ac_count + 1 && ac_count=$as_val
5486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5487 # Best one so far, save it but keep looking for a better one
5488 ac_cv_path_EGREP="$ac_path_EGREP"
5489 ac_path_EGREP_max=$ac_count
5490 fi
5491 # 10*(2^10) chars as input seems more than enough
5492 test $ac_count -gt 10 && break
9c60689e 5493 done
a243b558
JF
5494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5495esac
9c60689e 5496
a243b558
JF
5497 $ac_path_EGREP_found && break 3
5498 done
5499 done
5500 done
5501IFS=$as_save_IFS
5502 if test -z "$ac_cv_path_EGREP"; then
5503 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5504 fi
9c60689e 5505else
a243b558 5506 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5507fi
5508
a243b558
JF
5509 fi
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5512$as_echo "$ac_cv_path_EGREP" >&6; }
5513 EGREP="$ac_cv_path_EGREP"
ee134472 5514
ee134472 5515
a243b558
JF
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5517$as_echo_n "checking for fgrep... " >&6; }
5518if ${ac_cv_path_FGREP+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520else
5521 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5522 then ac_cv_path_FGREP="$GREP -F"
5523 else
5524 if test -z "$FGREP"; then
5525 ac_path_FGREP_found=false
5526 # Loop through the user's path and test for each of PROGNAME-LIST
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5529do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_prog in fgrep; do
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5535 as_fn_executable_p "$ac_path_FGREP" || continue
5536# Check for GNU ac_path_FGREP and select it if it is found.
5537 # Check for GNU $ac_path_FGREP
5538case `"$ac_path_FGREP" --version 2>&1` in
5539*GNU*)
5540 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5541*)
5542 ac_count=0
5543 $as_echo_n 0123456789 >"conftest.in"
5544 while :
5545 do
5546 cat "conftest.in" "conftest.in" >"conftest.tmp"
5547 mv "conftest.tmp" "conftest.in"
5548 cp "conftest.in" "conftest.nl"
5549 $as_echo 'FGREP' >> "conftest.nl"
5550 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5552 as_fn_arith $ac_count + 1 && ac_count=$as_val
5553 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5554 # Best one so far, save it but keep looking for a better one
5555 ac_cv_path_FGREP="$ac_path_FGREP"
5556 ac_path_FGREP_max=$ac_count
5557 fi
5558 # 10*(2^10) chars as input seems more than enough
5559 test $ac_count -gt 10 && break
5560 done
5561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5562esac
a243b558
JF
5563
5564 $ac_path_FGREP_found && break 3
5565 done
5566 done
5567 done
5568IFS=$as_save_IFS
5569 if test -z "$ac_cv_path_FGREP"; then
5570 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5571 fi
a243b558
JF
5572else
5573 ac_cv_path_FGREP=$FGREP
ee134472
JF
5574fi
5575
a243b558
JF
5576 fi
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5579$as_echo "$ac_cv_path_FGREP" >&6; }
5580 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5581
5582
a243b558 5583test -z "$GREP" && GREP=grep
ee134472
JF
5584
5585
5586
5587
5588
5589
5590
ee134472 5591
ee134472 5592
ee134472 5593
ee134472 5594
ee134472 5595
ee134472
JF
5596
5597
5598
5599
5600
5601
5602
a243b558
JF
5603# Check whether --with-gnu-ld was given.
5604if test "${with_gnu_ld+set}" = set; then :
5605 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5606else
5607 with_gnu_ld=no
5608fi
5609
5610ac_prog=ld
5611if test "$GCC" = yes; then
5612 # Check if gcc -print-prog-name=ld gives a path.
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5614$as_echo_n "checking for ld used by $CC... " >&6; }
5615 case $host in
5616 *-*-mingw*)
5617 # gcc leaves a trailing carriage return which upsets mingw
5618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5619 *)
5620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5621 esac
5622 case $ac_prog in
5623 # Accept absolute paths.
5624 [\\/]* | ?:[\\/]*)
5625 re_direlt='/[^/][^/]*/\.\./'
5626 # Canonicalize the pathname of ld
5627 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5628 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5629 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5630 done
5631 test -z "$LD" && LD="$ac_prog"
5632 ;;
5633 "")
5634 # If it fails, then pretend we aren't using GCC.
5635 ac_prog=ld
5636 ;;
5637 *)
5638 # If it is relative, then search for the first ld in PATH.
5639 with_gnu_ld=unknown
5640 ;;
5641 esac
5642elif test "$with_gnu_ld" = yes; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5644$as_echo_n "checking for GNU ld... " >&6; }
5645else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5647$as_echo_n "checking for non-GNU ld... " >&6; }
5648fi
5649if ${lt_cv_path_LD+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651else
5652 if test -z "$LD"; then
5653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5654 for ac_dir in $PATH; do
5655 IFS="$lt_save_ifs"
5656 test -z "$ac_dir" && ac_dir=.
5657 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5658 lt_cv_path_LD="$ac_dir/$ac_prog"
5659 # Check to see if the program is GNU ld. I'd rather use --version,
5660 # but apparently some variants of GNU ld only accept -v.
5661 # Break only if it was the GNU/non-GNU ld that we prefer.
5662 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5663 *GNU* | *'with BFD'*)
5664 test "$with_gnu_ld" != no && break
5665 ;;
5666 *)
5667 test "$with_gnu_ld" != yes && break
5668 ;;
5669 esac
5670 fi
5671 done
5672 IFS="$lt_save_ifs"
5673else
5674 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5675fi
5676fi
5677
5678LD="$lt_cv_path_LD"
5679if test -n "$LD"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5681$as_echo "$LD" >&6; }
5682else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684$as_echo "no" >&6; }
5685fi
5686test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5688$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5689if ${lt_cv_prog_gnu_ld+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691else
5692 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5693case `$LD -v 2>&1 </dev/null` in
5694*GNU* | *'with BFD'*)
5695 lt_cv_prog_gnu_ld=yes
5696 ;;
5697*)
5698 lt_cv_prog_gnu_ld=no
5699 ;;
5700esac
5701fi
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5703$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5704with_gnu_ld=$lt_cv_prog_gnu_ld
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5715$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5716if ${lt_cv_path_NM+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718else
5719 if test -n "$NM"; then
5720 # Let the user override the test.
5721 lt_cv_path_NM="$NM"
5722else
5723 lt_nm_to_check="${ac_tool_prefix}nm"
5724 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5725 lt_nm_to_check="$lt_nm_to_check nm"
5726 fi
5727 for lt_tmp_nm in $lt_nm_to_check; do
5728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5729 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5730 IFS="$lt_save_ifs"
5731 test -z "$ac_dir" && ac_dir=.
5732 tmp_nm="$ac_dir/$lt_tmp_nm"
5733 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5734 # Check to see if the nm accepts a BSD-compat flag.
5735 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5736 # nm: unknown option "B" ignored
5737 # Tru64's nm complains that /dev/null is an invalid object file
5738 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5739 */dev/null* | *'Invalid file or object type'*)
5740 lt_cv_path_NM="$tmp_nm -B"
5741 break
5742 ;;
5743 *)
5744 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5745 */dev/null*)
5746 lt_cv_path_NM="$tmp_nm -p"
5747 break
5748 ;;
5749 *)
5750 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5751 continue # so that we can try to find one that supports BSD flags
5752 ;;
5753 esac
5754 ;;
5755 esac
5756 fi
5757 done
5758 IFS="$lt_save_ifs"
5759 done
5760 : ${lt_cv_path_NM=no}
5761fi
5762fi
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5764$as_echo "$lt_cv_path_NM" >&6; }
5765if test "$lt_cv_path_NM" != "no"; then
5766 NM="$lt_cv_path_NM"
5767else
5768 # Didn't find any BSD compatible name lister, look for dumpbin.
5769 if test -n "$DUMPBIN"; then :
5770 # Let the user override the test.
5771 else
5772 if test -n "$ac_tool_prefix"; then
5773 for ac_prog in dumpbin "link -dump"
5774 do
5775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5779if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5780 $as_echo_n "(cached) " >&6
5781else
a243b558
JF
5782 if test -n "$DUMPBIN"; then
5783 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5792 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796done
5797 done
5798IFS=$as_save_IFS
5799
5800fi
5801fi
a243b558
JF
5802DUMPBIN=$ac_cv_prog_DUMPBIN
5803if test -n "$DUMPBIN"; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5805$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5806else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809fi
5810
5811
a243b558
JF
5812 test -n "$DUMPBIN" && break
5813 done
ee134472 5814fi
a243b558
JF
5815if test -z "$DUMPBIN"; then
5816 ac_ct_DUMPBIN=$DUMPBIN
5817 for ac_prog in dumpbin "link -dump"
5818do
5819 # Extract the first word of "$ac_prog", so it can be a program name with args.
5820set dummy $ac_prog; ac_word=$2
ee134472
JF
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5823if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5824 $as_echo_n "(cached) " >&6
5825else
a243b558
JF
5826 if test -n "$ac_ct_DUMPBIN"; then
5827 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5836 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841 done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
a243b558
JF
5846ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5847if test -n "$ac_ct_DUMPBIN"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5849$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5850else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
a243b558
JF
5855
5856 test -n "$ac_ct_DUMPBIN" && break
5857done
5858
5859 if test "x$ac_ct_DUMPBIN" = x; then
5860 DUMPBIN=":"
ee134472
JF
5861 else
5862 case $cross_compiling:$ac_tool_warned in
5863yes:)
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866ac_tool_warned=yes ;;
5867esac
a243b558 5868 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5869 fi
9c60689e
DWT
5870fi
5871
a243b558
JF
5872 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5873 *COFF*)
5874 DUMPBIN="$DUMPBIN -symbols"
5875 ;;
5876 *)
5877 DUMPBIN=:
5878 ;;
5879 esac
5880 fi
9c60689e 5881
a243b558
JF
5882 if test "$DUMPBIN" != ":"; then
5883 NM="$DUMPBIN"
5884 fi
5885fi
5886test -z "$NM" && NM=nm
9c60689e
DWT
5887
5888
5889
5890
5891
a243b558
JF
5892
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5894$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5895if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5896 $as_echo_n "(cached) " >&6
5897else
a243b558
JF
5898 lt_cv_nm_interface="BSD nm"
5899 echo "int some_variable = 0;" > conftest.$ac_ext
5900 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5901 (eval "$ac_compile" 2>conftest.err)
5902 cat conftest.err >&5
5903 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5904 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5905 cat conftest.err >&5
5906 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5907 cat conftest.out >&5
5908 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5909 lt_cv_nm_interface="MS dumpbin"
9c60689e 5910 fi
00a96142 5911 rm -rf conftest*
9c60689e 5912fi
a243b558
JF
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5914$as_echo "$lt_cv_nm_interface" >&6; }
5915
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5917$as_echo_n "checking whether ln -s works... " >&6; }
5918LN_S=$as_ln_s
5919if test "$LN_S" = "ln -s"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5921$as_echo "yes" >&6; }
9c60689e 5922else
a243b558
JF
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5924$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5925fi
5926
a243b558
JF
5927# find the maximum length of command line arguments
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5929$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5930if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5931 $as_echo_n "(cached) " >&6
5932else
a243b558
JF
5933 i=0
5934 teststring="ABCD"
9c60689e 5935
a243b558
JF
5936 case $build_os in
5937 msdosdjgpp*)
5938 # On DJGPP, this test can blow up pretty badly due to problems in libc
5939 # (any single argument exceeding 2000 bytes causes a buffer overrun
5940 # during glob expansion). Even if it were fixed, the result of this
5941 # check would be larger than it should be.
5942 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5943 ;;
9c60689e 5944
a243b558
JF
5945 gnu*)
5946 # Under GNU Hurd, this test is not required because there is
5947 # no limit to the length of command line arguments.
5948 # Libtool will interpret -1 as no limit whatsoever
5949 lt_cv_sys_max_cmd_len=-1;
5950 ;;
9c60689e 5951
a243b558
JF
5952 cygwin* | mingw* | cegcc*)
5953 # On Win9x/ME, this test blows up -- it succeeds, but takes
5954 # about 5 minutes as the teststring grows exponentially.
5955 # Worse, since 9x/ME are not pre-emptively multitasking,
5956 # you end up with a "frozen" computer, even though with patience
5957 # the test eventually succeeds (with a max line length of 256k).
5958 # Instead, let's just punt: use the minimum linelength reported by
5959 # all of the supported platforms: 8192 (on NT/2K/XP).
5960 lt_cv_sys_max_cmd_len=8192;
5961 ;;
9c60689e 5962
a243b558
JF
5963 mint*)
5964 # On MiNT this can take a long time and run out of memory.
5965 lt_cv_sys_max_cmd_len=8192;
5966 ;;
9c60689e 5967
a243b558
JF
5968 amigaos*)
5969 # On AmigaOS with pdksh, this test takes hours, literally.
5970 # So we just punt and use a minimum line length of 8192.
5971 lt_cv_sys_max_cmd_len=8192;
5972 ;;
9c60689e 5973
a243b558
JF
5974 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5975 # This has been around since 386BSD, at least. Likely further.
5976 if test -x /sbin/sysctl; then
5977 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5978 elif test -x /usr/sbin/sysctl; then
5979 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5980 else
5981 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5982 fi
5983 # And add a safety zone
5984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5986 ;;
9c60689e 5987
a243b558
JF
5988 interix*)
5989 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5990 lt_cv_sys_max_cmd_len=196608
5991 ;;
9c60689e 5992
a243b558
JF
5993 os2*)
5994 # The test takes a long time on OS/2.
5995 lt_cv_sys_max_cmd_len=8192
5996 ;;
9c60689e 5997
a243b558
JF
5998 osf*)
5999 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6000 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6001 # nice to cause kernel panics so lets avoid the loop below.
6002 # First set a reasonable default.
6003 lt_cv_sys_max_cmd_len=16384
6004 #
6005 if test -x /sbin/sysconfig; then
6006 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6007 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6008 esac
6009 fi
6010 ;;
6011 sco3.2v5*)
6012 lt_cv_sys_max_cmd_len=102400
6013 ;;
6014 sysv5* | sco5v6* | sysv4.2uw2*)
6015 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6016 if test -n "$kargmax"; then
6017 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6018 else
6019 lt_cv_sys_max_cmd_len=32768
6020 fi
9c60689e
DWT
6021 ;;
6022 *)
a243b558
JF
6023 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6024 if test -n "$lt_cv_sys_max_cmd_len"; then
6025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6027 else
6028 # Make teststring a little bigger before we do anything with it.
6029 # a 1K string should be a reasonable start.
6030 for i in 1 2 3 4 5 6 7 8 ; do
6031 teststring=$teststring$teststring
6032 done
6033 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6034 # If test is not a shell built-in, we'll probably end up computing a
6035 # maximum length that is only half of the actual maximum length, but
6036 # we can't tell.
6037 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6038 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6039 test $i != 17 # 1/2 MB should be enough
6040 do
6041 i=`expr $i + 1`
6042 teststring=$teststring$teststring
6043 done
6044 # Only check the string length outside the loop.
6045 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6046 teststring=
6047 # Add a significant safety factor because C++ compilers can tack on
6048 # massive amounts of additional arguments before passing them to the
6049 # linker. It appears as though 1/2 is a usable value.
6050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6051 fi
9c60689e
DWT
6052 ;;
6053 esac
ee134472 6054
a243b558 6055fi
ee134472 6056
a243b558
JF
6057if test -n $lt_cv_sys_max_cmd_len ; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6059$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6060else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6062$as_echo "none" >&6; }
6063fi
6064max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
6065
6066
9c60689e
DWT
6067
6068
6069
6070
a243b558
JF
6071: ${CP="cp -f"}
6072: ${MV="mv -f"}
6073: ${RM="rm -f"}
9c60689e 6074
a243b558
JF
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6076$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6077# Try some XSI features
6078xsi_shell=no
6079( _lt_dummy="a/b/c"
6080 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6081 = c,a/b,b/c, \
6082 && eval 'test $(( 1 + 1 )) -eq 2 \
6083 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6084 && xsi_shell=yes
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6086$as_echo "$xsi_shell" >&6; }
9c60689e
DWT
6087
6088
a243b558
JF
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6090$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6091lt_shell_append=no
6092( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6093 >/dev/null 2>&1 \
6094 && lt_shell_append=yes
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6096$as_echo "$lt_shell_append" >&6; }
9c60689e
DWT
6097
6098
a243b558
JF
6099if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6100 lt_unset=unset
6101else
6102 lt_unset=false
6103fi
9c60689e
DWT
6104
6105
6106
6107
6108
a243b558
JF
6109# test EBCDIC or ASCII
6110case `echo X|tr X '\101'` in
6111 A) # ASCII based system
6112 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6113 lt_SP2NL='tr \040 \012'
6114 lt_NL2SP='tr \015\012 \040\040'
6115 ;;
6116 *) # EBCDIC based system
6117 lt_SP2NL='tr \100 \n'
6118 lt_NL2SP='tr \r\n \100\100'
6119 ;;
6120esac
9c60689e
DWT
6121
6122
6123
6124
6125
6126
6127
6128
6129
a243b558
JF
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6131$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6132if ${lt_cv_to_host_file_cmd+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134else
6135 case $host in
6136 *-*-mingw* )
6137 case $build in
6138 *-*-mingw* ) # actually msys
6139 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6140 ;;
6141 *-*-cygwin* )
6142 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6143 ;;
6144 * ) # otherwise, assume *nix
6145 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6146 ;;
6147 esac
6148 ;;
6149 *-*-cygwin* )
6150 case $build in
6151 *-*-mingw* ) # actually msys
6152 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6153 ;;
6154 *-*-cygwin* )
6155 lt_cv_to_host_file_cmd=func_convert_file_noop
6156 ;;
6157 * ) # otherwise, assume *nix
6158 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6159 ;;
6160 esac
6161 ;;
6162 * ) # unhandled hosts (and "normal" native builds)
6163 lt_cv_to_host_file_cmd=func_convert_file_noop
6164 ;;
6165esac
9c60689e 6166
a243b558 6167fi
9c60689e 6168
a243b558
JF
6169to_host_file_cmd=$lt_cv_to_host_file_cmd
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6171$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6172
6173
6174
6175
6176
a243b558
JF
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6178$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6179if ${lt_cv_to_tool_file_cmd+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181else
6182 #assume ordinary cross tools, or native build.
6183lt_cv_to_tool_file_cmd=func_convert_file_noop
6184case $host in
6185 *-*-mingw* )
6186 case $build in
6187 *-*-mingw* ) # actually msys
6188 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6189 ;;
6190 esac
6191 ;;
6192esac
9c60689e 6193
a243b558 6194fi
9c60689e 6195
a243b558
JF
6196to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6198$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6199
9c60689e 6200
9c60689e 6201
9c60689e
DWT
6202
6203
a243b558
JF
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6205$as_echo_n "checking for $LD option to reload object files... " >&6; }
6206if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6207 $as_echo_n "(cached) " >&6
6208else
a243b558
JF
6209 lt_cv_ld_reload_flag='-r'
6210fi
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6212$as_echo "$lt_cv_ld_reload_flag" >&6; }
6213reload_flag=$lt_cv_ld_reload_flag
6214case $reload_flag in
6215"" | " "*) ;;
6216*) reload_flag=" $reload_flag" ;;
6217esac
6218reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6219case $host_os in
a243b558
JF
6220 cygwin* | mingw* | pw32* | cegcc*)
6221 if test "$GCC" != yes; then
6222 reload_cmds=false
6223 fi
6224 ;;
6225 darwin*)
6226 if test "$GCC" = yes; then
6227 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6228 else
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230 fi
6231 ;;
9c60689e
DWT
6232esac
6233
9c60689e 6234
9c60689e 6235
9c60689e 6236
9c60689e 6237
9c60689e 6238
9c60689e 6239
9c60689e 6240
9c60689e 6241
a243b558
JF
6242if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6244set dummy ${ac_tool_prefix}objdump; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if ${ac_cv_prog_OBJDUMP+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249else
6250 if test -n "$OBJDUMP"; then
6251 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264done
6265 done
6266IFS=$as_save_IFS
9c60689e 6267
a243b558
JF
6268fi
6269fi
6270OBJDUMP=$ac_cv_prog_OBJDUMP
6271if test -n "$OBJDUMP"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6273$as_echo "$OBJDUMP" >&6; }
6274else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
6277fi
9c60689e 6278
9c60689e 6279
a243b558
JF
6280fi
6281if test -z "$ac_cv_prog_OBJDUMP"; then
6282 ac_ct_OBJDUMP=$OBJDUMP
6283 # Extract the first word of "objdump", so it can be a program name with args.
6284set dummy objdump; ac_word=$2
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286$as_echo_n "checking for $ac_word... " >&6; }
6287if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289else
6290 if test -n "$ac_ct_OBJDUMP"; then
6291 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
9c60689e
DWT
6303 fi
6304done
a243b558
JF
6305 done
6306IFS=$as_save_IFS
9c60689e
DWT
6307
6308fi
9c60689e 6309fi
a243b558
JF
6310ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6311if test -n "$ac_ct_OBJDUMP"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6313$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6314else
a243b558
JF
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316$as_echo "no" >&6; }
9c60689e
DWT
6317fi
6318
a243b558
JF
6319 if test "x$ac_ct_OBJDUMP" = x; then
6320 OBJDUMP="false"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323yes:)
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326ac_tool_warned=yes ;;
6327esac
6328 OBJDUMP=$ac_ct_OBJDUMP
6329 fi
6330else
6331 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6332fi
6333
a243b558 6334test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6335
6336
6337
6338
6339
6340
6341
6342
6343
a243b558
JF
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6345$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6346if ${lt_cv_deplibs_check_method+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348else
6349 lt_cv_file_magic_cmd='$MAGIC_CMD'
6350lt_cv_file_magic_test_file=
6351lt_cv_deplibs_check_method='unknown'
6352# Need to set the preceding variable on all platforms that support
6353# interlibrary dependencies.
6354# 'none' -- dependencies not supported.
6355# `unknown' -- same as none, but documents that we really don't know.
6356# 'pass_all' -- all dependencies passed with no checks.
6357# 'test_compile' -- check by making test program.
6358# 'file_magic [[regex]]' -- check by looking for files in library path
6359# which responds to the $file_magic_cmd with a given extended regex.
6360# If you have `file' or equivalent on your system and you're not sure
6361# whether `pass_all' will *always* work, you probably want this one.
9c60689e 6362
a243b558
JF
6363case $host_os in
6364aix[4-9]*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
9c60689e 6367
a243b558
JF
6368beos*)
6369 lt_cv_deplibs_check_method=pass_all
6370 ;;
9c60689e 6371
a243b558
JF
6372bsdi[45]*)
6373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6374 lt_cv_file_magic_cmd='/usr/bin/file -L'
6375 lt_cv_file_magic_test_file=/shlib/libc.so
6376 ;;
9c60689e 6377
a243b558
JF
6378cygwin*)
6379 # func_win32_libid is a shell function defined in ltmain.sh
6380 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6381 lt_cv_file_magic_cmd='func_win32_libid'
6382 ;;
9c60689e 6383
a243b558
JF
6384mingw* | pw32*)
6385 # Base MSYS/MinGW do not provide the 'file' command needed by
6386 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6387 # unless we find 'file', for example because we are cross-compiling.
6388 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6389 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6390 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391 lt_cv_file_magic_cmd='func_win32_libid'
6392 else
6393 # Keep this pattern in sync with the one in func_win32_libid.
6394 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6395 lt_cv_file_magic_cmd='$OBJDUMP -f'
6396 fi
6397 ;;
9c60689e 6398
a243b558
JF
6399cegcc*)
6400 # use the weaker test based on 'objdump'. See mingw*.
6401 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6402 lt_cv_file_magic_cmd='$OBJDUMP -f'
6403 ;;
9c60689e 6404
a243b558
JF
6405darwin* | rhapsody*)
6406 lt_cv_deplibs_check_method=pass_all
6407 ;;
9c60689e 6408
a243b558
JF
6409freebsd* | dragonfly*)
6410 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6411 case $host_cpu in
6412 i*86 )
6413 # Not sure whether the presence of OpenBSD here was a mistake.
6414 # Let's accept both of them until this is cleared up.
6415 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6416 lt_cv_file_magic_cmd=/usr/bin/file
6417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6418 ;;
6419 esac
6420 else
6421 lt_cv_deplibs_check_method=pass_all
6422 fi
6423 ;;
9c60689e 6424
a243b558
JF
6425gnu*)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
9c60689e 6428
a243b558
JF
6429haiku*)
6430 lt_cv_deplibs_check_method=pass_all
6431 ;;
9c60689e 6432
a243b558
JF
6433hpux10.20* | hpux11*)
6434 lt_cv_file_magic_cmd=/usr/bin/file
6435 case $host_cpu in
6436 ia64*)
6437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6438 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6439 ;;
6440 hppa*64*)
6441 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]'
6442 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6443 ;;
6444 *)
6445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6446 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6447 ;;
6448 esac
6449 ;;
9c60689e 6450
a243b558
JF
6451interix[3-9]*)
6452 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6454 ;;
9c60689e 6455
a243b558
JF
6456irix5* | irix6* | nonstopux*)
6457 case $LD in
6458 *-32|*"-32 ") libmagic=32-bit;;
6459 *-n32|*"-n32 ") libmagic=N32;;
6460 *-64|*"-64 ") libmagic=64-bit;;
6461 *) libmagic=never-match;;
6462 esac
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
9c60689e 6465
a243b558
JF
6466# This must be glibc/ELF.
6467linux* | k*bsd*-gnu | kopensolaris*-gnu)
6468 lt_cv_deplibs_check_method=pass_all
6469 ;;
9c60689e 6470
a243b558
JF
6471netbsd*)
6472 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6474 else
6475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6476 fi
6477 ;;
9c60689e 6478
a243b558
JF
6479newos6*)
6480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6481 lt_cv_file_magic_cmd=/usr/bin/file
6482 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6483 ;;
9c60689e 6484
a243b558
JF
6485*nto* | *qnx*)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
9c60689e 6488
a243b558
JF
6489openbsd*)
6490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6492 else
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6494 fi
6495 ;;
9c60689e 6496
a243b558
JF
6497osf3* | osf4* | osf5*)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
9c60689e 6500
a243b558
JF
6501rdos*)
6502 lt_cv_deplibs_check_method=pass_all
9c60689e 6503 ;;
a243b558
JF
6504
6505solaris*)
6506 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6507 ;;
6508
a243b558
JF
6509sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6510 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6511 ;;
6512
a243b558
JF
6513sysv4 | sysv4.3*)
6514 case $host_vendor in
6515 motorola)
6516 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]'
6517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6518 ;;
6519 ncr)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522 sequent)
6523 lt_cv_file_magic_cmd='/bin/file'
6524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6525 ;;
6526 sni)
6527 lt_cv_file_magic_cmd='/bin/file'
6528 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6529 lt_cv_file_magic_test_file=/lib/libc.so
6530 ;;
6531 siemens)
6532 lt_cv_deplibs_check_method=pass_all
6533 ;;
6534 pc)
6535 lt_cv_deplibs_check_method=pass_all
6536 ;;
6537 esac
6538 ;;
9c60689e 6539
a243b558
JF
6540tpf*)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543esac
9c60689e 6544
a243b558
JF
6545fi
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6547$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6548
a243b558
JF
6549file_magic_glob=
6550want_nocaseglob=no
6551if test "$build" = "$host"; then
6552 case $host_os in
6553 mingw* | pw32*)
6554 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6555 want_nocaseglob=yes
6556 else
6557 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6558 fi
6559 ;;
6560 esac
9c60689e 6561fi
9c60689e 6562
a243b558
JF
6563file_magic_cmd=$lt_cv_file_magic_cmd
6564deplibs_check_method=$lt_cv_deplibs_check_method
6565test -z "$deplibs_check_method" && deplibs_check_method=unknown
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
9c60689e 6586
9c60689e 6587
ee134472 6588if test -n "$ac_tool_prefix"; then
a243b558
JF
6589 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6590set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6593if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6594 $as_echo_n "(cached) " >&6
6595else
a243b558
JF
6596 if test -n "$DLLTOOL"; then
6597 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6606 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610done
6611 done
6612IFS=$as_save_IFS
6613
6614fi
6615fi
a243b558
JF
6616DLLTOOL=$ac_cv_prog_DLLTOOL
6617if test -n "$DLLTOOL"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6619$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6620else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622$as_echo "no" >&6; }
6623fi
6624
6625
6626fi
a243b558
JF
6627if test -z "$ac_cv_prog_DLLTOOL"; then
6628 ac_ct_DLLTOOL=$DLLTOOL
6629 # Extract the first word of "dlltool", so it can be a program name with args.
6630set dummy dlltool; ac_word=$2
ee134472
JF
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6633if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6634 $as_echo_n "(cached) " >&6
6635else
a243b558
JF
6636 if test -n "$ac_ct_DLLTOOL"; then
6637 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6638else
6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6646 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650done
6651 done
6652IFS=$as_save_IFS
6653
6654fi
6655fi
a243b558
JF
6656ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6657if test -n "$ac_ct_DLLTOOL"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6659$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6660else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662$as_echo "no" >&6; }
6663fi
6664
a243b558
JF
6665 if test "x$ac_ct_DLLTOOL" = x; then
6666 DLLTOOL="false"
ee134472
JF
6667 else
6668 case $cross_compiling:$ac_tool_warned in
6669yes:)
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672ac_tool_warned=yes ;;
6673esac
a243b558 6674 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6675 fi
6676else
a243b558 6677 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6678fi
6679
a243b558
JF
6680test -z "$DLLTOOL" && DLLTOOL=dlltool
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6692$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6693if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6694 $as_echo_n "(cached) " >&6
6695else
a243b558
JF
6696 lt_cv_sharedlib_from_linklib_cmd='unknown'
6697
6698case $host_os in
6699cygwin* | mingw* | pw32* | cegcc*)
6700 # two different shell functions defined in ltmain.sh
6701 # decide which to use based on capabilities of $DLLTOOL
6702 case `$DLLTOOL --help 2>&1` in
6703 *--identify-strict*)
6704 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6705 ;;
6706 *)
6707 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6708 ;;
6709 esac
6710 ;;
6711*)
6712 # fallback: assume linklib IS sharedlib
6713 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6714 ;;
6715esac
6716
ee134472 6717fi
a243b558
JF
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6719$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6720sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6721test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6722
6723
6724
6725
6726
9c60689e 6727
a243b558
JF
6728
6729if test -n "$ac_tool_prefix"; then
6730 for ac_prog in ar
6731 do
6732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6736if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6737 $as_echo_n "(cached) " >&6
6738else
a243b558
JF
6739 if test -n "$AR"; then
6740 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6749 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754 done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
a243b558
JF
6759AR=$ac_cv_prog_AR
6760if test -n "$AR"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6762$as_echo "$AR" >&6; }
9c60689e
DWT
6763else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768
a243b558
JF
6769 test -n "$AR" && break
6770 done
9c60689e 6771fi
a243b558
JF
6772if test -z "$AR"; then
6773 ac_ct_AR=$AR
6774 for ac_prog in ar
6775do
6776 # Extract the first word of "$ac_prog", so it can be a program name with args.
6777set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6780if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6781 $as_echo_n "(cached) " >&6
6782else
a243b558
JF
6783 if test -n "$ac_ct_AR"; then
6784 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6793 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798 done
6799IFS=$as_save_IFS
6800
6801fi
6802fi
a243b558
JF
6803ac_ct_AR=$ac_cv_prog_ac_ct_AR
6804if test -n "$ac_ct_AR"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6806$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6807else
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809$as_echo "no" >&6; }
6810fi
6811
a243b558
JF
6812
6813 test -n "$ac_ct_AR" && break
6814done
6815
6816 if test "x$ac_ct_AR" = x; then
6817 AR="false"
9c60689e
DWT
6818 else
6819 case $cross_compiling:$ac_tool_warned in
6820yes:)
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823ac_tool_warned=yes ;;
6824esac
a243b558 6825 AR=$ac_ct_AR
9c60689e 6826 fi
a243b558
JF
6827fi
6828
6829: ${AR=ar}
6830: ${AR_FLAGS=cru}
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6843$as_echo_n "checking for archiver @FILE support... " >&6; }
6844if ${lt_cv_ar_at_file+:} false; then :
6845 $as_echo_n "(cached) " >&6
9c60689e 6846else
a243b558
JF
6847 lt_cv_ar_at_file=no
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h. */
6850
6851int
6852main ()
6853{
6854
6855 ;
6856 return 0;
6857}
6858_ACEOF
6859if ac_fn_c_try_compile "$LINENO"; then :
6860 echo conftest.$ac_objext > conftest.lst
6861 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6863 (eval $lt_ar_try) 2>&5
6864 ac_status=$?
6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }
6867 if test "$ac_status" -eq 0; then
6868 # Ensure the archiver fails upon bogus file names.
6869 rm -f conftest.$ac_objext libconftest.a
6870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6871 (eval $lt_ar_try) 2>&5
6872 ac_status=$?
6873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6874 test $ac_status = 0; }
6875 if test "$ac_status" -ne 0; then
6876 lt_cv_ar_at_file=@
6877 fi
6878 fi
6879 rm -f conftest.* libconftest.a
6880
9c60689e 6881fi
a243b558 6882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6883
a243b558
JF
6884fi
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6886$as_echo "$lt_cv_ar_at_file" >&6; }
6887
6888if test "x$lt_cv_ar_at_file" = xno; then
6889 archiver_list_spec=
6890else
6891 archiver_list_spec=$lt_cv_ar_at_file
6892fi
6893
6894
6895
6896
6897
6898
6899
6900if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6902set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6905if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6906 $as_echo_n "(cached) " >&6
6907else
a243b558
JF
6908 if test -n "$STRIP"; then
6909 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6918 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923 done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
a243b558
JF
6928STRIP=$ac_cv_prog_STRIP
6929if test -n "$STRIP"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6931$as_echo "$STRIP" >&6; }
9c60689e
DWT
6932else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937
6938fi
a243b558
JF
6939if test -z "$ac_cv_prog_STRIP"; then
6940 ac_ct_STRIP=$STRIP
6941 # Extract the first word of "strip", so it can be a program name with args.
6942set dummy strip; ac_word=$2
9c60689e
DWT
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6945if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6946 $as_echo_n "(cached) " >&6
6947else
a243b558
JF
6948 if test -n "$ac_ct_STRIP"; then
6949 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6958 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962done
6963 done
6964IFS=$as_save_IFS
6965
6966fi
6967fi
a243b558
JF
6968ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6969if test -n "$ac_ct_STRIP"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6971$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6972else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974$as_echo "no" >&6; }
6975fi
6976
a243b558
JF
6977 if test "x$ac_ct_STRIP" = x; then
6978 STRIP=":"
9c60689e
DWT
6979 else
6980 case $cross_compiling:$ac_tool_warned in
6981yes:)
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984ac_tool_warned=yes ;;
6985esac
a243b558 6986 STRIP=$ac_ct_STRIP
9c60689e
DWT
6987 fi
6988else
a243b558 6989 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6990fi
6991
a243b558
JF
6992test -z "$STRIP" && STRIP=:
6993
6994
6995
6996
6997
6998
6999if test -n "$ac_tool_prefix"; then
7000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7001set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7004if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
7005 $as_echo_n "(cached) " >&6
7006else
a243b558
JF
7007 if test -n "$RANLIB"; then
7008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7017 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021done
7022 done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
a243b558
JF
7027RANLIB=$ac_cv_prog_RANLIB
7028if test -n "$RANLIB"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7030$as_echo "$RANLIB" >&6; }
9c60689e
DWT
7031else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036
7037fi
a243b558
JF
7038if test -z "$ac_cv_prog_RANLIB"; then
7039 ac_ct_RANLIB=$RANLIB
7040 # Extract the first word of "ranlib", so it can be a program name with args.
7041set dummy ranlib; ac_word=$2
9c60689e
DWT
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7044if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
7045 $as_echo_n "(cached) " >&6
7046else
a243b558
JF
7047 if test -n "$ac_ct_RANLIB"; then
7048 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
7049else
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7057 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061done
7062 done
7063IFS=$as_save_IFS
7064
7065fi
7066fi
a243b558
JF
7067ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7068if test -n "$ac_ct_RANLIB"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7070$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
7071else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073$as_echo "no" >&6; }
7074fi
7075
a243b558
JF
7076 if test "x$ac_ct_RANLIB" = x; then
7077 RANLIB=":"
9c60689e
DWT
7078 else
7079 case $cross_compiling:$ac_tool_warned in
7080yes:)
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083ac_tool_warned=yes ;;
7084esac
a243b558 7085 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
7086 fi
7087else
a243b558 7088 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
7089fi
7090
a243b558
JF
7091test -z "$RANLIB" && RANLIB=:
7092
7093
9c60689e 7094
9c60689e
DWT
7095
7096
a243b558
JF
7097
7098# Determine commands to create old-style static archives.
7099old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7100old_postinstall_cmds='chmod 644 $oldlib'
7101old_postuninstall_cmds=
7102
7103if test -n "$RANLIB"; then
7104 case $host_os in
7105 openbsd*)
7106 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7107 ;;
7108 *)
7109 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7110 ;;
7111 esac
7112 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
7113fi
7114
a243b558
JF
7115case $host_os in
7116 darwin*)
7117 lock_old_archive_extraction=yes ;;
7118 *)
7119 lock_old_archive_extraction=no ;;
9c60689e 7120esac
9c60689e 7121
9c60689e 7122
9c60689e
DWT
7123
7124
9c60689e 7125
9c60689e 7126
9c60689e
DWT
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
53ba6704 7154
9c60689e 7155
9c60689e 7156
9c60689e 7157
53ba6704 7158
a243b558
JF
7159
7160# If no C compiler was specified, use CC.
7161LTCC=${LTCC-"$CC"}
7162
7163# If no C compiler flags were specified, use CFLAGS.
7164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7165
7166# Allow CC to be a program name with arguments.
7167compiler=$CC
7168
7169
7170# Check for command to grab the raw symbol name followed by C symbol from nm.
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7172$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7173if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7174 $as_echo_n "(cached) " >&6
7175else
ee134472 7176
a243b558
JF
7177# These are sane defaults that work on at least a few old systems.
7178# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7179
a243b558
JF
7180# Character class describing NM global symbol codes.
7181symcode='[BCDEGRST]'
9c60689e 7182
a243b558
JF
7183# Regexp to match symbols that can be accessed directly from C.
7184sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7185
a243b558
JF
7186# Define system-specific variables.
7187case $host_os in
7188aix*)
7189 symcode='[BCDT]'
7190 ;;
7191cygwin* | mingw* | pw32* | cegcc*)
7192 symcode='[ABCDGISTW]'
7193 ;;
7194hpux*)
7195 if test "$host_cpu" = ia64; then
7196 symcode='[ABCDEGRST]'
7197 fi
7198 ;;
7199irix* | nonstopux*)
7200 symcode='[BCDEGRST]'
7201 ;;
7202osf*)
7203 symcode='[BCDEGQRST]'
7204 ;;
7205solaris*)
7206 symcode='[BDRT]'
7207 ;;
7208sco3.2v5*)
7209 symcode='[DT]'
7210 ;;
7211sysv4.2uw2*)
7212 symcode='[DT]'
7213 ;;
7214sysv5* | sco5v6* | unixware* | OpenUNIX*)
7215 symcode='[ABDT]'
7216 ;;
7217sysv4)
7218 symcode='[DFNSTU]'
7219 ;;
7220esac
9c60689e 7221
a243b558
JF
7222# If we're using GNU nm, then use its standard symbol codes.
7223case `$NM -V 2>&1` in
7224*GNU* | *'with BFD'*)
7225 symcode='[ABCDGIRSTW]' ;;
7226esac
9c60689e 7227
a243b558
JF
7228# Transform an extracted symbol line into a proper C declaration.
7229# Some systems (esp. on ia64) link data and code symbols differently,
7230# so use this general approach.
7231lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7232
a243b558
JF
7233# Transform an extracted symbol line into symbol name and symbol address
7234lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7235lt_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 7236
a243b558
JF
7237# Handle CRLF in mingw tool chain
7238opt_cr=
7239case $build_os in
7240mingw*)
7241 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7242 ;;
7243esac
9c60689e 7244
a243b558
JF
7245# Try without a prefix underscore, then with it.
7246for ac_symprfx in "" "_"; do
9c60689e 7247
a243b558
JF
7248 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7249 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7250
a243b558
JF
7251 # Write the raw and C identifiers.
7252 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7253 # Fake it for dumpbin and say T for any non-static function
7254 # and D for any global variable.
7255 # Also find C++ and __fastcall symbols from MSVC++,
7256 # which start with @ or ?.
7257 lt_cv_sys_global_symbol_pipe="$AWK '"\
7258" {last_section=section; section=\$ 3};"\
7259" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7260" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7261" \$ 0!~/External *\|/{next};"\
7262" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7263" {if(hide[section]) next};"\
7264" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7265" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7266" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7267" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7268" ' prfx=^$ac_symprfx"
7269 else
7270 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7271 fi
7272 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7273
a243b558
JF
7274 # Check to see that the pipe works correctly.
7275 pipe_works=no
9c60689e 7276
00a96142 7277 rm -rf conftest*
a243b558
JF
7278 cat > conftest.$ac_ext <<_LT_EOF
7279#ifdef __cplusplus
7280extern "C" {
7281#endif
7282char nm_test_var;
7283void nm_test_func(void);
7284void nm_test_func(void){}
7285#ifdef __cplusplus
7286}
7287#endif
7288int main(){nm_test_var='a';nm_test_func();return(0);}
7289_LT_EOF
9c60689e 7290
a243b558
JF
7291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7292 (eval $ac_compile) 2>&5
7293 ac_status=$?
7294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; }; then
7296 # Now try to grab the symbols.
7297 nlist=conftest.nm
7298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7299 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7300 ac_status=$?
7301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302 test $ac_status = 0; } && test -s "$nlist"; then
7303 # Try sorting and uniquifying the output.
7304 if sort "$nlist" | uniq > "$nlist"T; then
7305 mv -f "$nlist"T "$nlist"
7306 else
7307 rm -f "$nlist"T
7308 fi
9c60689e 7309
a243b558
JF
7310 # Make sure that we snagged all the symbols we need.
7311 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7312 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7313 cat <<_LT_EOF > conftest.$ac_ext
7314/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7315#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7316/* DATA imports from DLLs on WIN32 con't be const, because runtime
7317 relocations are performed -- see ld's documentation on pseudo-relocs. */
7318# define LT_DLSYM_CONST
7319#elif defined(__osf__)
7320/* This system does not cope well with relocations in const data. */
7321# define LT_DLSYM_CONST
7322#else
7323# define LT_DLSYM_CONST const
7324#endif
9c60689e 7325
a243b558
JF
7326#ifdef __cplusplus
7327extern "C" {
7328#endif
9c60689e 7329
a243b558
JF
7330_LT_EOF
7331 # Now generate the symbol file.
7332 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7333
a243b558 7334 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7335
a243b558
JF
7336/* The mapping between symbol names and symbols. */
7337LT_DLSYM_CONST struct {
7338 const char *name;
7339 void *address;
7340}
7341lt__PROGRAM__LTX_preloaded_symbols[] =
7342{
7343 { "@PROGRAM@", (void *) 0 },
7344_LT_EOF
7345 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7346 cat <<\_LT_EOF >> conftest.$ac_ext
7347 {0, (void *) 0}
7348};
9c60689e 7349
a243b558
JF
7350/* This works around a problem in FreeBSD linker */
7351#ifdef FREEBSD_WORKAROUND
7352static const void *lt_preloaded_setup() {
7353 return lt__PROGRAM__LTX_preloaded_symbols;
7354}
7355#endif
9c60689e 7356
a243b558
JF
7357#ifdef __cplusplus
7358}
7359#endif
7360_LT_EOF
7361 # Now try linking the two files.
7362 mv conftest.$ac_objext conftstm.$ac_objext
7363 lt_globsym_save_LIBS=$LIBS
7364 lt_globsym_save_CFLAGS=$CFLAGS
7365 LIBS="conftstm.$ac_objext"
7366 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7368 (eval $ac_link) 2>&5
7369 ac_status=$?
7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7372 pipe_works=yes
7373 fi
7374 LIBS=$lt_globsym_save_LIBS
7375 CFLAGS=$lt_globsym_save_CFLAGS
7376 else
7377 echo "cannot find nm_test_func in $nlist" >&5
7378 fi
7379 else
7380 echo "cannot find nm_test_var in $nlist" >&5
7381 fi
7382 else
7383 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7384 fi
7385 else
7386 echo "$progname: failed program was:" >&5
7387 cat conftest.$ac_ext >&5
7388 fi
7389 rm -rf conftest* conftst*
9c60689e 7390
a243b558
JF
7391 # Do not use the global_symbol_pipe unless it works.
7392 if test "$pipe_works" = yes; then
7393 break
7394 else
7395 lt_cv_sys_global_symbol_pipe=
7396 fi
7397done
9c60689e 7398
9c60689e 7399fi
9c60689e 7400
a243b558
JF
7401if test -z "$lt_cv_sys_global_symbol_pipe"; then
7402 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7403fi
a243b558
JF
7404if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7406$as_echo "failed" >&6; }
9c60689e 7407else
a243b558
JF
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7409$as_echo "ok" >&6; }
9c60689e
DWT
7410fi
7411
a243b558
JF
7412# Response file support.
7413if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7414 nm_file_list_spec='@'
7415elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7416 nm_file_list_spec='@'
9c60689e 7417fi
9c60689e 7418
9c60689e 7419
9c60689e 7420
9c60689e 7421
9c60689e 7422
9c60689e
DWT
7423
7424
9c60689e 7425
9c60689e 7426
9c60689e
DWT
7427
7428
7429
ee134472
JF
7430
7431
9c60689e
DWT
7432
7433
7434
7435
7436
7437
7438
7439
7440
549f29b5 7441
549f29b5
DWT
7442
7443
549f29b5 7444
a243b558
JF
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7446$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7447
a243b558
JF
7448# Check whether --with-sysroot was given.
7449if test "${with_sysroot+set}" = set; then :
7450 withval=$with_sysroot;
9c60689e 7451else
a243b558 7452 with_sysroot=no
9c60689e
DWT
7453fi
7454
7455
a243b558
JF
7456lt_sysroot=
7457case ${with_sysroot} in #(
7458 yes)
7459 if test "$GCC" = yes; then
7460 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7461 fi
7462 ;; #(
7463 /*)
7464 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7465 ;; #(
7466 no|'')
7467 ;; #(
7468 *)
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7470$as_echo "${with_sysroot}" >&6; }
7471 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7472 ;;
7473esac
9c60689e 7474
a243b558
JF
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7476$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7477
7478
7479
7480
7481
a243b558
JF
7482# Check whether --enable-libtool-lock was given.
7483if test "${enable_libtool_lock+set}" = set; then :
7484 enableval=$enable_libtool_lock;
9c60689e
DWT
7485fi
7486
a243b558 7487test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9c60689e 7488
a243b558
JF
7489# Some flags need to be propagated to the compiler or linker for good
7490# libtool support.
7491case $host in
7492ia64-*-hpux*)
7493 # Find out which ABI we are using.
7494 echo 'int i;' > conftest.$ac_ext
7495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7496 (eval $ac_compile) 2>&5
7497 ac_status=$?
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 case `/usr/bin/file conftest.$ac_objext` in
7501 *ELF-32*)
7502 HPUX_IA64_MODE="32"
7503 ;;
7504 *ELF-64*)
7505 HPUX_IA64_MODE="64"
7506 ;;
7507 esac
7508 fi
7509 rm -rf conftest*
7510 ;;
7511*-*-irix6*)
7512 # Find out which ABI we are using.
7513 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7515 (eval $ac_compile) 2>&5
7516 ac_status=$?
7517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518 test $ac_status = 0; }; then
7519 if test "$lt_cv_prog_gnu_ld" = yes; then
7520 case `/usr/bin/file conftest.$ac_objext` in
7521 *32-bit*)
7522 LD="${LD-ld} -melf32bsmip"
7523 ;;
7524 *N32*)
7525 LD="${LD-ld} -melf32bmipn32"
7526 ;;
7527 *64-bit*)
7528 LD="${LD-ld} -melf64bmip"
7529 ;;
7530 esac
7531 else
7532 case `/usr/bin/file conftest.$ac_objext` in
7533 *32-bit*)
7534 LD="${LD-ld} -32"
7535 ;;
7536 *N32*)
7537 LD="${LD-ld} -n32"
7538 ;;
7539 *64-bit*)
7540 LD="${LD-ld} -64"
7541 ;;
7542 esac
7543 fi
7544 fi
7545 rm -rf conftest*
7546 ;;
9c60689e 7547
a243b558
JF
7548x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7549s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7550 # Find out which ABI we are using.
7551 echo 'int i;' > conftest.$ac_ext
7552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7553 (eval $ac_compile) 2>&5
7554 ac_status=$?
7555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7556 test $ac_status = 0; }; then
7557 case `/usr/bin/file conftest.o` in
7558 *32-bit*)
7559 case $host in
7560 x86_64-*kfreebsd*-gnu)
7561 LD="${LD-ld} -m elf_i386_fbsd"
7562 ;;
7563 x86_64-*linux*)
7564 LD="${LD-ld} -m elf_i386"
7565 ;;
7566 ppc64-*linux*|powerpc64-*linux*)
7567 LD="${LD-ld} -m elf32ppclinux"
7568 ;;
7569 s390x-*linux*)
7570 LD="${LD-ld} -m elf_s390"
7571 ;;
7572 sparc64-*linux*)
7573 LD="${LD-ld} -m elf32_sparc"
7574 ;;
7575 esac
7576 ;;
7577 *64-bit*)
7578 case $host in
7579 x86_64-*kfreebsd*-gnu)
7580 LD="${LD-ld} -m elf_x86_64_fbsd"
7581 ;;
7582 x86_64-*linux*)
7583 LD="${LD-ld} -m elf_x86_64"
7584 ;;
7585 ppc*-*linux*|powerpc*-*linux*)
7586 LD="${LD-ld} -m elf64ppc"
7587 ;;
7588 s390*-*linux*|s390*-*tpf*)
7589 LD="${LD-ld} -m elf64_s390"
7590 ;;
7591 sparc*-*linux*)
7592 LD="${LD-ld} -m elf64_sparc"
7593 ;;
7594 esac
7595 ;;
7596 esac
7597 fi
7598 rm -rf conftest*
7599 ;;
9c60689e 7600
a243b558
JF
7601*-*-sco3.2v5*)
7602 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7603 SAVE_CFLAGS="$CFLAGS"
7604 CFLAGS="$CFLAGS -belf"
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7606$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7607if ${lt_cv_cc_needs_belf+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609else
7610 ac_ext=c
7611ac_cpp='$CPP $CPPFLAGS'
7612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7614ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7615
a243b558
JF
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617/* end confdefs.h. */
9c60689e 7618
a243b558
JF
7619int
7620main ()
7621{
9c60689e 7622
a243b558
JF
7623 ;
7624 return 0;
7625}
7626_ACEOF
7627if ac_fn_c_try_link "$LINENO"; then :
7628 lt_cv_cc_needs_belf=yes
9c60689e 7629else
a243b558 7630 lt_cv_cc_needs_belf=no
9c60689e 7631fi
a243b558
JF
7632rm -f core conftest.err conftest.$ac_objext \
7633 conftest$ac_exeext conftest.$ac_ext
7634 ac_ext=c
7635ac_cpp='$CPP $CPPFLAGS'
7636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7639
a243b558
JF
7640fi
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7642$as_echo "$lt_cv_cc_needs_belf" >&6; }
7643 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7644 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7645 CFLAGS="$SAVE_CFLAGS"
7646 fi
7647 ;;
7648*-*solaris*)
7649 # Find out which ABI we are using.
7650 echo 'int i;' > conftest.$ac_ext
7651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7652 (eval $ac_compile) 2>&5
7653 ac_status=$?
7654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7655 test $ac_status = 0; }; then
7656 case `/usr/bin/file conftest.o` in
7657 *64-bit*)
7658 case $lt_cv_prog_gnu_ld in
7659 yes*)
7660 case $host in
7661 i?86-*-solaris*)
7662 LD="${LD-ld} -m elf_x86_64"
7663 ;;
7664 sparc*-*-solaris*)
7665 LD="${LD-ld} -m elf64_sparc"
7666 ;;
7667 esac
7668 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7669 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7670 LD="${LD-ld}_sol2"
7671 fi
7672 ;;
7673 *)
7674 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7675 LD="${LD-ld} -64"
7676 fi
7677 ;;
7678 esac
7679 ;;
7680 esac
7681 fi
7682 rm -rf conftest*
7683 ;;
7684esac
9c60689e 7685
a243b558 7686need_locks="$enable_libtool_lock"
9c60689e 7687
a243b558
JF
7688if test -n "$ac_tool_prefix"; then
7689 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7690set dummy ${ac_tool_prefix}mt; ac_word=$2
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692$as_echo_n "checking for $ac_word... " >&6; }
7693if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695else
7696 if test -n "$MANIFEST_TOOL"; then
7697 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7698else
7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710done
7711 done
7712IFS=$as_save_IFS
9c60689e 7713
a243b558
JF
7714fi
7715fi
7716MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7717if test -n "$MANIFEST_TOOL"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7719$as_echo "$MANIFEST_TOOL" >&6; }
7720else
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722$as_echo "no" >&6; }
7723fi
9c60689e
DWT
7724
7725
a243b558
JF
7726fi
7727if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7728 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7729 # Extract the first word of "mt", so it can be a program name with args.
7730set dummy mt; ac_word=$2
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735else
7736 if test -n "$ac_ct_MANIFEST_TOOL"; then
7737 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751 done
7752IFS=$as_save_IFS
9c60689e 7753
a243b558
JF
7754fi
7755fi
7756ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7757if test -n "$ac_ct_MANIFEST_TOOL"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7759$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7760else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763fi
9c60689e 7764
a243b558
JF
7765 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7766 MANIFEST_TOOL=":"
7767 else
7768 case $cross_compiling:$ac_tool_warned in
7769yes:)
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7772ac_tool_warned=yes ;;
7773esac
7774 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7775 fi
7776else
7777 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7778fi
9c60689e 7779
a243b558
JF
7780test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7782$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7783if ${lt_cv_path_mainfest_tool+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785else
7786 lt_cv_path_mainfest_tool=no
7787 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7788 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7789 cat conftest.err >&5
7790 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7791 lt_cv_path_mainfest_tool=yes
7792 fi
00a96142 7793 rm -rf conftest*
a243b558
JF
7794fi
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7796$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7797if test "x$lt_cv_path_mainfest_tool" != xyes; then
7798 MANIFEST_TOOL=:
7799fi
9c60689e
DWT
7800
7801
7802
7803
7804
7805
a243b558
JF
7806 case $host_os in
7807 rhapsody* | darwin*)
7808 if test -n "$ac_tool_prefix"; then
7809 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7810set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812$as_echo_n "checking for $ac_word... " >&6; }
7813if ${ac_cv_prog_DSYMUTIL+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815else
7816 if test -n "$DSYMUTIL"; then
7817 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7818else
7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830done
7831 done
7832IFS=$as_save_IFS
9c60689e 7833
a243b558
JF
7834fi
7835fi
7836DSYMUTIL=$ac_cv_prog_DSYMUTIL
7837if test -n "$DSYMUTIL"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7839$as_echo "$DSYMUTIL" >&6; }
7840else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842$as_echo "no" >&6; }
7843fi
9c60689e
DWT
7844
7845
9c60689e 7846fi
a243b558
JF
7847if test -z "$ac_cv_prog_DSYMUTIL"; then
7848 ac_ct_DSYMUTIL=$DSYMUTIL
7849 # Extract the first word of "dsymutil", so it can be a program name with args.
7850set dummy dsymutil; ac_word=$2
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852$as_echo_n "checking for $ac_word... " >&6; }
7853if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
7854 $as_echo_n "(cached) " >&6
7855else
a243b558
JF
7856 if test -n "$ac_ct_DSYMUTIL"; then
7857 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 7858else
a243b558
JF
7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870done
7871 done
7872IFS=$as_save_IFS
7873
9c60689e 7874fi
9c60689e 7875fi
a243b558
JF
7876ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7877if test -n "$ac_ct_DSYMUTIL"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7879$as_echo "$ac_ct_DSYMUTIL" >&6; }
7880else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882$as_echo "no" >&6; }
7883fi
9c60689e 7884
a243b558
JF
7885 if test "x$ac_ct_DSYMUTIL" = x; then
7886 DSYMUTIL=":"
7887 else
7888 case $cross_compiling:$ac_tool_warned in
7889yes:)
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7892ac_tool_warned=yes ;;
9c60689e 7893esac
a243b558
JF
7894 DSYMUTIL=$ac_ct_DSYMUTIL
7895 fi
7896else
7897 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7898fi
9c60689e 7899
a243b558
JF
7900 if test -n "$ac_tool_prefix"; then
7901 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7902set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904$as_echo_n "checking for $ac_word... " >&6; }
7905if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
7906 $as_echo_n "(cached) " >&6
7907else
a243b558
JF
7908 if test -n "$NMEDIT"; then
7909 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7910else
7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912for as_dir in $PATH
7913do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922done
9c60689e 7923 done
a243b558 7924IFS=$as_save_IFS
9c60689e 7925
a243b558
JF
7926fi
7927fi
7928NMEDIT=$ac_cv_prog_NMEDIT
7929if test -n "$NMEDIT"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7931$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
7932else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934$as_echo "no" >&6; }
7935fi
7936
7937
a243b558
JF
7938fi
7939if test -z "$ac_cv_prog_NMEDIT"; then
7940 ac_ct_NMEDIT=$NMEDIT
7941 # Extract the first word of "nmedit", so it can be a program name with args.
7942set dummy nmedit; ac_word=$2
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944$as_echo_n "checking for $ac_word... " >&6; }
7945if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
7946 $as_echo_n "(cached) " >&6
7947else
a243b558
JF
7948 if test -n "$ac_ct_NMEDIT"; then
7949 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7950else
7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952for as_dir in $PATH
7953do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962done
9c60689e 7963 done
a243b558 7964IFS=$as_save_IFS
9c60689e 7965
a243b558
JF
7966fi
7967fi
7968ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7969if test -n "$ac_ct_NMEDIT"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7971$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
7972else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974$as_echo "no" >&6; }
7975fi
7976
a243b558
JF
7977 if test "x$ac_ct_NMEDIT" = x; then
7978 NMEDIT=":"
9c60689e 7979 else
a243b558
JF
7980 case $cross_compiling:$ac_tool_warned in
7981yes:)
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7984ac_tool_warned=yes ;;
7985esac
7986 NMEDIT=$ac_ct_NMEDIT
9c60689e 7987 fi
a243b558
JF
7988else
7989 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
7990fi
7991
a243b558
JF
7992 if test -n "$ac_tool_prefix"; then
7993 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7994set dummy ${ac_tool_prefix}lipo; ac_word=$2
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996$as_echo_n "checking for $ac_word... " >&6; }
7997if ${ac_cv_prog_LIPO+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999else
8000 if test -n "$LIPO"; then
8001 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8002else
8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004for as_dir in $PATH
8005do
8006 IFS=$as_save_IFS
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 break 2
8013 fi
8014done
8015 done
8016IFS=$as_save_IFS
9c60689e 8017
a243b558
JF
8018fi
8019fi
8020LIPO=$ac_cv_prog_LIPO
8021if test -n "$LIPO"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8023$as_echo "$LIPO" >&6; }
8024else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026$as_echo "no" >&6; }
8027fi
9c60689e 8028
9c60689e 8029
a243b558
JF
8030fi
8031if test -z "$ac_cv_prog_LIPO"; then
8032 ac_ct_LIPO=$LIPO
8033 # Extract the first word of "lipo", so it can be a program name with args.
8034set dummy lipo; ac_word=$2
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036$as_echo_n "checking for $ac_word... " >&6; }
8037if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
8038 $as_echo_n "(cached) " >&6
8039else
a243b558
JF
8040 if test -n "$ac_ct_LIPO"; then
8041 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8042else
8043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044for as_dir in $PATH
8045do
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_ac_ct_LIPO="lipo"
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 break 2
8053 fi
8054done
8055 done
8056IFS=$as_save_IFS
9c60689e
DWT
8057
8058fi
a243b558
JF
8059fi
8060ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8061if test -n "$ac_ct_LIPO"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8063$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 8064else
a243b558
JF
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066$as_echo "no" >&6; }
9c60689e
DWT
8067fi
8068
a243b558
JF
8069 if test "x$ac_ct_LIPO" = x; then
8070 LIPO=":"
8071 else
8072 case $cross_compiling:$ac_tool_warned in
8073yes:)
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076ac_tool_warned=yes ;;
8077esac
8078 LIPO=$ac_ct_LIPO
8079 fi
8080else
8081 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
8082fi
8083
a243b558
JF
8084 if test -n "$ac_tool_prefix"; then
8085 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8086set dummy ${ac_tool_prefix}otool; ac_word=$2
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088$as_echo_n "checking for $ac_word... " >&6; }
8089if ${ac_cv_prog_OTOOL+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091else
8092 if test -n "$OTOOL"; then
8093 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8094else
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106done
8107 done
8108IFS=$as_save_IFS
9c60689e 8109
a243b558
JF
8110fi
8111fi
8112OTOOL=$ac_cv_prog_OTOOL
8113if test -n "$OTOOL"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8115$as_echo "$OTOOL" >&6; }
8116else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
8119fi
9c60689e
DWT
8120
8121
a243b558
JF
8122fi
8123if test -z "$ac_cv_prog_OTOOL"; then
8124 ac_ct_OTOOL=$OTOOL
8125 # Extract the first word of "otool", so it can be a program name with args.
8126set dummy otool; ac_word=$2
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128$as_echo_n "checking for $ac_word... " >&6; }
8129if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131else
8132 if test -n "$ac_ct_OTOOL"; then
8133 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8134else
8135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136for as_dir in $PATH
8137do
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_ac_ct_OTOOL="otool"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8145 fi
8146done
8147 done
8148IFS=$as_save_IFS
9c60689e 8149
a243b558
JF
8150fi
8151fi
8152ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8153if test -n "$ac_ct_OTOOL"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8155$as_echo "$ac_ct_OTOOL" >&6; }
8156else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }
8159fi
9c60689e 8160
a243b558
JF
8161 if test "x$ac_ct_OTOOL" = x; then
8162 OTOOL=":"
8163 else
8164 case $cross_compiling:$ac_tool_warned in
8165yes:)
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168ac_tool_warned=yes ;;
8169esac
8170 OTOOL=$ac_ct_OTOOL
8171 fi
8172else
8173 OTOOL="$ac_cv_prog_OTOOL"
8174fi
9c60689e 8175
a243b558
JF
8176 if test -n "$ac_tool_prefix"; then
8177 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8178set dummy ${ac_tool_prefix}otool64; ac_word=$2
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180$as_echo_n "checking for $ac_word... " >&6; }
8181if ${ac_cv_prog_OTOOL64+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183else
8184 if test -n "$OTOOL64"; then
8185 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8186else
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8197 fi
8198done
8199 done
8200IFS=$as_save_IFS
9c60689e 8201
a243b558
JF
8202fi
8203fi
8204OTOOL64=$ac_cv_prog_OTOOL64
8205if test -n "$OTOOL64"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8207$as_echo "$OTOOL64" >&6; }
8208else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210$as_echo "no" >&6; }
8211fi
9c60689e 8212
9c60689e 8213
a243b558
JF
8214fi
8215if test -z "$ac_cv_prog_OTOOL64"; then
8216 ac_ct_OTOOL64=$OTOOL64
8217 # Extract the first word of "otool64", so it can be a program name with args.
8218set dummy otool64; ac_word=$2
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
8221if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223else
8224 if test -n "$ac_ct_OTOOL64"; then
8225 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8226else
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234 ac_cv_prog_ac_ct_OTOOL64="otool64"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238done
8239 done
8240IFS=$as_save_IFS
9c60689e 8241
a243b558
JF
8242fi
8243fi
8244ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8245if test -n "$ac_ct_OTOOL64"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8247$as_echo "$ac_ct_OTOOL64" >&6; }
8248else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
8251fi
9c60689e 8252
a243b558
JF
8253 if test "x$ac_ct_OTOOL64" = x; then
8254 OTOOL64=":"
8255 else
8256 case $cross_compiling:$ac_tool_warned in
8257yes:)
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260ac_tool_warned=yes ;;
8261esac
8262 OTOOL64=$ac_ct_OTOOL64
8263 fi
8264else
8265 OTOOL64="$ac_cv_prog_OTOOL64"
8266fi
ee134472 8267
9c60689e 8268
9c60689e 8269
9c60689e 8270
9c60689e 8271
9c60689e 8272
ee134472 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
9c60689e 8288
9c60689e 8289
9c60689e 8290
9c60689e 8291
a243b558
JF
8292
8293
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8295$as_echo_n "checking for -single_module linker flag... " >&6; }
8296if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8297 $as_echo_n "(cached) " >&6
8298else
a243b558
JF
8299 lt_cv_apple_cc_single_mod=no
8300 if test -z "${LT_MULTI_MODULE}"; then
8301 # By default we will add the -single_module flag. You can override
8302 # by either setting the environment variable LT_MULTI_MODULE
8303 # non-empty at configure time, or by adding -multi_module to the
8304 # link flags.
8305 rm -rf libconftest.dylib*
8306 echo "int foo(void){return 1;}" > conftest.c
8307 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8308-dynamiclib -Wl,-single_module conftest.c" >&5
8309 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8310 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8311 _lt_result=$?
8312 # If there is a non-empty error log, and "single_module"
8313 # appears in it, assume the flag caused a linker warning
8314 if test -s conftest.err && $GREP single_module conftest.err; then
8315 cat conftest.err >&5
8316 # Otherwise, if the output was created with a 0 exit code from
8317 # the compiler, it worked.
8318 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8319 lt_cv_apple_cc_single_mod=yes
8320 else
8321 cat conftest.err >&5
8322 fi
8323 rm -rf libconftest.dylib*
8324 rm -f conftest.*
8325 fi
ee134472 8326fi
a243b558
JF
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8328$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8329
a243b558
JF
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8331$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8332if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8333 $as_echo_n "(cached) " >&6
8334else
a243b558
JF
8335 lt_cv_ld_exported_symbols_list=no
8336 save_LDFLAGS=$LDFLAGS
8337 echo "_main" > conftest.sym
8338 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340/* end confdefs.h. */
9c60689e 8341
a243b558
JF
8342int
8343main ()
8344{
9c60689e 8345
a243b558
JF
8346 ;
8347 return 0;
8348}
8349_ACEOF
8350if ac_fn_c_try_link "$LINENO"; then :
8351 lt_cv_ld_exported_symbols_list=yes
9c60689e 8352else
a243b558 8353 lt_cv_ld_exported_symbols_list=no
9c60689e 8354fi
a243b558
JF
8355rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357 LDFLAGS="$save_LDFLAGS"
9c60689e
DWT
8358
8359fi
a243b558
JF
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8361$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8362
a243b558
JF
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8364$as_echo_n "checking for -force_load linker flag... " >&6; }
8365if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8366 $as_echo_n "(cached) " >&6
8367else
a243b558
JF
8368 lt_cv_ld_force_load=no
8369 cat > conftest.c << _LT_EOF
8370int forced_loaded() { return 2;}
8371_LT_EOF
8372 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8373 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8374 echo "$AR cru libconftest.a conftest.o" >&5
8375 $AR cru libconftest.a conftest.o 2>&5
8376 echo "$RANLIB libconftest.a" >&5
8377 $RANLIB libconftest.a 2>&5
8378 cat > conftest.c << _LT_EOF
8379int main() { return 0;}
8380_LT_EOF
8381 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8382 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8383 _lt_result=$?
8384 if test -s conftest.err && $GREP force_load conftest.err; then
8385 cat conftest.err >&5
8386 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8387 lt_cv_ld_force_load=yes
8388 else
8389 cat conftest.err >&5
8390 fi
8391 rm -f conftest.err libconftest.a conftest conftest.c
8392 rm -rf conftest.dSYM
9c60689e
DWT
8393
8394fi
a243b558
JF
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8396$as_echo "$lt_cv_ld_force_load" >&6; }
8397 case $host_os in
8398 rhapsody* | darwin1.[012])
8399 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8400 darwin1.*)
8401 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8402 darwin*) # darwin 5.x on
8403 # if running on 10.5 or later, the deployment target defaults
8404 # to the OS version, if on x86, and 10.4, the deployment
8405 # target defaults to 10.4. Don't you love it?
8406 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8407 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8408 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8409 10.[012]*)
8410 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8411 10.*)
8412 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8413 esac
8414 ;;
8415 esac
8416 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8417 _lt_dar_single_mod='$single_module'
8418 fi
8419 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8420 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8421 else
8422 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8423 fi
8424 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8425 _lt_dsymutil='~$DSYMUTIL $lib || :'
8426 else
8427 _lt_dsymutil=
8428 fi
8429 ;;
8430 esac
9c60689e 8431
a243b558
JF
8432ac_ext=c
8433ac_cpp='$CPP $CPPFLAGS'
8434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8436ac_compiler_gnu=$ac_cv_c_compiler_gnu
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8438$as_echo_n "checking how to run the C preprocessor... " >&6; }
8439# On Suns, sometimes $CPP names a directory.
8440if test -n "$CPP" && test -d "$CPP"; then
8441 CPP=
9c60689e 8442fi
a243b558
JF
8443if test -z "$CPP"; then
8444 if ${ac_cv_prog_CPP+:} false; then :
8445 $as_echo_n "(cached) " >&6
8446else
8447 # Double quotes because CPP needs to be expanded
8448 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8449 do
8450 ac_preproc_ok=false
8451for ac_c_preproc_warn_flag in '' yes
8452do
8453 # Use a header file that comes with gcc, so configuring glibc
8454 # with a fresh cross-compiler works.
8455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456 # <limits.h> exists even on freestanding compilers.
8457 # On the NeXT, cc -E runs the code through the compiler's parser,
8458 # not just through cpp. "Syntax error" is here to catch this case.
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h. */
8461#ifdef __STDC__
8462# include <limits.h>
8463#else
8464# include <assert.h>
8465#endif
8466 Syntax error
8467_ACEOF
8468if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8469
a243b558
JF
8470else
8471 # Broken: fails on valid input.
8472continue
8473fi
8474rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8475
a243b558
JF
8476 # OK, works on sane cases. Now check whether nonexistent headers
8477 # can be detected and how.
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h. */
8480#include <ac_nonexistent.h>
8481_ACEOF
8482if ac_fn_c_try_cpp "$LINENO"; then :
8483 # Broken: success on invalid input.
8484continue
8485else
8486 # Passes both tests.
8487ac_preproc_ok=:
8488break
8489fi
8490rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8491
a243b558
JF
8492done
8493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8494rm -f conftest.i conftest.err conftest.$ac_ext
8495if $ac_preproc_ok; then :
8496 break
8497fi
9c60689e 8498
a243b558
JF
8499 done
8500 ac_cv_prog_CPP=$CPP
9c60689e 8501
a243b558
JF
8502fi
8503 CPP=$ac_cv_prog_CPP
9c60689e 8504else
a243b558
JF
8505 ac_cv_prog_CPP=$CPP
8506fi
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8508$as_echo "$CPP" >&6; }
8509ac_preproc_ok=false
8510for ac_c_preproc_warn_flag in '' yes
8511do
8512 # Use a header file that comes with gcc, so configuring glibc
8513 # with a fresh cross-compiler works.
8514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8515 # <limits.h> exists even on freestanding compilers.
8516 # On the NeXT, cc -E runs the code through the compiler's parser,
8517 # not just through cpp. "Syntax error" is here to catch this case.
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h. */
8520#ifdef __STDC__
8521# include <limits.h>
8522#else
8523# include <assert.h>
8524#endif
8525 Syntax error
8526_ACEOF
8527if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8528
a243b558
JF
8529else
8530 # Broken: fails on valid input.
8531continue
9c60689e 8532fi
a243b558 8533rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8534
a243b558
JF
8535 # OK, works on sane cases. Now check whether nonexistent headers
8536 # can be detected and how.
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538/* end confdefs.h. */
8539#include <ac_nonexistent.h>
8540_ACEOF
8541if ac_fn_c_try_cpp "$LINENO"; then :
8542 # Broken: success on invalid input.
8543continue
8544else
8545 # Passes both tests.
8546ac_preproc_ok=:
8547break
8548fi
8549rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8550
a243b558
JF
8551done
8552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8553rm -f conftest.i conftest.err conftest.$ac_ext
8554if $ac_preproc_ok; then :
9c60689e 8555
a243b558
JF
8556else
8557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8559as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8560See \`config.log' for more details" "$LINENO" 5; }
8561fi
9c60689e 8562
a243b558
JF
8563ac_ext=c
8564ac_cpp='$CPP $CPPFLAGS'
8565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8567ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8568
8569
a243b558
JF
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8571$as_echo_n "checking for ANSI C header files... " >&6; }
8572if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8573 $as_echo_n "(cached) " >&6
8574else
a243b558
JF
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h. */
8577#include <stdlib.h>
8578#include <stdarg.h>
8579#include <string.h>
8580#include <float.h>
9c60689e 8581
a243b558
JF
8582int
8583main ()
8584{
9c60689e 8585
a243b558
JF
8586 ;
8587 return 0;
8588}
8589_ACEOF
8590if ac_fn_c_try_compile "$LINENO"; then :
8591 ac_cv_header_stdc=yes
8592else
8593 ac_cv_header_stdc=no
9c60689e 8594fi
a243b558
JF
8595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596
8597if test $ac_cv_header_stdc = yes; then
8598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600/* end confdefs.h. */
8601#include <string.h>
9c60689e 8602
a243b558
JF
8603_ACEOF
8604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8605 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8606
a243b558
JF
8607else
8608 ac_cv_header_stdc=no
8609fi
8610rm -f conftest*
9c60689e 8611
a243b558
JF
8612fi
8613
8614if test $ac_cv_header_stdc = yes; then
8615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617/* end confdefs.h. */
8618#include <stdlib.h>
8619
8620_ACEOF
8621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8622 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8623
9c60689e 8624else
a243b558 8625 ac_cv_header_stdc=no
9c60689e 8626fi
a243b558 8627rm -f conftest*
9c60689e 8628
a243b558 8629fi
9c60689e 8630
a243b558
JF
8631if test $ac_cv_header_stdc = yes; then
8632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8633 if test "$cross_compiling" = yes; then :
8634 :
8635else
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h. */
8638#include <ctype.h>
8639#include <stdlib.h>
8640#if ((' ' & 0x0FF) == 0x020)
8641# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8642# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8643#else
8644# define ISLOWER(c) \
8645 (('a' <= (c) && (c) <= 'i') \
8646 || ('j' <= (c) && (c) <= 'r') \
8647 || ('s' <= (c) && (c) <= 'z'))
8648# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8649#endif
9c60689e 8650
a243b558
JF
8651#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8652int
8653main ()
8654{
8655 int i;
8656 for (i = 0; i < 256; i++)
8657 if (XOR (islower (i), ISLOWER (i))
8658 || toupper (i) != TOUPPER (i))
8659 return 2;
8660 return 0;
8661}
8662_ACEOF
8663if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8664
a243b558
JF
8665else
8666 ac_cv_header_stdc=no
8667fi
8668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8669 conftest.$ac_objext conftest.beam conftest.$ac_ext
8670fi
9c60689e 8671
a243b558
JF
8672fi
8673fi
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8675$as_echo "$ac_cv_header_stdc" >&6; }
8676if test $ac_cv_header_stdc = yes; then
9c60689e 8677
a243b558 8678$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8679
a243b558 8680fi
9c60689e 8681
a243b558
JF
8682# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8683for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8684 inttypes.h stdint.h unistd.h
8685do :
8686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8687ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8688"
8689if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8690 cat >>confdefs.h <<_ACEOF
8691#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8692_ACEOF
9c60689e 8693
a243b558 8694fi
ee134472 8695
a243b558 8696done
ee134472 8697
9c60689e 8698
a243b558
JF
8699for ac_header in dlfcn.h
8700do :
8701 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8702"
8703if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8704 cat >>confdefs.h <<_ACEOF
8705#define HAVE_DLFCN_H 1
8706_ACEOF
9c60689e 8707
a243b558 8708fi
9c60689e 8709
a243b558 8710done
9c60689e 8711
9c60689e 8712
9c60689e 8713
9c60689e 8714
a243b558
JF
8715func_stripname_cnf ()
8716{
8717 case ${2} in
8718 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8719 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8720 esac
8721} # func_stripname_cnf
9c60689e 8722
9c60689e 8723
ee134472 8724
a243b558
JF
8725
8726
8727# Set options
8728# Check whether --enable-static was given.
8729if test "${enable_static+set}" = set; then :
8730 enableval=$enable_static; p=${PACKAGE-default}
8731 case $enableval in
8732 yes) enable_static=yes ;;
8733 no) enable_static=no ;;
8734 *)
8735 enable_static=no
8736 # Look at the argument we got. We use all the common list separators.
8737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8738 for pkg in $enableval; do
8739 IFS="$lt_save_ifs"
8740 if test "X$pkg" = "X$p"; then
8741 enable_static=yes
8742 fi
8743 done
8744 IFS="$lt_save_ifs"
9c60689e 8745 ;;
a243b558
JF
8746 esac
8747else
8748 enable_static=no
8749fi
9c60689e 8750
9c60689e 8751
9c60689e 8752
9c60689e 8753
9c60689e 8754
9c60689e 8755
9c60689e 8756
9c60689e 8757
9c60689e 8758
9c60689e 8759
a243b558 8760 enable_dlopen=no
9c60689e 8761
9c60689e 8762
a243b558
JF
8763 enable_win32_dll=no
8764
8765
8766 # Check whether --enable-shared was given.
8767if test "${enable_shared+set}" = set; then :
8768 enableval=$enable_shared; p=${PACKAGE-default}
8769 case $enableval in
8770 yes) enable_shared=yes ;;
8771 no) enable_shared=no ;;
9c60689e 8772 *)
a243b558
JF
8773 enable_shared=no
8774 # Look at the argument we got. We use all the common list separators.
8775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8776 for pkg in $enableval; do
8777 IFS="$lt_save_ifs"
8778 if test "X$pkg" = "X$p"; then
8779 enable_shared=yes
8780 fi
8781 done
8782 IFS="$lt_save_ifs"
9c60689e
DWT
8783 ;;
8784 esac
a243b558
JF
8785else
8786 enable_shared=yes
8787fi
9c60689e 8788
9c60689e 8789
9c60689e 8790
9c60689e 8791
9c60689e 8792
9c60689e 8793
9c60689e 8794
9c60689e 8795
9c60689e 8796
9c60689e 8797
9c60689e 8798
a243b558
JF
8799# Check whether --with-pic was given.
8800if test "${with_pic+set}" = set; then :
8801 withval=$with_pic; lt_p=${PACKAGE-default}
8802 case $withval in
8803 yes|no) pic_mode=$withval ;;
8804 *)
8805 pic_mode=default
8806 # Look at the argument we got. We use all the common list separators.
8807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8808 for lt_pkg in $withval; do
8809 IFS="$lt_save_ifs"
8810 if test "X$lt_pkg" = "X$lt_p"; then
8811 pic_mode=yes
8812 fi
8813 done
8814 IFS="$lt_save_ifs"
8815 ;;
8816 esac
8817else
8818 pic_mode=default
9c60689e 8819fi
ee134472 8820
ee134472 8821
a243b558 8822test -z "$pic_mode" && pic_mode=default
9c60689e 8823
9c60689e 8824
9c60689e 8825
9c60689e 8826
ee134472 8827
ee134472 8828
9c60689e 8829
a243b558
JF
8830 # Check whether --enable-fast-install was given.
8831if test "${enable_fast_install+set}" = set; then :
8832 enableval=$enable_fast_install; p=${PACKAGE-default}
8833 case $enableval in
8834 yes) enable_fast_install=yes ;;
8835 no) enable_fast_install=no ;;
8836 *)
8837 enable_fast_install=no
8838 # Look at the argument we got. We use all the common list separators.
8839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8840 for pkg in $enableval; do
8841 IFS="$lt_save_ifs"
8842 if test "X$pkg" = "X$p"; then
8843 enable_fast_install=yes
9c60689e 8844 fi
a243b558
JF
8845 done
8846 IFS="$lt_save_ifs"
9c60689e 8847 ;;
a243b558
JF
8848 esac
8849else
8850 enable_fast_install=yes
8851fi
9c60689e 8852
9c60689e 8853
9c60689e 8854
9c60689e 8855
9c60689e
DWT
8856
8857
53ba6704 8858
9c60689e 8859
9c60689e 8860
9c60689e 8861
9c60689e 8862
a243b558
JF
8863# This can be used to rebuild libtool when needed
8864LIBTOOL_DEPS="$ltmain"
9c60689e 8865
a243b558
JF
8866# Always use our own libtool.
8867LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 8868
9c60689e 8869
9c60689e 8870
9c60689e 8871
9c60689e 8872
ee134472 8873
ee134472 8874
ee134472 8875
ee134472 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
9c60689e 8894
9c60689e 8895
9c60689e 8896
9c60689e 8897
a243b558 8898test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
a243b558
JF
8913if test -n "${ZSH_VERSION+set}" ; then
8914 setopt NO_GLOB_SUBST
8915fi
9c60689e 8916
a243b558
JF
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8918$as_echo_n "checking for objdir... " >&6; }
8919if ${lt_cv_objdir+:} false; then :
ee134472
JF
8920 $as_echo_n "(cached) " >&6
8921else
a243b558
JF
8922 rm -f .libs 2>/dev/null
8923mkdir .libs 2>/dev/null
8924if test -d .libs; then
8925 lt_cv_objdir=.libs
8926else
8927 # MS-DOS does not allow filenames that begin with a dot.
8928 lt_cv_objdir=_libs
ee134472 8929fi
a243b558
JF
8930rmdir .libs 2>/dev/null
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8933$as_echo "$lt_cv_objdir" >&6; }
8934objdir=$lt_cv_objdir
9c60689e
DWT
8935
8936
8937
8938
8939
a243b558
JF
8940cat >>confdefs.h <<_ACEOF
8941#define LT_OBJDIR "$lt_cv_objdir/"
8942_ACEOF
9c60689e
DWT
8943
8944
8945
8946
a243b558
JF
8947case $host_os in
8948aix3*)
8949 # AIX sometimes has problems with the GCC collect2 program. For some
8950 # reason, if we set the COLLECT_NAMES environment variable, the problems
8951 # vanish in a puff of smoke.
8952 if test "X${COLLECT_NAMES+set}" != Xset; then
8953 COLLECT_NAMES=
8954 export COLLECT_NAMES
8955 fi
8956 ;;
8957esac
9c60689e 8958
a243b558
JF
8959# Global variables:
8960ofile=libtool
8961can_build_shared=yes
9c60689e 8962
a243b558
JF
8963# All known linkers require a `.a' archive for static linking (except MSVC,
8964# which needs '.lib').
8965libext=a
9c60689e 8966
a243b558 8967with_gnu_ld="$lt_cv_prog_gnu_ld"
9c60689e 8968
a243b558
JF
8969old_CC="$CC"
8970old_CFLAGS="$CFLAGS"
9c60689e 8971
a243b558
JF
8972# Set sane defaults for various variables
8973test -z "$CC" && CC=cc
8974test -z "$LTCC" && LTCC=$CC
8975test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8976test -z "$LD" && LD=ld
8977test -z "$ac_objext" && ac_objext=o
9c60689e 8978
a243b558
JF
8979for cc_temp in $compiler""; do
8980 case $cc_temp in
8981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8983 \-*) ;;
8984 *) break;;
8985 esac
8986done
8987cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
8988
8989
a243b558
JF
8990# Only perform the check for file, if the check method requires it
8991test -z "$MAGIC_CMD" && MAGIC_CMD=file
8992case $deplibs_check_method in
8993file_magic*)
8994 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8996$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8997if ${lt_cv_path_MAGIC_CMD+:} false; then :
8998 $as_echo_n "(cached) " >&6
8999else
9000 case $MAGIC_CMD in
9001[\\/*] | ?:[\\/]*)
9002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9003 ;;
9004*)
9005 lt_save_MAGIC_CMD="$MAGIC_CMD"
9006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9008 for ac_dir in $ac_dummy; do
9009 IFS="$lt_save_ifs"
9010 test -z "$ac_dir" && ac_dir=.
9011 if test -f $ac_dir/${ac_tool_prefix}file; then
9012 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9013 if test -n "$file_magic_test_file"; then
9014 case $deplibs_check_method in
9015 "file_magic "*)
9016 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9019 $EGREP "$file_magic_regex" > /dev/null; then
9020 :
9021 else
9022 cat <<_LT_EOF 1>&2
9c60689e 9023
a243b558
JF
9024*** Warning: the command libtool uses to detect shared libraries,
9025*** $file_magic_cmd, produces output that libtool cannot recognize.
9026*** The result is that libtool may fail to recognize shared libraries
9027*** as such. This will affect the creation of libtool libraries that
9028*** depend on shared libraries, but programs linked with such libtool
9029*** libraries will work regardless of this problem. Nevertheless, you
9030*** may want to report the problem to your system manager and/or to
9031*** bug-libtool@gnu.org
9c60689e 9032
a243b558
JF
9033_LT_EOF
9034 fi ;;
9035 esac
9036 fi
9037 break
9038 fi
9039 done
9040 IFS="$lt_save_ifs"
9041 MAGIC_CMD="$lt_save_MAGIC_CMD"
9042 ;;
9043esac
9044fi
9c60689e 9045
a243b558
JF
9046MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9047if test -n "$MAGIC_CMD"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9049$as_echo "$MAGIC_CMD" >&6; }
9050else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
9053fi
9c60689e
DWT
9054
9055
9056
9057
9058
a243b558
JF
9059if test -z "$lt_cv_path_MAGIC_CMD"; then
9060 if test -n "$ac_tool_prefix"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9062$as_echo_n "checking for file... " >&6; }
9063if ${lt_cv_path_MAGIC_CMD+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065else
9066 case $MAGIC_CMD in
9067[\\/*] | ?:[\\/]*)
9068 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9069 ;;
9070*)
9071 lt_save_MAGIC_CMD="$MAGIC_CMD"
9072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9073 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9074 for ac_dir in $ac_dummy; do
9075 IFS="$lt_save_ifs"
9076 test -z "$ac_dir" && ac_dir=.
9077 if test -f $ac_dir/file; then
9078 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9079 if test -n "$file_magic_test_file"; then
9080 case $deplibs_check_method in
9081 "file_magic "*)
9082 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9083 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9084 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9085 $EGREP "$file_magic_regex" > /dev/null; then
9086 :
9087 else
9088 cat <<_LT_EOF 1>&2
9c60689e 9089
a243b558
JF
9090*** Warning: the command libtool uses to detect shared libraries,
9091*** $file_magic_cmd, produces output that libtool cannot recognize.
9092*** The result is that libtool may fail to recognize shared libraries
9093*** as such. This will affect the creation of libtool libraries that
9094*** depend on shared libraries, but programs linked with such libtool
9095*** libraries will work regardless of this problem. Nevertheless, you
9096*** may want to report the problem to your system manager and/or to
9097*** bug-libtool@gnu.org
9c60689e 9098
a243b558
JF
9099_LT_EOF
9100 fi ;;
9101 esac
9102 fi
9103 break
9104 fi
9105 done
9106 IFS="$lt_save_ifs"
9107 MAGIC_CMD="$lt_save_MAGIC_CMD"
9108 ;;
9109esac
9110fi
9c60689e 9111
a243b558
JF
9112MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9113if test -n "$MAGIC_CMD"; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9115$as_echo "$MAGIC_CMD" >&6; }
9116else
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118$as_echo "no" >&6; }
9119fi
9c60689e
DWT
9120
9121
a243b558
JF
9122 else
9123 MAGIC_CMD=:
9124 fi
9125fi
9c60689e 9126
a243b558
JF
9127 fi
9128 ;;
9129esac
9c60689e 9130
a243b558 9131# Use C for the default configuration in the libtool script
9c60689e 9132
a243b558
JF
9133lt_save_CC="$CC"
9134ac_ext=c
9135ac_cpp='$CPP $CPPFLAGS'
9136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9138ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
9139
9140
a243b558
JF
9141# Source file extension for C test sources.
9142ac_ext=c
9c60689e 9143
a243b558
JF
9144# Object file extension for compiled C test sources.
9145objext=o
9146objext=$objext
9c60689e 9147
a243b558
JF
9148# Code to be used in simple compile tests
9149lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9150
a243b558
JF
9151# Code to be used in simple link tests
9152lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9153
9154
9155
9156
9157
9158
9159
a243b558
JF
9160# If no C compiler was specified, use CC.
9161LTCC=${LTCC-"$CC"}
9c60689e 9162
a243b558
JF
9163# If no C compiler flags were specified, use CFLAGS.
9164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9165
a243b558
JF
9166# Allow CC to be a program name with arguments.
9167compiler=$CC
9c60689e 9168
a243b558
JF
9169# Save the default compiler, since it gets overwritten when the other
9170# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9171compiler_DEFAULT=$CC
9c60689e 9172
a243b558
JF
9173# save warnings/boilerplate of simple test code
9174ac_outfile=conftest.$ac_objext
9175echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9176eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9177_lt_compiler_boilerplate=`cat conftest.err`
00a96142 9178$RM -r conftest*
9c60689e 9179
a243b558
JF
9180ac_outfile=conftest.$ac_objext
9181echo "$lt_simple_link_test_code" >conftest.$ac_ext
9182eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9183_lt_linker_boilerplate=`cat conftest.err`
9184$RM -r conftest*
9c60689e
DWT
9185
9186
a243b558
JF
9187## CAVEAT EMPTOR:
9188## There is no encapsulation within the following macros, do not change
9189## the running order or otherwise move them around unless you know exactly
9190## what you are doing...
9191if test -n "$compiler"; then
9c60689e 9192
a243b558 9193lt_prog_compiler_no_builtin_flag=
9c60689e 9194
a243b558
JF
9195if test "$GCC" = yes; then
9196 case $cc_basename in
9197 nvcc*)
9198 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9199 *)
9200 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9201 esac
9c60689e 9202
a243b558
JF
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9204$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9205if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9206 $as_echo_n "(cached) " >&6
9207else
9208 lt_cv_prog_compiler_rtti_exceptions=no
9209 ac_outfile=conftest.$ac_objext
9210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9211 lt_compiler_flag="-fno-rtti -fno-exceptions"
9212 # Insert the option either (1) after the last *FLAGS variable, or
9213 # (2) before a word containing "conftest.", or (3) at the end.
9214 # Note that $ac_compile itself does not contain backslashes and begins
9215 # with a dollar sign (not a hyphen), so the echo should work correctly.
9216 # The option is referenced via a variable to avoid confusing sed.
9217 lt_compile=`echo "$ac_compile" | $SED \
9218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9220 -e 's:$: $lt_compiler_flag:'`
9221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9222 (eval "$lt_compile" 2>conftest.err)
9223 ac_status=$?
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 if (exit $ac_status) && test -s "$ac_outfile"; then
9227 # The compiler can only warn and ignore the option if not recognized
9228 # So say no if there are warnings other than the usual output.
9229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9232 lt_cv_prog_compiler_rtti_exceptions=yes
9233 fi
9234 fi
00a96142 9235 $RM -r conftest*
9c60689e 9236
a243b558
JF
9237fi
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9239$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9240
a243b558
JF
9241if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9242 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9243else
9244 :
9245fi
9c60689e 9246
a243b558 9247fi
9c60689e
DWT
9248
9249
9250
9251
9252
9253
a243b558
JF
9254 lt_prog_compiler_wl=
9255lt_prog_compiler_pic=
9256lt_prog_compiler_static=
9c60689e
DWT
9257
9258
a243b558
JF
9259 if test "$GCC" = yes; then
9260 lt_prog_compiler_wl='-Wl,'
9261 lt_prog_compiler_static='-static'
9c60689e 9262
a243b558
JF
9263 case $host_os in
9264 aix*)
9265 # All AIX code is PIC.
9266 if test "$host_cpu" = ia64; then
9267 # AIX 5 now supports IA64 processor
9268 lt_prog_compiler_static='-Bstatic'
9269 fi
9270 ;;
9c60689e 9271
a243b558
JF
9272 amigaos*)
9273 case $host_cpu in
9274 powerpc)
9275 # see comment about AmigaOS4 .so support
9276 lt_prog_compiler_pic='-fPIC'
9277 ;;
9278 m68k)
9279 # FIXME: we need at least 68020 code to build shared libraries, but
9280 # adding the `-m68020' flag to GCC prevents building anything better,
9281 # like `-m68040'.
9282 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9283 ;;
9284 esac
9285 ;;
9c60689e 9286
a243b558
JF
9287 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9288 # PIC is the default for these OSes.
9289 ;;
9c60689e 9290
a243b558
JF
9291 mingw* | cygwin* | pw32* | os2* | cegcc*)
9292 # This hack is so that the source file can tell whether it is being
9293 # built for inclusion in a dll (and should export symbols for example).
9294 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9295 # (--disable-auto-import) libraries
9296 lt_prog_compiler_pic='-DDLL_EXPORT'
9297 ;;
9c60689e 9298
a243b558
JF
9299 darwin* | rhapsody*)
9300 # PIC is the default on this platform
9301 # Common symbols not allowed in MH_DYLIB files
9302 lt_prog_compiler_pic='-fno-common'
9303 ;;
9c60689e 9304
a243b558
JF
9305 haiku*)
9306 # PIC is the default for Haiku.
9307 # The "-static" flag exists, but is broken.
9308 lt_prog_compiler_static=
9309 ;;
9c60689e 9310
a243b558
JF
9311 hpux*)
9312 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9313 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9314 # sets the default TLS model and affects inlining.
9315 case $host_cpu in
9316 hppa*64*)
9317 # +Z the default
9318 ;;
9319 *)
9320 lt_prog_compiler_pic='-fPIC'
9321 ;;
9322 esac
9323 ;;
9c60689e 9324
a243b558
JF
9325 interix[3-9]*)
9326 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9327 # Instead, we relocate shared libraries at runtime.
9328 ;;
9c60689e 9329
a243b558
JF
9330 msdosdjgpp*)
9331 # Just because we use GCC doesn't mean we suddenly get shared libraries
9332 # on systems that don't support them.
9333 lt_prog_compiler_can_build_shared=no
9334 enable_shared=no
9335 ;;
9c60689e 9336
a243b558
JF
9337 *nto* | *qnx*)
9338 # QNX uses GNU C++, but need to define -shared option too, otherwise
9339 # it will coredump.
9340 lt_prog_compiler_pic='-fPIC -shared'
9341 ;;
9c60689e 9342
a243b558
JF
9343 sysv4*MP*)
9344 if test -d /usr/nec; then
9345 lt_prog_compiler_pic=-Kconform_pic
9346 fi
9347 ;;
9c60689e 9348
a243b558
JF
9349 *)
9350 lt_prog_compiler_pic='-fPIC'
9351 ;;
9352 esac
9c60689e 9353
a243b558
JF
9354 case $cc_basename in
9355 nvcc*) # Cuda Compiler Driver 2.2
9356 lt_prog_compiler_wl='-Xlinker '
9357 if test -n "$lt_prog_compiler_pic"; then
9358 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9359 fi
9360 ;;
9361 esac
9362 else
9363 # PORTME Check for flag to pass linker flags through the system compiler.
9364 case $host_os in
9365 aix*)
9366 lt_prog_compiler_wl='-Wl,'
9367 if test "$host_cpu" = ia64; then
9368 # AIX 5 now supports IA64 processor
9369 lt_prog_compiler_static='-Bstatic'
9370 else
9371 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9372 fi
9373 ;;
9c60689e 9374
a243b558
JF
9375 mingw* | cygwin* | pw32* | os2* | cegcc*)
9376 # This hack is so that the source file can tell whether it is being
9377 # built for inclusion in a dll (and should export symbols for example).
9378 lt_prog_compiler_pic='-DDLL_EXPORT'
9379 ;;
9c60689e 9380
a243b558
JF
9381 hpux9* | hpux10* | hpux11*)
9382 lt_prog_compiler_wl='-Wl,'
9383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9384 # not for PA HP-UX.
9385 case $host_cpu in
9386 hppa*64*|ia64*)
9387 # +Z the default
9388 ;;
9389 *)
9390 lt_prog_compiler_pic='+Z'
9391 ;;
9392 esac
9393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9394 lt_prog_compiler_static='${wl}-a ${wl}archive'
9395 ;;
9c60689e 9396
a243b558
JF
9397 irix5* | irix6* | nonstopux*)
9398 lt_prog_compiler_wl='-Wl,'
9399 # PIC (with -KPIC) is the default.
9400 lt_prog_compiler_static='-non_shared'
9401 ;;
9c60689e 9402
a243b558
JF
9403 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9404 case $cc_basename in
9405 # old Intel for x86_64 which still supported -KPIC.
9406 ecc*)
9407 lt_prog_compiler_wl='-Wl,'
9408 lt_prog_compiler_pic='-KPIC'
9409 lt_prog_compiler_static='-static'
9410 ;;
9411 # icc used to be incompatible with GCC.
9412 # ICC 10 doesn't accept -KPIC any more.
9413 icc* | ifort*)
9414 lt_prog_compiler_wl='-Wl,'
9415 lt_prog_compiler_pic='-fPIC'
9416 lt_prog_compiler_static='-static'
9417 ;;
9418 # Lahey Fortran 8.1.
9419 lf95*)
9420 lt_prog_compiler_wl='-Wl,'
9421 lt_prog_compiler_pic='--shared'
9422 lt_prog_compiler_static='--static'
9423 ;;
9424 nagfor*)
9425 # NAG Fortran compiler
9426 lt_prog_compiler_wl='-Wl,-Wl,,'
9427 lt_prog_compiler_pic='-PIC'
9428 lt_prog_compiler_static='-Bstatic'
9429 ;;
9430 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9431 # Portland Group compilers (*not* the Pentium gcc compiler,
9432 # which looks to be a dead project)
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_pic='-fpic'
9435 lt_prog_compiler_static='-Bstatic'
9436 ;;
9437 ccc*)
9438 lt_prog_compiler_wl='-Wl,'
9439 # All Alpha code is PIC.
9440 lt_prog_compiler_static='-non_shared'
9441 ;;
9442 xl* | bgxl* | bgf* | mpixl*)
9443 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9444 lt_prog_compiler_wl='-Wl,'
9445 lt_prog_compiler_pic='-qpic'
9446 lt_prog_compiler_static='-qstaticlink'
9447 ;;
9448 *)
9449 case `$CC -V 2>&1 | sed 5q` in
9450 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9451 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9452 lt_prog_compiler_pic='-KPIC'
9453 lt_prog_compiler_static='-Bstatic'
9454 lt_prog_compiler_wl=''
9455 ;;
9456 *Sun\ F* | *Sun*Fortran*)
9457 lt_prog_compiler_pic='-KPIC'
9458 lt_prog_compiler_static='-Bstatic'
9459 lt_prog_compiler_wl='-Qoption ld '
9460 ;;
9461 *Sun\ C*)
9462 # Sun C 5.9
9463 lt_prog_compiler_pic='-KPIC'
9464 lt_prog_compiler_static='-Bstatic'
9465 lt_prog_compiler_wl='-Wl,'
9466 ;;
9467 *Intel*\ [CF]*Compiler*)
9468 lt_prog_compiler_wl='-Wl,'
9469 lt_prog_compiler_pic='-fPIC'
9470 lt_prog_compiler_static='-static'
9471 ;;
9472 *Portland\ Group*)
9473 lt_prog_compiler_wl='-Wl,'
9474 lt_prog_compiler_pic='-fpic'
9475 lt_prog_compiler_static='-Bstatic'
9476 ;;
9477 esac
9478 ;;
9479 esac
9480 ;;
9c60689e 9481
a243b558
JF
9482 newsos6)
9483 lt_prog_compiler_pic='-KPIC'
9484 lt_prog_compiler_static='-Bstatic'
9485 ;;
9c60689e 9486
a243b558
JF
9487 *nto* | *qnx*)
9488 # QNX uses GNU C++, but need to define -shared option too, otherwise
9489 # it will coredump.
9490 lt_prog_compiler_pic='-fPIC -shared'
9491 ;;
9c60689e 9492
a243b558
JF
9493 osf3* | osf4* | osf5*)
9494 lt_prog_compiler_wl='-Wl,'
9495 # All OSF/1 code is PIC.
9496 lt_prog_compiler_static='-non_shared'
9497 ;;
9c60689e 9498
a243b558
JF
9499 rdos*)
9500 lt_prog_compiler_static='-non_shared'
9501 ;;
9c60689e 9502
a243b558
JF
9503 solaris*)
9504 lt_prog_compiler_pic='-KPIC'
9505 lt_prog_compiler_static='-Bstatic'
9506 case $cc_basename in
9507 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9508 lt_prog_compiler_wl='-Qoption ld ';;
9509 *)
9510 lt_prog_compiler_wl='-Wl,';;
9511 esac
9512 ;;
9c60689e 9513
a243b558
JF
9514 sunos4*)
9515 lt_prog_compiler_wl='-Qoption ld '
9516 lt_prog_compiler_pic='-PIC'
9517 lt_prog_compiler_static='-Bstatic'
9518 ;;
9c60689e 9519
a243b558
JF
9520 sysv4 | sysv4.2uw2* | sysv4.3*)
9521 lt_prog_compiler_wl='-Wl,'
9522 lt_prog_compiler_pic='-KPIC'
9523 lt_prog_compiler_static='-Bstatic'
9524 ;;
9c60689e 9525
a243b558
JF
9526 sysv4*MP*)
9527 if test -d /usr/nec ;then
9528 lt_prog_compiler_pic='-Kconform_pic'
9529 lt_prog_compiler_static='-Bstatic'
9530 fi
9531 ;;
9c60689e 9532
a243b558
JF
9533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_pic='-KPIC'
9536 lt_prog_compiler_static='-Bstatic'
9537 ;;
9c60689e 9538
a243b558
JF
9539 unicos*)
9540 lt_prog_compiler_wl='-Wl,'
9541 lt_prog_compiler_can_build_shared=no
9542 ;;
9c60689e 9543
a243b558
JF
9544 uts4*)
9545 lt_prog_compiler_pic='-pic'
9546 lt_prog_compiler_static='-Bstatic'
9547 ;;
9c60689e 9548
a243b558
JF
9549 *)
9550 lt_prog_compiler_can_build_shared=no
9551 ;;
9552 esac
9553 fi
9c60689e 9554
a243b558
JF
9555case $host_os in
9556 # For platforms which do not support PIC, -DPIC is meaningless:
9557 *djgpp*)
9558 lt_prog_compiler_pic=
9559 ;;
9560 *)
9561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9562 ;;
9563esac
9c60689e 9564
a243b558
JF
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9566$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9567if ${lt_cv_prog_compiler_pic+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569else
9570 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9571fi
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9573$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9574lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9575
a243b558
JF
9576#
9577# Check to make sure the PIC flag actually works.
9578#
9579if test -n "$lt_prog_compiler_pic"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9581$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9582if ${lt_cv_prog_compiler_pic_works+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584else
9585 lt_cv_prog_compiler_pic_works=no
9586 ac_outfile=conftest.$ac_objext
9587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9588 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9589 # Insert the option either (1) after the last *FLAGS variable, or
9590 # (2) before a word containing "conftest.", or (3) at the end.
9591 # Note that $ac_compile itself does not contain backslashes and begins
9592 # with a dollar sign (not a hyphen), so the echo should work correctly.
9593 # The option is referenced via a variable to avoid confusing sed.
9594 lt_compile=`echo "$ac_compile" | $SED \
9595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9597 -e 's:$: $lt_compiler_flag:'`
9598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9599 (eval "$lt_compile" 2>conftest.err)
9600 ac_status=$?
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 if (exit $ac_status) && test -s "$ac_outfile"; then
9604 # The compiler can only warn and ignore the option if not recognized
9605 # So say no if there are warnings other than the usual output.
9606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9609 lt_cv_prog_compiler_pic_works=yes
9610 fi
9611 fi
00a96142 9612 $RM -r conftest*
9c60689e 9613
a243b558
JF
9614fi
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9616$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9617
a243b558
JF
9618if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9619 case $lt_prog_compiler_pic in
9620 "" | " "*) ;;
9621 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9622 esac
9623else
9624 lt_prog_compiler_pic=
9625 lt_prog_compiler_can_build_shared=no
9626fi
9c60689e 9627
a243b558 9628fi
9c60689e
DWT
9629
9630
9631
9632
9633
9634
9c60689e
DWT
9635
9636
9637
9638
9639
a243b558
JF
9640#
9641# Check to make sure the static flag actually works.
9642#
9643wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9645$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9646if ${lt_cv_prog_compiler_static_works+:} false; then :
9647 $as_echo_n "(cached) " >&6
9648else
9649 lt_cv_prog_compiler_static_works=no
9650 save_LDFLAGS="$LDFLAGS"
9651 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9652 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9654 # The linker can only warn and ignore the option if not recognized
9655 # So say no if there are warnings
9656 if test -s conftest.err; then
9657 # Append any errors to the config.log.
9658 cat conftest.err 1>&5
9659 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9661 if diff conftest.exp conftest.er2 >/dev/null; then
9662 lt_cv_prog_compiler_static_works=yes
9663 fi
9664 else
9665 lt_cv_prog_compiler_static_works=yes
9666 fi
9667 fi
9668 $RM -r conftest*
9669 LDFLAGS="$save_LDFLAGS"
9c60689e 9670
a243b558
JF
9671fi
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9673$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9674
a243b558
JF
9675if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9676 :
9c60689e 9677else
a243b558 9678 lt_prog_compiler_static=
9c60689e 9679fi
9c60689e 9680
9c60689e 9681
9c60689e 9682
9c60689e 9683
9c60689e 9684
9c60689e 9685
9c60689e 9686
a243b558
JF
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9688$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9689if ${lt_cv_prog_compiler_c_o+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691else
9692 lt_cv_prog_compiler_c_o=no
9693 $RM -r conftest 2>/dev/null
9694 mkdir conftest
9695 cd conftest
9696 mkdir out
9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9698
a243b558
JF
9699 lt_compiler_flag="-o out/conftest2.$ac_objext"
9700 # Insert the option either (1) after the last *FLAGS variable, or
9701 # (2) before a word containing "conftest.", or (3) at the end.
9702 # Note that $ac_compile itself does not contain backslashes and begins
9703 # with a dollar sign (not a hyphen), so the echo should work correctly.
9704 lt_compile=`echo "$ac_compile" | $SED \
9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9707 -e 's:$: $lt_compiler_flag:'`
9708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9709 (eval "$lt_compile" 2>out/conftest.err)
9710 ac_status=$?
9711 cat out/conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9714 then
9715 # The compiler can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9720 lt_cv_prog_compiler_c_o=yes
9721 fi
9722 fi
9723 chmod u+w . 2>&5
00a96142 9724 $RM -r conftest*
a243b558
JF
9725 # SGI C++ compiler will create directory out/ii_files/ for
9726 # template instantiation
9727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9728 $RM out/* && rmdir out
9729 cd ..
9730 $RM -r conftest
00a96142 9731 $RM -r conftest*
9c60689e 9732
a243b558
JF
9733fi
9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9735$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9736
ee134472 9737
ee134472 9738
ee134472 9739
ee134472 9740
9c60689e 9741
a243b558
JF
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9743$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9744if ${lt_cv_prog_compiler_c_o+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746else
9747 lt_cv_prog_compiler_c_o=no
9748 $RM -r conftest 2>/dev/null
9749 mkdir conftest
9750 cd conftest
9751 mkdir out
9752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9753
a243b558
JF
9754 lt_compiler_flag="-o out/conftest2.$ac_objext"
9755 # Insert the option either (1) after the last *FLAGS variable, or
9756 # (2) before a word containing "conftest.", or (3) at the end.
9757 # Note that $ac_compile itself does not contain backslashes and begins
9758 # with a dollar sign (not a hyphen), so the echo should work correctly.
9759 lt_compile=`echo "$ac_compile" | $SED \
9760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9762 -e 's:$: $lt_compiler_flag:'`
9763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9764 (eval "$lt_compile" 2>out/conftest.err)
9765 ac_status=$?
9766 cat out/conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9769 then
9770 # The compiler can only warn and ignore the option if not recognized
9771 # So say no if there are warnings
9772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9775 lt_cv_prog_compiler_c_o=yes
9776 fi
9777 fi
9778 chmod u+w . 2>&5
00a96142 9779 $RM -r conftest*
a243b558
JF
9780 # SGI C++ compiler will create directory out/ii_files/ for
9781 # template instantiation
9782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9783 $RM out/* && rmdir out
9784 cd ..
9785 $RM -r conftest
00a96142 9786 $RM -r conftest*
9c60689e 9787
a243b558
JF
9788fi
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9790$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9791
9c60689e 9792
a243b558
JF
9793
9794
9795hard_links="nottested"
9796if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9797 # do not overwrite the value of need_locks provided by the user
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9799$as_echo_n "checking if we can lock with hard links... " >&6; }
9800 hard_links=yes
00a96142 9801 $RM -r conftest*
a243b558
JF
9802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9803 touch conftest.a
9804 ln conftest.a conftest.b 2>&5 || hard_links=no
9805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9807$as_echo "$hard_links" >&6; }
9808 if test "$hard_links" = no; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9810$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9811 need_locks=warn
9c60689e 9812 fi
a243b558
JF
9813else
9814 need_locks=no
9815fi
9c60689e 9816
ee134472 9817
9c60689e 9818
9c60689e 9819
9c60689e 9820
a243b558
JF
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9823$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9824
9825 runpath_var=
9826 allow_undefined_flag=
9827 always_export_symbols=no
9828 archive_cmds=
9829 archive_expsym_cmds=
9830 compiler_needs_object=no
9831 enable_shared_with_static_runtimes=no
9832 export_dynamic_flag_spec=
9833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9834 hardcode_automatic=no
9835 hardcode_direct=no
9836 hardcode_direct_absolute=no
9837 hardcode_libdir_flag_spec=
9838 hardcode_libdir_separator=
9839 hardcode_minus_L=no
9840 hardcode_shlibpath_var=unsupported
9841 inherit_rpath=no
9842 link_all_deplibs=unknown
9843 module_cmds=
9844 module_expsym_cmds=
9845 old_archive_from_new_cmds=
9846 old_archive_from_expsyms_cmds=
9847 thread_safe_flag_spec=
9848 whole_archive_flag_spec=
9849 # include_expsyms should be a list of space-separated symbols to be *always*
9850 # included in the symbol list
9851 include_expsyms=
9852 # exclude_expsyms can be an extended regexp of symbols to exclude
9853 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9855 # as well as any symbol that contains `d'.
9856 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9858 # platforms (ab)use it in PIC code, but their linkers get confused if
9859 # the symbol is explicitly referenced. Since portable code cannot
9860 # rely on this symbol name, it's probably fine to never include it in
9861 # preloaded symbol tables.
9862 # Exclude shared library initialization/finalization symbols.
9863 extract_expsyms_cmds=
9864
9c60689e 9865 case $host_os in
a243b558
JF
9866 cygwin* | mingw* | pw32* | cegcc*)
9867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9868 # When not using gcc, we currently assume that we are using
9869 # Microsoft Visual C++.
9870 if test "$GCC" != yes; then
9871 with_gnu_ld=no
9872 fi
9c60689e 9873 ;;
a243b558
JF
9874 interix*)
9875 # we just hope/assume this is gcc and not c89 (= MSVC++)
9876 with_gnu_ld=yes
9877 ;;
9878 openbsd*)
9879 with_gnu_ld=no
9c60689e
DWT
9880 ;;
9881 esac
9c60689e 9882
a243b558 9883 ld_shlibs=yes
ee134472 9884
a243b558
JF
9885 # On some targets, GNU ld is compatible enough with the native linker
9886 # that we're better off using the native interface for both.
9887 lt_use_gnu_ld_interface=no
9888 if test "$with_gnu_ld" = yes; then
9889 case $host_os in
9890 aix*)
9891 # The AIX port of GNU ld has always aspired to compatibility
9892 # with the native linker. However, as the warning in the GNU ld
9893 # block says, versions before 2.19.5* couldn't really create working
9894 # shared libraries, regardless of the interface used.
9895 case `$LD -v 2>&1` in
9896 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9897 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9898 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9899 *)
9900 lt_use_gnu_ld_interface=yes
9901 ;;
9902 esac
9903 ;;
9904 *)
9905 lt_use_gnu_ld_interface=yes
9906 ;;
9907 esac
9908 fi
9c60689e 9909
a243b558
JF
9910 if test "$lt_use_gnu_ld_interface" = yes; then
9911 # If archive_cmds runs LD, not CC, wlarc should be empty
9912 wlarc='${wl}'
9c60689e 9913
a243b558
JF
9914 # Set some defaults for GNU ld with shared library support. These
9915 # are reset later if shared libraries are not supported. Putting them
9916 # here allows them to be overridden if necessary.
9917 runpath_var=LD_RUN_PATH
9918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9919 export_dynamic_flag_spec='${wl}--export-dynamic'
9920 # ancient GNU ld didn't support --whole-archive et. al.
9921 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9922 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9923 else
9924 whole_archive_flag_spec=
9925 fi
9926 supports_anon_versioning=no
9927 case `$LD -v 2>&1` in
9928 *GNU\ gold*) supports_anon_versioning=yes ;;
9929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9932 *\ 2.11.*) ;; # other 2.11 versions
9933 *) supports_anon_versioning=yes ;;
9934 esac
ee134472 9935
a243b558
JF
9936 # See if GNU ld supports shared libraries.
9937 case $host_os in
9938 aix[3-9]*)
9939 # On AIX/PPC, the GNU linker is very broken
9940 if test "$host_cpu" != ia64; then
9941 ld_shlibs=no
9942 cat <<_LT_EOF 1>&2
ee134472 9943
a243b558
JF
9944*** Warning: the GNU linker, at least up to release 2.19, is reported
9945*** to be unable to reliably create shared libraries on AIX.
9946*** Therefore, libtool is disabling shared libraries support. If you
9947*** really care for shared libraries, you may want to install binutils
9948*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9949*** You will then need to restart the configuration process.
9c60689e 9950
a243b558
JF
9951_LT_EOF
9952 fi
9953 ;;
9c60689e 9954
a243b558
JF
9955 amigaos*)
9956 case $host_cpu in
9957 powerpc)
9958 # see comment about AmigaOS4 .so support
9959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9960 archive_expsym_cmds=''
9961 ;;
9962 m68k)
9963 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)'
9964 hardcode_libdir_flag_spec='-L$libdir'
9965 hardcode_minus_L=yes
9966 ;;
9967 esac
9968 ;;
9c60689e 9969
a243b558
JF
9970 beos*)
9971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9972 allow_undefined_flag=unsupported
9973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9974 # support --undefined. This deserves some investigation. FIXME
9975 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9976 else
9977 ld_shlibs=no
9978 fi
9979 ;;
9c60689e 9980
a243b558
JF
9981 cygwin* | mingw* | pw32* | cegcc*)
9982 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9983 # as there is no search path for DLLs.
9984 hardcode_libdir_flag_spec='-L$libdir'
9985 export_dynamic_flag_spec='${wl}--export-all-symbols'
9986 allow_undefined_flag=unsupported
9987 always_export_symbols=no
9988 enable_shared_with_static_runtimes=yes
9989 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'
9990 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 9991
a243b558
JF
9992 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9994 # If the export-symbols file already is a .def file (1st line
9995 # is EXPORTS), use it as is; otherwise, prepend...
9996 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9997 cp $export_symbols $output_objdir/$soname.def;
9998 else
9999 echo EXPORTS > $output_objdir/$soname.def;
10000 cat $export_symbols >> $output_objdir/$soname.def;
10001 fi~
10002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10003 else
10004 ld_shlibs=no
10005 fi
10006 ;;
9c60689e 10007
a243b558
JF
10008 haiku*)
10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 link_all_deplibs=yes
10011 ;;
9c60689e 10012
a243b558
JF
10013 interix[3-9]*)
10014 hardcode_direct=no
10015 hardcode_shlibpath_var=no
10016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10017 export_dynamic_flag_spec='${wl}-E'
10018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10019 # Instead, shared libraries are loaded at an image base (0x10000000 by
10020 # default) and relocated if they conflict, which is a slow very memory
10021 # consuming and fragmenting process. To avoid this, we pick a random,
10022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10024 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10025 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'
10026 ;;
9c60689e 10027
a243b558
JF
10028 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10029 tmp_diet=no
10030 if test "$host_os" = linux-dietlibc; then
10031 case $cc_basename in
10032 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10033 esac
10034 fi
10035 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10036 && test "$tmp_diet" = no
10037 then
10038 tmp_addflag=' $pic_flag'
10039 tmp_sharedflag='-shared'
10040 case $cc_basename,$host_cpu in
10041 pgcc*) # Portland Group C compiler
10042 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'
10043 tmp_addflag=' $pic_flag'
10044 ;;
10045 pgf77* | pgf90* | pgf95* | pgfortran*)
10046 # Portland Group f77 and f90 compilers
10047 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'
10048 tmp_addflag=' $pic_flag -Mnomain' ;;
10049 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10050 tmp_addflag=' -i_dynamic' ;;
10051 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10052 tmp_addflag=' -i_dynamic -nofor_main' ;;
10053 ifc* | ifort*) # Intel Fortran compiler
10054 tmp_addflag=' -nofor_main' ;;
10055 lf95*) # Lahey Fortran 8.1
10056 whole_archive_flag_spec=
10057 tmp_sharedflag='--shared' ;;
10058 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10059 tmp_sharedflag='-qmkshrobj'
10060 tmp_addflag= ;;
10061 nvcc*) # Cuda Compiler Driver 2.2
10062 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'
10063 compiler_needs_object=yes
10064 ;;
10065 esac
10066 case `$CC -V 2>&1 | sed 5q` in
10067 *Sun\ C*) # Sun C 5.9
10068 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'
10069 compiler_needs_object=yes
10070 tmp_sharedflag='-G' ;;
10071 *Sun\ F*) # Sun Fortran 8.3
10072 tmp_sharedflag='-G' ;;
10073 esac
10074 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9c60689e 10075
a243b558
JF
10076 if test "x$supports_anon_versioning" = xyes; then
10077 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10079 echo "local: *; };" >> $output_objdir/$libname.ver~
10080 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10081 fi
9c60689e 10082
a243b558
JF
10083 case $cc_basename in
10084 xlf* | bgf* | bgxlf* | mpixlf*)
10085 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10086 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10088 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10089 if test "x$supports_anon_versioning" = xyes; then
10090 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10092 echo "local: *; };" >> $output_objdir/$libname.ver~
10093 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10094 fi
10095 ;;
10096 esac
10097 else
10098 ld_shlibs=no
10099 fi
10100 ;;
9c60689e 10101
a243b558
JF
10102 netbsd*)
10103 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10104 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10105 wlarc=
10106 else
10107 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10108 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10109 fi
10110 ;;
9c60689e 10111
a243b558
JF
10112 solaris*)
10113 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10114 ld_shlibs=no
10115 cat <<_LT_EOF 1>&2
9c60689e 10116
a243b558
JF
10117*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10118*** create shared libraries on Solaris systems. Therefore, libtool
10119*** is disabling shared libraries support. We urge you to upgrade GNU
10120*** binutils to release 2.9.1 or newer. Another option is to modify
10121*** your PATH or compiler configuration so that the native linker is
10122*** used, and then restart.
9c60689e 10123
a243b558
JF
10124_LT_EOF
10125 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10126 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10127 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10128 else
10129 ld_shlibs=no
10130 fi
10131 ;;
9c60689e 10132
a243b558
JF
10133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10134 case `$LD -v 2>&1` in
10135 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10136 ld_shlibs=no
10137 cat <<_LT_EOF 1>&2
9c60689e 10138
a243b558
JF
10139*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10140*** reliably create shared libraries on SCO systems. Therefore, libtool
10141*** is disabling shared libraries support. We urge you to upgrade GNU
10142*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10143*** your PATH or compiler configuration so that the native linker is
10144*** used, and then restart.
9c60689e 10145
a243b558
JF
10146_LT_EOF
10147 ;;
10148 *)
10149 # For security reasons, it is highly recommended that you always
10150 # use absolute paths for naming shared libraries, and exclude the
10151 # DT_RUNPATH tag from executables and libraries. But doing so
10152 # requires that you compile everything twice, which is a pain.
10153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10157 else
10158 ld_shlibs=no
10159 fi
10160 ;;
10161 esac
10162 ;;
9c60689e 10163
a243b558
JF
10164 sunos4*)
10165 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10166 wlarc=
10167 hardcode_direct=yes
10168 hardcode_shlibpath_var=no
10169 ;;
9c60689e 10170
a243b558
JF
10171 *)
10172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10174 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10175 else
10176 ld_shlibs=no
10177 fi
10178 ;;
10179 esac
9c60689e 10180
a243b558
JF
10181 if test "$ld_shlibs" = no; then
10182 runpath_var=
10183 hardcode_libdir_flag_spec=
10184 export_dynamic_flag_spec=
10185 whole_archive_flag_spec=
10186 fi
10187 else
10188 # PORTME fill in a description of your system's linker (not GNU ld)
10189 case $host_os in
10190 aix3*)
10191 allow_undefined_flag=unsupported
10192 always_export_symbols=yes
10193 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'
10194 # Note: this linker hardcodes the directories in LIBPATH if there
10195 # are no directories specified by -L.
10196 hardcode_minus_L=yes
10197 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10198 # Neither direct hardcoding nor static linking is supported with a
10199 # broken collect2.
10200 hardcode_direct=unsupported
10201 fi
10202 ;;
9c60689e 10203
a243b558
JF
10204 aix[4-9]*)
10205 if test "$host_cpu" = ia64; then
10206 # On IA64, the linker does run time linking by default, so we don't
10207 # have to do anything special.
10208 aix_use_runtimelinking=no
10209 exp_sym_flag='-Bexport'
10210 no_entry_flag=""
10211 else
10212 # If we're using GNU nm, then we don't want the "-C" option.
10213 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10214 # Also, AIX nm treats weak defined symbols like other global
10215 # defined symbols, whereas GNU nm marks them as "W".
10216 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10217 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'
10218 else
10219 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'
10220 fi
10221 aix_use_runtimelinking=no
9c60689e 10222
a243b558
JF
10223 # Test if we are trying to use run time linking or normal
10224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10225 # need to do runtime linking.
10226 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10227 for ld_flag in $LDFLAGS; do
10228 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10229 aix_use_runtimelinking=yes
10230 break
10231 fi
10232 done
10233 ;;
10234 esac
9c60689e 10235
a243b558
JF
10236 exp_sym_flag='-bexport'
10237 no_entry_flag='-bnoentry'
10238 fi
9c60689e 10239
a243b558
JF
10240 # When large executables or shared objects are built, AIX ld can
10241 # have problems creating the table of contents. If linking a library
10242 # or program results in "error TOC overflow" add -mminimal-toc to
10243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10245
a243b558
JF
10246 archive_cmds=''
10247 hardcode_direct=yes
10248 hardcode_direct_absolute=yes
10249 hardcode_libdir_separator=':'
10250 link_all_deplibs=yes
10251 file_list_spec='${wl}-f,'
9c60689e 10252
a243b558
JF
10253 if test "$GCC" = yes; then
10254 case $host_os in aix4.[012]|aix4.[012].*)
10255 # We only want to do this on AIX 4.2 and lower, the check
10256 # below for broken collect2 doesn't work under 4.3+
10257 collect2name=`${CC} -print-prog-name=collect2`
10258 if test -f "$collect2name" &&
10259 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10260 then
10261 # We have reworked collect2
10262 :
10263 else
10264 # We have old collect2
10265 hardcode_direct=unsupported
10266 # It fails to find uninstalled libraries when the uninstalled
10267 # path is not listed in the libpath. Setting hardcode_minus_L
10268 # to unsupported forces relinking
10269 hardcode_minus_L=yes
10270 hardcode_libdir_flag_spec='-L$libdir'
10271 hardcode_libdir_separator=
10272 fi
10273 ;;
10274 esac
10275 shared_flag='-shared'
10276 if test "$aix_use_runtimelinking" = yes; then
10277 shared_flag="$shared_flag "'${wl}-G'
10278 fi
10279 else
10280 # not using gcc
10281 if test "$host_cpu" = ia64; then
10282 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10283 # chokes on -Wl,-G. The following line is correct:
10284 shared_flag='-G'
10285 else
10286 if test "$aix_use_runtimelinking" = yes; then
10287 shared_flag='${wl}-G'
10288 else
10289 shared_flag='${wl}-bM:SRE'
10290 fi
10291 fi
10292 fi
9c60689e 10293
a243b558
JF
10294 export_dynamic_flag_spec='${wl}-bexpall'
10295 # It seems that -bexpall does not export symbols beginning with
10296 # underscore (_), so it is better to generate a list of symbols to export.
10297 always_export_symbols=yes
10298 if test "$aix_use_runtimelinking" = yes; then
10299 # Warning - without using the other runtime loading flags (-brtl),
10300 # -berok will link without error, but may produce a broken library.
10301 allow_undefined_flag='-berok'
10302 # Determine the default libpath from the value encoded in an
10303 # empty executable.
10304 if test "${lt_cv_aix_libpath+set}" = set; then
10305 aix_libpath=$lt_cv_aix_libpath
9c60689e 10306else
a243b558 10307 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10308 $as_echo_n "(cached) " >&6
10309else
a243b558 10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10311/* end confdefs.h. */
10312
9c60689e
DWT
10313int
10314main ()
10315{
a243b558 10316
9c60689e
DWT
10317 ;
10318 return 0;
10319}
10320_ACEOF
10321if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10322
10323 lt_aix_libpath_sed='
10324 /Import File Strings/,/^$/ {
10325 /^0/ {
10326 s/^0 *\([^ ]*\) *$/\1/
10327 p
10328 }
10329 }'
10330 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10331 # Check for a 64-bit object if we didn't find anything.
10332 if test -z "$lt_cv_aix_libpath_"; then
10333 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10334 fi
9c60689e
DWT
10335fi
10336rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10338 if test -z "$lt_cv_aix_libpath_"; then
10339 lt_cv_aix_libpath_="/usr/lib:/lib"
10340 fi
9c60689e
DWT
10341
10342fi
10343
a243b558
JF
10344 aix_libpath=$lt_cv_aix_libpath_
10345fi
9c60689e 10346
a243b558
JF
10347 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10348 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"
10349 else
10350 if test "$host_cpu" = ia64; then
10351 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10352 allow_undefined_flag="-z nodefs"
10353 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"
10354 else
10355 # Determine the default libpath from the value encoded in an
10356 # empty executable.
10357 if test "${lt_cv_aix_libpath+set}" = set; then
10358 aix_libpath=$lt_cv_aix_libpath
9c60689e 10359else
a243b558 10360 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10361 $as_echo_n "(cached) " >&6
10362else
a243b558 10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10364/* end confdefs.h. */
10365
9c60689e
DWT
10366int
10367main ()
10368{
a243b558 10369
9c60689e
DWT
10370 ;
10371 return 0;
10372}
10373_ACEOF
10374if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10375
a243b558
JF
10376 lt_aix_libpath_sed='
10377 /Import File Strings/,/^$/ {
10378 /^0/ {
10379 s/^0 *\([^ ]*\) *$/\1/
10380 p
10381 }
10382 }'
10383 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10384 # Check for a 64-bit object if we didn't find anything.
10385 if test -z "$lt_cv_aix_libpath_"; then
10386 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387 fi
9c60689e
DWT
10388fi
10389rm -f core conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10391 if test -z "$lt_cv_aix_libpath_"; then
10392 lt_cv_aix_libpath_="/usr/lib:/lib"
10393 fi
10394
9c60689e 10395fi
9c60689e 10396
a243b558
JF
10397 aix_libpath=$lt_cv_aix_libpath_
10398fi
10399
10400 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10401 # Warning - without using the other run time loading flags,
10402 # -berok will link without error, but may produce a broken library.
10403 no_undefined_flag=' ${wl}-bernotok'
10404 allow_undefined_flag=' ${wl}-berok'
10405 if test "$with_gnu_ld" = yes; then
10406 # We only use this code for GNU lds that support --whole-archive.
10407 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10408 else
10409 # Exported symbols can be pulled into shared objects from archives
10410 whole_archive_flag_spec='$convenience'
10411 fi
10412 archive_cmds_need_lc=yes
10413 # This is similar to how AIX traditionally builds its shared libraries.
10414 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'
10415 fi
10416 fi
10417 ;;
10418
10419 amigaos*)
10420 case $host_cpu in
10421 powerpc)
10422 # see comment about AmigaOS4 .so support
10423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10424 archive_expsym_cmds=''
10425 ;;
10426 m68k)
10427 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)'
10428 hardcode_libdir_flag_spec='-L$libdir'
10429 hardcode_minus_L=yes
10430 ;;
10431 esac
10432 ;;
10433
10434 bsdi[45]*)
10435 export_dynamic_flag_spec=-rdynamic
10436 ;;
10437
10438 cygwin* | mingw* | pw32* | cegcc*)
10439 # When not using gcc, we currently assume that we are using
10440 # Microsoft Visual C++.
10441 # hardcode_libdir_flag_spec is actually meaningless, as there is
10442 # no search path for DLLs.
10443 case $cc_basename in
10444 cl*)
10445 # Native MSVC
10446 hardcode_libdir_flag_spec=' '
10447 allow_undefined_flag=unsupported
10448 always_export_symbols=yes
10449 file_list_spec='@'
10450 # Tell ltmain to make .lib files, not .a files.
10451 libext=lib
10452 # Tell ltmain to make .dll files, not .so files.
10453 shrext_cmds=".dll"
10454 # FIXME: Setting linknames here is a bad hack.
10455 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10456 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10457 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10458 else
10459 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10460 fi~
10461 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10462 linknames='
10463 # The linker will not automatically build a static lib if we build a DLL.
10464 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10465 enable_shared_with_static_runtimes=yes
10466 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10468 # Don't use ranlib
10469 old_postinstall_cmds='chmod 644 $oldlib'
10470 postlink_cmds='lt_outputfile="@OUTPUT@"~
10471 lt_tool_outputfile="@TOOL_OUTPUT@"~
10472 case $lt_outputfile in
10473 *.exe|*.EXE) ;;
10474 *)
10475 lt_outputfile="$lt_outputfile.exe"
10476 lt_tool_outputfile="$lt_tool_outputfile.exe"
10477 ;;
10478 esac~
10479 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10480 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10481 $RM "$lt_outputfile.manifest";
10482 fi'
10483 ;;
10484 *)
10485 # Assume MSVC wrapper
10486 hardcode_libdir_flag_spec=' '
10487 allow_undefined_flag=unsupported
10488 # Tell ltmain to make .lib files, not .a files.
10489 libext=lib
10490 # Tell ltmain to make .dll files, not .so files.
10491 shrext_cmds=".dll"
10492 # FIXME: Setting linknames here is a bad hack.
10493 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10494 # The linker will automatically build a .lib file if we build a DLL.
10495 old_archive_from_new_cmds='true'
10496 # FIXME: Should let the user specify the lib program.
10497 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10498 enable_shared_with_static_runtimes=yes
10499 ;;
10500 esac
10501 ;;
10502
10503 darwin* | rhapsody*)
10504
10505
10506 archive_cmds_need_lc=no
10507 hardcode_direct=no
10508 hardcode_automatic=yes
10509 hardcode_shlibpath_var=unsupported
10510 if test "$lt_cv_ld_force_load" = "yes"; then
10511 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\"`'
10512
10513 else
10514 whole_archive_flag_spec=''
10515 fi
10516 link_all_deplibs=yes
10517 allow_undefined_flag="$_lt_dar_allow_undefined"
10518 case $cc_basename in
10519 ifort*) _lt_dar_can_shared=yes ;;
10520 *) _lt_dar_can_shared=$GCC ;;
10521 esac
10522 if test "$_lt_dar_can_shared" = "yes"; then
10523 output_verbose_link_cmd=func_echo_all
10524 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10525 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10526 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}"
10527 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}"
10528
10529 else
10530 ld_shlibs=no
10531 fi
10532
10533 ;;
10534
10535 dgux*)
10536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_libdir_flag_spec='-L$libdir'
10538 hardcode_shlibpath_var=no
10539 ;;
10540
10541 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10542 # support. Future versions do this automatically, but an explicit c++rt0.o
10543 # does not break anything, and helps significantly (at the cost of a little
10544 # extra space).
10545 freebsd2.2*)
10546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10547 hardcode_libdir_flag_spec='-R$libdir'
10548 hardcode_direct=yes
10549 hardcode_shlibpath_var=no
10550 ;;
10551
10552 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10553 freebsd2.*)
10554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10555 hardcode_direct=yes
10556 hardcode_minus_L=yes
10557 hardcode_shlibpath_var=no
10558 ;;
10559
10560 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10561 freebsd* | dragonfly*)
10562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10563 hardcode_libdir_flag_spec='-R$libdir'
10564 hardcode_direct=yes
10565 hardcode_shlibpath_var=no
10566 ;;
10567
10568 hpux9*)
10569 if test "$GCC" = yes; then
10570 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'
10571 else
10572 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'
10573 fi
10574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10575 hardcode_libdir_separator=:
10576 hardcode_direct=yes
10577
10578 # hardcode_minus_L: Not really in the search PATH,
10579 # but as the default location of the library.
10580 hardcode_minus_L=yes
10581 export_dynamic_flag_spec='${wl}-E'
10582 ;;
10583
10584 hpux10*)
10585 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10586 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10587 else
10588 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10589 fi
10590 if test "$with_gnu_ld" = no; then
10591 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10592 hardcode_libdir_separator=:
10593 hardcode_direct=yes
10594 hardcode_direct_absolute=yes
10595 export_dynamic_flag_spec='${wl}-E'
10596 # hardcode_minus_L: Not really in the search PATH,
10597 # but as the default location of the library.
10598 hardcode_minus_L=yes
10599 fi
10600 ;;
10601
10602 hpux11*)
10603 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10604 case $host_cpu in
10605 hppa*64*)
10606 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 ;;
10608 ia64*)
10609 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10610 ;;
10611 *)
10612 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10613 ;;
10614 esac
10615 else
10616 case $host_cpu in
10617 hppa*64*)
10618 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 ;;
10620 ia64*)
10621 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10622 ;;
10623 *)
10624
10625 # Older versions of the 11.00 compiler do not understand -b yet
10626 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10628$as_echo_n "checking if $CC understands -b... " >&6; }
10629if ${lt_cv_prog_compiler__b+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631else
10632 lt_cv_prog_compiler__b=no
10633 save_LDFLAGS="$LDFLAGS"
10634 LDFLAGS="$LDFLAGS -b"
10635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10637 # The linker can only warn and ignore the option if not recognized
10638 # So say no if there are warnings
10639 if test -s conftest.err; then
10640 # Append any errors to the config.log.
10641 cat conftest.err 1>&5
10642 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10644 if diff conftest.exp conftest.er2 >/dev/null; then
10645 lt_cv_prog_compiler__b=yes
10646 fi
10647 else
10648 lt_cv_prog_compiler__b=yes
10649 fi
10650 fi
10651 $RM -r conftest*
10652 LDFLAGS="$save_LDFLAGS"
10653
10654fi
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10656$as_echo "$lt_cv_prog_compiler__b" >&6; }
10657
10658if test x"$lt_cv_prog_compiler__b" = xyes; then
10659 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10660else
10661 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10662fi
10663
10664 ;;
10665 esac
10666 fi
10667 if test "$with_gnu_ld" = no; then
10668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10669 hardcode_libdir_separator=:
10670
10671 case $host_cpu in
10672 hppa*64*|ia64*)
10673 hardcode_direct=no
10674 hardcode_shlibpath_var=no
10675 ;;
10676 *)
10677 hardcode_direct=yes
10678 hardcode_direct_absolute=yes
10679 export_dynamic_flag_spec='${wl}-E'
10680
10681 # hardcode_minus_L: Not really in the search PATH,
10682 # but as the default location of the library.
10683 hardcode_minus_L=yes
10684 ;;
10685 esac
10686 fi
10687 ;;
10688
10689 irix5* | irix6* | nonstopux*)
10690 if test "$GCC" = yes; then
10691 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'
10692 # Try to use the -exported_symbol ld option, if it does not
10693 # work, assume that -exports_file does not work either and
10694 # implicitly export all symbols.
10695 # This should be the same for all languages, so no per-tag cache variable.
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10697$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10698if ${lt_cv_irix_exported_symbol+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700else
10701 save_LDFLAGS="$LDFLAGS"
10702 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704/* end confdefs.h. */
10705int foo (void) { return 0; }
10706_ACEOF
10707if ac_fn_c_try_link "$LINENO"; then :
10708 lt_cv_irix_exported_symbol=yes
10709else
10710 lt_cv_irix_exported_symbol=no
10711fi
10712rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10714 LDFLAGS="$save_LDFLAGS"
10715fi
10716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10717$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10718 if test "$lt_cv_irix_exported_symbol" = yes; then
10719 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'
10720 fi
10721 else
10722 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'
10723 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'
10724 fi
10725 archive_cmds_need_lc='no'
10726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10727 hardcode_libdir_separator=:
10728 inherit_rpath=yes
10729 link_all_deplibs=yes
10730 ;;
10731
10732 netbsd*)
10733 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10735 else
10736 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10737 fi
10738 hardcode_libdir_flag_spec='-R$libdir'
10739 hardcode_direct=yes
10740 hardcode_shlibpath_var=no
10741 ;;
10742
10743 newsos6)
10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10745 hardcode_direct=yes
10746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10747 hardcode_libdir_separator=:
10748 hardcode_shlibpath_var=no
10749 ;;
10750
10751 *nto* | *qnx*)
10752 ;;
10753
10754 openbsd*)
10755 if test -f /usr/libexec/ld.so; then
10756 hardcode_direct=yes
10757 hardcode_shlibpath_var=no
10758 hardcode_direct_absolute=yes
10759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10761 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10763 export_dynamic_flag_spec='${wl}-E'
10764 else
10765 case $host_os in
10766 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_libdir_flag_spec='-R$libdir'
10769 ;;
10770 *)
10771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10773 ;;
10774 esac
10775 fi
10776 else
10777 ld_shlibs=no
10778 fi
10779 ;;
10780
10781 os2*)
10782 hardcode_libdir_flag_spec='-L$libdir'
10783 hardcode_minus_L=yes
10784 allow_undefined_flag=unsupported
10785 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'
10786 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10787 ;;
10788
10789 osf3*)
10790 if test "$GCC" = yes; then
10791 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10792 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'
10793 else
10794 allow_undefined_flag=' -expect_unresolved \*'
10795 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'
10796 fi
10797 archive_cmds_need_lc='no'
10798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10799 hardcode_libdir_separator=:
10800 ;;
10801
10802 osf4* | osf5*) # as osf3* with the addition of -msym flag
10803 if test "$GCC" = yes; then
10804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10805 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'
10806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10807 else
10808 allow_undefined_flag=' -expect_unresolved \*'
10809 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'
10810 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~
10811 $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'
10812
10813 # Both c and cxx compiler support -rpath directly
10814 hardcode_libdir_flag_spec='-rpath $libdir'
10815 fi
10816 archive_cmds_need_lc='no'
10817 hardcode_libdir_separator=:
10818 ;;
10819
10820 solaris*)
10821 no_undefined_flag=' -z defs'
10822 if test "$GCC" = yes; then
10823 wlarc='${wl}'
10824 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10826 $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'
10827 else
10828 case `$CC -V 2>&1` in
10829 *"Compilers 5.0"*)
10830 wlarc=''
10831 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10834 ;;
10835 *)
10836 wlarc='${wl}'
10837 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10839 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10840 ;;
10841 esac
10842 fi
10843 hardcode_libdir_flag_spec='-R$libdir'
10844 hardcode_shlibpath_var=no
10845 case $host_os in
10846 solaris2.[0-5] | solaris2.[0-5].*) ;;
10847 *)
10848 # The compiler driver will combine and reorder linker options,
10849 # but understands `-z linker_flag'. GCC discards it without `$wl',
10850 # but is careful enough not to reorder.
10851 # Supported since Solaris 2.6 (maybe 2.5.1?)
10852 if test "$GCC" = yes; then
10853 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10854 else
10855 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10856 fi
10857 ;;
10858 esac
10859 link_all_deplibs=yes
10860 ;;
10861
10862 sunos4*)
10863 if test "x$host_vendor" = xsequent; then
10864 # Use $CC to link under sequent, because it throws in some extra .o
10865 # files that make .init and .fini sections work.
10866 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10867 else
10868 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10869 fi
10870 hardcode_libdir_flag_spec='-L$libdir'
10871 hardcode_direct=yes
10872 hardcode_minus_L=yes
10873 hardcode_shlibpath_var=no
10874 ;;
10875
10876 sysv4)
10877 case $host_vendor in
10878 sni)
10879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10880 hardcode_direct=yes # is this really true???
10881 ;;
10882 siemens)
10883 ## LD is ld it makes a PLAMLIB
10884 ## CC just makes a GrossModule.
10885 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10886 reload_cmds='$CC -r -o $output$reload_objs'
10887 hardcode_direct=no
10888 ;;
10889 motorola)
10890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10891 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10892 ;;
10893 esac
10894 runpath_var='LD_RUN_PATH'
10895 hardcode_shlibpath_var=no
10896 ;;
10897
10898 sysv4.3*)
10899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10900 hardcode_shlibpath_var=no
10901 export_dynamic_flag_spec='-Bexport'
10902 ;;
10903
10904 sysv4*MP*)
10905 if test -d /usr/nec; then
10906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10907 hardcode_shlibpath_var=no
10908 runpath_var=LD_RUN_PATH
10909 hardcode_runpath_var=yes
10910 ld_shlibs=yes
10911 fi
10912 ;;
10913
10914 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10915 no_undefined_flag='${wl}-z,text'
10916 archive_cmds_need_lc=no
10917 hardcode_shlibpath_var=no
10918 runpath_var='LD_RUN_PATH'
10919
10920 if test "$GCC" = yes; then
10921 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923 else
10924 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 fi
10927 ;;
10928
10929 sysv5* | sco3.2v5* | sco5v6*)
10930 # Note: We can NOT use -z defs as we might desire, because we do not
10931 # link with -lc, and that would cause any symbols used from libc to
10932 # always be unresolved, which means just about no library would
10933 # ever link correctly. If we're not using GNU ld we use -z text
10934 # though, which does catch some bad symbols but isn't as heavy-handed
10935 # as -z defs.
10936 no_undefined_flag='${wl}-z,text'
10937 allow_undefined_flag='${wl}-z,nodefs'
10938 archive_cmds_need_lc=no
10939 hardcode_shlibpath_var=no
10940 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10941 hardcode_libdir_separator=':'
10942 link_all_deplibs=yes
10943 export_dynamic_flag_spec='${wl}-Bexport'
10944 runpath_var='LD_RUN_PATH'
10945
10946 if test "$GCC" = yes; then
10947 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 else
10950 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 fi
10953 ;;
10954
10955 uts4*)
10956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10957 hardcode_libdir_flag_spec='-L$libdir'
10958 hardcode_shlibpath_var=no
10959 ;;
10960
10961 *)
10962 ld_shlibs=no
10963 ;;
10964 esac
10965
10966 if test x$host_vendor = xsni; then
10967 case $host in
10968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10969 export_dynamic_flag_spec='${wl}-Blargedynsym'
10970 ;;
10971 esac
10972 fi
10973 fi
10974
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10976$as_echo "$ld_shlibs" >&6; }
10977test "$ld_shlibs" = no && can_build_shared=no
10978
10979with_gnu_ld=$with_gnu_ld
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995#
10996# Do we need to explicitly link libc?
10997#
10998case "x$archive_cmds_need_lc" in
10999x|xyes)
11000 # Assume -lc should be added
11001 archive_cmds_need_lc=yes
11002
11003 if test "$enable_shared" = yes && test "$GCC" = yes; then
11004 case $archive_cmds in
11005 *'~'*)
11006 # FIXME: we may have to deal with multi-command sequences.
11007 ;;
11008 '$CC '*)
11009 # Test whether the compiler implicitly links with -lc since on some
11010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11011 # to ld, don't add -lc before -lgcc.
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11013$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11014if ${lt_cv_archive_cmds_need_lc+:} false; then :
11015 $as_echo_n "(cached) " >&6
11016else
00a96142 11017 $RM -r conftest*
a243b558
JF
11018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11019
11020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11021 (eval $ac_compile) 2>&5
11022 ac_status=$?
11023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024 test $ac_status = 0; } 2>conftest.err; then
11025 soname=conftest
11026 lib=conftest
11027 libobjs=conftest.$ac_objext
11028 deplibs=
11029 wl=$lt_prog_compiler_wl
11030 pic_flag=$lt_prog_compiler_pic
11031 compiler_flags=-v
11032 linker_flags=-v
11033 verstring=
11034 output_objdir=.
11035 libname=conftest
11036 lt_save_allow_undefined_flag=$allow_undefined_flag
11037 allow_undefined_flag=
11038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11039 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11040 ac_status=$?
11041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042 test $ac_status = 0; }
11043 then
11044 lt_cv_archive_cmds_need_lc=no
11045 else
11046 lt_cv_archive_cmds_need_lc=yes
11047 fi
11048 allow_undefined_flag=$lt_save_allow_undefined_flag
11049 else
11050 cat conftest.err 1>&5
11051 fi
00a96142 11052 $RM -r conftest*
a243b558
JF
11053
11054fi
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11056$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11057 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11058 ;;
11059 esac
11060 fi
11061 ;;
11062esac
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
11212
11213
11214
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11216$as_echo_n "checking dynamic linker characteristics... " >&6; }
11217
11218if test "$GCC" = yes; then
11219 case $host_os in
11220 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11221 *) lt_awk_arg="/^libraries:/" ;;
11222 esac
11223 case $host_os in
11224 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11225 *) lt_sed_strip_eq="s,=/,/,g" ;;
11226 esac
11227 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11228 case $lt_search_path_spec in
11229 *\;*)
11230 # if the path contains ";" then we assume it to be the separator
11231 # otherwise default to the standard path separator (i.e. ":") - it is
11232 # assumed that no part of a normal pathname contains ";" but that should
11233 # okay in the real world where ";" in dirpaths is itself problematic.
11234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11235 ;;
11236 *)
11237 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11238 ;;
11239 esac
11240 # Ok, now we have the path, separated by spaces, we can step through it
11241 # and add multilib dir if necessary.
11242 lt_tmp_lt_search_path_spec=
11243 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11244 for lt_sys_path in $lt_search_path_spec; do
11245 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11247 else
11248 test -d "$lt_sys_path" && \
11249 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11250 fi
11251 done
11252 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11253BEGIN {RS=" "; FS="/|\n";} {
11254 lt_foo="";
11255 lt_count=0;
11256 for (lt_i = NF; lt_i > 0; lt_i--) {
11257 if ($lt_i != "" && $lt_i != ".") {
11258 if ($lt_i == "..") {
11259 lt_count++;
11260 } else {
11261 if (lt_count == 0) {
11262 lt_foo="/" $lt_i lt_foo;
11263 } else {
11264 lt_count--;
11265 }
11266 }
11267 }
11268 }
11269 if (lt_foo != "") { lt_freq[lt_foo]++; }
11270 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11271}'`
11272 # AWK program above erroneously prepends '/' to C:/dos/paths
11273 # for these hosts.
11274 case $host_os in
11275 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11276 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11277 esac
11278 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11279else
11280 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11281fi
11282library_names_spec=
11283libname_spec='lib$name'
11284soname_spec=
11285shrext_cmds=".so"
11286postinstall_cmds=
11287postuninstall_cmds=
11288finish_cmds=
11289finish_eval=
11290shlibpath_var=
11291shlibpath_overrides_runpath=unknown
11292version_type=none
11293dynamic_linker="$host_os ld.so"
11294sys_lib_dlsearch_path_spec="/lib /usr/lib"
11295need_lib_prefix=unknown
11296hardcode_into_libs=no
11297
11298# when you set need_version to no, make sure it does not cause -set_version
11299# flags to be left without arguments
11300need_version=unknown
11301
11302case $host_os in
11303aix3*)
11304 version_type=linux # correct to gnu/linux during the next big refactor
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11306 shlibpath_var=LIBPATH
11307
11308 # AIX 3 has no versioning support, so we append a major version to the name.
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 ;;
11311
11312aix[4-9]*)
11313 version_type=linux # correct to gnu/linux during the next big refactor
11314 need_lib_prefix=no
11315 need_version=no
11316 hardcode_into_libs=yes
11317 if test "$host_cpu" = ia64; then
11318 # AIX 5 supports IA64
11319 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 else
11322 # With GCC up to 2.95.x, collect2 would create an import file
11323 # for dependence libraries. The import file would start with
11324 # the line `#! .'. This would cause the generated library to
11325 # depend on `.', always an invalid library. This was fixed in
11326 # development snapshots of GCC prior to 3.0.
11327 case $host_os in
11328 aix4 | aix4.[01] | aix4.[01].*)
11329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11330 echo ' yes '
11331 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11332 :
11333 else
11334 can_build_shared=no
11335 fi
11336 ;;
11337 esac
11338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11339 # soname into executable. Probably we can add versioning support to
11340 # collect2, so additional links can be useful in future.
11341 if test "$aix_use_runtimelinking" = yes; then
11342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11343 # instead of lib<name>.a to let people know that these are not
11344 # typical AIX shared libraries.
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 else
11347 # We preserve .a as extension for shared libraries through AIX4.2
11348 # and later when we are not doing run time linking.
11349 library_names_spec='${libname}${release}.a $libname.a'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 fi
11352 shlibpath_var=LIBPATH
11353 fi
11354 ;;
11355
11356amigaos*)
11357 case $host_cpu in
11358 powerpc)
11359 # Since July 2007 AmigaOS4 officially supports .so libraries.
11360 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11362 ;;
11363 m68k)
11364 library_names_spec='$libname.ixlibrary $libname.a'
11365 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11366 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'
11367 ;;
11368 esac
11369 ;;
11370
11371beos*)
11372 library_names_spec='${libname}${shared_ext}'
11373 dynamic_linker="$host_os ld.so"
11374 shlibpath_var=LIBRARY_PATH
11375 ;;
11376
11377bsdi[45]*)
11378 version_type=linux # correct to gnu/linux during the next big refactor
11379 need_version=no
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11383 shlibpath_var=LD_LIBRARY_PATH
11384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11386 # the default ld.so.conf also contains /usr/contrib/lib and
11387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11388 # libtool to hard-code these into programs
11389 ;;
11390
11391cygwin* | mingw* | pw32* | cegcc*)
11392 version_type=windows
11393 shrext_cmds=".dll"
11394 need_version=no
11395 need_lib_prefix=no
9c60689e 11396
a243b558
JF
11397 case $GCC,$cc_basename in
11398 yes,*)
11399 # gcc
11400 library_names_spec='$libname.dll.a'
11401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11402 postinstall_cmds='base_file=`basename \${file}`~
11403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11404 dldir=$destdir/`dirname \$dlpath`~
11405 test -d \$dldir || mkdir -p \$dldir~
11406 $install_prog $dir/$dlname \$dldir/$dlname~
11407 chmod a+x \$dldir/$dlname~
11408 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11409 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11410 fi'
11411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11412 dlpath=$dir/\$dldll~
11413 $RM \$dlpath'
11414 shlibpath_overrides_runpath=yes
9c60689e 11415
a243b558
JF
11416 case $host_os in
11417 cygwin*)
11418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e 11420
a243b558
JF
11421 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11422 ;;
11423 mingw* | cegcc*)
11424 # MinGW DLLs use traditional 'lib' prefix
11425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426 ;;
11427 pw32*)
11428 # pw32 DLLs use 'pw' prefix rather than 'lib'
11429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11430 ;;
11431 esac
11432 dynamic_linker='Win32 ld.exe'
11433 ;;
9c60689e 11434
a243b558
JF
11435 *,cl*)
11436 # Native MSVC
11437 libname_spec='$name'
11438 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11439 library_names_spec='${libname}.dll.lib'
9c60689e 11440
a243b558
JF
11441 case $build_os in
11442 mingw*)
11443 sys_lib_search_path_spec=
11444 lt_save_ifs=$IFS
11445 IFS=';'
11446 for lt_path in $LIB
11447 do
11448 IFS=$lt_save_ifs
11449 # Let DOS variable expansion print the short 8.3 style file name.
11450 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11451 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11452 done
11453 IFS=$lt_save_ifs
11454 # Convert to MSYS style.
11455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11456 ;;
11457 cygwin*)
11458 # Convert to unix form, then to dos form, then back to unix form
11459 # but this time dos style (no spaces!) so that the unix form looks
11460 # like /cygdrive/c/PROGRA~1:/cygdr...
11461 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11462 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11463 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11464 ;;
11465 *)
11466 sys_lib_search_path_spec="$LIB"
11467 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11468 # It is most probably a Windows format PATH.
11469 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11470 else
11471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11472 fi
11473 # FIXME: find the short name or the path components, as spaces are
11474 # common. (e.g. "Program Files" -> "PROGRA~1")
11475 ;;
11476 esac
11477
11478 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11479 postinstall_cmds='base_file=`basename \${file}`~
11480 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11481 dldir=$destdir/`dirname \$dlpath`~
11482 test -d \$dldir || mkdir -p \$dldir~
11483 $install_prog $dir/$dlname \$dldir/$dlname'
11484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11485 dlpath=$dir/\$dldll~
11486 $RM \$dlpath'
11487 shlibpath_overrides_runpath=yes
11488 dynamic_linker='Win32 link.exe'
11489 ;;
9c60689e 11490
a243b558
JF
11491 *)
11492 # Assume MSVC wrapper
11493 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11494 dynamic_linker='Win32 ld.exe'
11495 ;;
11496 esac
11497 # FIXME: first we should search . and the directory the executable is in
11498 shlibpath_var=PATH
11499 ;;
9c60689e 11500
a243b558
JF
11501darwin* | rhapsody*)
11502 dynamic_linker="$host_os dyld"
11503 version_type=darwin
11504 need_lib_prefix=no
11505 need_version=no
11506 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11507 soname_spec='${libname}${release}${major}$shared_ext'
11508 shlibpath_overrides_runpath=yes
11509 shlibpath_var=DYLD_LIBRARY_PATH
11510 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11511
a243b558
JF
11512 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11513 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11514 ;;
9c60689e 11515
a243b558
JF
11516dgux*)
11517 version_type=linux # correct to gnu/linux during the next big refactor
11518 need_lib_prefix=no
11519 need_version=no
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 ;;
11524
11525freebsd* | dragonfly*)
11526 # DragonFly does not have aout. When/if they implement a new
11527 # versioning mechanism, adjust this.
11528 if test -x /usr/bin/objformat; then
11529 objformat=`/usr/bin/objformat`
11530 else
11531 case $host_os in
11532 freebsd[23].*) objformat=aout ;;
11533 *) objformat=elf ;;
11534 esac
11535 fi
11536 version_type=freebsd-$objformat
11537 case $version_type in
11538 freebsd-elf*)
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11540 need_version=no
11541 need_lib_prefix=no
11542 ;;
11543 freebsd-*)
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11545 need_version=yes
11546 ;;
11547 esac
11548 shlibpath_var=LD_LIBRARY_PATH
11549 case $host_os in
11550 freebsd2.*)
11551 shlibpath_overrides_runpath=yes
11552 ;;
11553 freebsd3.[01]* | freebsdelf3.[01]*)
11554 shlibpath_overrides_runpath=yes
11555 hardcode_into_libs=yes
11556 ;;
11557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11559 shlibpath_overrides_runpath=no
11560 hardcode_into_libs=yes
11561 ;;
11562 *) # from 4.6 on, and DragonFly
11563 shlibpath_overrides_runpath=yes
11564 hardcode_into_libs=yes
11565 ;;
11566 esac
11567 ;;
9c60689e 11568
a243b558
JF
11569gnu*)
11570 version_type=linux # correct to gnu/linux during the next big refactor
11571 need_lib_prefix=no
11572 need_version=no
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 shlibpath_var=LD_LIBRARY_PATH
11576 shlibpath_overrides_runpath=no
11577 hardcode_into_libs=yes
11578 ;;
9c60689e 11579
a243b558
JF
11580haiku*)
11581 version_type=linux # correct to gnu/linux during the next big refactor
11582 need_lib_prefix=no
11583 need_version=no
11584 dynamic_linker="$host_os runtime_loader"
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LIBRARY_PATH
11588 shlibpath_overrides_runpath=yes
11589 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11590 hardcode_into_libs=yes
11591 ;;
9c60689e 11592
a243b558
JF
11593hpux9* | hpux10* | hpux11*)
11594 # Give a soname corresponding to the major version so that dld.sl refuses to
11595 # link against other versions.
11596 version_type=sunos
11597 need_lib_prefix=no
11598 need_version=no
11599 case $host_cpu in
11600 ia64*)
11601 shrext_cmds='.so'
11602 hardcode_into_libs=yes
11603 dynamic_linker="$host_os dld.so"
11604 shlibpath_var=LD_LIBRARY_PATH
11605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11607 soname_spec='${libname}${release}${shared_ext}$major'
11608 if test "X$HPUX_IA64_MODE" = X32; then
11609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11610 else
11611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11612 fi
11613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11614 ;;
11615 hppa*64*)
11616 shrext_cmds='.sl'
11617 hardcode_into_libs=yes
11618 dynamic_linker="$host_os dld.sl"
11619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11622 soname_spec='${libname}${release}${shared_ext}$major'
11623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11625 ;;
11626 *)
11627 shrext_cmds='.sl'
11628 dynamic_linker="$host_os dld.sl"
11629 shlibpath_var=SHLIB_PATH
11630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
9c60689e
DWT
11633 ;;
11634 esac
a243b558
JF
11635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11636 postinstall_cmds='chmod 555 $lib'
11637 # or fails outright, so override atomically:
11638 install_override_mode=555
11639 ;;
9c60689e 11640
a243b558
JF
11641interix[3-9]*)
11642 version_type=linux # correct to gnu/linux during the next big refactor
11643 need_lib_prefix=no
11644 need_version=no
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11646 soname_spec='${libname}${release}${shared_ext}$major'
11647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 shlibpath_overrides_runpath=no
11650 hardcode_into_libs=yes
11651 ;;
9c60689e 11652
a243b558
JF
11653irix5* | irix6* | nonstopux*)
11654 case $host_os in
11655 nonstopux*) version_type=nonstopux ;;
11656 *)
11657 if test "$lt_cv_prog_gnu_ld" = yes; then
11658 version_type=linux # correct to gnu/linux during the next big refactor
11659 else
11660 version_type=irix
11661 fi ;;
11662 esac
11663 need_lib_prefix=no
11664 need_version=no
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11667 case $host_os in
11668 irix5* | nonstopux*)
11669 libsuff= shlibsuff=
11670 ;;
11671 *)
11672 case $LD in # libtool.m4 will add one of these switches to LD
11673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11674 libsuff= shlibsuff= libmagic=32-bit;;
11675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11676 libsuff=32 shlibsuff=N32 libmagic=N32;;
11677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11679 *) libsuff= shlibsuff= libmagic=never-match;;
11680 esac
11681 ;;
11682 esac
11683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11684 shlibpath_overrides_runpath=no
11685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11687 hardcode_into_libs=yes
11688 ;;
9c60689e 11689
a243b558
JF
11690# No shared lib support for Linux oldld, aout, or coff.
11691linux*oldld* | linux*aout* | linux*coff*)
11692 dynamic_linker=no
11693 ;;
9c60689e 11694
a243b558
JF
11695# This must be glibc/ELF.
11696linux* | k*bsd*-gnu | kopensolaris*-gnu)
11697 version_type=linux # correct to gnu/linux during the next big refactor
11698 need_lib_prefix=no
11699 need_version=no
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=no
9c60689e 11705
a243b558
JF
11706 # Some binutils ld are patched to set DT_RUNPATH
11707 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
11708 $as_echo_n "(cached) " >&6
11709else
a243b558
JF
11710 lt_cv_shlibpath_overrides_runpath=no
11711 save_LDFLAGS=$LDFLAGS
11712 save_libdir=$libdir
11713 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11714 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716/* end confdefs.h. */
ee134472 11717
a243b558
JF
11718int
11719main ()
9c60689e 11720{
9c60689e 11721
a243b558
JF
11722 ;
11723 return 0;
11724}
11725_ACEOF
11726if ac_fn_c_try_link "$LINENO"; then :
11727 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11728 lt_cv_shlibpath_overrides_runpath=yes
11729fi
11730fi
11731rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733 LDFLAGS=$save_LDFLAGS
11734 libdir=$save_libdir
9c60689e 11735
a243b558 11736fi
9c60689e 11737
a243b558 11738 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 11739
a243b558
JF
11740 # This implies no fast_install, which is unacceptable.
11741 # Some rework will be needed to allow for fast_install
11742 # before this can be enabled.
11743 hardcode_into_libs=yes
9c60689e 11744
a243b558
JF
11745 # Append ld.so.conf contents to the search path
11746 if test -f /etc/ld.so.conf; then
11747 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' ' '`
11748 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11749 fi
ee134472 11750
a243b558
JF
11751 # We used to test for /lib/ld.so.1 and disable shared libraries on
11752 # powerpc, because MkLinux only supported shared libraries with the
11753 # GNU dynamic linker. Since this was broken with cross compilers,
11754 # most powerpc-linux boxes support dynamic linking these days and
11755 # people can always --disable-shared, the test was removed, and we
11756 # assume the GNU/Linux dynamic linker is in use.
11757 dynamic_linker='GNU/Linux ld.so'
11758 ;;
9c60689e 11759
a243b558
JF
11760netbsd*)
11761 version_type=sunos
11762 need_lib_prefix=no
11763 need_version=no
11764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11767 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 11768 else
a243b558
JF
11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11770 soname_spec='${libname}${release}${shared_ext}$major'
11771 dynamic_linker='NetBSD ld.elf_so'
9c60689e 11772 fi
a243b558
JF
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=yes
11775 hardcode_into_libs=yes
11776 ;;
9c60689e 11777
a243b558
JF
11778newsos6)
11779 version_type=linux # correct to gnu/linux during the next big refactor
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 shlibpath_var=LD_LIBRARY_PATH
11782 shlibpath_overrides_runpath=yes
11783 ;;
9c60689e 11784
a243b558
JF
11785*nto* | *qnx*)
11786 version_type=qnx
11787 need_lib_prefix=no
11788 need_version=no
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 shlibpath_overrides_runpath=no
11793 hardcode_into_libs=yes
11794 dynamic_linker='ldqnx.so'
11795 ;;
9c60689e 11796
a243b558
JF
11797openbsd*)
11798 version_type=sunos
11799 sys_lib_dlsearch_path_spec="/usr/lib"
11800 need_lib_prefix=no
11801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11802 case $host_os in
11803 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11804 *) need_version=no ;;
9c60689e 11805 esac
a243b558
JF
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11810 case $host_os in
11811 openbsd2.[89] | openbsd2.[89].*)
11812 shlibpath_overrides_runpath=no
11813 ;;
11814 *)
11815 shlibpath_overrides_runpath=yes
11816 ;;
11817 esac
11818 else
11819 shlibpath_overrides_runpath=yes
11820 fi
11821 ;;
9c60689e 11822
a243b558
JF
11823os2*)
11824 libname_spec='$name'
11825 shrext_cmds=".dll"
11826 need_lib_prefix=no
11827 library_names_spec='$libname${shared_ext} $libname.a'
11828 dynamic_linker='OS/2 ld.exe'
11829 shlibpath_var=LIBPATH
11830 ;;
9c60689e 11831
a243b558
JF
11832osf3* | osf4* | osf5*)
11833 version_type=osf
11834 need_lib_prefix=no
11835 need_version=no
11836 soname_spec='${libname}${release}${shared_ext}$major'
11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838 shlibpath_var=LD_LIBRARY_PATH
11839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11841 ;;
11842
11843rdos*)
11844 dynamic_linker=no
11845 ;;
11846
11847solaris*)
11848 version_type=linux # correct to gnu/linux during the next big refactor
11849 need_lib_prefix=no
11850 need_version=no
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 shlibpath_overrides_runpath=yes
11855 hardcode_into_libs=yes
11856 # ldd complains unless libraries are executable
11857 postinstall_cmds='chmod +x $lib'
11858 ;;
9c60689e 11859
a243b558
JF
11860sunos4*)
11861 version_type=sunos
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=yes
11866 if test "$with_gnu_ld" = yes; then
11867 need_lib_prefix=no
11868 fi
11869 need_version=yes
11870 ;;
9c60689e 11871
a243b558
JF
11872sysv4 | sysv4.3*)
11873 version_type=linux # correct to gnu/linux during the next big refactor
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 case $host_vendor in
11878 sni)
11879 shlibpath_overrides_runpath=no
11880 need_lib_prefix=no
11881 runpath_var=LD_RUN_PATH
11882 ;;
11883 siemens)
11884 need_lib_prefix=no
11885 ;;
11886 motorola)
11887 need_lib_prefix=no
11888 need_version=no
11889 shlibpath_overrides_runpath=no
11890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11891 ;;
11892 esac
11893 ;;
9c60689e 11894
a243b558
JF
11895sysv4*MP*)
11896 if test -d /usr/nec ;then
11897 version_type=linux # correct to gnu/linux during the next big refactor
11898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11899 soname_spec='$libname${shared_ext}.$major'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 fi
11902 ;;
9c60689e 11903
a243b558
JF
11904sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11905 version_type=freebsd-elf
11906 need_lib_prefix=no
11907 need_version=no
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 hardcode_into_libs=yes
11913 if test "$with_gnu_ld" = yes; then
11914 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11915 else
11916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11917 case $host_os in
11918 sco3.2v5*)
11919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11920 ;;
11921 esac
11922 fi
11923 sys_lib_dlsearch_path_spec='/usr/lib'
11924 ;;
9c60689e 11925
a243b558
JF
11926tpf*)
11927 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11928 version_type=linux # correct to gnu/linux during the next big refactor
11929 need_lib_prefix=no
11930 need_version=no
11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932 shlibpath_var=LD_LIBRARY_PATH
11933 shlibpath_overrides_runpath=no
11934 hardcode_into_libs=yes
11935 ;;
9c60689e 11936
a243b558
JF
11937uts4*)
11938 version_type=linux # correct to gnu/linux during the next big refactor
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940 soname_spec='${libname}${release}${shared_ext}$major'
11941 shlibpath_var=LD_LIBRARY_PATH
11942 ;;
9c60689e 11943
a243b558
JF
11944*)
11945 dynamic_linker=no
11946 ;;
11947esac
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11949$as_echo "$dynamic_linker" >&6; }
11950test "$dynamic_linker" = no && can_build_shared=no
9c60689e 11951
a243b558
JF
11952variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11953if test "$GCC" = yes; then
11954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11955fi
9c60689e 11956
a243b558
JF
11957if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11958 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11959fi
11960if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11961 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11962fi
9c60689e
DWT
11963
11964
11965
11966
11967
11968
11969
11970
9c60689e
DWT
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
9c60689e 11983
9c60689e 11984
9c60689e 11985
9c60689e 11986
9c60689e
DWT
11987
11988
11989
11990
9c60689e 11991
9c60689e
DWT
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
53ba6704
JF
12005
12006
9c60689e
DWT
12007
12008
12009
12010
9c60689e
DWT
12011
12012
3fd51f51 12013
66170b30
JF
12014
12015
12016
3fd51f51 12017
12833ad8
JF
12018
12019
12020
12021
3fd51f51 12022
3fd51f51
DWT
12023
12024
3fd51f51 12025
3fd51f51 12026
3fd51f51 12027
66170b30 12028
632b71ea 12029
632b71ea
DWT
12030
12031
790e5246 12032
66170b30 12033
9c60689e 12034
9c60689e
DWT
12035
12036
9c60689e 12037
9c60689e
DWT
12038
12039
66170b30 12040
66170b30 12041
9c60689e 12042
e9c9a47c
DWT
12043
12044
12045
66170b30
JF
12046
12047
66170b30 12048
e9c9a47c 12049
a243b558
JF
12050
12051
12052
12053
12054
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12056$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12057hardcode_action=
12058if test -n "$hardcode_libdir_flag_spec" ||
12059 test -n "$runpath_var" ||
12060 test "X$hardcode_automatic" = "Xyes" ; then
12061
12062 # We can hardcode non-existent directories.
12063 if test "$hardcode_direct" != no &&
12064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12065 # have to relink, otherwise we might link with an installed library
12066 # when we should be linking with a yet-to-be-installed one
12067 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12068 test "$hardcode_minus_L" != no; then
12069 # Linking always hardcodes the temporary library directory.
12070 hardcode_action=relink
12071 else
12072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12073 hardcode_action=immediate
9c60689e 12074 fi
e9c9a47c 12075else
a243b558
JF
12076 # We cannot hardcode anything, or else we can only hardcode existing
12077 # directories.
12078 hardcode_action=unsupported
12079fi
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12081$as_echo "$hardcode_action" >&6; }
12082
12083if test "$hardcode_action" = relink ||
12084 test "$inherit_rpath" = yes; then
12085 # Fast installation is not supported
12086 enable_fast_install=no
12087elif test "$shlibpath_overrides_runpath" = yes ||
12088 test "$enable_shared" = no; then
12089 # Fast installation is not necessary
12090 enable_fast_install=needless
9c60689e 12091fi
9c60689e 12092
9c60689e 12093
66170b30 12094
66170b30 12095
9c60689e 12096
a243b558
JF
12097
12098 if test "x$enable_dlopen" != xyes; then
12099 enable_dlopen=unknown
12100 enable_dlopen_self=unknown
12101 enable_dlopen_self_static=unknown
66170b30 12102else
a243b558
JF
12103 lt_cv_dlopen=no
12104 lt_cv_dlopen_libs=
66170b30 12105
a243b558
JF
12106 case $host_os in
12107 beos*)
12108 lt_cv_dlopen="load_add_on"
12109 lt_cv_dlopen_libs=
12110 lt_cv_dlopen_self=yes
12111 ;;
66170b30 12112
a243b558
JF
12113 mingw* | pw32* | cegcc*)
12114 lt_cv_dlopen="LoadLibrary"
12115 lt_cv_dlopen_libs=
12116 ;;
66170b30 12117
a243b558
JF
12118 cygwin*)
12119 lt_cv_dlopen="dlopen"
12120 lt_cv_dlopen_libs=
12121 ;;
66170b30 12122
a243b558
JF
12123 darwin*)
12124 # if libdl is installed we need to link against it
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12126$as_echo_n "checking for dlopen in -ldl... " >&6; }
12127if ${ac_cv_lib_dl_dlopen+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129else
12130 ac_check_lib_save_LIBS=$LIBS
12131LIBS="-ldl $LIBS"
12132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h. */
66170b30 12134
a243b558
JF
12135/* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12138#ifdef __cplusplus
12139extern "C"
12140#endif
12141char dlopen ();
12142int
12143main ()
12144{
12145return dlopen ();
12146 ;
12147 return 0;
12148}
12149_ACEOF
12150if ac_fn_c_try_link "$LINENO"; then :
12151 ac_cv_lib_dl_dlopen=yes
12152else
12153 ac_cv_lib_dl_dlopen=no
66170b30 12154fi
a243b558
JF
12155rm -f core conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12157LIBS=$ac_check_lib_save_LIBS
66170b30 12158fi
a243b558
JF
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12160$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12161if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12163else
66170b30 12164
a243b558
JF
12165 lt_cv_dlopen="dyld"
12166 lt_cv_dlopen_libs=
12167 lt_cv_dlopen_self=yes
66170b30 12168
a243b558 12169fi
9c60689e 12170
a243b558 12171 ;;
9c60689e 12172
a243b558
JF
12173 *)
12174 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12175if test "x$ac_cv_func_shl_load" = xyes; then :
12176 lt_cv_dlopen="shl_load"
12177else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12179$as_echo_n "checking for shl_load in -ldld... " >&6; }
12180if ${ac_cv_lib_dld_shl_load+:} false; then :
12181 $as_echo_n "(cached) " >&6
12182else
12183 ac_check_lib_save_LIBS=$LIBS
12184LIBS="-ldld $LIBS"
12185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h. */
66170b30 12187
a243b558
JF
12188/* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12191#ifdef __cplusplus
12192extern "C"
12193#endif
12194char shl_load ();
12195int
12196main ()
12197{
12198return shl_load ();
12199 ;
12200 return 0;
12201}
12202_ACEOF
12203if ac_fn_c_try_link "$LINENO"; then :
12204 ac_cv_lib_dld_shl_load=yes
66170b30 12205else
a243b558
JF
12206 ac_cv_lib_dld_shl_load=no
12207fi
12208rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210LIBS=$ac_check_lib_save_LIBS
66170b30 12211fi
a243b558
JF
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12213$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12214if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12215 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12216else
12217 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12218if test "x$ac_cv_func_dlopen" = xyes; then :
12219 lt_cv_dlopen="dlopen"
12220else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12222$as_echo_n "checking for dlopen in -ldl... " >&6; }
12223if ${ac_cv_lib_dl_dlopen+:} false; then :
12224 $as_echo_n "(cached) " >&6
12225else
12226 ac_check_lib_save_LIBS=$LIBS
12227LIBS="-ldl $LIBS"
12228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h. */
e9c9a47c 12230
a243b558
JF
12231/* Override any GCC internal prototype to avoid an error.
12232 Use char because int might match the return type of a GCC
12233 builtin and then its argument prototype would still apply. */
12234#ifdef __cplusplus
12235extern "C"
12236#endif
12237char dlopen ();
12238int
12239main ()
12240{
12241return dlopen ();
12242 ;
12243 return 0;
12244}
12245_ACEOF
12246if ac_fn_c_try_link "$LINENO"; then :
12247 ac_cv_lib_dl_dlopen=yes
12248else
12249 ac_cv_lib_dl_dlopen=no
12250fi
12251rm -f core conftest.err conftest.$ac_objext \
12252 conftest$ac_exeext conftest.$ac_ext
12253LIBS=$ac_check_lib_save_LIBS
12254fi
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12256$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12257if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12259else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12261$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12262if ${ac_cv_lib_svld_dlopen+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264else
12265 ac_check_lib_save_LIBS=$LIBS
12266LIBS="-lsvld $LIBS"
12267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268/* end confdefs.h. */
12269
12270/* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12273#ifdef __cplusplus
12274extern "C"
12275#endif
12276char dlopen ();
12277int
12278main ()
12279{
12280return dlopen ();
12281 ;
12282 return 0;
12283}
12284_ACEOF
12285if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_lib_svld_dlopen=yes
12287else
12288 ac_cv_lib_svld_dlopen=no
12289fi
12290rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292LIBS=$ac_check_lib_save_LIBS
12293fi
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12295$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12296if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12297 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12298else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12300$as_echo_n "checking for dld_link in -ldld... " >&6; }
12301if ${ac_cv_lib_dld_dld_link+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303else
12304 ac_check_lib_save_LIBS=$LIBS
12305LIBS="-ldld $LIBS"
12306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h. */
12308
12309/* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312#ifdef __cplusplus
12313extern "C"
12314#endif
12315char dld_link ();
12316int
12317main ()
12318{
12319return dld_link ();
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324if ac_fn_c_try_link "$LINENO"; then :
12325 ac_cv_lib_dld_dld_link=yes
9c60689e 12326else
a243b558
JF
12327 ac_cv_lib_dld_dld_link=no
12328fi
12329rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331LIBS=$ac_check_lib_save_LIBS
12332fi
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12334$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12335if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12336 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9c60689e
DWT
12337fi
12338
12339
a243b558 12340fi
66170b30 12341
66170b30 12342
a243b558 12343fi
66170b30 12344
66170b30
JF
12345
12346fi
e9c9a47c 12347
66170b30 12348
a243b558 12349fi
66170b30 12350
66170b30 12351
66170b30 12352fi
e9c9a47c 12353
a243b558
JF
12354 ;;
12355 esac
9c60689e 12356
a243b558
JF
12357 if test "x$lt_cv_dlopen" != xno; then
12358 enable_dlopen=yes
12359 else
12360 enable_dlopen=no
12361 fi
9c60689e 12362
a243b558
JF
12363 case $lt_cv_dlopen in
12364 dlopen)
12365 save_CPPFLAGS="$CPPFLAGS"
12366 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12367
a243b558
JF
12368 save_LDFLAGS="$LDFLAGS"
12369 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12370
a243b558
JF
12371 save_LIBS="$LIBS"
12372 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12373
a243b558
JF
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12375$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12376if ${lt_cv_dlopen_self+:} false; then :
12377 $as_echo_n "(cached) " >&6
e9c9a47c 12378else
a243b558
JF
12379 if test "$cross_compiling" = yes; then :
12380 lt_cv_dlopen_self=cross
12381else
12382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12383 lt_status=$lt_dlunknown
12384 cat > conftest.$ac_ext <<_LT_EOF
12385#line $LINENO "configure"
12386#include "confdefs.h"
e9c9a47c 12387
a243b558
JF
12388#if HAVE_DLFCN_H
12389#include <dlfcn.h>
12390#endif
e9c9a47c 12391
a243b558 12392#include <stdio.h>
66170b30 12393
a243b558
JF
12394#ifdef RTLD_GLOBAL
12395# define LT_DLGLOBAL RTLD_GLOBAL
12396#else
12397# ifdef DL_GLOBAL
12398# define LT_DLGLOBAL DL_GLOBAL
12399# else
12400# define LT_DLGLOBAL 0
12401# endif
12402#endif
66170b30 12403
a243b558
JF
12404/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12405 find out it does not work in some platform. */
12406#ifndef LT_DLLAZY_OR_NOW
12407# ifdef RTLD_LAZY
12408# define LT_DLLAZY_OR_NOW RTLD_LAZY
12409# else
12410# ifdef DL_LAZY
12411# define LT_DLLAZY_OR_NOW DL_LAZY
12412# else
12413# ifdef RTLD_NOW
12414# define LT_DLLAZY_OR_NOW RTLD_NOW
12415# else
12416# ifdef DL_NOW
12417# define LT_DLLAZY_OR_NOW DL_NOW
12418# else
12419# define LT_DLLAZY_OR_NOW 0
12420# endif
12421# endif
12422# endif
12423# endif
12424#endif
e9c9a47c 12425
a243b558
JF
12426/* When -fvisbility=hidden is used, assume the code has been annotated
12427 correspondingly for the symbols needed. */
12428#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12429int fnord () __attribute__((visibility("default")));
12430#endif
e9c9a47c 12431
a243b558
JF
12432int fnord () { return 42; }
12433int main ()
12434{
12435 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12436 int status = $lt_dlunknown;
e9c9a47c 12437
a243b558
JF
12438 if (self)
12439 {
12440 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12441 else
12442 {
12443 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12444 else puts (dlerror ());
12445 }
12446 /* dlclose (self); */
12447 }
12448 else
12449 puts (dlerror ());
e9c9a47c 12450
a243b558
JF
12451 return status;
12452}
12453_LT_EOF
12454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12455 (eval $ac_link) 2>&5
12456 ac_status=$?
12457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12458 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12459 (./conftest; exit; ) >&5 2>/dev/null
12460 lt_status=$?
12461 case x$lt_status in
12462 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12463 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12464 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12465 esac
12466 else :
12467 # compilation failed
12468 lt_cv_dlopen_self=no
12469 fi
12470fi
12471rm -fr conftest*
e9c9a47c 12472
e9c9a47c 12473
e9c9a47c 12474fi
a243b558
JF
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12476$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12477
a243b558
JF
12478 if test "x$lt_cv_dlopen_self" = xyes; then
12479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12481$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12482if ${lt_cv_dlopen_self_static+:} false; then :
12483 $as_echo_n "(cached) " >&6
e9c9a47c 12484else
a243b558
JF
12485 if test "$cross_compiling" = yes; then :
12486 lt_cv_dlopen_self_static=cross
12487else
12488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12489 lt_status=$lt_dlunknown
12490 cat > conftest.$ac_ext <<_LT_EOF
12491#line $LINENO "configure"
12492#include "confdefs.h"
12493
12494#if HAVE_DLFCN_H
12495#include <dlfcn.h>
12496#endif
12497
12498#include <stdio.h>
e9c9a47c 12499
a243b558
JF
12500#ifdef RTLD_GLOBAL
12501# define LT_DLGLOBAL RTLD_GLOBAL
12502#else
12503# ifdef DL_GLOBAL
12504# define LT_DLGLOBAL DL_GLOBAL
12505# else
12506# define LT_DLGLOBAL 0
12507# endif
12508#endif
e9c9a47c 12509
a243b558
JF
12510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12511 find out it does not work in some platform. */
12512#ifndef LT_DLLAZY_OR_NOW
12513# ifdef RTLD_LAZY
12514# define LT_DLLAZY_OR_NOW RTLD_LAZY
12515# else
12516# ifdef DL_LAZY
12517# define LT_DLLAZY_OR_NOW DL_LAZY
12518# else
12519# ifdef RTLD_NOW
12520# define LT_DLLAZY_OR_NOW RTLD_NOW
12521# else
12522# ifdef DL_NOW
12523# define LT_DLLAZY_OR_NOW DL_NOW
12524# else
12525# define LT_DLLAZY_OR_NOW 0
12526# endif
12527# endif
12528# endif
12529# endif
12530#endif
66170b30 12531
a243b558
JF
12532/* When -fvisbility=hidden is used, assume the code has been annotated
12533 correspondingly for the symbols needed. */
12534#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12535int fnord () __attribute__((visibility("default")));
12536#endif
e9c9a47c 12537
a243b558
JF
12538int fnord () { return 42; }
12539int main ()
12540{
12541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12542 int status = $lt_dlunknown;
e9c9a47c 12543
a243b558
JF
12544 if (self)
12545 {
12546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12547 else
12548 {
12549 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12550 else puts (dlerror ());
12551 }
12552 /* dlclose (self); */
12553 }
12554 else
12555 puts (dlerror ());
e9c9a47c 12556
a243b558
JF
12557 return status;
12558}
12559_LT_EOF
12560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12561 (eval $ac_link) 2>&5
12562 ac_status=$?
12563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12564 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12565 (./conftest; exit; ) >&5 2>/dev/null
12566 lt_status=$?
12567 case x$lt_status in
12568 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12569 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12570 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12571 esac
12572 else :
12573 # compilation failed
12574 lt_cv_dlopen_self_static=no
12575 fi
12576fi
12577rm -fr conftest*
e9c9a47c 12578
b65019fe 12579
a243b558
JF
12580fi
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12582$as_echo "$lt_cv_dlopen_self_static" >&6; }
12583 fi
66170b30 12584
a243b558
JF
12585 CPPFLAGS="$save_CPPFLAGS"
12586 LDFLAGS="$save_LDFLAGS"
12587 LIBS="$save_LIBS"
12588 ;;
12589 esac
66170b30 12590
a243b558
JF
12591 case $lt_cv_dlopen_self in
12592 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12593 *) enable_dlopen_self=unknown ;;
12594 esac
12595
12596 case $lt_cv_dlopen_self_static in
12597 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12598 *) enable_dlopen_self_static=unknown ;;
12599 esac
b65019fe
DWT
12600fi
12601
12602
66170b30 12603
b65019fe 12604
e9c9a47c 12605
e9c9a47c
DWT
12606
12607
e9c9a47c 12608
e9c9a47c
DWT
12609
12610
e9c9a47c 12611
e9c9a47c 12612
3530897b 12613
47aaa820 12614
47aaa820 12615
a243b558
JF
12616
12617
12618striplib=
12619old_striplib=
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12621$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12622if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12623 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12624 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12626$as_echo "yes" >&6; }
47aaa820 12627else
a243b558
JF
12628# FIXME - insert some real tests, host_os isn't really good enough
12629 case $host_os in
12630 darwin*)
12631 if test -n "$STRIP" ; then
12632 striplib="$STRIP -x"
12633 old_striplib="$STRIP -S"
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12635$as_echo "yes" >&6; }
12636 else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638$as_echo "no" >&6; }
12639 fi
12640 ;;
12641 *)
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643$as_echo "no" >&6; }
12644 ;;
12645 esac
3530897b 12646fi
47aaa820 12647
3530897b
DWT
12648
12649
9c60689e 12650
9c60689e 12651
9c60689e 12652
9c60689e 12653
9c60689e 12654
66170b30 12655
66170b30 12656
66170b30 12657
66170b30 12658
a243b558
JF
12659 # Report which library types will actually be built
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12661$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12663$as_echo "$can_build_shared" >&6; }
66170b30 12664
a243b558
JF
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12666$as_echo_n "checking whether to build shared libraries... " >&6; }
12667 test "$can_build_shared" = "no" && enable_shared=no
66170b30 12668
a243b558
JF
12669 # On AIX, shared libraries and static libraries use the same namespace, and
12670 # are all built from PIC.
12671 case $host_os in
12672 aix3*)
12673 test "$enable_shared" = yes && enable_static=no
12674 if test -n "$RANLIB"; then
12675 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12676 postinstall_cmds='$RANLIB $lib'
12677 fi
12678 ;;
66170b30 12679
a243b558
JF
12680 aix[4-9]*)
12681 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12682 test "$enable_shared" = yes && enable_static=no
12683 fi
12684 ;;
12685 esac
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12687$as_echo "$enable_shared" >&6; }
66170b30 12688
a243b558
JF
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12690$as_echo_n "checking whether to build static libraries... " >&6; }
12691 # Make sure either enable_shared or enable_static is yes.
12692 test "$enable_shared" = yes || enable_static=yes
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12694$as_echo "$enable_static" >&6; }
66170b30 12695
9c60689e 12696
e9c9a47c 12697
9c60689e 12698
a243b558
JF
12699fi
12700ac_ext=c
12701ac_cpp='$CPP $CPPFLAGS'
12702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12704ac_compiler_gnu=$ac_cv_c_compiler_gnu
12705
12706CC="$lt_save_CC"
e9c9a47c 12707
ee134472 12708 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
12709 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12710 (test "X$CXX" != "Xg++"))) ; then
12711 ac_ext=cpp
12712ac_cpp='$CXXCPP $CPPFLAGS'
12713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12717$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12718if test -z "$CXXCPP"; then
ee134472 12719 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
12720 $as_echo_n "(cached) " >&6
12721else
12722 # Double quotes because CXXCPP needs to be expanded
12723 for CXXCPP in "$CXX -E" "/lib/cpp"
12724 do
12725 ac_preproc_ok=false
12726for ac_cxx_preproc_warn_flag in '' yes
12727do
12728 # Use a header file that comes with gcc, so configuring glibc
12729 # with a fresh cross-compiler works.
12730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12731 # <limits.h> exists even on freestanding compilers.
12732 # On the NeXT, cc -E runs the code through the compiler's parser,
12733 # not just through cpp. "Syntax error" is here to catch this case.
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735/* end confdefs.h. */
12736#ifdef __STDC__
12737# include <limits.h>
12738#else
12739# include <assert.h>
12740#endif
12741 Syntax error
12742_ACEOF
12743if ac_fn_cxx_try_cpp "$LINENO"; then :
12744
12745else
12746 # Broken: fails on valid input.
12747continue
12748fi
12833ad8 12749rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12750
12751 # OK, works on sane cases. Now check whether nonexistent headers
12752 # can be detected and how.
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754/* end confdefs.h. */
12755#include <ac_nonexistent.h>
12756_ACEOF
12757if ac_fn_cxx_try_cpp "$LINENO"; then :
12758 # Broken: success on invalid input.
12759continue
12760else
12761 # Passes both tests.
12762ac_preproc_ok=:
12763break
12764fi
12833ad8 12765rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12766
12767done
12768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12769rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12770if $ac_preproc_ok; then :
12771 break
12772fi
12773
12774 done
12775 ac_cv_prog_CXXCPP=$CXXCPP
12776
12777fi
12778 CXXCPP=$ac_cv_prog_CXXCPP
12779else
12780 ac_cv_prog_CXXCPP=$CXXCPP
12781fi
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12783$as_echo "$CXXCPP" >&6; }
12784ac_preproc_ok=false
12785for ac_cxx_preproc_warn_flag in '' yes
12786do
12787 # Use a header file that comes with gcc, so configuring glibc
12788 # with a fresh cross-compiler works.
12789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12790 # <limits.h> exists even on freestanding compilers.
12791 # On the NeXT, cc -E runs the code through the compiler's parser,
12792 # not just through cpp. "Syntax error" is here to catch this case.
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794/* end confdefs.h. */
12795#ifdef __STDC__
12796# include <limits.h>
12797#else
12798# include <assert.h>
12799#endif
12800 Syntax error
12801_ACEOF
12802if ac_fn_cxx_try_cpp "$LINENO"; then :
12803
12804else
12805 # Broken: fails on valid input.
12806continue
12807fi
12833ad8 12808rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12809
12810 # OK, works on sane cases. Now check whether nonexistent headers
12811 # can be detected and how.
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813/* end confdefs.h. */
12814#include <ac_nonexistent.h>
12815_ACEOF
12816if ac_fn_cxx_try_cpp "$LINENO"; then :
12817 # Broken: success on invalid input.
12818continue
12819else
12820 # Passes both tests.
12821ac_preproc_ok=:
12822break
12823fi
12833ad8 12824rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12825
12826done
12827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12828rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12829if $ac_preproc_ok; then :
12830
12831else
12832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
12834as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12835See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
12836fi
12837
a243b558
JF
12838ac_ext=c
12839ac_cpp='$CPP $CPPFLAGS'
12840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
12843
12844else
e9c9a47c
DWT
12845 _lt_caught_CXX_error=yes
12846fi
12847
9c60689e
DWT
12848ac_ext=cpp
12849ac_cpp='$CXXCPP $CPPFLAGS'
12850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 12853
47aaa820
DWT
12854archive_cmds_need_lc_CXX=no
12855allow_undefined_flag_CXX=
12856always_export_symbols_CXX=no
12857archive_expsym_cmds_CXX=
12858compiler_needs_object_CXX=no
12859export_dynamic_flag_spec_CXX=
12860hardcode_direct_CXX=no
12861hardcode_direct_absolute_CXX=no
12862hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
12863hardcode_libdir_separator_CXX=
12864hardcode_minus_L_CXX=no
12865hardcode_shlibpath_var_CXX=unsupported
12866hardcode_automatic_CXX=no
12867inherit_rpath_CXX=no
12868module_cmds_CXX=
12869module_expsym_cmds_CXX=
12870link_all_deplibs_CXX=unknown
12871old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
12872reload_flag_CXX=$reload_flag
12873reload_cmds_CXX=$reload_cmds
47aaa820
DWT
12874no_undefined_flag_CXX=
12875whole_archive_flag_spec_CXX=
12876enable_shared_with_static_runtimes_CXX=no
9c60689e 12877
47aaa820
DWT
12878# Source file extension for C++ test sources.
12879ac_ext=cpp
9c60689e 12880
47aaa820
DWT
12881# Object file extension for compiled C++ test sources.
12882objext=o
12883objext_CXX=$objext
9c60689e 12884
47aaa820
DWT
12885# No sense in running all these tests if we already determined that
12886# the CXX compiler isn't working. Some variables (like enable_shared)
12887# are currently assumed to apply to all compilers on this platform,
12888# and will be corrupted by setting them based on a non-working compiler.
12889if test "$_lt_caught_CXX_error" != yes; then
12890 # Code to be used in simple compile tests
12891 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 12892
47aaa820
DWT
12893 # Code to be used in simple link tests
12894 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 12895
47aaa820 12896 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 12897
9c60689e 12898
9c60689e 12899
9c60689e 12900
9c60689e 12901
9c60689e 12902
47aaa820
DWT
12903# If no C compiler was specified, use CC.
12904LTCC=${LTCC-"$CC"}
9c60689e 12905
47aaa820
DWT
12906# If no C compiler flags were specified, use CFLAGS.
12907LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 12908
47aaa820
DWT
12909# Allow CC to be a program name with arguments.
12910compiler=$CC
9c60689e 12911
9c60689e 12912
47aaa820
DWT
12913 # save warnings/boilerplate of simple test code
12914 ac_outfile=conftest.$ac_objext
12915echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12916eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12917_lt_compiler_boilerplate=`cat conftest.err`
00a96142 12918$RM -r conftest*
9c60689e 12919
47aaa820
DWT
12920 ac_outfile=conftest.$ac_objext
12921echo "$lt_simple_link_test_code" >conftest.$ac_ext
12922eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12923_lt_linker_boilerplate=`cat conftest.err`
12924$RM -r conftest*
9c60689e 12925
9c60689e 12926
47aaa820
DWT
12927 # Allow CC to be a program name with arguments.
12928 lt_save_CC=$CC
ee134472 12929 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
12930 lt_save_LD=$LD
12931 lt_save_GCC=$GCC
12932 GCC=$GXX
12933 lt_save_with_gnu_ld=$with_gnu_ld
12934 lt_save_path_LD=$lt_cv_path_LD
12935 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12936 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 12937 else
47aaa820 12938 $as_unset lt_cv_prog_gnu_ld
9c60689e 12939 fi
47aaa820
DWT
12940 if test -n "${lt_cv_path_LDCXX+set}"; then
12941 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 12942 else
47aaa820 12943 $as_unset lt_cv_path_LD
9c60689e 12944 fi
47aaa820
DWT
12945 test -z "${LDCXX+set}" || LD=$LDCXX
12946 CC=${CXX-"c++"}
ee134472 12947 CFLAGS=$CXXFLAGS
47aaa820
DWT
12948 compiler=$CC
12949 compiler_CXX=$CC
12950 for cc_temp in $compiler""; do
12951 case $cc_temp in
12952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12954 \-*) ;;
12955 *) break;;
12956 esac
12957done
ee134472 12958cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
12959
12960
47aaa820
DWT
12961 if test -n "$compiler"; then
12962 # We don't want -fno-exception when compiling C++ code, so set the
12963 # no_builtin_flag separately
12964 if test "$GXX" = yes; then
12965 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12966 else
12967 lt_prog_compiler_no_builtin_flag_CXX=
12968 fi
9c60689e 12969
47aaa820
DWT
12970 if test "$GXX" = yes; then
12971 # Set up default GNU C++ configuration
12972
12973
12974
12975# Check whether --with-gnu-ld was given.
12976if test "${with_gnu_ld+set}" = set; then :
12977 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12978else
47aaa820 12979 with_gnu_ld=no
9c60689e
DWT
12980fi
12981
47aaa820
DWT
12982ac_prog=ld
12983if test "$GCC" = yes; then
12984 # Check if gcc -print-prog-name=ld gives a path.
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12986$as_echo_n "checking for ld used by $CC... " >&6; }
12987 case $host in
12988 *-*-mingw*)
12989 # gcc leaves a trailing carriage return which upsets mingw
12990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12991 *)
12992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12993 esac
12994 case $ac_prog in
12995 # Accept absolute paths.
12996 [\\/]* | ?:[\\/]*)
12997 re_direlt='/[^/][^/]*/\.\./'
12998 # Canonicalize the pathname of ld
12999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13002 done
13003 test -z "$LD" && LD="$ac_prog"
13004 ;;
13005 "")
13006 # If it fails, then pretend we aren't using GCC.
13007 ac_prog=ld
13008 ;;
13009 *)
13010 # If it is relative, then search for the first ld in PATH.
13011 with_gnu_ld=unknown
13012 ;;
13013 esac
13014elif test "$with_gnu_ld" = yes; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13016$as_echo_n "checking for GNU ld... " >&6; }
13017else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13019$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 13020fi
ee134472 13021if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
13022 $as_echo_n "(cached) " >&6
13023else
47aaa820
DWT
13024 if test -z "$LD"; then
13025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13026 for ac_dir in $PATH; do
13027 IFS="$lt_save_ifs"
13028 test -z "$ac_dir" && ac_dir=.
13029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13030 lt_cv_path_LD="$ac_dir/$ac_prog"
13031 # Check to see if the program is GNU ld. I'd rather use --version,
13032 # but apparently some variants of GNU ld only accept -v.
13033 # Break only if it was the GNU/non-GNU ld that we prefer.
13034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13035 *GNU* | *'with BFD'*)
13036 test "$with_gnu_ld" != no && break
13037 ;;
13038 *)
13039 test "$with_gnu_ld" != yes && break
13040 ;;
13041 esac
13042 fi
9c60689e 13043 done
47aaa820
DWT
13044 IFS="$lt_save_ifs"
13045else
13046 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
13047fi
13048fi
47aaa820
DWT
13049
13050LD="$lt_cv_path_LD"
13051if test -n "$LD"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13053$as_echo "$LD" >&6; }
9c60689e
DWT
13054else
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056$as_echo "no" >&6; }
13057fi
12833ad8 13058test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13060$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 13061if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
13062 $as_echo_n "(cached) " >&6
13063else
13064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13065case `$LD -v 2>&1 </dev/null` in
13066*GNU* | *'with BFD'*)
13067 lt_cv_prog_gnu_ld=yes
13068 ;;
13069*)
13070 lt_cv_prog_gnu_ld=no
13071 ;;
13072esac
13073fi
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13075$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13076with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
13077
13078
9c60689e 13079
9c60689e 13080
9c60689e 13081
9c60689e 13082
9c60689e 13083
47aaa820
DWT
13084 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13085 # archiving commands below assume that GNU ld is being used.
13086 if test "$with_gnu_ld" = yes; then
ee134472
JF
13087 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13088 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 13089
47aaa820
DWT
13090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13092
47aaa820
DWT
13093 # If archive_cmds runs LD, not CC, wlarc should be empty
13094 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13095 # investigate it a little bit more. (MM)
13096 wlarc='${wl}'
9c60689e 13097
47aaa820
DWT
13098 # ancient GNU ld didn't support --whole-archive et. al.
13099 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13100 $GREP 'no-whole-archive' > /dev/null; then
13101 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13102 else
13103 whole_archive_flag_spec_CXX=
13104 fi
13105 else
13106 with_gnu_ld=no
13107 wlarc=
13108
13109 # A generic and very simple default shared library creation
13110 # command for GNU C++ for the case where it uses the native
13111 # linker, instead of GNU ld. If possible, this setting should
13112 # overridden to take advantage of the native linker features on
13113 # the platform it is being used on.
13114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13115 fi
13116
13117 # Commands to make compiler produce verbose output that lists
13118 # what "hidden" libraries, object files and flags are used when
13119 # linking a shared library.
ee134472 13120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13121
13122 else
13123 GXX=no
13124 with_gnu_ld=no
13125 wlarc=
13126 fi
13127
13128 # PORTME: fill in a description of your system's C++ link characteristics
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13130$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13131 ld_shlibs_CXX=yes
13132 case $host_os in
13133 aix3*)
13134 # FIXME: insert proper C++ library support
13135 ld_shlibs_CXX=no
13136 ;;
13137 aix[4-9]*)
13138 if test "$host_cpu" = ia64; then
13139 # On IA64, the linker does run time linking by default, so we don't
13140 # have to do anything special.
13141 aix_use_runtimelinking=no
13142 exp_sym_flag='-Bexport'
13143 no_entry_flag=""
13144 else
13145 aix_use_runtimelinking=no
13146
13147 # Test if we are trying to use run time linking or normal
13148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13149 # need to do runtime linking.
13150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13151 for ld_flag in $LDFLAGS; do
13152 case $ld_flag in
13153 *-brtl*)
13154 aix_use_runtimelinking=yes
13155 break
13156 ;;
13157 esac
13158 done
13159 ;;
13160 esac
13161
13162 exp_sym_flag='-bexport'
13163 no_entry_flag='-bnoentry'
13164 fi
13165
13166 # When large executables or shared objects are built, AIX ld can
13167 # have problems creating the table of contents. If linking a library
13168 # or program results in "error TOC overflow" add -mminimal-toc to
13169 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13170 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13171
13172 archive_cmds_CXX=''
13173 hardcode_direct_CXX=yes
13174 hardcode_direct_absolute_CXX=yes
13175 hardcode_libdir_separator_CXX=':'
13176 link_all_deplibs_CXX=yes
13177 file_list_spec_CXX='${wl}-f,'
13178
13179 if test "$GXX" = yes; then
13180 case $host_os in aix4.[012]|aix4.[012].*)
13181 # We only want to do this on AIX 4.2 and lower, the check
13182 # below for broken collect2 doesn't work under 4.3+
13183 collect2name=`${CC} -print-prog-name=collect2`
13184 if test -f "$collect2name" &&
13185 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13186 then
13187 # We have reworked collect2
13188 :
13189 else
13190 # We have old collect2
13191 hardcode_direct_CXX=unsupported
13192 # It fails to find uninstalled libraries when the uninstalled
13193 # path is not listed in the libpath. Setting hardcode_minus_L
13194 # to unsupported forces relinking
13195 hardcode_minus_L_CXX=yes
13196 hardcode_libdir_flag_spec_CXX='-L$libdir'
13197 hardcode_libdir_separator_CXX=
13198 fi
13199 esac
13200 shared_flag='-shared'
13201 if test "$aix_use_runtimelinking" = yes; then
13202 shared_flag="$shared_flag "'${wl}-G'
13203 fi
13204 else
13205 # not using gcc
13206 if test "$host_cpu" = ia64; then
13207 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13208 # chokes on -Wl,-G. The following line is correct:
13209 shared_flag='-G'
13210 else
13211 if test "$aix_use_runtimelinking" = yes; then
13212 shared_flag='${wl}-G'
13213 else
13214 shared_flag='${wl}-bM:SRE'
13215 fi
13216 fi
13217 fi
13218
13219 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13220 # It seems that -bexpall does not export symbols beginning with
13221 # underscore (_), so it is better to generate a list of symbols to
13222 # export.
13223 always_export_symbols_CXX=yes
13224 if test "$aix_use_runtimelinking" = yes; then
13225 # Warning - without using the other runtime loading flags (-brtl),
13226 # -berok will link without error, but may produce a broken library.
13227 allow_undefined_flag_CXX='-berok'
13228 # Determine the default libpath from the value encoded in an empty
13229 # executable.
ee134472
JF
13230 if test "${lt_cv_aix_libpath+set}" = set; then
13231 aix_libpath=$lt_cv_aix_libpath
13232else
13233 if ${lt_cv_aix_libpath__CXX+:} false; then :
13234 $as_echo_n "(cached) " >&6
13235else
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13237/* end confdefs.h. */
13238
13239int
13240main ()
13241{
13242
13243 ;
13244 return 0;
13245}
13246_ACEOF
47aaa820 13247if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13248
ee134472
JF
13249 lt_aix_libpath_sed='
13250 /Import File Strings/,/^$/ {
13251 /^0/ {
13252 s/^0 *\([^ ]*\) *$/\1/
13253 p
13254 }
13255 }'
13256 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13257 # Check for a 64-bit object if we didn't find anything.
13258 if test -z "$lt_cv_aix_libpath__CXX"; then
13259 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13260 fi
47aaa820
DWT
13261fi
13262rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13264 if test -z "$lt_cv_aix_libpath__CXX"; then
13265 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13266 fi
13267
13268fi
13269
13270 aix_libpath=$lt_cv_aix_libpath__CXX
13271fi
47aaa820
DWT
13272
13273 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13274
ee134472 13275 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
13276 else
13277 if test "$host_cpu" = ia64; then
13278 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13279 allow_undefined_flag_CXX="-z nodefs"
13280 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"
13281 else
13282 # Determine the default libpath from the value encoded in an
13283 # empty executable.
ee134472
JF
13284 if test "${lt_cv_aix_libpath+set}" = set; then
13285 aix_libpath=$lt_cv_aix_libpath
13286else
13287 if ${lt_cv_aix_libpath__CXX+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289else
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13291/* end confdefs.h. */
13292
13293int
13294main ()
13295{
13296
13297 ;
13298 return 0;
13299}
13300_ACEOF
47aaa820 13301if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13302
ee134472
JF
13303 lt_aix_libpath_sed='
13304 /Import File Strings/,/^$/ {
13305 /^0/ {
13306 s/^0 *\([^ ]*\) *$/\1/
13307 p
13308 }
13309 }'
13310 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13311 # Check for a 64-bit object if we didn't find anything.
13312 if test -z "$lt_cv_aix_libpath__CXX"; then
13313 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13314 fi
9c60689e 13315fi
47aaa820
DWT
13316rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13318 if test -z "$lt_cv_aix_libpath__CXX"; then
13319 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13320 fi
13321
13322fi
13323
13324 aix_libpath=$lt_cv_aix_libpath__CXX
13325fi
9c60689e 13326
47aaa820
DWT
13327 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13328 # Warning - without using the other run time loading flags,
13329 # -berok will link without error, but may produce a broken library.
13330 no_undefined_flag_CXX=' ${wl}-bernotok'
13331 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
13332 if test "$with_gnu_ld" = yes; then
13333 # We only use this code for GNU lds that support --whole-archive.
13334 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13335 else
13336 # Exported symbols can be pulled into shared objects from archives
13337 whole_archive_flag_spec_CXX='$convenience'
13338 fi
47aaa820
DWT
13339 archive_cmds_need_lc_CXX=yes
13340 # This is similar to how AIX traditionally builds its shared
13341 # libraries.
13342 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'
13343 fi
13344 fi
13345 ;;
9c60689e 13346
47aaa820
DWT
13347 beos*)
13348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13349 allow_undefined_flag_CXX=unsupported
13350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13351 # support --undefined. This deserves some investigation. FIXME
13352 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13353 else
13354 ld_shlibs_CXX=no
13355 fi
13356 ;;
9c60689e 13357
47aaa820
DWT
13358 chorus*)
13359 case $cc_basename in
13360 *)
13361 # FIXME: insert proper C++ library support
13362 ld_shlibs_CXX=no
13363 ;;
13364 esac
13365 ;;
9c60689e 13366
47aaa820 13367 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13368 case $GXX,$cc_basename in
13369 ,cl* | no,cl*)
13370 # Native MSVC
13371 # hardcode_libdir_flag_spec is actually meaningless, as there is
13372 # no search path for DLLs.
13373 hardcode_libdir_flag_spec_CXX=' '
13374 allow_undefined_flag_CXX=unsupported
13375 always_export_symbols_CXX=yes
13376 file_list_spec_CXX='@'
13377 # Tell ltmain to make .lib files, not .a files.
13378 libext=lib
13379 # Tell ltmain to make .dll files, not .so files.
13380 shrext_cmds=".dll"
13381 # FIXME: Setting linknames here is a bad hack.
13382 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13383 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13384 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13385 else
13386 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13387 fi~
13388 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13389 linknames='
13390 # The linker will not automatically build a static lib if we build a DLL.
13391 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13392 enable_shared_with_static_runtimes_CXX=yes
13393 # Don't use ranlib
13394 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13395 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13396 lt_tool_outputfile="@TOOL_OUTPUT@"~
13397 case $lt_outputfile in
13398 *.exe|*.EXE) ;;
13399 *)
13400 lt_outputfile="$lt_outputfile.exe"
13401 lt_tool_outputfile="$lt_tool_outputfile.exe"
13402 ;;
13403 esac~
13404 func_to_tool_file "$lt_outputfile"~
13405 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13406 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13407 $RM "$lt_outputfile.manifest";
13408 fi'
13409 ;;
13410 *)
13411 # g++
13412 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13413 # as there is no search path for DLLs.
13414 hardcode_libdir_flag_spec_CXX='-L$libdir'
13415 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13416 allow_undefined_flag_CXX=unsupported
13417 always_export_symbols_CXX=no
13418 enable_shared_with_static_runtimes_CXX=yes
13419
13420 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13421 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'
13422 # If the export-symbols file already is a .def file (1st line
13423 # is EXPORTS), use it as is; otherwise, prepend...
13424 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13425 cp $export_symbols $output_objdir/$soname.def;
13426 else
13427 echo EXPORTS > $output_objdir/$soname.def;
13428 cat $export_symbols >> $output_objdir/$soname.def;
13429 fi~
13430 $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'
13431 else
13432 ld_shlibs_CXX=no
13433 fi
13434 ;;
13435 esac
13436 ;;
47aaa820 13437 darwin* | rhapsody*)
9c60689e 13438
9c60689e 13439
47aaa820
DWT
13440 archive_cmds_need_lc_CXX=no
13441 hardcode_direct_CXX=no
13442 hardcode_automatic_CXX=yes
13443 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
13444 if test "$lt_cv_ld_force_load" = "yes"; then
13445 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 13446
ee134472
JF
13447 else
13448 whole_archive_flag_spec_CXX=''
13449 fi
47aaa820
DWT
13450 link_all_deplibs_CXX=yes
13451 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13452 case $cc_basename in
13453 ifort*) _lt_dar_can_shared=yes ;;
13454 *) _lt_dar_can_shared=$GCC ;;
13455 esac
13456 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 13457 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13458 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}"
13459 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13460 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}"
13461 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}"
13462 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13463 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}"
13464 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}"
13465 fi
9c60689e 13466
47aaa820
DWT
13467 else
13468 ld_shlibs_CXX=no
13469 fi
9c60689e 13470
47aaa820 13471 ;;
9c60689e 13472
47aaa820
DWT
13473 dgux*)
13474 case $cc_basename in
13475 ec++*)
13476 # FIXME: insert proper C++ library support
13477 ld_shlibs_CXX=no
13478 ;;
13479 ghcx*)
13480 # Green Hills C++ Compiler
13481 # FIXME: insert proper C++ library support
13482 ld_shlibs_CXX=no
13483 ;;
13484 *)
13485 # FIXME: insert proper C++ library support
13486 ld_shlibs_CXX=no
13487 ;;
13488 esac
13489 ;;
9c60689e 13490
53ba6704 13491 freebsd2.*)
47aaa820
DWT
13492 # C++ shared libraries reported to be fairly broken before
13493 # switch to ELF
13494 ld_shlibs_CXX=no
13495 ;;
9c60689e 13496
47aaa820
DWT
13497 freebsd-elf*)
13498 archive_cmds_need_lc_CXX=no
13499 ;;
9c60689e 13500
47aaa820
DWT
13501 freebsd* | dragonfly*)
13502 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13503 # conventions
13504 ld_shlibs_CXX=yes
13505 ;;
9c60689e 13506
47aaa820
DWT
13507 gnu*)
13508 ;;
9c60689e 13509
ee134472
JF
13510 haiku*)
13511 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13512 link_all_deplibs_CXX=yes
13513 ;;
13514
47aaa820
DWT
13515 hpux9*)
13516 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13517 hardcode_libdir_separator_CXX=:
13518 export_dynamic_flag_spec_CXX='${wl}-E'
13519 hardcode_direct_CXX=yes
13520 hardcode_minus_L_CXX=yes # Not in the search PATH,
13521 # but as the default
13522 # location of the library.
9c60689e 13523
47aaa820
DWT
13524 case $cc_basename in
13525 CC*)
13526 # FIXME: insert proper C++ library support
13527 ld_shlibs_CXX=no
13528 ;;
13529 aCC*)
13530 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'
13531 # Commands to make compiler produce verbose output that lists
13532 # what "hidden" libraries, object files and flags are used when
13533 # linking a shared library.
13534 #
13535 # There doesn't appear to be a way to prevent this compiler from
13536 # explicitly linking system object files so we need to strip them
13537 # from the output so that they don't get included in the library
13538 # dependencies.
ee134472 13539 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
13540 ;;
13541 *)
13542 if test "$GXX" = yes; then
ee134472 13543 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
13544 else
13545 # FIXME: insert proper C++ library support
13546 ld_shlibs_CXX=no
13547 fi
13548 ;;
13549 esac
13550 ;;
9c60689e 13551
47aaa820
DWT
13552 hpux10*|hpux11*)
13553 if test $with_gnu_ld = no; then
13554 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13555 hardcode_libdir_separator_CXX=:
9c60689e 13556
47aaa820
DWT
13557 case $host_cpu in
13558 hppa*64*|ia64*)
13559 ;;
13560 *)
13561 export_dynamic_flag_spec_CXX='${wl}-E'
13562 ;;
13563 esac
13564 fi
13565 case $host_cpu in
13566 hppa*64*|ia64*)
13567 hardcode_direct_CXX=no
13568 hardcode_shlibpath_var_CXX=no
13569 ;;
13570 *)
13571 hardcode_direct_CXX=yes
13572 hardcode_direct_absolute_CXX=yes
13573 hardcode_minus_L_CXX=yes # Not in the search PATH,
13574 # but as the default
13575 # location of the library.
13576 ;;
13577 esac
9c60689e 13578
47aaa820
DWT
13579 case $cc_basename in
13580 CC*)
13581 # FIXME: insert proper C++ library support
13582 ld_shlibs_CXX=no
13583 ;;
13584 aCC*)
13585 case $host_cpu in
13586 hppa*64*)
13587 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13588 ;;
13589 ia64*)
13590 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13591 ;;
13592 *)
13593 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13594 ;;
13595 esac
13596 # Commands to make compiler produce verbose output that lists
13597 # what "hidden" libraries, object files and flags are used when
13598 # linking a shared library.
13599 #
13600 # There doesn't appear to be a way to prevent this compiler from
13601 # explicitly linking system object files so we need to strip them
13602 # from the output so that they don't get included in the library
13603 # dependencies.
ee134472 13604 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
13605 ;;
13606 *)
13607 if test "$GXX" = yes; then
13608 if test $with_gnu_ld = no; then
13609 case $host_cpu in
13610 hppa*64*)
13611 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13612 ;;
13613 ia64*)
ee134472 13614 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
13615 ;;
13616 *)
ee134472 13617 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
13618 ;;
13619 esac
13620 fi
13621 else
13622 # FIXME: insert proper C++ library support
13623 ld_shlibs_CXX=no
13624 fi
13625 ;;
13626 esac
13627 ;;
9c60689e 13628
47aaa820
DWT
13629 interix[3-9]*)
13630 hardcode_direct_CXX=no
13631 hardcode_shlibpath_var_CXX=no
13632 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13633 export_dynamic_flag_spec_CXX='${wl}-E'
13634 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13635 # Instead, shared libraries are loaded at an image base (0x10000000 by
13636 # default) and relocated if they conflict, which is a slow very memory
13637 # consuming and fragmenting process. To avoid this, we pick a random,
13638 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13639 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13640 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'
13641 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'
13642 ;;
13643 irix5* | irix6*)
13644 case $cc_basename in
13645 CC*)
13646 # SGI C++
ee134472 13647 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 13648
47aaa820
DWT
13649 # Archives containing C++ object files must be created using
13650 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13651 # necessary to make sure instantiated templates are included
13652 # in the archive.
13653 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13654 ;;
13655 *)
13656 if test "$GXX" = yes; then
13657 if test "$with_gnu_ld" = no; then
ee134472 13658 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 13659 else
ee134472 13660 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
13661 fi
13662 fi
13663 link_all_deplibs_CXX=yes
13664 ;;
13665 esac
13666 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13667 hardcode_libdir_separator_CXX=:
13668 inherit_rpath_CXX=yes
13669 ;;
9c60689e 13670
1504c9b8 13671 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13672 case $cc_basename in
13673 KCC*)
13674 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13675
47aaa820
DWT
13676 # KCC will only create a shared library if the output file
13677 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13678 # to its proper name (with version) after linking.
13679 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'
13680 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'
13681 # Commands to make compiler produce verbose output that lists
13682 # what "hidden" libraries, object files and flags are used when
13683 # linking a shared library.
13684 #
13685 # There doesn't appear to be a way to prevent this compiler from
13686 # explicitly linking system object files so we need to strip them
13687 # from the output so that they don't get included in the library
13688 # dependencies.
ee134472 13689 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 13690
47aaa820
DWT
13691 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13692 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13693
47aaa820
DWT
13694 # Archives containing C++ object files must be created using
13695 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13696 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13697 ;;
13698 icpc* | ecpc* )
13699 # Intel C++
13700 with_gnu_ld=yes
13701 # version 8.0 and above of icpc choke on multiply defined symbols
13702 # if we add $predep_objects and $postdep_objects, however 7.1 and
13703 # earlier do not add the objects themselves.
13704 case `$CC -V 2>&1` in
13705 *"Version 7."*)
13706 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13707 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'
13708 ;;
13709 *) # Version 8.0 or newer
13710 tmp_idyn=
13711 case $host_cpu in
13712 ia64*) tmp_idyn=' -i_dynamic';;
13713 esac
13714 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13715 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'
13716 ;;
13717 esac
13718 archive_cmds_need_lc_CXX=no
13719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13721 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13722 ;;
13723 pgCC* | pgcpp*)
13724 # Portland Group C++ compiler
13725 case `$CC -V` in
ee134472 13726 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
13727 prelink_cmds_CXX='tpldir=Template.dir~
13728 rm -rf $tpldir~
13729 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 13730 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
13731 old_archive_cmds_CXX='tpldir=Template.dir~
13732 rm -rf $tpldir~
13733 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 13734 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
13735 $RANLIB $oldlib'
13736 archive_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 -o $lib'
47aaa820
DWT
13740 archive_expsym_cmds_CXX='tpldir=Template.dir~
13741 rm -rf $tpldir~
13742 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13743 $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 13744 ;;
ee134472 13745 *) # Version 6 and above use weak symbols
47aaa820
DWT
13746 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13747 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'
13748 ;;
13749 esac
9c60689e 13750
47aaa820
DWT
13751 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13752 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 13753 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
13754 ;;
13755 cxx*)
13756 # Compaq C++
13757 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13758 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 13759
47aaa820
DWT
13760 runpath_var=LD_RUN_PATH
13761 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13762 hardcode_libdir_separator_CXX=:
9c60689e 13763
47aaa820
DWT
13764 # Commands to make compiler produce verbose output that lists
13765 # what "hidden" libraries, object files and flags are used when
13766 # linking a shared library.
13767 #
13768 # There doesn't appear to be a way to prevent this compiler from
13769 # explicitly linking system object files so we need to strip them
13770 # from the output so that they don't get included in the library
13771 # dependencies.
ee134472 13772 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 13773 ;;
ee134472 13774 xl* | mpixl* | bgxl*)
47aaa820
DWT
13775 # IBM XL 8.0 on PPC, with GNU ld
13776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13778 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13779 if test "x$supports_anon_versioning" = xyes; then
13780 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13782 echo "local: *; };" >> $output_objdir/$libname.ver~
13783 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13784 fi
13785 ;;
13786 *)
13787 case `$CC -V 2>&1 | sed 5q` in
13788 *Sun\ C*)
13789 # Sun C++ 5.9
13790 no_undefined_flag_CXX=' -zdefs'
13791 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13792 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'
13793 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 13794 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 13795 compiler_needs_object_CXX=yes
9c60689e 13796
47aaa820
DWT
13797 # Not sure whether something based on
13798 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13799 # would be better.
ee134472 13800 output_verbose_link_cmd='func_echo_all'
9c60689e 13801
47aaa820
DWT
13802 # Archives containing C++ object files must be created using
13803 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13804 # necessary to make sure instantiated templates are included
13805 # in the archive.
13806 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13807 ;;
13808 esac
13809 ;;
13810 esac
13811 ;;
9c60689e 13812
47aaa820
DWT
13813 lynxos*)
13814 # FIXME: insert proper C++ library support
13815 ld_shlibs_CXX=no
13816 ;;
9c60689e 13817
47aaa820
DWT
13818 m88k*)
13819 # FIXME: insert proper C++ library support
13820 ld_shlibs_CXX=no
13821 ;;
9c60689e 13822
47aaa820
DWT
13823 mvs*)
13824 case $cc_basename in
13825 cxx*)
13826 # FIXME: insert proper C++ library support
13827 ld_shlibs_CXX=no
13828 ;;
13829 *)
13830 # FIXME: insert proper C++ library support
13831 ld_shlibs_CXX=no
13832 ;;
13833 esac
13834 ;;
9c60689e 13835
47aaa820
DWT
13836 netbsd*)
13837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13838 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13839 wlarc=
13840 hardcode_libdir_flag_spec_CXX='-R$libdir'
13841 hardcode_direct_CXX=yes
13842 hardcode_shlibpath_var_CXX=no
13843 fi
13844 # Workaround some broken pre-1.5 toolchains
13845 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 13846 ;;
47aaa820
DWT
13847
13848 *nto* | *qnx*)
13849 ld_shlibs_CXX=yes
9c60689e 13850 ;;
9c60689e 13851
47aaa820
DWT
13852 openbsd2*)
13853 # C++ shared libraries are fairly broken
13854 ld_shlibs_CXX=no
13855 ;;
9c60689e 13856
47aaa820
DWT
13857 openbsd*)
13858 if test -f /usr/libexec/ld.so; then
13859 hardcode_direct_CXX=yes
13860 hardcode_shlibpath_var_CXX=no
13861 hardcode_direct_absolute_CXX=yes
13862 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13863 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13864 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13865 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13866 export_dynamic_flag_spec_CXX='${wl}-E'
13867 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13868 fi
ee134472 13869 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13870 else
13871 ld_shlibs_CXX=no
13872 fi
13873 ;;
9c60689e 13874
47aaa820
DWT
13875 osf3* | osf4* | osf5*)
13876 case $cc_basename in
13877 KCC*)
13878 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13879
47aaa820
DWT
13880 # KCC will only create a shared library if the output file
13881 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13882 # to its proper name (with version) after linking.
13883 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 13884
47aaa820
DWT
13885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13886 hardcode_libdir_separator_CXX=:
9c60689e 13887
47aaa820
DWT
13888 # Archives containing C++ object files must be created using
13889 # the KAI C++ compiler.
13890 case $host in
13891 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13892 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13893 esac
13894 ;;
13895 RCC*)
13896 # Rational C++ 2.4.1
13897 # FIXME: insert proper C++ library support
13898 ld_shlibs_CXX=no
13899 ;;
13900 cxx*)
13901 case $host in
13902 osf3*)
13903 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 13904 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
13905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13906 ;;
13907 *)
13908 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 13909 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
13910 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13911 echo "-hidden">> $lib.exp~
ee134472 13912 $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
13913 $RM $lib.exp'
13914 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13915 ;;
13916 esac
9c60689e 13917
47aaa820 13918 hardcode_libdir_separator_CXX=:
9c60689e 13919
47aaa820
DWT
13920 # Commands to make compiler produce verbose output that lists
13921 # what "hidden" libraries, object files and flags are used when
13922 # linking a shared library.
13923 #
13924 # There doesn't appear to be a way to prevent this compiler from
13925 # explicitly linking system object files so we need to strip them
13926 # from the output so that they don't get included in the library
13927 # dependencies.
ee134472 13928 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
13929 ;;
13930 *)
13931 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13932 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13933 case $host in
13934 osf3*)
ee134472 13935 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
13936 ;;
13937 *)
ee134472 13938 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
13939 ;;
13940 esac
9c60689e 13941
47aaa820
DWT
13942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13943 hardcode_libdir_separator_CXX=:
9c60689e 13944
47aaa820
DWT
13945 # Commands to make compiler produce verbose output that lists
13946 # what "hidden" libraries, object files and flags are used when
13947 # linking a shared library.
ee134472 13948 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 13949
47aaa820
DWT
13950 else
13951 # FIXME: insert proper C++ library support
13952 ld_shlibs_CXX=no
13953 fi
13954 ;;
13955 esac
13956 ;;
9c60689e 13957
47aaa820 13958 psos*)
9c60689e
DWT
13959 # FIXME: insert proper C++ library support
13960 ld_shlibs_CXX=no
13961 ;;
9c60689e 13962
47aaa820
DWT
13963 sunos4*)
13964 case $cc_basename in
13965 CC*)
13966 # Sun C++ 4.x
13967 # FIXME: insert proper C++ library support
13968 ld_shlibs_CXX=no
9c60689e 13969 ;;
47aaa820
DWT
13970 lcc*)
13971 # Lucid
13972 # FIXME: insert proper C++ library support
13973 ld_shlibs_CXX=no
13974 ;;
13975 *)
13976 # FIXME: insert proper C++ library support
13977 ld_shlibs_CXX=no
13978 ;;
13979 esac
13980 ;;
9c60689e 13981
47aaa820
DWT
13982 solaris*)
13983 case $cc_basename in
ee134472 13984 CC* | sunCC*)
47aaa820
DWT
13985 # Sun C++ 4.2, 5.x and Centerline C++
13986 archive_cmds_need_lc_CXX=yes
13987 no_undefined_flag_CXX=' -zdefs'
13988 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13989 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13990 $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 13991
47aaa820
DWT
13992 hardcode_libdir_flag_spec_CXX='-R$libdir'
13993 hardcode_shlibpath_var_CXX=no
13994 case $host_os in
13995 solaris2.[0-5] | solaris2.[0-5].*) ;;
13996 *)
13997 # The compiler driver will combine and reorder linker options,
13998 # but understands `-z linker_flag'.
13999 # Supported since Solaris 2.6 (maybe 2.5.1?)
14000 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14001 ;;
14002 esac
14003 link_all_deplibs_CXX=yes
9c60689e 14004
ee134472 14005 output_verbose_link_cmd='func_echo_all'
9c60689e 14006
47aaa820
DWT
14007 # Archives containing C++ object files must be created using
14008 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14009 # necessary to make sure instantiated templates are included
14010 # in the archive.
14011 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14012 ;;
14013 gcx*)
14014 # Green Hills C++ Compiler
14015 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 14016
47aaa820
DWT
14017 # The C++ compiler must be used to create the archive.
14018 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14019 ;;
14020 *)
14021 # GNU C++ compiler with Solaris linker
14022 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14023 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14024 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 14025 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 14026 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 14027 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14028
47aaa820
DWT
14029 # Commands to make compiler produce verbose output that lists
14030 # what "hidden" libraries, object files and flags are used when
14031 # linking a shared library.
ee134472 14032 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
14033 else
14034 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14035 # platform.
14036 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14037 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14038 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14039
47aaa820
DWT
14040 # Commands to make compiler produce verbose output that lists
14041 # what "hidden" libraries, object files and flags are used when
14042 # linking a shared library.
ee134472 14043 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14044 fi
9c60689e 14045
47aaa820
DWT
14046 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14047 case $host_os in
14048 solaris2.[0-5] | solaris2.[0-5].*) ;;
14049 *)
14050 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14051 ;;
14052 esac
14053 fi
14054 ;;
14055 esac
14056 ;;
9c60689e 14057
47aaa820
DWT
14058 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14059 no_undefined_flag_CXX='${wl}-z,text'
14060 archive_cmds_need_lc_CXX=no
14061 hardcode_shlibpath_var_CXX=no
14062 runpath_var='LD_RUN_PATH'
9c60689e 14063
47aaa820
DWT
14064 case $cc_basename in
14065 CC*)
14066 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14067 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 ;;
14069 *)
14070 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14071 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14072 ;;
14073 esac
14074 ;;
9c60689e 14075
47aaa820
DWT
14076 sysv5* | sco3.2v5* | sco5v6*)
14077 # Note: We can NOT use -z defs as we might desire, because we do not
14078 # link with -lc, and that would cause any symbols used from libc to
14079 # always be unresolved, which means just about no library would
14080 # ever link correctly. If we're not using GNU ld we use -z text
14081 # though, which does catch some bad symbols but isn't as heavy-handed
14082 # as -z defs.
14083 no_undefined_flag_CXX='${wl}-z,text'
14084 allow_undefined_flag_CXX='${wl}-z,nodefs'
14085 archive_cmds_need_lc_CXX=no
14086 hardcode_shlibpath_var_CXX=no
14087 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14088 hardcode_libdir_separator_CXX=':'
14089 link_all_deplibs_CXX=yes
14090 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14091 runpath_var='LD_RUN_PATH'
9c60689e 14092
47aaa820
DWT
14093 case $cc_basename in
14094 CC*)
14095 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14096 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
14097 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14098 '"$old_archive_cmds_CXX"
14099 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14100 '"$reload_cmds_CXX"
47aaa820
DWT
14101 ;;
14102 *)
14103 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14105 ;;
14106 esac
14107 ;;
9c60689e 14108
47aaa820 14109 tandem*)
9c60689e 14110 case $cc_basename in
47aaa820
DWT
14111 NCC*)
14112 # NonStop-UX NCC 3.20
14113 # FIXME: insert proper C++ library support
14114 ld_shlibs_CXX=no
14115 ;;
9c60689e 14116 *)
47aaa820
DWT
14117 # FIXME: insert proper C++ library support
14118 ld_shlibs_CXX=no
14119 ;;
9c60689e
DWT
14120 esac
14121 ;;
14122
47aaa820
DWT
14123 vxworks*)
14124 # FIXME: insert proper C++ library support
14125 ld_shlibs_CXX=no
14126 ;;
9c60689e 14127
47aaa820
DWT
14128 *)
14129 # FIXME: insert proper C++ library support
14130 ld_shlibs_CXX=no
9c60689e 14131 ;;
47aaa820 14132 esac
9c60689e 14133
47aaa820
DWT
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14135$as_echo "$ld_shlibs_CXX" >&6; }
14136 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 14137
47aaa820
DWT
14138 GCC_CXX="$GXX"
14139 LD_CXX="$LD"
9c60689e 14140
47aaa820
DWT
14141 ## CAVEAT EMPTOR:
14142 ## There is no encapsulation within the following macros, do not change
14143 ## the running order or otherwise move them around unless you know exactly
14144 ## what you are doing...
14145 # Dependencies to place before and after the object being linked:
14146predep_objects_CXX=
14147postdep_objects_CXX=
14148predeps_CXX=
14149postdeps_CXX=
14150compiler_lib_search_path_CXX=
9c60689e 14151
47aaa820
DWT
14152cat > conftest.$ac_ext <<_LT_EOF
14153class Foo
14154{
14155public:
14156 Foo (void) { a = 0; }
14157private:
14158 int a;
14159};
14160_LT_EOF
9c60689e 14161
ee134472
JF
14162
14163_lt_libdeps_save_CFLAGS=$CFLAGS
14164case "$CC $CFLAGS " in #(
14165*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14166*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14167*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14168esac
14169
47aaa820
DWT
14170if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14171 (eval $ac_compile) 2>&5
14172 ac_status=$?
14173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14174 test $ac_status = 0; }; then
14175 # Parse the compiler output and extract the necessary
14176 # objects, libraries and library flags.
9c60689e 14177
47aaa820
DWT
14178 # Sentinel used to keep track of whether or not we are before
14179 # the conftest object file.
14180 pre_test_object_deps_done=no
9c60689e 14181
47aaa820 14182 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 14183 case ${prev}${p} in
9c60689e 14184
47aaa820
DWT
14185 -L* | -R* | -l*)
14186 # Some compilers place space between "-{L,R}" and the path.
14187 # Remove the space.
14188 if test $p = "-L" ||
14189 test $p = "-R"; then
14190 prev=$p
14191 continue
47aaa820 14192 fi
9c60689e 14193
ee134472
JF
14194 # Expand the sysroot to ease extracting the directories later.
14195 if test -z "$prev"; then
14196 case $p in
14197 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14198 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14199 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14200 esac
14201 fi
14202 case $p in
14203 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14204 esac
47aaa820 14205 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
14206 case ${prev} in
14207 -L | -R)
47aaa820
DWT
14208 # Internal compiler library paths should come after those
14209 # provided the user. The postdeps already come after the
14210 # user supplied libs so there is no need to process them.
14211 if test -z "$compiler_lib_search_path_CXX"; then
14212 compiler_lib_search_path_CXX="${prev}${p}"
14213 else
14214 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14215 fi
14216 ;;
14217 # The "-l" case would never come before the object being
14218 # linked, so don't bother handling this case.
14219 esac
14220 else
14221 if test -z "$postdeps_CXX"; then
14222 postdeps_CXX="${prev}${p}"
14223 else
14224 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14225 fi
14226 fi
ee134472 14227 prev=
47aaa820 14228 ;;
9c60689e 14229
ee134472 14230 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14231 *.$objext)
14232 # This assumes that the test object file only shows up
14233 # once in the compiler output.
14234 if test "$p" = "conftest.$objext"; then
14235 pre_test_object_deps_done=yes
14236 continue
14237 fi
9c60689e 14238
47aaa820
DWT
14239 if test "$pre_test_object_deps_done" = no; then
14240 if test -z "$predep_objects_CXX"; then
14241 predep_objects_CXX="$p"
14242 else
14243 predep_objects_CXX="$predep_objects_CXX $p"
14244 fi
14245 else
14246 if test -z "$postdep_objects_CXX"; then
14247 postdep_objects_CXX="$p"
14248 else
14249 postdep_objects_CXX="$postdep_objects_CXX $p"
14250 fi
14251 fi
14252 ;;
9c60689e 14253
47aaa820 14254 *) ;; # Ignore the rest.
9c60689e 14255
47aaa820
DWT
14256 esac
14257 done
9c60689e 14258
47aaa820
DWT
14259 # Clean up.
14260 rm -f a.out a.exe
14261else
14262 echo "libtool.m4: error: problem compiling CXX test program"
14263fi
9c60689e 14264
47aaa820 14265$RM -f confest.$objext
ee134472 14266CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14267
47aaa820
DWT
14268# PORTME: override above test on systems where it is broken
14269case $host_os in
14270interix[3-9]*)
14271 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14272 # hack all around it, let's just trust "g++" to DTRT.
14273 predep_objects_CXX=
14274 postdep_objects_CXX=
14275 postdeps_CXX=
14276 ;;
9c60689e 14277
47aaa820
DWT
14278linux*)
14279 case `$CC -V 2>&1 | sed 5q` in
14280 *Sun\ C*)
14281 # Sun C++ 5.9
9c60689e 14282
47aaa820
DWT
14283 # The more standards-conforming stlport4 library is
14284 # incompatible with the Cstd library. Avoid specifying
14285 # it if it's in CXXFLAGS. Ignore libCrun as
14286 # -library=stlport4 depends on it.
14287 case " $CXX $CXXFLAGS " in
14288 *" -library=stlport4 "*)
14289 solaris_use_stlport4=yes
14290 ;;
14291 esac
9c60689e 14292
47aaa820
DWT
14293 if test "$solaris_use_stlport4" != yes; then
14294 postdeps_CXX='-library=Cstd -library=Crun'
14295 fi
14296 ;;
14297 esac
14298 ;;
9c60689e 14299
47aaa820
DWT
14300solaris*)
14301 case $cc_basename in
ee134472 14302 CC* | sunCC*)
47aaa820
DWT
14303 # The more standards-conforming stlport4 library is
14304 # incompatible with the Cstd library. Avoid specifying
14305 # it if it's in CXXFLAGS. Ignore libCrun as
14306 # -library=stlport4 depends on it.
14307 case " $CXX $CXXFLAGS " in
14308 *" -library=stlport4 "*)
14309 solaris_use_stlport4=yes
14310 ;;
14311 esac
9c60689e 14312
47aaa820
DWT
14313 # Adding this requires a known-good setup of shared libraries for
14314 # Sun compiler versions before 5.6, else PIC objects from an old
14315 # archive will be linked into the output, leading to subtle bugs.
14316 if test "$solaris_use_stlport4" != yes; then
14317 postdeps_CXX='-library=Cstd -library=Crun'
14318 fi
14319 ;;
14320 esac
14321 ;;
14322esac
9c60689e 14323
9c60689e 14324
47aaa820
DWT
14325case " $postdeps_CXX " in
14326*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14327esac
14328 compiler_lib_search_dirs_CXX=
14329if test -n "${compiler_lib_search_path_CXX}"; then
14330 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14331fi
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
9c60689e 14359
9c60689e 14360
9c60689e 14361
9c60689e 14362
47aaa820
DWT
14363 lt_prog_compiler_wl_CXX=
14364lt_prog_compiler_pic_CXX=
14365lt_prog_compiler_static_CXX=
9c60689e 14366
9c60689e
DWT
14367
14368 # C++ specific cases for pic, static, wl, etc.
14369 if test "$GXX" = yes; then
14370 lt_prog_compiler_wl_CXX='-Wl,'
14371 lt_prog_compiler_static_CXX='-static'
14372
14373 case $host_os in
14374 aix*)
14375 # All AIX code is PIC.
14376 if test "$host_cpu" = ia64; then
14377 # AIX 5 now supports IA64 processor
14378 lt_prog_compiler_static_CXX='-Bstatic'
14379 fi
14380 ;;
14381
14382 amigaos*)
14383 case $host_cpu in
14384 powerpc)
14385 # see comment about AmigaOS4 .so support
14386 lt_prog_compiler_pic_CXX='-fPIC'
14387 ;;
14388 m68k)
14389 # FIXME: we need at least 68020 code to build shared libraries, but
14390 # adding the `-m68020' flag to GCC prevents building anything better,
14391 # like `-m68040'.
14392 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14393 ;;
14394 esac
14395 ;;
14396
14397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14398 # PIC is the default for these OSes.
14399 ;;
14400 mingw* | cygwin* | os2* | pw32* | cegcc*)
14401 # This hack is so that the source file can tell whether it is being
14402 # built for inclusion in a dll (and should export symbols for example).
14403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14404 # (--disable-auto-import) libraries
14405 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14406 ;;
14407 darwin* | rhapsody*)
14408 # PIC is the default on this platform
14409 # Common symbols not allowed in MH_DYLIB files
14410 lt_prog_compiler_pic_CXX='-fno-common'
14411 ;;
14412 *djgpp*)
14413 # DJGPP does not support shared libraries at all
14414 lt_prog_compiler_pic_CXX=
14415 ;;
ee134472
JF
14416 haiku*)
14417 # PIC is the default for Haiku.
14418 # The "-static" flag exists, but is broken.
14419 lt_prog_compiler_static_CXX=
14420 ;;
9c60689e
DWT
14421 interix[3-9]*)
14422 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14423 # Instead, we relocate shared libraries at runtime.
14424 ;;
14425 sysv4*MP*)
14426 if test -d /usr/nec; then
14427 lt_prog_compiler_pic_CXX=-Kconform_pic
14428 fi
14429 ;;
14430 hpux*)
14431 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14432 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14433 # sets the default TLS model and affects inlining.
14434 case $host_cpu in
14435 hppa*64*)
14436 ;;
14437 *)
14438 lt_prog_compiler_pic_CXX='-fPIC'
14439 ;;
14440 esac
14441 ;;
14442 *qnx* | *nto*)
14443 # QNX uses GNU C++, but need to define -shared option too, otherwise
14444 # it will coredump.
14445 lt_prog_compiler_pic_CXX='-fPIC -shared'
14446 ;;
14447 *)
14448 lt_prog_compiler_pic_CXX='-fPIC'
14449 ;;
14450 esac
14451 else
14452 case $host_os in
14453 aix[4-9]*)
14454 # All AIX code is PIC.
14455 if test "$host_cpu" = ia64; then
14456 # AIX 5 now supports IA64 processor
14457 lt_prog_compiler_static_CXX='-Bstatic'
14458 else
14459 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14460 fi
14461 ;;
14462 chorus*)
14463 case $cc_basename in
14464 cxch68*)
14465 # Green Hills C++ Compiler
14466 # _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"
14467 ;;
14468 esac
14469 ;;
ee134472
JF
14470 mingw* | cygwin* | os2* | pw32* | cegcc*)
14471 # This hack is so that the source file can tell whether it is being
14472 # built for inclusion in a dll (and should export symbols for example).
14473 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14474 ;;
9c60689e
DWT
14475 dgux*)
14476 case $cc_basename in
14477 ec++*)
14478 lt_prog_compiler_pic_CXX='-KPIC'
14479 ;;
14480 ghcx*)
14481 # Green Hills C++ Compiler
14482 lt_prog_compiler_pic_CXX='-pic'
14483 ;;
14484 *)
14485 ;;
14486 esac
14487 ;;
14488 freebsd* | dragonfly*)
14489 # FreeBSD uses GNU C++
14490 ;;
14491 hpux9* | hpux10* | hpux11*)
14492 case $cc_basename in
14493 CC*)
14494 lt_prog_compiler_wl_CXX='-Wl,'
14495 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14496 if test "$host_cpu" != ia64; then
14497 lt_prog_compiler_pic_CXX='+Z'
14498 fi
14499 ;;
14500 aCC*)
14501 lt_prog_compiler_wl_CXX='-Wl,'
14502 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14503 case $host_cpu in
14504 hppa*64*|ia64*)
14505 # +Z the default
14506 ;;
14507 *)
14508 lt_prog_compiler_pic_CXX='+Z'
14509 ;;
14510 esac
14511 ;;
14512 *)
14513 ;;
14514 esac
14515 ;;
14516 interix*)
14517 # This is c89, which is MS Visual C++ (no shared libs)
14518 # Anyone wants to do a port?
14519 ;;
14520 irix5* | irix6* | nonstopux*)
14521 case $cc_basename in
14522 CC*)
14523 lt_prog_compiler_wl_CXX='-Wl,'
14524 lt_prog_compiler_static_CXX='-non_shared'
14525 # CC pic flag -KPIC is the default.
14526 ;;
14527 *)
14528 ;;
14529 esac
14530 ;;
1504c9b8 14531 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
14532 case $cc_basename in
14533 KCC*)
14534 # KAI C++ Compiler
14535 lt_prog_compiler_wl_CXX='--backend -Wl,'
14536 lt_prog_compiler_pic_CXX='-fPIC'
14537 ;;
14538 ecpc* )
14539 # old Intel C++ for x86_64 which still supported -KPIC.
14540 lt_prog_compiler_wl_CXX='-Wl,'
14541 lt_prog_compiler_pic_CXX='-KPIC'
14542 lt_prog_compiler_static_CXX='-static'
14543 ;;
14544 icpc* )
14545 # Intel C++, used to be incompatible with GCC.
14546 # ICC 10 doesn't accept -KPIC any more.
14547 lt_prog_compiler_wl_CXX='-Wl,'
14548 lt_prog_compiler_pic_CXX='-fPIC'
14549 lt_prog_compiler_static_CXX='-static'
14550 ;;
14551 pgCC* | pgcpp*)
14552 # Portland Group C++ compiler
14553 lt_prog_compiler_wl_CXX='-Wl,'
14554 lt_prog_compiler_pic_CXX='-fpic'
14555 lt_prog_compiler_static_CXX='-Bstatic'
14556 ;;
14557 cxx*)
14558 # Compaq C++
14559 # Make sure the PIC flag is empty. It appears that all Alpha
14560 # Linux and Compaq Tru64 Unix objects are PIC.
14561 lt_prog_compiler_pic_CXX=
14562 lt_prog_compiler_static_CXX='-non_shared'
14563 ;;
ee134472
JF
14564 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14565 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
14566 lt_prog_compiler_wl_CXX='-Wl,'
14567 lt_prog_compiler_pic_CXX='-qpic'
14568 lt_prog_compiler_static_CXX='-qstaticlink'
14569 ;;
14570 *)
14571 case `$CC -V 2>&1 | sed 5q` in
14572 *Sun\ C*)
14573 # Sun C++ 5.9
14574 lt_prog_compiler_pic_CXX='-KPIC'
14575 lt_prog_compiler_static_CXX='-Bstatic'
14576 lt_prog_compiler_wl_CXX='-Qoption ld '
14577 ;;
14578 esac
14579 ;;
14580 esac
14581 ;;
14582 lynxos*)
14583 ;;
14584 m88k*)
14585 ;;
14586 mvs*)
14587 case $cc_basename in
14588 cxx*)
14589 lt_prog_compiler_pic_CXX='-W c,exportall'
14590 ;;
14591 *)
14592 ;;
14593 esac
14594 ;;
53ba6704 14595 netbsd*)
9c60689e
DWT
14596 ;;
14597 *qnx* | *nto*)
14598 # QNX uses GNU C++, but need to define -shared option too, otherwise
14599 # it will coredump.
14600 lt_prog_compiler_pic_CXX='-fPIC -shared'
14601 ;;
14602 osf3* | osf4* | osf5*)
14603 case $cc_basename in
14604 KCC*)
14605 lt_prog_compiler_wl_CXX='--backend -Wl,'
14606 ;;
14607 RCC*)
14608 # Rational C++ 2.4.1
14609 lt_prog_compiler_pic_CXX='-pic'
14610 ;;
14611 cxx*)
14612 # Digital/Compaq C++
14613 lt_prog_compiler_wl_CXX='-Wl,'
14614 # Make sure the PIC flag is empty. It appears that all Alpha
14615 # Linux and Compaq Tru64 Unix objects are PIC.
14616 lt_prog_compiler_pic_CXX=
14617 lt_prog_compiler_static_CXX='-non_shared'
14618 ;;
14619 *)
14620 ;;
14621 esac
14622 ;;
14623 psos*)
14624 ;;
14625 solaris*)
14626 case $cc_basename in
ee134472 14627 CC* | sunCC*)
9c60689e
DWT
14628 # Sun C++ 4.2, 5.x and Centerline C++
14629 lt_prog_compiler_pic_CXX='-KPIC'
14630 lt_prog_compiler_static_CXX='-Bstatic'
14631 lt_prog_compiler_wl_CXX='-Qoption ld '
14632 ;;
14633 gcx*)
14634 # Green Hills C++ Compiler
14635 lt_prog_compiler_pic_CXX='-PIC'
14636 ;;
14637 *)
14638 ;;
14639 esac
14640 ;;
14641 sunos4*)
14642 case $cc_basename in
14643 CC*)
14644 # Sun C++ 4.x
14645 lt_prog_compiler_pic_CXX='-pic'
14646 lt_prog_compiler_static_CXX='-Bstatic'
14647 ;;
14648 lcc*)
14649 # Lucid
14650 lt_prog_compiler_pic_CXX='-pic'
14651 ;;
14652 *)
14653 ;;
14654 esac
14655 ;;
14656 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14657 case $cc_basename in
14658 CC*)
14659 lt_prog_compiler_wl_CXX='-Wl,'
14660 lt_prog_compiler_pic_CXX='-KPIC'
14661 lt_prog_compiler_static_CXX='-Bstatic'
14662 ;;
14663 esac
14664 ;;
14665 tandem*)
14666 case $cc_basename in
14667 NCC*)
14668 # NonStop-UX NCC 3.20
14669 lt_prog_compiler_pic_CXX='-KPIC'
14670 ;;
14671 *)
14672 ;;
14673 esac
14674 ;;
14675 vxworks*)
14676 ;;
14677 *)
14678 lt_prog_compiler_can_build_shared_CXX=no
14679 ;;
14680 esac
14681 fi
14682
14683case $host_os in
14684 # For platforms which do not support PIC, -DPIC is meaningless:
14685 *djgpp*)
14686 lt_prog_compiler_pic_CXX=
14687 ;;
14688 *)
14689 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14690 ;;
14691esac
9c60689e 14692
ee134472
JF
14693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14694$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14695if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14696 $as_echo_n "(cached) " >&6
14697else
14698 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14699fi
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14701$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14702lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
14703
14704#
14705# Check to make sure the PIC flag actually works.
14706#
14707if test -n "$lt_prog_compiler_pic_CXX"; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14709$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 14710if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
14711 $as_echo_n "(cached) " >&6
14712else
14713 lt_cv_prog_compiler_pic_works_CXX=no
14714 ac_outfile=conftest.$ac_objext
14715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14716 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14717 # Insert the option either (1) after the last *FLAGS variable, or
14718 # (2) before a word containing "conftest.", or (3) at the end.
14719 # Note that $ac_compile itself does not contain backslashes and begins
14720 # with a dollar sign (not a hyphen), so the echo should work correctly.
14721 # The option is referenced via a variable to avoid confusing sed.
14722 lt_compile=`echo "$ac_compile" | $SED \
14723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14725 -e 's:$: $lt_compiler_flag:'`
ee134472 14726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
14727 (eval "$lt_compile" 2>conftest.err)
14728 ac_status=$?
14729 cat conftest.err >&5
ee134472 14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
14731 if (exit $ac_status) && test -s "$ac_outfile"; then
14732 # The compiler can only warn and ignore the option if not recognized
14733 # So say no if there are warnings other than the usual output.
ee134472 14734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
14735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14737 lt_cv_prog_compiler_pic_works_CXX=yes
14738 fi
14739 fi
00a96142 14740 $RM -r conftest*
9c60689e
DWT
14741
14742fi
14743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14744$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14745
14746if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14747 case $lt_prog_compiler_pic_CXX in
14748 "" | " "*) ;;
14749 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14750 esac
14751else
14752 lt_prog_compiler_pic_CXX=
14753 lt_prog_compiler_can_build_shared_CXX=no
14754fi
14755
14756fi
14757
14758
14759
ee134472
JF
14760
14761
47aaa820
DWT
14762#
14763# Check to make sure the static flag actually works.
14764#
14765wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14767$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 14768if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
14769 $as_echo_n "(cached) " >&6
14770else
14771 lt_cv_prog_compiler_static_works_CXX=no
14772 save_LDFLAGS="$LDFLAGS"
14773 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14774 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14775 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14776 # The linker can only warn and ignore the option if not recognized
14777 # So say no if there are warnings
14778 if test -s conftest.err; then
14779 # Append any errors to the config.log.
14780 cat conftest.err 1>&5
ee134472 14781 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
14782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14783 if diff conftest.exp conftest.er2 >/dev/null; then
14784 lt_cv_prog_compiler_static_works_CXX=yes
14785 fi
14786 else
14787 lt_cv_prog_compiler_static_works_CXX=yes
14788 fi
14789 fi
14790 $RM -r conftest*
14791 LDFLAGS="$save_LDFLAGS"
14792
14793fi
14794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14795$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14796
14797if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14798 :
14799else
14800 lt_prog_compiler_static_CXX=
14801fi
14802
14803
14804
14805
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14807$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14808if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14809 $as_echo_n "(cached) " >&6
14810else
14811 lt_cv_prog_compiler_c_o_CXX=no
14812 $RM -r conftest 2>/dev/null
14813 mkdir conftest
14814 cd conftest
14815 mkdir out
14816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14817
14818 lt_compiler_flag="-o out/conftest2.$ac_objext"
14819 # Insert the option either (1) after the last *FLAGS variable, or
14820 # (2) before a word containing "conftest.", or (3) at the end.
14821 # Note that $ac_compile itself does not contain backslashes and begins
14822 # with a dollar sign (not a hyphen), so the echo should work correctly.
14823 lt_compile=`echo "$ac_compile" | $SED \
14824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14826 -e 's:$: $lt_compiler_flag:'`
ee134472 14827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14828 (eval "$lt_compile" 2>out/conftest.err)
14829 ac_status=$?
14830 cat out/conftest.err >&5
ee134472 14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14832 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14833 then
14834 # The compiler can only warn and ignore the option if not recognized
14835 # So say no if there are warnings
ee134472 14836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14839 lt_cv_prog_compiler_c_o_CXX=yes
14840 fi
14841 fi
14842 chmod u+w . 2>&5
00a96142 14843 $RM -r conftest*
47aaa820
DWT
14844 # SGI C++ compiler will create directory out/ii_files/ for
14845 # template instantiation
14846 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14847 $RM out/* && rmdir out
14848 cd ..
14849 $RM -r conftest
00a96142 14850 $RM -r conftest*
47aaa820
DWT
14851
14852fi
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14854$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14855
14856
14857
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14859$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14860if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14861 $as_echo_n "(cached) " >&6
14862else
14863 lt_cv_prog_compiler_c_o_CXX=no
14864 $RM -r conftest 2>/dev/null
14865 mkdir conftest
14866 cd conftest
14867 mkdir out
14868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14869
14870 lt_compiler_flag="-o out/conftest2.$ac_objext"
14871 # Insert the option either (1) after the last *FLAGS variable, or
14872 # (2) before a word containing "conftest.", or (3) at the end.
14873 # Note that $ac_compile itself does not contain backslashes and begins
14874 # with a dollar sign (not a hyphen), so the echo should work correctly.
14875 lt_compile=`echo "$ac_compile" | $SED \
14876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14878 -e 's:$: $lt_compiler_flag:'`
ee134472 14879 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14880 (eval "$lt_compile" 2>out/conftest.err)
14881 ac_status=$?
14882 cat out/conftest.err >&5
ee134472 14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14885 then
14886 # The compiler can only warn and ignore the option if not recognized
14887 # So say no if there are warnings
ee134472 14888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14891 lt_cv_prog_compiler_c_o_CXX=yes
14892 fi
14893 fi
14894 chmod u+w . 2>&5
00a96142 14895 $RM -r conftest*
47aaa820
DWT
14896 # SGI C++ compiler will create directory out/ii_files/ for
14897 # template instantiation
14898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14899 $RM out/* && rmdir out
14900 cd ..
14901 $RM -r conftest
00a96142 14902 $RM -r conftest*
47aaa820
DWT
14903
14904fi
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14906$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14907
14908
14909
14910
14911hard_links="nottested"
14912if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14913 # do not overwrite the value of need_locks provided by the user
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14915$as_echo_n "checking if we can lock with hard links... " >&6; }
14916 hard_links=yes
00a96142 14917 $RM -r conftest*
47aaa820
DWT
14918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14919 touch conftest.a
14920 ln conftest.a conftest.b 2>&5 || hard_links=no
14921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14923$as_echo "$hard_links" >&6; }
14924 if test "$hard_links" = no; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14926$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14927 need_locks=warn
14928 fi
14929else
14930 need_locks=no
14931fi
14932
14933
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14936$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14937
14938 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14939 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
14940 case $host_os in
14941 aix[4-9]*)
14942 # If we're using GNU nm, then we don't want the "-C" option.
14943 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
14944 # Also, AIX nm treats weak defined symbols like other global defined
14945 # symbols, whereas GNU nm marks them as "W".
47aaa820 14946 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 14947 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
14948 else
14949 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'
14950 fi
14951 ;;
14952 pw32*)
14953 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 14954 ;;
47aaa820 14955 cygwin* | mingw* | cegcc*)
ee134472 14956 case $cc_basename in
53ba6704
JF
14957 cl*)
14958 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14959 ;;
ee134472
JF
14960 *)
14961 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'
14962 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14963 ;;
14964 esac
14965 ;;
47aaa820
DWT
14966 *)
14967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14968 ;;
47aaa820 14969 esac
47aaa820
DWT
14970
14971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14972$as_echo "$ld_shlibs_CXX" >&6; }
14973test "$ld_shlibs_CXX" = no && can_build_shared=no
14974
14975with_gnu_ld_CXX=$with_gnu_ld
14976
14977
14978
14979
14980
14981
14982#
14983# Do we need to explicitly link libc?
14984#
14985case "x$archive_cmds_need_lc_CXX" in
14986x|xyes)
14987 # Assume -lc should be added
14988 archive_cmds_need_lc_CXX=yes
14989
14990 if test "$enable_shared" = yes && test "$GCC" = yes; then
14991 case $archive_cmds_CXX in
14992 *'~'*)
14993 # FIXME: we may have to deal with multi-command sequences.
14994 ;;
14995 '$CC '*)
14996 # Test whether the compiler implicitly links with -lc since on some
14997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14998 # to ld, don't add -lc before -lgcc.
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15000$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
15001if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15002 $as_echo_n "(cached) " >&6
15003else
00a96142 15004 $RM -r conftest*
ee134472 15005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 15006
ee134472 15007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
15008 (eval $ac_compile) 2>&5
15009 ac_status=$?
15010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15011 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
15012 soname=conftest
15013 lib=conftest
15014 libobjs=conftest.$ac_objext
15015 deplibs=
15016 wl=$lt_prog_compiler_wl_CXX
15017 pic_flag=$lt_prog_compiler_pic_CXX
15018 compiler_flags=-v
15019 linker_flags=-v
15020 verstring=
15021 output_objdir=.
15022 libname=conftest
15023 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15024 allow_undefined_flag_CXX=
15025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
15026 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15027 ac_status=$?
15028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15029 test $ac_status = 0; }
ee134472
JF
15030 then
15031 lt_cv_archive_cmds_need_lc_CXX=no
15032 else
15033 lt_cv_archive_cmds_need_lc_CXX=yes
15034 fi
15035 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15036 else
15037 cat conftest.err 1>&5
15038 fi
00a96142 15039 $RM -r conftest*
ee134472
JF
15040
15041fi
15042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15043$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15044 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
15045 ;;
15046 esac
15047 fi
15048 ;;
15049esac
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
15105
15106
15107
15108
47aaa820
DWT
15109
15110
15111
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15113$as_echo_n "checking dynamic linker characteristics... " >&6; }
15114
15115library_names_spec=
15116libname_spec='lib$name'
15117soname_spec=
15118shrext_cmds=".so"
15119postinstall_cmds=
15120postuninstall_cmds=
15121finish_cmds=
15122finish_eval=
15123shlibpath_var=
15124shlibpath_overrides_runpath=unknown
15125version_type=none
15126dynamic_linker="$host_os ld.so"
15127sys_lib_dlsearch_path_spec="/lib /usr/lib"
15128need_lib_prefix=unknown
15129hardcode_into_libs=no
15130
15131# when you set need_version to no, make sure it does not cause -set_version
15132# flags to be left without arguments
15133need_version=unknown
15134
15135case $host_os in
15136aix3*)
53ba6704 15137 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15139 shlibpath_var=LIBPATH
15140
15141 # AIX 3 has no versioning support, so we append a major version to the name.
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 ;;
15144
15145aix[4-9]*)
53ba6704 15146 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15147 need_lib_prefix=no
15148 need_version=no
15149 hardcode_into_libs=yes
15150 if test "$host_cpu" = ia64; then
15151 # AIX 5 supports IA64
15152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15153 shlibpath_var=LD_LIBRARY_PATH
15154 else
15155 # With GCC up to 2.95.x, collect2 would create an import file
15156 # for dependence libraries. The import file would start with
15157 # the line `#! .'. This would cause the generated library to
15158 # depend on `.', always an invalid library. This was fixed in
15159 # development snapshots of GCC prior to 3.0.
15160 case $host_os in
15161 aix4 | aix4.[01] | aix4.[01].*)
15162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15163 echo ' yes '
15164 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15165 :
15166 else
15167 can_build_shared=no
15168 fi
15169 ;;
15170 esac
15171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15172 # soname into executable. Probably we can add versioning support to
15173 # collect2, so additional links can be useful in future.
15174 if test "$aix_use_runtimelinking" = yes; then
15175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15176 # instead of lib<name>.a to let people know that these are not
15177 # typical AIX shared libraries.
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 else
15180 # We preserve .a as extension for shared libraries through AIX4.2
15181 # and later when we are not doing run time linking.
15182 library_names_spec='${libname}${release}.a $libname.a'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 fi
15185 shlibpath_var=LIBPATH
15186 fi
15187 ;;
15188
15189amigaos*)
15190 case $host_cpu in
15191 powerpc)
15192 # Since July 2007 AmigaOS4 officially supports .so libraries.
15193 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 ;;
15196 m68k)
15197 library_names_spec='$libname.ixlibrary $libname.a'
15198 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 15199 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
15200 ;;
15201 esac
15202 ;;
15203
15204beos*)
15205 library_names_spec='${libname}${shared_ext}'
15206 dynamic_linker="$host_os ld.so"
15207 shlibpath_var=LIBRARY_PATH
15208 ;;
15209
15210bsdi[45]*)
53ba6704 15211 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15212 need_version=no
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15218 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15219 # the default ld.so.conf also contains /usr/contrib/lib and
15220 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15221 # libtool to hard-code these into programs
15222 ;;
9c60689e 15223
47aaa820
DWT
15224cygwin* | mingw* | pw32* | cegcc*)
15225 version_type=windows
15226 shrext_cmds=".dll"
15227 need_version=no
15228 need_lib_prefix=no
9c60689e 15229
ee134472
JF
15230 case $GCC,$cc_basename in
15231 yes,*)
15232 # gcc
47aaa820
DWT
15233 library_names_spec='$libname.dll.a'
15234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15235 postinstall_cmds='base_file=`basename \${file}`~
15236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15237 dldir=$destdir/`dirname \$dlpath`~
15238 test -d \$dldir || mkdir -p \$dldir~
15239 $install_prog $dir/$dlname \$dldir/$dlname~
15240 chmod a+x \$dldir/$dlname~
15241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15243 fi'
15244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15245 dlpath=$dir/\$dldll~
15246 $RM \$dlpath'
15247 shlibpath_overrides_runpath=yes
9c60689e 15248
47aaa820
DWT
15249 case $host_os in
15250 cygwin*)
15251 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15252 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 15253
47aaa820
DWT
15254 ;;
15255 mingw* | cegcc*)
15256 # MinGW DLLs use traditional 'lib' prefix
15257 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
15258 ;;
15259 pw32*)
15260 # pw32 DLLs use 'pw' prefix rather than 'lib'
15261 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15262 ;;
15263 esac
ee134472
JF
15264 dynamic_linker='Win32 ld.exe'
15265 ;;
15266
15267 *,cl*)
15268 # Native MSVC
15269 libname_spec='$name'
15270 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15271 library_names_spec='${libname}.dll.lib'
15272
15273 case $build_os in
15274 mingw*)
15275 sys_lib_search_path_spec=
15276 lt_save_ifs=$IFS
15277 IFS=';'
15278 for lt_path in $LIB
15279 do
15280 IFS=$lt_save_ifs
15281 # Let DOS variable expansion print the short 8.3 style file name.
15282 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15283 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15284 done
15285 IFS=$lt_save_ifs
15286 # Convert to MSYS style.
15287 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15288 ;;
15289 cygwin*)
15290 # Convert to unix form, then to dos form, then back to unix form
15291 # but this time dos style (no spaces!) so that the unix form looks
15292 # like /cygdrive/c/PROGRA~1:/cygdr...
15293 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15294 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15295 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15296 ;;
15297 *)
15298 sys_lib_search_path_spec="$LIB"
15299 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15300 # It is most probably a Windows format PATH.
15301 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15302 else
15303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15304 fi
15305 # FIXME: find the short name or the path components, as spaces are
15306 # common. (e.g. "Program Files" -> "PROGRA~1")
15307 ;;
15308 esac
15309
15310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15311 postinstall_cmds='base_file=`basename \${file}`~
15312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15313 dldir=$destdir/`dirname \$dlpath`~
15314 test -d \$dldir || mkdir -p \$dldir~
15315 $install_prog $dir/$dlname \$dldir/$dlname'
15316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15317 dlpath=$dir/\$dldll~
15318 $RM \$dlpath'
15319 shlibpath_overrides_runpath=yes
15320 dynamic_linker='Win32 link.exe'
47aaa820 15321 ;;
9c60689e 15322
47aaa820 15323 *)
ee134472 15324 # Assume MSVC wrapper
47aaa820 15325 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 15326 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15327 ;;
15328 esac
47aaa820
DWT
15329 # FIXME: first we should search . and the directory the executable is in
15330 shlibpath_var=PATH
15331 ;;
9c60689e 15332
47aaa820
DWT
15333darwin* | rhapsody*)
15334 dynamic_linker="$host_os dyld"
15335 version_type=darwin
15336 need_lib_prefix=no
15337 need_version=no
15338 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15339 soname_spec='${libname}${release}${major}$shared_ext'
15340 shlibpath_overrides_runpath=yes
15341 shlibpath_var=DYLD_LIBRARY_PATH
15342 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15343
47aaa820
DWT
15344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15345 ;;
9c60689e 15346
47aaa820 15347dgux*)
53ba6704 15348 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15349 need_lib_prefix=no
15350 need_version=no
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 ;;
9c60689e 15355
47aaa820
DWT
15356freebsd* | dragonfly*)
15357 # DragonFly does not have aout. When/if they implement a new
15358 # versioning mechanism, adjust this.
15359 if test -x /usr/bin/objformat; then
15360 objformat=`/usr/bin/objformat`
15361 else
15362 case $host_os in
53ba6704 15363 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15364 *) objformat=elf ;;
15365 esac
15366 fi
15367 version_type=freebsd-$objformat
15368 case $version_type in
15369 freebsd-elf*)
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15371 need_version=no
15372 need_lib_prefix=no
15373 ;;
15374 freebsd-*)
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15376 need_version=yes
15377 ;;
15378 esac
15379 shlibpath_var=LD_LIBRARY_PATH
15380 case $host_os in
53ba6704 15381 freebsd2.*)
47aaa820
DWT
15382 shlibpath_overrides_runpath=yes
15383 ;;
15384 freebsd3.[01]* | freebsdelf3.[01]*)
15385 shlibpath_overrides_runpath=yes
15386 hardcode_into_libs=yes
15387 ;;
15388 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15389 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15390 shlibpath_overrides_runpath=no
15391 hardcode_into_libs=yes
15392 ;;
15393 *) # from 4.6 on, and DragonFly
15394 shlibpath_overrides_runpath=yes
15395 hardcode_into_libs=yes
15396 ;;
15397 esac
15398 ;;
9c60689e 15399
47aaa820 15400gnu*)
53ba6704 15401 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15402 need_lib_prefix=no
15403 need_version=no
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
15407 shlibpath_overrides_runpath=no
15408 hardcode_into_libs=yes
15409 ;;
15410
15411haiku*)
53ba6704 15412 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15413 need_lib_prefix=no
15414 need_version=no
15415 dynamic_linker="$host_os runtime_loader"
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 shlibpath_var=LIBRARY_PATH
15419 shlibpath_overrides_runpath=yes
15420 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15421 hardcode_into_libs=yes
15422 ;;
9c60689e 15423
47aaa820
DWT
15424hpux9* | hpux10* | hpux11*)
15425 # Give a soname corresponding to the major version so that dld.sl refuses to
15426 # link against other versions.
15427 version_type=sunos
15428 need_lib_prefix=no
15429 need_version=no
15430 case $host_cpu in
15431 ia64*)
15432 shrext_cmds='.so'
15433 hardcode_into_libs=yes
15434 dynamic_linker="$host_os dld.so"
15435 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 if test "X$HPUX_IA64_MODE" = X32; then
15440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15441 else
15442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15443 fi
15444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15445 ;;
15446 hppa*64*)
15447 shrext_cmds='.sl'
15448 hardcode_into_libs=yes
15449 dynamic_linker="$host_os dld.sl"
15450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 ;;
15457 *)
15458 shrext_cmds='.sl'
15459 dynamic_linker="$host_os dld.sl"
15460 shlibpath_var=SHLIB_PATH
15461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463 soname_spec='${libname}${release}${shared_ext}$major'
15464 ;;
15465 esac
ee134472 15466 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 15467 postinstall_cmds='chmod 555 $lib'
ee134472
JF
15468 # or fails outright, so override atomically:
15469 install_override_mode=555
47aaa820 15470 ;;
9c60689e 15471
47aaa820 15472interix[3-9]*)
53ba6704 15473 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15474 need_lib_prefix=no
15475 need_version=no
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 shlibpath_overrides_runpath=no
15481 hardcode_into_libs=yes
15482 ;;
9c60689e 15483
47aaa820
DWT
15484irix5* | irix6* | nonstopux*)
15485 case $host_os in
15486 nonstopux*) version_type=nonstopux ;;
15487 *)
15488 if test "$lt_cv_prog_gnu_ld" = yes; then
53ba6704 15489 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15490 else
15491 version_type=irix
15492 fi ;;
15493 esac
15494 need_lib_prefix=no
15495 need_version=no
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15498 case $host_os in
15499 irix5* | nonstopux*)
15500 libsuff= shlibsuff=
15501 ;;
15502 *)
15503 case $LD in # libtool.m4 will add one of these switches to LD
15504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15505 libsuff= shlibsuff= libmagic=32-bit;;
15506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15507 libsuff=32 shlibsuff=N32 libmagic=N32;;
15508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15509 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15510 *) libsuff= shlibsuff= libmagic=never-match;;
15511 esac
15512 ;;
15513 esac
15514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15515 shlibpath_overrides_runpath=no
15516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15518 hardcode_into_libs=yes
15519 ;;
9c60689e 15520
47aaa820
DWT
15521# No shared lib support for Linux oldld, aout, or coff.
15522linux*oldld* | linux*aout* | linux*coff*)
15523 dynamic_linker=no
15524 ;;
9c60689e 15525
53ba6704 15526# This must be glibc/ELF.
1504c9b8 15527linux* | k*bsd*-gnu | kopensolaris*-gnu)
53ba6704 15528 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15529 need_lib_prefix=no
15530 need_version=no
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15534 shlibpath_var=LD_LIBRARY_PATH
15535 shlibpath_overrides_runpath=no
ee134472 15536
47aaa820 15537 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
15538 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15539 $as_echo_n "(cached) " >&6
15540else
15541 lt_cv_shlibpath_overrides_runpath=no
15542 save_LDFLAGS=$LDFLAGS
15543 save_libdir=$libdir
15544 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15545 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 15547/* end confdefs.h. */
9c60689e 15548
47aaa820
DWT
15549int
15550main ()
15551{
9c60689e 15552
47aaa820
DWT
15553 ;
15554 return 0;
15555}
15556_ACEOF
15557if ac_fn_cxx_try_link "$LINENO"; then :
15558 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 15559 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 15560fi
47aaa820
DWT
15561fi
15562rm -f core conftest.err conftest.$ac_objext \
15563 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
15564 LDFLAGS=$save_LDFLAGS
15565 libdir=$save_libdir
15566
15567fi
15568
15569 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 15570
47aaa820
DWT
15571 # This implies no fast_install, which is unacceptable.
15572 # Some rework will be needed to allow for fast_install
15573 # before this can be enabled.
15574 hardcode_into_libs=yes
9c60689e 15575
47aaa820
DWT
15576 # Append ld.so.conf contents to the search path
15577 if test -f /etc/ld.so.conf; then
ee134472 15578 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
15579 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15580 fi
9c60689e 15581
47aaa820
DWT
15582 # We used to test for /lib/ld.so.1 and disable shared libraries on
15583 # powerpc, because MkLinux only supported shared libraries with the
15584 # GNU dynamic linker. Since this was broken with cross compilers,
15585 # most powerpc-linux boxes support dynamic linking these days and
15586 # people can always --disable-shared, the test was removed, and we
15587 # assume the GNU/Linux dynamic linker is in use.
15588 dynamic_linker='GNU/Linux ld.so'
9c60689e 15589 ;;
47aaa820 15590
47aaa820
DWT
15591netbsd*)
15592 version_type=sunos
15593 need_lib_prefix=no
15594 need_version=no
15595 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15598 dynamic_linker='NetBSD (a.out) ld.so'
15599 else
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 dynamic_linker='NetBSD ld.elf_so'
15603 fi
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=yes
15606 hardcode_into_libs=yes
9c60689e 15607 ;;
9c60689e 15608
47aaa820 15609newsos6)
53ba6704 15610 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 shlibpath_overrides_runpath=yes
15614 ;;
9c60689e 15615
47aaa820
DWT
15616*nto* | *qnx*)
15617 version_type=qnx
15618 need_lib_prefix=no
15619 need_version=no
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621 soname_spec='${libname}${release}${shared_ext}$major'
15622 shlibpath_var=LD_LIBRARY_PATH
15623 shlibpath_overrides_runpath=no
15624 hardcode_into_libs=yes
15625 dynamic_linker='ldqnx.so'
15626 ;;
9c60689e 15627
47aaa820
DWT
15628openbsd*)
15629 version_type=sunos
15630 sys_lib_dlsearch_path_spec="/usr/lib"
15631 need_lib_prefix=no
15632 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15633 case $host_os in
15634 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15635 *) need_version=no ;;
15636 esac
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15641 case $host_os in
15642 openbsd2.[89] | openbsd2.[89].*)
15643 shlibpath_overrides_runpath=no
15644 ;;
15645 *)
15646 shlibpath_overrides_runpath=yes
15647 ;;
15648 esac
15649 else
15650 shlibpath_overrides_runpath=yes
15651 fi
15652 ;;
9c60689e 15653
47aaa820
DWT
15654os2*)
15655 libname_spec='$name'
15656 shrext_cmds=".dll"
15657 need_lib_prefix=no
15658 library_names_spec='$libname${shared_ext} $libname.a'
15659 dynamic_linker='OS/2 ld.exe'
15660 shlibpath_var=LIBPATH
15661 ;;
9c60689e 15662
47aaa820
DWT
15663osf3* | osf4* | osf5*)
15664 version_type=osf
15665 need_lib_prefix=no
15666 need_version=no
15667 soname_spec='${libname}${release}${shared_ext}$major'
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15671 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15672 ;;
9c60689e 15673
47aaa820
DWT
15674rdos*)
15675 dynamic_linker=no
15676 ;;
9c60689e 15677
47aaa820 15678solaris*)
53ba6704 15679 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15680 need_lib_prefix=no
15681 need_version=no
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=yes
15686 hardcode_into_libs=yes
15687 # ldd complains unless libraries are executable
15688 postinstall_cmds='chmod +x $lib'
15689 ;;
9c60689e 15690
47aaa820
DWT
15691sunos4*)
15692 version_type=sunos
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15695 shlibpath_var=LD_LIBRARY_PATH
15696 shlibpath_overrides_runpath=yes
15697 if test "$with_gnu_ld" = yes; then
15698 need_lib_prefix=no
15699 fi
15700 need_version=yes
15701 ;;
9c60689e 15702
47aaa820 15703sysv4 | sysv4.3*)
53ba6704 15704 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 case $host_vendor in
15709 sni)
15710 shlibpath_overrides_runpath=no
15711 need_lib_prefix=no
15712 runpath_var=LD_RUN_PATH
9c60689e 15713 ;;
47aaa820
DWT
15714 siemens)
15715 need_lib_prefix=no
9c60689e 15716 ;;
47aaa820
DWT
15717 motorola)
15718 need_lib_prefix=no
15719 need_version=no
15720 shlibpath_overrides_runpath=no
15721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15722 ;;
15723 esac
9c60689e 15724 ;;
9c60689e 15725
47aaa820
DWT
15726sysv4*MP*)
15727 if test -d /usr/nec ;then
53ba6704 15728 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15730 soname_spec='$libname${shared_ext}.$major'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 fi
15733 ;;
9c60689e 15734
47aaa820
DWT
15735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15736 version_type=freebsd-elf
15737 need_lib_prefix=no
15738 need_version=no
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15740 soname_spec='${libname}${release}${shared_ext}$major'
15741 shlibpath_var=LD_LIBRARY_PATH
15742 shlibpath_overrides_runpath=yes
15743 hardcode_into_libs=yes
15744 if test "$with_gnu_ld" = yes; then
15745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15746 else
15747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15748 case $host_os in
15749 sco3.2v5*)
15750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15751 ;;
15752 esac
15753 fi
15754 sys_lib_dlsearch_path_spec='/usr/lib'
15755 ;;
9c60689e 15756
47aaa820
DWT
15757tpf*)
15758 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 15759 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15760 need_lib_prefix=no
15761 need_version=no
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763 shlibpath_var=LD_LIBRARY_PATH
15764 shlibpath_overrides_runpath=no
15765 hardcode_into_libs=yes
15766 ;;
9c60689e 15767
47aaa820 15768uts4*)
53ba6704 15769 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 ;;
9c60689e 15774
47aaa820
DWT
15775*)
15776 dynamic_linker=no
e9c9a47c
DWT
15777 ;;
15778esac
15779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15780$as_echo "$dynamic_linker" >&6; }
15781test "$dynamic_linker" = no && can_build_shared=no
15782
15783variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15784if test "$GCC" = yes; then
15785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 15786fi
9c60689e 15787
e9c9a47c
DWT
15788if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15789 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 15790fi
e9c9a47c
DWT
15791if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15792 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 15793fi
9c60689e 15794
9c60689e 15795
9c60689e 15796
9c60689e 15797
47aaa820 15798
47aaa820 15799
47aaa820 15800
9c60689e 15801
9c60689e 15802
47aaa820 15803
47aaa820 15804
47aaa820 15805
47aaa820 15806
47aaa820 15807
47aaa820 15808
47aaa820 15809
47aaa820 15810
9c60689e 15811
9c60689e 15812
9c60689e 15813
9c60689e 15814
9c60689e 15815
e9c9a47c
DWT
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
ee134472
JF
15827
15828
e9c9a47c
DWT
15829
15830
15831
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15833$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15834hardcode_action_CXX=
15835if test -n "$hardcode_libdir_flag_spec_CXX" ||
15836 test -n "$runpath_var_CXX" ||
15837 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15838
15839 # We can hardcode non-existent directories.
15840 if test "$hardcode_direct_CXX" != no &&
15841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15842 # have to relink, otherwise we might link with an installed library
15843 # when we should be linking with a yet-to-be-installed one
15844 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15845 test "$hardcode_minus_L_CXX" != no; then
15846 # Linking always hardcodes the temporary library directory.
15847 hardcode_action_CXX=relink
15848 else
15849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15850 hardcode_action_CXX=immediate
15851 fi
15852else
15853 # We cannot hardcode anything, or else we can only hardcode existing
15854 # directories.
15855 hardcode_action_CXX=unsupported
15856fi
15857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15858$as_echo "$hardcode_action_CXX" >&6; }
15859
15860if test "$hardcode_action_CXX" = relink ||
15861 test "$inherit_rpath_CXX" = yes; then
15862 # Fast installation is not supported
15863 enable_fast_install=no
15864elif test "$shlibpath_overrides_runpath" = yes ||
15865 test "$enable_shared" = no; then
15866 # Fast installation is not necessary
15867 enable_fast_install=needless
47aaa820 15868fi
9c60689e 15869
47aaa820 15870
47aaa820 15871
e9c9a47c
DWT
15872
15873
15874
15875
a243b558
JF
15876 fi # test -n "$compiler"
15877
15878 CC=$lt_save_CC
15879 CFLAGS=$lt_save_CFLAGS
15880 LDCXX=$LD
15881 LD=$lt_save_LD
15882 GCC=$lt_save_GCC
15883 with_gnu_ld=$lt_save_with_gnu_ld
15884 lt_cv_path_LDCXX=$lt_cv_path_LD
15885 lt_cv_path_LD=$lt_save_path_LD
15886 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15887 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15888fi # test "$_lt_caught_CXX_error" != yes
15889
15890ac_ext=c
15891ac_cpp='$CPP $CPPFLAGS'
15892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15894ac_compiler_gnu=$ac_cv_c_compiler_gnu
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910 ac_config_commands="$ac_config_commands libtool"
15911
15912
15913
15914
15915# Only expand once:
15916
15917
15918
15919ac_ext=cpp
15920ac_cpp='$CXXCPP $CPPFLAGS'
15921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15924
15925
15926
15927
15928
15929
15930
15931
15932if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15933 if test -n "$ac_tool_prefix"; then
15934 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15935set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15937$as_echo_n "checking for $ac_word... " >&6; }
15938if ${ac_cv_path_PKG_CONFIG+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940else
15941 case $PKG_CONFIG in
15942 [\\/]* | ?:[\\/]*)
15943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15944 ;;
15945 *)
15946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15947for as_dir in $PATH
15948do
15949 IFS=$as_save_IFS
15950 test -z "$as_dir" && as_dir=.
15951 for ac_exec_ext in '' $ac_executable_extensions; do
15952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15953 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 break 2
15956 fi
15957done
15958 done
15959IFS=$as_save_IFS
15960
15961 ;;
15962esac
15963fi
15964PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15965if test -n "$PKG_CONFIG"; then
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15967$as_echo "$PKG_CONFIG" >&6; }
15968else
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15970$as_echo "no" >&6; }
15971fi
15972
15973
15974fi
15975if test -z "$ac_cv_path_PKG_CONFIG"; then
15976 ac_pt_PKG_CONFIG=$PKG_CONFIG
15977 # Extract the first word of "pkg-config", so it can be a program name with args.
15978set dummy pkg-config; ac_word=$2
15979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980$as_echo_n "checking for $ac_word... " >&6; }
15981if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15982 $as_echo_n "(cached) " >&6
15983else
15984 case $ac_pt_PKG_CONFIG in
15985 [\\/]* | ?:[\\/]*)
15986 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15987 ;;
15988 *)
15989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15990for as_dir in $PATH
15991do
15992 IFS=$as_save_IFS
15993 test -z "$as_dir" && as_dir=.
15994 for ac_exec_ext in '' $ac_executable_extensions; do
15995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15996 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15998 break 2
15999 fi
16000done
16001 done
16002IFS=$as_save_IFS
16003
16004 ;;
16005esac
16006fi
16007ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16008if test -n "$ac_pt_PKG_CONFIG"; then
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16010$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16011else
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16013$as_echo "no" >&6; }
16014fi
16015
16016 if test "x$ac_pt_PKG_CONFIG" = x; then
16017 PKG_CONFIG=""
16018 else
16019 case $cross_compiling:$ac_tool_warned in
16020yes:)
16021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16023ac_tool_warned=yes ;;
16024esac
16025 PKG_CONFIG=$ac_pt_PKG_CONFIG
16026 fi
16027else
16028 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16029fi
16030
16031fi
16032if test -n "$PKG_CONFIG"; then
16033 _pkg_min_version=0.22
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16035$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16036 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16038$as_echo "yes" >&6; }
16039 else
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16041$as_echo "no" >&6; }
16042 PKG_CONFIG=""
16043 fi
16044fi
16045
a243b558
JF
16046# Extract the first word of "git", so it can be a program name with args.
16047set dummy git; ac_word=$2
16048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16049$as_echo_n "checking for $ac_word... " >&6; }
16050if ${ac_cv_path_GIT+:} false; then :
16051 $as_echo_n "(cached) " >&6
16052else
16053 case $GIT in
16054 [\\/]* | ?:[\\/]*)
16055 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16056 ;;
16057 *)
16058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16059for as_dir in $PATH
16060do
16061 IFS=$as_save_IFS
16062 test -z "$as_dir" && as_dir=.
16063 for ac_exec_ext in '' $ac_executable_extensions; do
16064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16065 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16067 break 2
16068 fi
16069done
16070 done
16071IFS=$as_save_IFS
e9c9a47c 16072
a243b558
JF
16073 ;;
16074esac
16075fi
16076GIT=$ac_cv_path_GIT
16077if test -n "$GIT"; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16079$as_echo "$GIT" >&6; }
16080else
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082$as_echo "no" >&6; }
16083fi
e9c9a47c
DWT
16084
16085
a243b558
JF
16086# Extract the first word of "time", so it can be a program name with args.
16087set dummy time; ac_word=$2
632b71ea
DWT
16088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16089$as_echo_n "checking for $ac_word... " >&6; }
a243b558 16090if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
16091 $as_echo_n "(cached) " >&6
16092else
a243b558
JF
16093 case $TIME in
16094 [\\/]* | ?:[\\/]*)
16095 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16096 ;;
16097 *)
16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
16099for as_dir in $PATH
16100do
16101 IFS=$as_save_IFS
16102 test -z "$as_dir" && as_dir=.
16103 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16105 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16107 break 2
16108 fi
16109done
16110 done
16111IFS=$as_save_IFS
16112
a243b558
JF
16113 ;;
16114esac
632b71ea 16115fi
a243b558
JF
16116TIME=$ac_cv_path_TIME
16117if test -n "$TIME"; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16119$as_echo "$TIME" >&6; }
632b71ea
DWT
16120else
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122$as_echo "no" >&6; }
16123fi
16124
16125
a243b558
JF
16126
16127
16128
16129
16130
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16132$as_echo_n "checking for bison >= 2.3... " >&6; }
16133 if test -z "$BISON"; then
16134 ac_path_BISON_found=false
16135 # Loop through the user's path and test for each of PROGNAME-LIST
16136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16137for as_dir in $PATH
16138do
16139 IFS=$as_save_IFS
16140 test -z "$as_dir" && as_dir=.
16141 for ac_prog in bison; do
16142 for ac_exec_ext in '' $ac_executable_extensions; do
16143 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16144 as_fn_executable_p "$ac_path_BISON" || continue
16145version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16146 if ${version:+false} :; then :
16147
16148else
16149 as_awk_strverscmp='
16150 # Use only awk features that work with 7th edition Unix awk (1978).
16151 # My, what an old awk you have, Mr. Solaris!
16152 END {
16153 while (length(v1) && length(v2)) {
16154 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16155 # Normally this is a single character, but if v1 and v2 contain digits,
16156 # compare them as integers and fractions as strverscmp does.
16157 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16158 # Split v1 and v2 into their leading digit string components d1 and d2,
16159 # and advance v1 and v2 past the leading digit strings.
16160 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16161 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16162 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16163 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16164 if (d1 ~ /^0/) {
16165 if (d2 ~ /^0/) {
16166 # Compare two fractions.
16167 while (d1 ~ /^0/ && d2 ~ /^0/) {
16168 d1 = substr(d1, 2); len1--
16169 d2 = substr(d2, 2); len2--
16170 }
16171 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16172 # The two components differ in length, and the common prefix
16173 # contains only leading zeros. Consider the longer to be less.
16174 d1 = -len1
16175 d2 = -len2
16176 } else {
16177 # Otherwise, compare as strings.
16178 d1 = "x" d1
16179 d2 = "x" d2
16180 }
16181 } else {
16182 # A fraction is less than an integer.
16183 exit 1
16184 }
16185 } else {
16186 if (d2 ~ /^0/) {
16187 # An integer is greater than a fraction.
16188 exit 2
16189 } else {
16190 # Compare two integers.
16191 d1 += 0
16192 d2 += 0
16193 }
16194 }
16195 } else {
16196 # The normal case, without worrying about digits.
16197 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16198 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16199 }
16200 if (d1 < d2) exit 1
16201 if (d1 > d2) exit 2
16202 }
16203 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16204 # which mishandles some comparisons of empty strings to integers.
16205 if (length(v2)) exit 1
16206 if (length(v1)) exit 2
16207 }
16208'
16209as_arg_v1=$version
16210as_arg_v2=2.3
16211awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16212case $? in #(
16213 1) :
16214 ;; #(
16215 0) :
16216 ac_cv_path_BISON=$ac_path_BISON ;; #(
16217 2) :
16218 ac_cv_path_BISON=$ac_path_BISON ;; #(
16219 *) :
16220 ;;
16221esac
16222fi
16223
16224 $ac_path_BISON_found && break 3
16225 done
16226 done
e9c9a47c 16227 done
a243b558
JF
16228IFS=$as_save_IFS
16229 if test -z "$ac_cv_path_BISON"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16231$as_echo "no" >&6; }
16232 fi
16233else
16234 ac_cv_path_BISON=$BISON
632b71ea 16235fi
a243b558
JF
16236
16237
16238 if true; then :
16239
16240 BISON=$ac_cv_path_BISON
16241
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16243$as_echo "$BISON" >&6; }
16244
47aaa820 16245else
a243b558
JF
16246 if true; then :
16247
16248 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16249
47aaa820 16250else
a243b558
JF
16251
16252 BISON=:
16253
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16255$as_echo "no" >&6; }
16256
16257fi
16258fi
16259
16260
16261
16262
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16264$as_echo_n "checking for flex >= 2.5.33... " >&6; }
16265 if test -z "$FLEX"; then
16266 ac_path_FLEX_found=false
16267 # Loop through the user's path and test for each of PROGNAME-LIST
16268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
16269for as_dir in $PATH
16270do
16271 IFS=$as_save_IFS
16272 test -z "$as_dir" && as_dir=.
a243b558 16273 for ac_prog in flex; do
47aaa820 16274 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
16275 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16276 as_fn_executable_p "$ac_path_FLEX" || continue
16277version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16278 if ${version:+false} :; then :
9c60689e 16279
47aaa820 16280else
a243b558
JF
16281 as_arg_v1=$version
16282as_arg_v2=2.5.33
16283awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16284case $? in #(
16285 1) :
16286 ;; #(
16287 0) :
16288 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16289 2) :
16290 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16291 *) :
16292 ;;
16293esac
16294fi
16295
16296 $ac_path_FLEX_found && break 3
16297 done
16298 done
16299 done
16300IFS=$as_save_IFS
16301 if test -z "$ac_cv_path_FLEX"; then
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 16303$as_echo "no" >&6; }
a243b558
JF
16304 fi
16305else
16306 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
16307fi
16308
16309
a243b558 16310 if true; then :
e9c9a47c 16311
a243b558 16312 FLEX=$ac_cv_path_FLEX
e9c9a47c 16313
a243b558
JF
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16315$as_echo "$FLEX" >&6; }
9c60689e 16316
632b71ea 16317else
a243b558 16318 if true; then :
e9c9a47c 16319
a243b558 16320 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 16321
e9c9a47c 16322else
a243b558
JF
16323
16324 FLEX=:
16325
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16327$as_echo "no" >&6; }
9c60689e 16328
632b71ea 16329fi
a243b558
JF
16330fi
16331
16332
16333
16334
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16336$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16337 if test -z "$GPERF"; then
16338 ac_path_GPERF_found=false
16339 # Loop through the user's path and test for each of PROGNAME-LIST
16340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16341for as_dir in $PATH
16342do
16343 IFS=$as_save_IFS
16344 test -z "$as_dir" && as_dir=.
16345 for ac_prog in gperf; do
16346 for ac_exec_ext in '' $ac_executable_extensions; do
16347 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16348 as_fn_executable_p "$ac_path_GPERF" || continue
16349version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16350 if ${version:+false} :; then :
16351
e9c9a47c 16352else
a243b558
JF
16353 as_arg_v1=$version
16354as_arg_v2=3.0.3
16355awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16356case $? in #(
16357 1) :
16358 ;; #(
16359 0) :
16360 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16361 2) :
16362 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16363 *) :
16364 ;;
16365esac
632b71ea 16366fi
a243b558
JF
16367
16368 $ac_path_GPERF_found && break 3
16369 done
16370 done
16371 done
16372IFS=$as_save_IFS
16373 if test -z "$ac_cv_path_GPERF"; then
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16375$as_echo "no" >&6; }
16376 fi
47aaa820 16377else
a243b558
JF
16378 ac_cv_path_GPERF=$GPERF
16379fi
9c60689e
DWT
16380
16381
a243b558 16382 if true; then :
9c60689e 16383
a243b558 16384 GPERF=$ac_cv_path_GPERF
9c60689e 16385
a243b558
JF
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16387$as_echo "$GPERF" >&6; }
9c60689e 16388
47aaa820 16389else
a243b558 16390 if true; then :
9c60689e 16391
a243b558
JF
16392 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16393
16394else
16395
16396 GPERF=:
16397
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16399$as_echo "no" >&6; }
9c60689e 16400
47aaa820 16401fi
47aaa820 16402fi
a243b558
JF
16403
16404
16405
16406
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16408$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16409 if test -z "$GNUTAR"; then
16410 ac_path_GNUTAR_found=false
16411 # Loop through the user's path and test for each of PROGNAME-LIST
16412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16413for as_dir in $PATH
16414do
16415 IFS=$as_save_IFS
16416 test -z "$as_dir" && as_dir=.
16417 for ac_prog in tar gtar gnutar; do
16418 for ac_exec_ext in '' $ac_executable_extensions; do
16419 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16420 as_fn_executable_p "$ac_path_GNUTAR" || continue
16421version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16422 if ${version:+false} :; then :
16423
16424else
16425 as_arg_v1=$version
16426as_arg_v2=1.19
16427awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16428case $? in #(
16429 1) :
16430 ;; #(
16431 0) :
16432 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16433 2) :
16434 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16435 *) :
16436 ;;
16437esac
790e5246 16438fi
a243b558
JF
16439
16440 $ac_path_GNUTAR_found && break 3
16441 done
16442 done
16443 done
16444IFS=$as_save_IFS
16445 if test -z "$ac_cv_path_GNUTAR"; then
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16447$as_echo "no" >&6; }
632b71ea 16448 fi
632b71ea 16449else
a243b558 16450 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 16451fi
66170b30 16452
66170b30 16453
a243b558 16454 if true; then :
66170b30 16455
a243b558 16456 GNUTAR=$ac_cv_path_GNUTAR
66170b30 16457
a243b558
JF
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16459$as_echo "$GNUTAR" >&6; }
66170b30 16460
a243b558
JF
16461else
16462 if true; then :
66170b30 16463
a243b558 16464 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 16465
66170b30 16466else
66170b30 16467
a243b558 16468 GNUTAR=:
66170b30 16469
a243b558
JF
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16471$as_echo "no" >&6; }
66170b30 16472
a243b558
JF
16473fi
16474fi
66170b30
JF
16475
16476
9228a43a
JF
16477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16478$as_echo_n "checking bison for %code{}... " >&6; }
16479echo '%code{}%%_:' >conftest.y
16480if $BISON conftest.y -o/dev/null 2>/dev/null; then
16481
16482 for element in Bison24; do
16483 haveit=
16484 for x in $CY_FILTERS; do
16485
16486 acl_save_prefix="$prefix"
16487 prefix="$acl_final_prefix"
16488 acl_save_exec_prefix="$exec_prefix"
16489 exec_prefix="$acl_final_exec_prefix"
16490 eval x=\"$x\"
16491 exec_prefix="$acl_save_exec_prefix"
16492 prefix="$acl_save_prefix"
16493
16494 if test "X$x" = "X$element"; then
16495 haveit=yes
16496 break
16497 fi
16498 done
16499 if test -z "$haveit"; then
16500 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16501 fi
16502 done
16503
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16505$as_echo "yes" >&6; }
16506else
16507
16508 for element in Bison23; do
16509 haveit=
16510 for x in $CY_FILTERS; do
16511
16512 acl_save_prefix="$prefix"
16513 prefix="$acl_final_prefix"
16514 acl_save_exec_prefix="$exec_prefix"
16515 exec_prefix="$acl_final_exec_prefix"
16516 eval x=\"$x\"
16517 exec_prefix="$acl_save_exec_prefix"
16518 prefix="$acl_save_prefix"
16519
16520 if test "X$x" = "X$element"; then
16521 haveit=yes
16522 break
16523 fi
16524 done
16525 if test -z "$haveit"; then
16526 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16527 fi
16528 done
16529
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531$as_echo "no" >&6; }
16532fi
16533
16534rm -f conftest.y
16535
16536
66170b30
JF
16537
16538
16539
16540
16541
16542
16543
16544
16545if ${CFLAGS+:} false; then :
16546 case " $CFLAGS " in
16547 *" "*)
16548 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16549 (: CFLAGS already contains ) 2>&5
16550 ac_status=$?
16551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16552 test $ac_status = 0; }
16553 ;;
16554 *)
16555 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16556 (: CFLAGS="$CFLAGS ") 2>&5
16557 ac_status=$?
16558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16559 test $ac_status = 0; }
16560 CFLAGS="$CFLAGS "
16561 ;;
16562 esac
16563else
16564 CFLAGS=""
16565fi
16566
e9c9a47c
DWT
16567ac_ext=c
16568ac_cpp='$CPP $CPPFLAGS'
16569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16571ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 16572
66170b30
JF
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16574$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16575if ${ac_cv_cflags_warn_all+:} false; then :
16576 $as_echo_n "(cached) " >&6
16577else
16578 ac_cv_cflags_warn_all="no, unknown"
16579ac_save_CFLAGS="$CFLAGS"
16580for 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" #
16581do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583/* end confdefs.h. */
16584
16585int
16586main ()
16587{
16588
16589 ;
16590 return 0;
16591}
16592_ACEOF
16593if ac_fn_c_try_compile "$LINENO"; then :
16594 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16595fi
16596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597done
16598CFLAGS="$ac_save_CFLAGS"
16599
16600fi
16601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16602$as_echo "$ac_cv_cflags_warn_all" >&6; }
16603
16604case ".$ac_cv_cflags_warn_all" in
16605 .ok|.ok,*) ;;
16606 .|.no|.no,*) ;;
16607 *) if ${CFLAGS+:} false; then :
16608 case " $CFLAGS " in
16609 *" $ac_cv_cflags_warn_all "*)
16610 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16611 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16612 ac_status=$?
16613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16614 test $ac_status = 0; }
16615 ;;
16616 *)
16617 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16618 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16619 ac_status=$?
16620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16621 test $ac_status = 0; }
16622 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16623 ;;
16624 esac
16625else
16626 CFLAGS="$ac_cv_cflags_warn_all"
16627fi
16628 ;;
16629esac
16630
b816329d
JF
16631ac_ext=cpp
16632ac_cpp='$CXXCPP $CPPFLAGS'
16633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16636
9c60689e 16637
66170b30
JF
16638ac_ext=cpp
16639ac_cpp='$CXXCPP $CPPFLAGS'
16640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 16643
66170b30
JF
16644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16645$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16646if ${ac_cv_cxxflags_warn_all+:} false; then :
16647 $as_echo_n "(cached) " >&6
16648else
16649 ac_cv_cxxflags_warn_all="no, unknown"
16650ac_save_CXXFLAGS="$CXXFLAGS"
16651for 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" #
16652do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654/* end confdefs.h. */
1504c9b8 16655
66170b30
JF
16656int
16657main ()
16658{
1504c9b8 16659
66170b30
JF
16660 ;
16661 return 0;
16662}
16663_ACEOF
16664if ac_fn_cxx_try_compile "$LINENO"; then :
16665 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16666fi
16667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668done
16669CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 16670
66170b30
JF
16671fi
16672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16673$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16674
16675case ".$ac_cv_cxxflags_warn_all" in
16676 .ok|.ok,*) ;;
16677 .|.no|.no,*) ;;
16678 *) if ${CXXFLAGS+:} false; then :
16679 case " $CXXFLAGS " in
16680 *" $ac_cv_cxxflags_warn_all "*)
16681 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16682 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16683 ac_status=$?
16684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685 test $ac_status = 0; }
16686 ;;
16687 *)
16688 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16689 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16690 ac_status=$?
16691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16692 test $ac_status = 0; }
16693 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16694 ;;
16695 esac
16696else
16697 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16698fi
16699 ;;
16700esac
16701
16702ac_ext=cpp
16703ac_cpp='$CXXCPP $CPPFLAGS'
16704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16707
16708
babf7fe8
JF
16709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16710$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16711if ${ac_cv_cxxflags_warn_all+:} false; then :
16712 $as_echo_n "(cached) " >&6
16713else
16714 ac_cv_cxxflags_warn_all="no, unknown"
16715ac_save_CXXFLAGS="$CXXFLAGS"
16716for 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" #
16717do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719/* end confdefs.h. */
16720
16721int
16722main ()
16723{
16724
16725 ;
16726 return 0;
16727}
16728_ACEOF
16729if ac_fn_cxx_try_compile "$LINENO"; then :
16730 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16731fi
16732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733done
16734CXXFLAGS="$ac_save_CXXFLAGS"
16735
16736fi
16737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16738$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16739
16740case ".$ac_cv_cxxflags_warn_all" in
16741 .ok|.ok,*) ;;
16742 .|.no|.no,*) ;;
16743 *) if ${CXXFLAGS+:} false; then :
16744 case " $CXXFLAGS " in
16745 *" $ac_cv_cxxflags_warn_all "*)
16746 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16747 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16748 ac_status=$?
16749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16750 test $ac_status = 0; }
16751 ;;
16752 *)
16753 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16754 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16755 ac_status=$?
16756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16757 test $ac_status = 0; }
16758 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16759 ;;
16760 esac
16761else
16762 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16763fi
16764 ;;
16765esac
16766
66170b30
JF
16767
16768
66170b30 16769
66170b30 16770
c10a2228
JF
16771 ac_ext=c
16772ac_cpp='$CPP $CPPFLAGS'
16773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16775ac_compiler_gnu=$ac_cv_c_compiler_gnu
16776
babf7fe8
JF
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
16778$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
16779
16780 cy_save=$CFLAGS
16781
babf7fe8 16782 for element in -Werror; do
c10a2228
JF
16783 haveit=
16784 for x in $CFLAGS; do
16785
16786 acl_save_prefix="$prefix"
16787 prefix="$acl_final_prefix"
16788 acl_save_exec_prefix="$exec_prefix"
16789 exec_prefix="$acl_final_exec_prefix"
16790 eval x=\"$x\"
16791 exec_prefix="$acl_save_exec_prefix"
16792 prefix="$acl_save_prefix"
16793
16794 if test "X$x" = "X$element"; then
16795 haveit=yes
16796 break
16797 fi
16798 done
16799 if test -z "$haveit"; then
16800 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16801 fi
16802 done
16803
16804
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806/* end confdefs.h. */
16807
16808_ACEOF
16809if ac_fn_c_try_compile "$LINENO"; then :
16810 cy_good=1
16811else
16812 cy_good=0
16813fi
16814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16815
16816 CFLAGS=$cy_save
16817 if test "x$cy_good" = x1; then :
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16819$as_echo "yes" >&6; }
16820
babf7fe8 16821 for element in -Werror; do
c10a2228
JF
16822 haveit=
16823 for x in $CFLAGS; do
16824
16825 acl_save_prefix="$prefix"
16826 prefix="$acl_final_prefix"
16827 acl_save_exec_prefix="$exec_prefix"
16828 exec_prefix="$acl_final_exec_prefix"
16829 eval x=\"$x\"
16830 exec_prefix="$acl_save_exec_prefix"
16831 prefix="$acl_save_prefix"
16832
16833 if test "X$x" = "X$element"; then
16834 haveit=yes
16835 break
16836 fi
16837 done
16838 if test -z "$haveit"; then
16839 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16840 fi
16841 done
16842
16843
16844else
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16846$as_echo "no" >&6; }
16847fi
16848
16849 ac_ext=cpp
16850ac_cpp='$CXXCPP $CPPFLAGS'
16851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16854
16855
16856
16857 ac_ext=cpp
16858ac_cpp='$CXXCPP $CPPFLAGS'
16859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16862
babf7fe8
JF
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
16864$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
16865
16866 cy_save=$CXXFLAGS
16867
babf7fe8 16868 for element in -Werror; do
c10a2228
JF
16869 haveit=
16870 for x in $CXXFLAGS; do
16871
16872 acl_save_prefix="$prefix"
16873 prefix="$acl_final_prefix"
16874 acl_save_exec_prefix="$exec_prefix"
16875 exec_prefix="$acl_final_exec_prefix"
16876 eval x=\"$x\"
16877 exec_prefix="$acl_save_exec_prefix"
16878 prefix="$acl_save_prefix"
16879
16880 if test "X$x" = "X$element"; then
16881 haveit=yes
16882 break
16883 fi
16884 done
16885 if test -z "$haveit"; then
16886 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16887 fi
16888 done
16889
16890
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892/* end confdefs.h. */
16893
16894_ACEOF
16895if ac_fn_cxx_try_compile "$LINENO"; then :
16896 cy_good=1
16897else
16898 cy_good=0
16899fi
16900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901
16902 CXXFLAGS=$cy_save
16903 if test "x$cy_good" = x1; then :
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16905$as_echo "yes" >&6; }
16906
babf7fe8 16907 for element in -Werror; do
c10a2228
JF
16908 haveit=
16909 for x in $CXXFLAGS; do
16910
16911 acl_save_prefix="$prefix"
16912 prefix="$acl_final_prefix"
16913 acl_save_exec_prefix="$exec_prefix"
16914 exec_prefix="$acl_final_exec_prefix"
16915 eval x=\"$x\"
16916 exec_prefix="$acl_save_exec_prefix"
16917 prefix="$acl_save_prefix"
16918
16919 if test "X$x" = "X$element"; then
16920 haveit=yes
16921 break
16922 fi
16923 done
16924 if test -z "$haveit"; then
16925 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16926 fi
16927 done
16928
16929
16930else
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16932$as_echo "no" >&6; }
16933fi
16934
16935 ac_ext=cpp
16936ac_cpp='$CXXCPP $CPPFLAGS'
16937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16940
16941
16942
16943 ac_ext=mm
16944ac_cpp='$OBJCXXCPP $CPPFLAGS'
16945ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16948
babf7fe8
JF
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
16950$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
16951
16952 cy_save=$OBJCXXFLAGS
16953
babf7fe8 16954 for element in -Werror; do
c10a2228
JF
16955 haveit=
16956 for x in $OBJCXXFLAGS; do
16957
16958 acl_save_prefix="$prefix"
16959 prefix="$acl_final_prefix"
16960 acl_save_exec_prefix="$exec_prefix"
16961 exec_prefix="$acl_final_exec_prefix"
16962 eval x=\"$x\"
16963 exec_prefix="$acl_save_exec_prefix"
16964 prefix="$acl_save_prefix"
16965
16966 if test "X$x" = "X$element"; then
16967 haveit=yes
16968 break
16969 fi
16970 done
16971 if test -z "$haveit"; then
16972 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16973 fi
16974 done
16975
16976
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978/* end confdefs.h. */
16979
16980_ACEOF
16981if ac_fn_objcxx_try_compile "$LINENO"; then :
16982 cy_good=1
16983else
16984 cy_good=0
16985fi
16986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987
16988 OBJCXXFLAGS=$cy_save
16989 if test "x$cy_good" = x1; then :
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16991$as_echo "yes" >&6; }
16992
babf7fe8 16993 for element in -Werror; do
c10a2228
JF
16994 haveit=
16995 for x in $OBJCXXFLAGS; do
16996
16997 acl_save_prefix="$prefix"
16998 prefix="$acl_final_prefix"
16999 acl_save_exec_prefix="$exec_prefix"
17000 exec_prefix="$acl_final_exec_prefix"
17001 eval x=\"$x\"
17002 exec_prefix="$acl_save_exec_prefix"
17003 prefix="$acl_save_prefix"
17004
17005 if test "X$x" = "X$element"; then
17006 haveit=yes
17007 break
17008 fi
17009 done
17010 if test -z "$haveit"; then
17011 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17012 fi
17013 done
17014
17015
17016else
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17018$as_echo "no" >&6; }
17019fi
17020
17021 ac_ext=cpp
17022ac_cpp='$CXXCPP $CPPFLAGS'
17023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17026
17027
17028
17029
17030
17031
17032 ac_ext=c
17033ac_cpp='$CPP $CPPFLAGS'
17034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17036ac_compiler_gnu=$ac_cv_c_compiler_gnu
17037
babf7fe8
JF
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17039$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17040
17041 cy_save=$CFLAGS
17042
babf7fe8 17043 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17044 haveit=
17045 for x in $CFLAGS; do
17046
17047 acl_save_prefix="$prefix"
17048 prefix="$acl_final_prefix"
17049 acl_save_exec_prefix="$exec_prefix"
17050 exec_prefix="$acl_final_exec_prefix"
17051 eval x=\"$x\"
17052 exec_prefix="$acl_save_exec_prefix"
17053 prefix="$acl_save_prefix"
17054
17055 if test "X$x" = "X$element"; then
17056 haveit=yes
17057 break
17058 fi
17059 done
17060 if test -z "$haveit"; then
17061 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17062 fi
17063 done
17064
17065
17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067/* end confdefs.h. */
17068
17069_ACEOF
17070if ac_fn_c_try_compile "$LINENO"; then :
17071 cy_good=1
17072else
17073 cy_good=0
17074fi
17075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17076
17077 CFLAGS=$cy_save
17078 if test "x$cy_good" = x1; then :
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17080$as_echo "yes" >&6; }
17081
babf7fe8 17082 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17083 haveit=
17084 for x in $CFLAGS; do
17085
17086 acl_save_prefix="$prefix"
17087 prefix="$acl_final_prefix"
17088 acl_save_exec_prefix="$exec_prefix"
17089 exec_prefix="$acl_final_exec_prefix"
17090 eval x=\"$x\"
17091 exec_prefix="$acl_save_exec_prefix"
17092 prefix="$acl_save_prefix"
17093
17094 if test "X$x" = "X$element"; then
17095 haveit=yes
17096 break
17097 fi
17098 done
17099 if test -z "$haveit"; then
17100 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17101 fi
17102 done
17103
17104
17105else
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17107$as_echo "no" >&6; }
17108fi
17109
17110 ac_ext=cpp
17111ac_cpp='$CXXCPP $CPPFLAGS'
17112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17115
17116
17117
17118 ac_ext=cpp
17119ac_cpp='$CXXCPP $CPPFLAGS'
17120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17123
babf7fe8
JF
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17125$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17126
17127 cy_save=$CXXFLAGS
17128
babf7fe8 17129 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17130 haveit=
17131 for x in $CXXFLAGS; do
17132
17133 acl_save_prefix="$prefix"
17134 prefix="$acl_final_prefix"
17135 acl_save_exec_prefix="$exec_prefix"
17136 exec_prefix="$acl_final_exec_prefix"
17137 eval x=\"$x\"
17138 exec_prefix="$acl_save_exec_prefix"
17139 prefix="$acl_save_prefix"
17140
17141 if test "X$x" = "X$element"; then
17142 haveit=yes
17143 break
17144 fi
17145 done
17146 if test -z "$haveit"; then
17147 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17148 fi
17149 done
17150
17151
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153/* end confdefs.h. */
17154
17155_ACEOF
17156if ac_fn_cxx_try_compile "$LINENO"; then :
17157 cy_good=1
17158else
17159 cy_good=0
17160fi
17161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17162
17163 CXXFLAGS=$cy_save
17164 if test "x$cy_good" = x1; then :
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17166$as_echo "yes" >&6; }
17167
babf7fe8 17168 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17169 haveit=
17170 for x in $CXXFLAGS; do
17171
17172 acl_save_prefix="$prefix"
17173 prefix="$acl_final_prefix"
17174 acl_save_exec_prefix="$exec_prefix"
17175 exec_prefix="$acl_final_exec_prefix"
17176 eval x=\"$x\"
17177 exec_prefix="$acl_save_exec_prefix"
17178 prefix="$acl_save_prefix"
17179
17180 if test "X$x" = "X$element"; then
17181 haveit=yes
17182 break
17183 fi
17184 done
17185 if test -z "$haveit"; then
17186 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17187 fi
17188 done
17189
17190
17191else
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193$as_echo "no" >&6; }
17194fi
17195
17196 ac_ext=cpp
17197ac_cpp='$CXXCPP $CPPFLAGS'
17198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17201
17202
17203
17204 ac_ext=mm
17205ac_cpp='$OBJCXXCPP $CPPFLAGS'
17206ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17207ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17208ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17209
babf7fe8
JF
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17211$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17212
17213 cy_save=$OBJCXXFLAGS
17214
babf7fe8 17215 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17216 haveit=
17217 for x in $OBJCXXFLAGS; do
17218
17219 acl_save_prefix="$prefix"
17220 prefix="$acl_final_prefix"
17221 acl_save_exec_prefix="$exec_prefix"
17222 exec_prefix="$acl_final_exec_prefix"
17223 eval x=\"$x\"
17224 exec_prefix="$acl_save_exec_prefix"
17225 prefix="$acl_save_prefix"
17226
17227 if test "X$x" = "X$element"; then
17228 haveit=yes
17229 break
17230 fi
17231 done
17232 if test -z "$haveit"; then
17233 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17234 fi
17235 done
17236
17237
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239/* end confdefs.h. */
17240
17241_ACEOF
17242if ac_fn_objcxx_try_compile "$LINENO"; then :
17243 cy_good=1
17244else
17245 cy_good=0
17246fi
17247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17248
17249 OBJCXXFLAGS=$cy_save
17250 if test "x$cy_good" = x1; then :
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252$as_echo "yes" >&6; }
17253
babf7fe8 17254 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17255 haveit=
17256 for x in $OBJCXXFLAGS; do
17257
17258 acl_save_prefix="$prefix"
17259 prefix="$acl_final_prefix"
17260 acl_save_exec_prefix="$exec_prefix"
17261 exec_prefix="$acl_final_exec_prefix"
17262 eval x=\"$x\"
17263 exec_prefix="$acl_save_exec_prefix"
17264 prefix="$acl_save_prefix"
17265
17266 if test "X$x" = "X$element"; then
17267 haveit=yes
17268 break
17269 fi
17270 done
17271 if test -z "$haveit"; then
17272 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17273 fi
17274 done
17275
17276
17277else
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279$as_echo "no" >&6; }
17280fi
17281
17282 ac_ext=cpp
17283ac_cpp='$CXXCPP $CPPFLAGS'
17284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17287
17288
17289
17290
17291
babf7fe8 17292
c10a2228
JF
17293 ac_ext=c
17294ac_cpp='$CPP $CPPFLAGS'
17295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17297ac_compiler_gnu=$ac_cv_c_compiler_gnu
17298
babf7fe8
JF
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17300$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
17301
17302 cy_save=$CFLAGS
17303
babf7fe8 17304 for element in -Wno-dangling-else; do
c10a2228
JF
17305 haveit=
17306 for x in $CFLAGS; do
17307
17308 acl_save_prefix="$prefix"
17309 prefix="$acl_final_prefix"
17310 acl_save_exec_prefix="$exec_prefix"
17311 exec_prefix="$acl_final_exec_prefix"
17312 eval x=\"$x\"
17313 exec_prefix="$acl_save_exec_prefix"
17314 prefix="$acl_save_prefix"
17315
17316 if test "X$x" = "X$element"; then
17317 haveit=yes
17318 break
17319 fi
17320 done
17321 if test -z "$haveit"; then
17322 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17323 fi
17324 done
17325
17326
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328/* end confdefs.h. */
17329
17330_ACEOF
17331if ac_fn_c_try_compile "$LINENO"; then :
17332 cy_good=1
17333else
17334 cy_good=0
17335fi
17336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337
17338 CFLAGS=$cy_save
17339 if test "x$cy_good" = x1; then :
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17341$as_echo "yes" >&6; }
17342
babf7fe8 17343 for element in -Wno-dangling-else; do
c10a2228
JF
17344 haveit=
17345 for x in $CFLAGS; do
17346
17347 acl_save_prefix="$prefix"
17348 prefix="$acl_final_prefix"
17349 acl_save_exec_prefix="$exec_prefix"
17350 exec_prefix="$acl_final_exec_prefix"
17351 eval x=\"$x\"
17352 exec_prefix="$acl_save_exec_prefix"
17353 prefix="$acl_save_prefix"
17354
17355 if test "X$x" = "X$element"; then
17356 haveit=yes
17357 break
17358 fi
17359 done
17360 if test -z "$haveit"; then
17361 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17362 fi
17363 done
17364
17365
17366else
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368$as_echo "no" >&6; }
17369fi
17370
17371 ac_ext=cpp
17372ac_cpp='$CXXCPP $CPPFLAGS'
17373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17376
17377
17378
17379 ac_ext=cpp
17380ac_cpp='$CXXCPP $CPPFLAGS'
17381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17384
babf7fe8
JF
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
17386$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
17387
17388 cy_save=$CXXFLAGS
17389
babf7fe8 17390 for element in -Wno-dangling-else; do
c10a2228
JF
17391 haveit=
17392 for x in $CXXFLAGS; do
17393
17394 acl_save_prefix="$prefix"
17395 prefix="$acl_final_prefix"
17396 acl_save_exec_prefix="$exec_prefix"
17397 exec_prefix="$acl_final_exec_prefix"
17398 eval x=\"$x\"
17399 exec_prefix="$acl_save_exec_prefix"
17400 prefix="$acl_save_prefix"
17401
17402 if test "X$x" = "X$element"; then
17403 haveit=yes
17404 break
17405 fi
17406 done
17407 if test -z "$haveit"; then
17408 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17409 fi
17410 done
17411
17412
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414/* end confdefs.h. */
17415
17416_ACEOF
17417if ac_fn_cxx_try_compile "$LINENO"; then :
17418 cy_good=1
17419else
17420 cy_good=0
17421fi
17422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423
17424 CXXFLAGS=$cy_save
17425 if test "x$cy_good" = x1; then :
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17427$as_echo "yes" >&6; }
17428
babf7fe8 17429 for element in -Wno-dangling-else; do
c10a2228
JF
17430 haveit=
17431 for x in $CXXFLAGS; do
17432
17433 acl_save_prefix="$prefix"
17434 prefix="$acl_final_prefix"
17435 acl_save_exec_prefix="$exec_prefix"
17436 exec_prefix="$acl_final_exec_prefix"
17437 eval x=\"$x\"
17438 exec_prefix="$acl_save_exec_prefix"
17439 prefix="$acl_save_prefix"
17440
17441 if test "X$x" = "X$element"; then
17442 haveit=yes
17443 break
17444 fi
17445 done
17446 if test -z "$haveit"; then
17447 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17448 fi
17449 done
17450
17451
17452else
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17454$as_echo "no" >&6; }
17455fi
17456
17457 ac_ext=cpp
17458ac_cpp='$CXXCPP $CPPFLAGS'
17459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17462
17463
17464
17465 ac_ext=mm
17466ac_cpp='$OBJCXXCPP $CPPFLAGS'
17467ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17468ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17469ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17470
babf7fe8
JF
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17472$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
17473
17474 cy_save=$OBJCXXFLAGS
17475
babf7fe8 17476 for element in -Wno-dangling-else; do
c10a2228
JF
17477 haveit=
17478 for x in $OBJCXXFLAGS; do
17479
17480 acl_save_prefix="$prefix"
17481 prefix="$acl_final_prefix"
17482 acl_save_exec_prefix="$exec_prefix"
17483 exec_prefix="$acl_final_exec_prefix"
17484 eval x=\"$x\"
17485 exec_prefix="$acl_save_exec_prefix"
17486 prefix="$acl_save_prefix"
17487
17488 if test "X$x" = "X$element"; then
17489 haveit=yes
17490 break
17491 fi
17492 done
17493 if test -z "$haveit"; then
17494 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17495 fi
17496 done
17497
17498
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500/* end confdefs.h. */
17501
17502_ACEOF
17503if ac_fn_objcxx_try_compile "$LINENO"; then :
17504 cy_good=1
17505else
17506 cy_good=0
17507fi
17508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509
17510 OBJCXXFLAGS=$cy_save
17511 if test "x$cy_good" = x1; then :
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17513$as_echo "yes" >&6; }
17514
babf7fe8 17515 for element in -Wno-dangling-else; do
c10a2228
JF
17516 haveit=
17517 for x in $OBJCXXFLAGS; do
17518
17519 acl_save_prefix="$prefix"
17520 prefix="$acl_final_prefix"
17521 acl_save_exec_prefix="$exec_prefix"
17522 exec_prefix="$acl_final_exec_prefix"
17523 eval x=\"$x\"
17524 exec_prefix="$acl_save_exec_prefix"
17525 prefix="$acl_save_prefix"
17526
17527 if test "X$x" = "X$element"; then
17528 haveit=yes
17529 break
17530 fi
17531 done
17532 if test -z "$haveit"; then
17533 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17534 fi
17535 done
17536
17537
17538else
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17540$as_echo "no" >&6; }
17541fi
17542
17543 ac_ext=cpp
17544ac_cpp='$CXXCPP $CPPFLAGS'
17545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17548
17549
17550
17551
17552
17553 ac_ext=c
17554ac_cpp='$CPP $CPPFLAGS'
17555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17557ac_compiler_gnu=$ac_cv_c_compiler_gnu
17558
babf7fe8
JF
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17560$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
17561
17562 cy_save=$CFLAGS
17563
babf7fe8 17564 for element in -Wno-overloaded-virtual; do
1504c9b8 17565 haveit=
c10a2228 17566 for x in $CFLAGS; do
1504c9b8
DWT
17567
17568 acl_save_prefix="$prefix"
17569 prefix="$acl_final_prefix"
17570 acl_save_exec_prefix="$exec_prefix"
17571 exec_prefix="$acl_final_exec_prefix"
17572 eval x=\"$x\"
17573 exec_prefix="$acl_save_exec_prefix"
17574 prefix="$acl_save_prefix"
17575
17576 if test "X$x" = "X$element"; then
17577 haveit=yes
17578 break
17579 fi
17580 done
17581 if test -z "$haveit"; then
c10a2228 17582 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
17583 fi
17584 done
17585
66170b30
JF
17586
17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
17588/* end confdefs.h. */
17589
66170b30 17590_ACEOF
c10a2228 17591if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
17592 cy_good=1
17593else
17594 cy_good=0
17595fi
17596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17597
c10a2228 17598 CFLAGS=$cy_save
66170b30
JF
17599 if test "x$cy_good" = x1; then :
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17601$as_echo "yes" >&6; }
17602
babf7fe8 17603 for element in -Wno-overloaded-virtual; do
66170b30
JF
17604 haveit=
17605 for x in $CFLAGS; do
17606
17607 acl_save_prefix="$prefix"
17608 prefix="$acl_final_prefix"
17609 acl_save_exec_prefix="$exec_prefix"
17610 exec_prefix="$acl_final_exec_prefix"
17611 eval x=\"$x\"
17612 exec_prefix="$acl_save_exec_prefix"
17613 prefix="$acl_save_prefix"
17614
17615 if test "X$x" = "X$element"; then
17616 haveit=yes
17617 break
17618 fi
17619 done
17620 if test -z "$haveit"; then
17621 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17622 fi
17623 done
17624
17625
c10a2228
JF
17626else
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628$as_echo "no" >&6; }
17629fi
17630
17631 ac_ext=cpp
17632ac_cpp='$CXXCPP $CPPFLAGS'
17633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17636
17637
17638
17639 ac_ext=cpp
17640ac_cpp='$CXXCPP $CPPFLAGS'
17641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17644
babf7fe8
JF
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17646$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
17647
17648 cy_save=$CXXFLAGS
17649
babf7fe8 17650 for element in -Wno-overloaded-virtual; do
66170b30
JF
17651 haveit=
17652 for x in $CXXFLAGS; do
17653
17654 acl_save_prefix="$prefix"
17655 prefix="$acl_final_prefix"
17656 acl_save_exec_prefix="$exec_prefix"
17657 exec_prefix="$acl_final_exec_prefix"
17658 eval x=\"$x\"
17659 exec_prefix="$acl_save_exec_prefix"
17660 prefix="$acl_save_prefix"
17661
17662 if test "X$x" = "X$element"; then
17663 haveit=yes
17664 break
17665 fi
17666 done
17667 if test -z "$haveit"; then
17668 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17669 fi
17670 done
17671
17672
c10a2228
JF
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674/* end confdefs.h. */
17675
17676_ACEOF
17677if ac_fn_cxx_try_compile "$LINENO"; then :
17678 cy_good=1
17679else
17680 cy_good=0
17681fi
17682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17683
17684 CXXFLAGS=$cy_save
17685 if test "x$cy_good" = x1; then :
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17687$as_echo "yes" >&6; }
17688
babf7fe8 17689 for element in -Wno-overloaded-virtual; do
66170b30 17690 haveit=
c10a2228 17691 for x in $CXXFLAGS; do
66170b30
JF
17692
17693 acl_save_prefix="$prefix"
17694 prefix="$acl_final_prefix"
17695 acl_save_exec_prefix="$exec_prefix"
17696 exec_prefix="$acl_final_exec_prefix"
17697 eval x=\"$x\"
17698 exec_prefix="$acl_save_exec_prefix"
17699 prefix="$acl_save_prefix"
17700
17701 if test "X$x" = "X$element"; then
17702 haveit=yes
17703 break
17704 fi
17705 done
17706 if test -z "$haveit"; then
c10a2228 17707 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
17708 fi
17709 done
17710
17711
66170b30
JF
17712else
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714$as_echo "no" >&6; }
17715fi
17716
c10a2228
JF
17717 ac_ext=cpp
17718ac_cpp='$CXXCPP $CPPFLAGS'
17719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17722
66170b30
JF
17723
17724
c10a2228
JF
17725 ac_ext=mm
17726ac_cpp='$OBJCXXCPP $CPPFLAGS'
17727ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17728ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17729ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17730
babf7fe8
JF
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17732$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 17733
c10a2228 17734 cy_save=$OBJCXXFLAGS
66170b30 17735
babf7fe8 17736 for element in -Wno-overloaded-virtual; do
66170b30 17737 haveit=
c10a2228 17738 for x in $OBJCXXFLAGS; do
66170b30
JF
17739
17740 acl_save_prefix="$prefix"
17741 prefix="$acl_final_prefix"
17742 acl_save_exec_prefix="$exec_prefix"
17743 exec_prefix="$acl_final_exec_prefix"
17744 eval x=\"$x\"
17745 exec_prefix="$acl_save_exec_prefix"
17746 prefix="$acl_save_prefix"
17747
17748 if test "X$x" = "X$element"; then
17749 haveit=yes
17750 break
17751 fi
17752 done
17753 if test -z "$haveit"; then
c10a2228 17754 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
17755 fi
17756 done
17757
17758
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760/* end confdefs.h. */
1504c9b8 17761
1504c9b8 17762_ACEOF
c10a2228 17763if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
17764 cy_good=1
17765else
17766 cy_good=0
17767fi
17768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769
c10a2228 17770 OBJCXXFLAGS=$cy_save
66170b30
JF
17771 if test "x$cy_good" = x1; then :
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17773$as_echo "yes" >&6; }
1504c9b8 17774
babf7fe8 17775 for element in -Wno-overloaded-virtual; do
1504c9b8 17776 haveit=
c10a2228 17777 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17778
17779 acl_save_prefix="$prefix"
17780 prefix="$acl_final_prefix"
17781 acl_save_exec_prefix="$exec_prefix"
17782 exec_prefix="$acl_final_exec_prefix"
17783 eval x=\"$x\"
17784 exec_prefix="$acl_save_exec_prefix"
17785 prefix="$acl_save_prefix"
17786
17787 if test "X$x" = "X$element"; then
17788 haveit=yes
17789 break
17790 fi
17791 done
17792 if test -z "$haveit"; then
c10a2228 17793 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
17794 fi
17795 done
17796
17797
c10a2228
JF
17798else
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17800$as_echo "no" >&6; }
17801fi
17802
17803 ac_ext=cpp
17804ac_cpp='$CXXCPP $CPPFLAGS'
17805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17808
17809
17810
17811
17812
17813 ac_ext=c
17814ac_cpp='$CPP $CPPFLAGS'
17815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17817ac_compiler_gnu=$ac_cv_c_compiler_gnu
17818
babf7fe8
JF
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17820$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
17821
17822 cy_save=$CFLAGS
17823
babf7fe8 17824 for element in -Wno-parentheses; do
66170b30 17825 haveit=
c10a2228 17826 for x in $CFLAGS; do
66170b30
JF
17827
17828 acl_save_prefix="$prefix"
17829 prefix="$acl_final_prefix"
17830 acl_save_exec_prefix="$exec_prefix"
17831 exec_prefix="$acl_final_exec_prefix"
17832 eval x=\"$x\"
17833 exec_prefix="$acl_save_exec_prefix"
17834 prefix="$acl_save_prefix"
17835
17836 if test "X$x" = "X$element"; then
17837 haveit=yes
17838 break
17839 fi
17840 done
17841 if test -z "$haveit"; then
c10a2228 17842 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17843 fi
17844 done
17845
17846
c10a2228
JF
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848/* end confdefs.h. */
17849
17850_ACEOF
17851if ac_fn_c_try_compile "$LINENO"; then :
17852 cy_good=1
17853else
17854 cy_good=0
17855fi
17856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17857
17858 CFLAGS=$cy_save
17859 if test "x$cy_good" = x1; then :
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17861$as_echo "yes" >&6; }
17862
babf7fe8 17863 for element in -Wno-parentheses; do
66170b30 17864 haveit=
c10a2228 17865 for x in $CFLAGS; do
66170b30
JF
17866
17867 acl_save_prefix="$prefix"
17868 prefix="$acl_final_prefix"
17869 acl_save_exec_prefix="$exec_prefix"
17870 exec_prefix="$acl_final_exec_prefix"
17871 eval x=\"$x\"
17872 exec_prefix="$acl_save_exec_prefix"
17873 prefix="$acl_save_prefix"
17874
17875 if test "X$x" = "X$element"; then
17876 haveit=yes
17877 break
17878 fi
17879 done
17880 if test -z "$haveit"; then
c10a2228 17881 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17882 fi
17883 done
17884
17885
66170b30
JF
17886else
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17888$as_echo "no" >&6; }
17889fi
17890
c10a2228
JF
17891 ac_ext=cpp
17892ac_cpp='$CXXCPP $CPPFLAGS'
17893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17896
66170b30
JF
17897
17898
c10a2228
JF
17899 ac_ext=cpp
17900ac_cpp='$CXXCPP $CPPFLAGS'
17901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17904
babf7fe8
JF
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
17906$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
17907
17908 cy_save=$CXXFLAGS
17909
babf7fe8 17910 for element in -Wno-parentheses; do
66170b30
JF
17911 haveit=
17912 for x in $CXXFLAGS; do
17913
17914 acl_save_prefix="$prefix"
17915 prefix="$acl_final_prefix"
17916 acl_save_exec_prefix="$exec_prefix"
17917 exec_prefix="$acl_final_exec_prefix"
17918 eval x=\"$x\"
17919 exec_prefix="$acl_save_exec_prefix"
17920 prefix="$acl_save_prefix"
17921
17922 if test "X$x" = "X$element"; then
17923 haveit=yes
17924 break
17925 fi
17926 done
17927 if test -z "$haveit"; then
17928 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17929 fi
17930 done
17931
17932
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934/* end confdefs.h. */
17935
17936_ACEOF
17937if ac_fn_cxx_try_compile "$LINENO"; then :
17938 cy_good=1
17939else
17940 cy_good=0
17941fi
17942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943
17944 CXXFLAGS=$cy_save
17945 if test "x$cy_good" = x1; then :
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17947$as_echo "yes" >&6; }
17948
babf7fe8 17949 for element in -Wno-parentheses; do
1504c9b8 17950 haveit=
c10a2228 17951 for x in $CXXFLAGS; do
1504c9b8
DWT
17952
17953 acl_save_prefix="$prefix"
17954 prefix="$acl_final_prefix"
17955 acl_save_exec_prefix="$exec_prefix"
17956 exec_prefix="$acl_final_exec_prefix"
17957 eval x=\"$x\"
17958 exec_prefix="$acl_save_exec_prefix"
17959 prefix="$acl_save_prefix"
17960
17961 if test "X$x" = "X$element"; then
17962 haveit=yes
17963 break
17964 fi
17965 done
17966 if test -z "$haveit"; then
c10a2228 17967 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
17968 fi
17969 done
17970
17971
c10a2228
JF
17972else
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17974$as_echo "no" >&6; }
17975fi
17976
17977 ac_ext=cpp
17978ac_cpp='$CXXCPP $CPPFLAGS'
17979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17982
17983
17984
17985 ac_ext=mm
17986ac_cpp='$OBJCXXCPP $CPPFLAGS'
17987ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17988ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17989ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17990
babf7fe8
JF
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
17992$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
17993
17994 cy_save=$OBJCXXFLAGS
17995
babf7fe8 17996 for element in -Wno-parentheses; do
1504c9b8 17997 haveit=
c10a2228 17998 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17999
18000 acl_save_prefix="$prefix"
18001 prefix="$acl_final_prefix"
18002 acl_save_exec_prefix="$exec_prefix"
18003 exec_prefix="$acl_final_exec_prefix"
18004 eval x=\"$x\"
18005 exec_prefix="$acl_save_exec_prefix"
18006 prefix="$acl_save_prefix"
18007
18008 if test "X$x" = "X$element"; then
18009 haveit=yes
18010 break
18011 fi
18012 done
18013 if test -z "$haveit"; then
c10a2228 18014 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18015 fi
18016 done
18017
18018
c10a2228
JF
18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020/* end confdefs.h. */
18021
18022_ACEOF
18023if ac_fn_objcxx_try_compile "$LINENO"; then :
18024 cy_good=1
18025else
18026 cy_good=0
18027fi
18028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18029
18030 OBJCXXFLAGS=$cy_save
18031 if test "x$cy_good" = x1; then :
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18033$as_echo "yes" >&6; }
18034
babf7fe8 18035 for element in -Wno-parentheses; do
1504c9b8 18036 haveit=
c10a2228 18037 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18038
18039 acl_save_prefix="$prefix"
18040 prefix="$acl_final_prefix"
18041 acl_save_exec_prefix="$exec_prefix"
18042 exec_prefix="$acl_final_exec_prefix"
18043 eval x=\"$x\"
18044 exec_prefix="$acl_save_exec_prefix"
18045 prefix="$acl_save_prefix"
18046
18047 if test "X$x" = "X$element"; then
18048 haveit=yes
18049 break
18050 fi
18051 done
18052 if test -z "$haveit"; then
c10a2228 18053 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18054 fi
18055 done
18056
18057
66170b30
JF
18058else
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18060$as_echo "no" >&6; }
1504c9b8 18061fi
1504c9b8 18062
c10a2228
JF
18063 ac_ext=cpp
18064ac_cpp='$CXXCPP $CPPFLAGS'
18065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18068
18069
1504c9b8 18070
1504c9b8 18071
1504c9b8 18072
babf7fe8
JF
18073 ac_ext=c
18074ac_cpp='$CPP $CPPFLAGS'
18075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18077ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 18078
babf7fe8
JF
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18080$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18081
18082 cy_save=$CFLAGS
18083
18084 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18085 haveit=
babf7fe8 18086 for x in $CFLAGS; do
1504c9b8
DWT
18087
18088 acl_save_prefix="$prefix"
18089 prefix="$acl_final_prefix"
18090 acl_save_exec_prefix="$exec_prefix"
18091 exec_prefix="$acl_final_exec_prefix"
18092 eval x=\"$x\"
18093 exec_prefix="$acl_save_exec_prefix"
18094 prefix="$acl_save_prefix"
18095
18096 if test "X$x" = "X$element"; then
18097 haveit=yes
18098 break
18099 fi
18100 done
18101 if test -z "$haveit"; then
babf7fe8 18102 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18103 fi
18104 done
18105
66170b30
JF
18106
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18108/* end confdefs.h. */
18109
a243b558 18110_ACEOF
babf7fe8 18111if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
18112 cy_good=1
18113else
18114 cy_good=0
18115fi
babf7fe8 18116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 18117
babf7fe8 18118 CFLAGS=$cy_save
a243b558
JF
18119 if test "x$cy_good" = x1; then :
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18121$as_echo "yes" >&6; }
66170b30 18122
babf7fe8 18123 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18124 haveit=
babf7fe8 18125 for x in $CFLAGS; do
1504c9b8
DWT
18126
18127 acl_save_prefix="$prefix"
18128 prefix="$acl_final_prefix"
18129 acl_save_exec_prefix="$exec_prefix"
18130 exec_prefix="$acl_final_exec_prefix"
18131 eval x=\"$x\"
18132 exec_prefix="$acl_save_exec_prefix"
18133 prefix="$acl_save_prefix"
18134
18135 if test "X$x" = "X$element"; then
18136 haveit=yes
18137 break
18138 fi
18139 done
18140 if test -z "$haveit"; then
babf7fe8 18141 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18142 fi
18143 done
18144
18145
18146else
66170b30
JF
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18148$as_echo "no" >&6; }
1504c9b8
DWT
18149fi
18150
babf7fe8
JF
18151 ac_ext=cpp
18152ac_cpp='$CXXCPP $CPPFLAGS'
18153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 18156
9c60689e 18157
632b71ea 18158
babf7fe8
JF
18159 ac_ext=cpp
18160ac_cpp='$CXXCPP $CPPFLAGS'
18161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 18164
babf7fe8
JF
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18166$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 18167
babf7fe8 18168 cy_save=$CXXFLAGS
9c60689e 18169
babf7fe8
JF
18170 for element in -Wno-unneeded-internal-declaration; do
18171 haveit=
18172 for x in $CXXFLAGS; do
9c60689e 18173
babf7fe8
JF
18174 acl_save_prefix="$prefix"
18175 prefix="$acl_final_prefix"
18176 acl_save_exec_prefix="$exec_prefix"
18177 exec_prefix="$acl_final_exec_prefix"
18178 eval x=\"$x\"
18179 exec_prefix="$acl_save_exec_prefix"
18180 prefix="$acl_save_prefix"
66170b30 18181
babf7fe8
JF
18182 if test "X$x" = "X$element"; then
18183 haveit=yes
18184 break
18185 fi
18186 done
18187 if test -z "$haveit"; then
18188 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18189 fi
18190 done
7eda51e0 18191
7eda51e0 18192
babf7fe8
JF
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194/* end confdefs.h. */
7eda51e0 18195
7eda51e0 18196_ACEOF
babf7fe8
JF
18197if ac_fn_cxx_try_compile "$LINENO"; then :
18198 cy_good=1
9c60689e 18199else
babf7fe8 18200 cy_good=0
9c60689e 18201fi
babf7fe8 18202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 18203
babf7fe8
JF
18204 CXXFLAGS=$cy_save
18205 if test "x$cy_good" = x1; then :
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18207$as_echo "yes" >&6; }
7eda51e0 18208
babf7fe8 18209 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18210 haveit=
babf7fe8 18211 for x in $CXXFLAGS; do
9c60689e 18212
7eda51e0
JF
18213 acl_save_prefix="$prefix"
18214 prefix="$acl_final_prefix"
18215 acl_save_exec_prefix="$exec_prefix"
18216 exec_prefix="$acl_final_exec_prefix"
18217 eval x=\"$x\"
18218 exec_prefix="$acl_save_exec_prefix"
18219 prefix="$acl_save_prefix"
9c60689e 18220
7eda51e0
JF
18221 if test "X$x" = "X$element"; then
18222 haveit=yes
18223 break
18224 fi
18225 done
18226 if test -z "$haveit"; then
babf7fe8 18227 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
18228 fi
18229 done
9c60689e 18230
9c60689e 18231
5053a6d1 18232else
babf7fe8
JF
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18234$as_echo "no" >&6; }
632b71ea
DWT
18235fi
18236
babf7fe8
JF
18237 ac_ext=cpp
18238ac_cpp='$CXXCPP $CPPFLAGS'
18239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
18242
18243
5053a6d1 18244
babf7fe8
JF
18245 ac_ext=mm
18246ac_cpp='$OBJCXXCPP $CPPFLAGS'
18247ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18248ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18249ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 18250
babf7fe8
JF
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18252$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 18253
babf7fe8 18254 cy_save=$OBJCXXFLAGS
632b71ea 18255
babf7fe8 18256 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 18257 haveit=
babf7fe8 18258 for x in $OBJCXXFLAGS; do
632b71ea
DWT
18259
18260 acl_save_prefix="$prefix"
18261 prefix="$acl_final_prefix"
18262 acl_save_exec_prefix="$exec_prefix"
18263 exec_prefix="$acl_final_exec_prefix"
5053a6d1 18264 eval x=\"$x\"
632b71ea
DWT
18265 exec_prefix="$acl_save_exec_prefix"
18266 prefix="$acl_save_prefix"
18267
5053a6d1
DWT
18268 if test "X$x" = "X$element"; then
18269 haveit=yes
18270 break
18271 fi
18272 done
18273 if test -z "$haveit"; then
babf7fe8 18274 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
18275 fi
18276 done
18277
66170b30 18278
babf7fe8
JF
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280/* end confdefs.h. */
18281
18282_ACEOF
18283if ac_fn_objcxx_try_compile "$LINENO"; then :
18284 cy_good=1
18285else
18286 cy_good=0
18287fi
18288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18289
18290 OBJCXXFLAGS=$cy_save
18291 if test "x$cy_good" = x1; then :
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18293$as_echo "yes" >&6; }
18294
18295 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18296 haveit=
babf7fe8 18297 for x in $OBJCXXFLAGS; do
7eda51e0
JF
18298
18299 acl_save_prefix="$prefix"
18300 prefix="$acl_final_prefix"
18301 acl_save_exec_prefix="$exec_prefix"
18302 exec_prefix="$acl_final_exec_prefix"
18303 eval x=\"$x\"
18304 exec_prefix="$acl_save_exec_prefix"
18305 prefix="$acl_save_prefix"
18306
18307 if test "X$x" = "X$element"; then
18308 haveit=yes
18309 break
18310 fi
18311 done
18312 if test -z "$haveit"; then
babf7fe8 18313 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
18314 fi
18315 done
66170b30
JF
18316
18317
babf7fe8
JF
18318else
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18320$as_echo "no" >&6; }
5053a6d1 18321fi
7eda51e0 18322
babf7fe8
JF
18323 ac_ext=cpp
18324ac_cpp='$CXXCPP $CPPFLAGS'
18325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 18328
5053a6d1
DWT
18329
18330
5053a6d1 18331
babf7fe8
JF
18332
18333
3615a2f7 18334for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
abc804fa
JF
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
18336$as_echo_n "checking for -arch $cy_arch... " >&6; }
18337
18338 cy_save=$CXXFLAGS
18339
18340 for element in "-arch $cy_arch"; do
18341 haveit=
18342 for x in $CXXFLAGS; do
18343
18344 acl_save_prefix="$prefix"
18345 prefix="$acl_final_prefix"
18346 acl_save_exec_prefix="$exec_prefix"
18347 exec_prefix="$acl_final_exec_prefix"
18348 eval x=\"$x\"
18349 exec_prefix="$acl_save_exec_prefix"
18350 prefix="$acl_save_prefix"
18351
18352 if test "X$x" = "X$element"; then
18353 haveit=yes
18354 break
18355 fi
18356 done
18357 if test -z "$haveit"; then
18358 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18359 fi
18360 done
18361
18362
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364/* end confdefs.h. */
18365
18366int
18367main ()
18368{
18369
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374if ac_fn_cxx_try_link "$LINENO"; then :
18375 cy_good=1
18376else
18377 cy_good=0
18378fi
18379rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381
18382 CXXFLAGS=$cy_save
18383 if test "x$cy_good" = x1; then :
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18385$as_echo "yes" >&6; }
18386
18387 for element in "-arch $cy_arch"; do
18388 haveit=
18389 for x in $CY_ARCH; do
18390
18391 acl_save_prefix="$prefix"
18392 prefix="$acl_final_prefix"
18393 acl_save_exec_prefix="$exec_prefix"
18394 exec_prefix="$acl_final_exec_prefix"
18395 eval x=\"$x\"
18396 exec_prefix="$acl_save_exec_prefix"
18397 prefix="$acl_save_prefix"
18398
18399 if test "X$x" = "X$element"; then
18400 haveit=yes
18401 break
18402 fi
18403 done
18404 if test -z "$haveit"; then
18405 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
18406 fi
18407 done
18408
18409
18410else
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18412$as_echo "no" >&6; }
18413fi
18414
18415done
18416
18417
babf7fe8
JF
18418
18419
18420
18421
18422# Check whether --enable-javascript was given.
18423if test "${enable_javascript+set}" = set; then :
18424 enableval=$enable_javascript;
18425 case $enableval in #(
18426 yes) :
18427
18428
18429
18430
18431 cy_save=$LIBS
18432 LIBS=
9918a0fa
JF
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
18434$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
18435if ${ac_cv_search_JSEvaluateScript+:} false; then :
18436 $as_echo_n "(cached) " >&6
18437else
18438 ac_func_search_save_LIBS=$LIBS
18439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440/* end confdefs.h. */
18441
18442/* Override any GCC internal prototype to avoid an error.
18443 Use char because int might match the return type of a GCC
18444 builtin and then its argument prototype would still apply. */
18445#ifdef __cplusplus
18446extern "C"
18447#endif
18448char JSEvaluateScript ();
18449int
18450main ()
18451{
18452return JSEvaluateScript ();
18453 ;
18454 return 0;
18455}
18456_ACEOF
18457for ac_lib in '' JavaScriptCore; do
18458 if test -z "$ac_lib"; then
18459 ac_res="none required"
18460 else
18461 ac_res=-l$ac_lib
18462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18463 fi
18464 if ac_fn_cxx_try_link "$LINENO"; then :
18465 ac_cv_search_JSEvaluateScript=$ac_res
18466fi
18467rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext
18469 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18470 break
18471fi
18472done
18473if ${ac_cv_search_JSEvaluateScript+:} false; then :
18474
18475else
18476 ac_cv_search_JSEvaluateScript=no
18477fi
18478rm conftest.$ac_ext
18479LIBS=$ac_func_search_save_LIBS
18480fi
18481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
18482$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
18483ac_res=$ac_cv_search_JSEvaluateScript
18484if test "$ac_res" != no; then :
18485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18486
18487 CY_EXECUTE=1
18488
18489
18490else
babf7fe8
JF
18491
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18493$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18494if ${ac_cv_framework_JavaScriptCore+:} false; then :
18495 $as_echo_n "(cached) " >&6
18496else
18497
18498 ac_check_framework_save_LIBS=$LIBS
18499 LIBS="-framework JavaScriptCore $LIBS"
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501/* end confdefs.h. */
18502
18503 #include <JavaScriptCore/JSBase.h>
18504
18505int
18506main ()
18507{
18508
18509 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18510
18511 ;
18512 return 0;
18513}
18514_ACEOF
18515if ac_fn_cxx_try_link "$LINENO"; then :
18516
18517 ac_cv_framework_JavaScriptCore=yes
18518
18519else
18520 ac_cv_framework_JavaScriptCore=no
18521fi
18522rm -f core conftest.err conftest.$ac_objext \
18523 conftest$ac_exeext conftest.$ac_ext
18524 LIBS=$ac_check_framework_save_LIBS
18525
18526fi
18527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18528$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18529 if test $ac_cv_framework_JavaScriptCore = yes; then :
18530
18531
18532 for element in "-framework JavaScriptCore"; do
18533 haveit=
18534 for x in $LIBS; do
18535
18536 acl_save_prefix="$prefix"
18537 prefix="$acl_final_prefix"
18538 acl_save_exec_prefix="$exec_prefix"
18539 exec_prefix="$acl_final_exec_prefix"
18540 eval x=\"$x\"
18541 exec_prefix="$acl_save_exec_prefix"
18542 prefix="$acl_save_prefix"
18543
18544 if test "X$x" = "X$element"; then
18545 haveit=yes
18546 break
18547 fi
18548 done
18549 if test -z "$haveit"; then
18550 LIBS="${LIBS}${LIBS:+ }$element"
18551 fi
18552 done
18553
18554
18555 CY_EXECUTE=1
18556
18557
18558
18559else
18560
18561 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18562
18563pkg_failed=no
18564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 18565$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 18566
7eda51e0
JF
18567if test -n "$WEBKIT_CFLAGS"; then
18568 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18569 elif test -n "$PKG_CONFIG"; then
18570 if test -n "$PKG_CONFIG" && \
18571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18572 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18573 ac_status=$?
18574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18575 test $ac_status = 0; }; then
18576 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18577else
18578 pkg_failed=yes
18579fi
18580 else
18581 pkg_failed=untried
18582fi
18583if test -n "$WEBKIT_LIBS"; then
18584 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18585 elif test -n "$PKG_CONFIG"; then
18586 if test -n "$PKG_CONFIG" && \
18587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18588 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18589 ac_status=$?
18590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18591 test $ac_status = 0; }; then
18592 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18593else
18594 pkg_failed=yes
18595fi
18596 else
18597 pkg_failed=untried
18598fi
632b71ea 18599
7eda51e0
JF
18600
18601
18602if test $pkg_failed = yes; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18604$as_echo "no" >&6; }
18605
18606if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18607 _pkg_short_errors_supported=yes
18608else
18609 _pkg_short_errors_supported=no
18610fi
18611 if test $_pkg_short_errors_supported = yes; then
00a96142 18612 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0 18613 else
00a96142 18614 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
18615 fi
18616 # Put the nasty error message in config.log where it belongs
18617 echo "$WEBKIT_PKG_ERRORS" >&5
18618
18619 :
18620elif test $pkg_failed = untried; then
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18622$as_echo "no" >&6; }
18623 :
18624else
18625 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18626 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18628$as_echo "yes" >&6; }
18629
18630 CY_EXECUTE=1
18631
18632
7eda51e0
JF
18633 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18634 haveit=
d70419f1 18635 for x in $CPPFLAGS; do
5053a6d1 18636
7eda51e0
JF
18637 acl_save_prefix="$prefix"
18638 prefix="$acl_final_prefix"
18639 acl_save_exec_prefix="$exec_prefix"
18640 exec_prefix="$acl_final_exec_prefix"
18641 eval x=\"$x\"
18642 exec_prefix="$acl_save_exec_prefix"
18643 prefix="$acl_save_prefix"
5053a6d1 18644
7eda51e0
JF
18645 if test "X$x" = "X$element"; then
18646 haveit=yes
18647 break
18648 fi
18649 done
18650 if test -z "$haveit"; then
d70419f1 18651 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
18652 fi
18653 done
5053a6d1 18654
5053a6d1 18655
7eda51e0 18656 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 18657 haveit=
5053a6d1 18658 for x in $LIBS; do
9c60689e 18659
632b71ea
DWT
18660 acl_save_prefix="$prefix"
18661 prefix="$acl_final_prefix"
18662 acl_save_exec_prefix="$exec_prefix"
18663 exec_prefix="$acl_final_exec_prefix"
18664 eval x=\"$x\"
18665 exec_prefix="$acl_save_exec_prefix"
18666 prefix="$acl_save_prefix"
18667
18668 if test "X$x" = "X$element"; then
18669 haveit=yes
18670 break
18671 fi
18672 done
18673 if test -z "$haveit"; then
5053a6d1 18674 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
18675 fi
18676 done
b128dfee 18677
66170b30 18678
7eda51e0
JF
18679fi; if test "x$CY_EXECUTE" = x1; then break; fi
18680 done
5053a6d1
DWT
18681
18682fi
9918a0fa
JF
18683fi
18684
babf7fe8
JF
18685 LTJAVASCRIPTCORE=$LIBS
18686 LIBS=$cy_save
18687
18688
7eda51e0 18689 ;; #(
babf7fe8 18690 no) :
7eda51e0 18691
babf7fe8
JF
18692 CY_EXECUTE=0
18693 ;; #(
18694 JavaScriptCore) :
c823f118 18695
5053a6d1
DWT
18696
18697
babf7fe8
JF
18698 cy_save=$LIBS
18699 LIBS=
9918a0fa
JF
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
18701$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
18702if ${ac_cv_search_JSEvaluateScript+:} false; then :
18703 $as_echo_n "(cached) " >&6
18704else
18705 ac_func_search_save_LIBS=$LIBS
18706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707/* end confdefs.h. */
18708
18709/* Override any GCC internal prototype to avoid an error.
18710 Use char because int might match the return type of a GCC
18711 builtin and then its argument prototype would still apply. */
18712#ifdef __cplusplus
18713extern "C"
18714#endif
18715char JSEvaluateScript ();
18716int
18717main ()
18718{
18719return JSEvaluateScript ();
18720 ;
18721 return 0;
18722}
18723_ACEOF
18724for ac_lib in '' JavaScriptCore; do
18725 if test -z "$ac_lib"; then
18726 ac_res="none required"
18727 else
18728 ac_res=-l$ac_lib
18729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18730 fi
18731 if ac_fn_cxx_try_link "$LINENO"; then :
18732 ac_cv_search_JSEvaluateScript=$ac_res
18733fi
18734rm -f core conftest.err conftest.$ac_objext \
18735 conftest$ac_exeext
18736 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18737 break
18738fi
18739done
18740if ${ac_cv_search_JSEvaluateScript+:} false; then :
18741
18742else
18743 ac_cv_search_JSEvaluateScript=no
18744fi
18745rm conftest.$ac_ext
18746LIBS=$ac_func_search_save_LIBS
18747fi
18748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
18749$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
18750ac_res=$ac_cv_search_JSEvaluateScript
18751if test "$ac_res" != no; then :
18752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18753
18754 CY_EXECUTE=1
18755
18756
18757else
babf7fe8 18758
5053a6d1
DWT
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18760$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18761if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
18762 $as_echo_n "(cached) " >&6
18763else
18764
5053a6d1
DWT
18765 ac_check_framework_save_LIBS=$LIBS
18766 LIBS="-framework JavaScriptCore $LIBS"
18767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 18768/* end confdefs.h. */
5053a6d1 18769
7eda51e0 18770 #include <JavaScriptCore/JSBase.h>
5053a6d1 18771
632b71ea
DWT
18772int
18773main ()
18774{
66170b30 18775
7eda51e0 18776 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 18777
632b71ea
DWT
18778 ;
18779 return 0;
18780}
18781_ACEOF
5053a6d1
DWT
18782if ac_fn_cxx_try_link "$LINENO"; then :
18783
18784 ac_cv_framework_JavaScriptCore=yes
18785
18786else
18787 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
18788fi
18789rm -f core conftest.err conftest.$ac_objext \
18790 conftest$ac_exeext conftest.$ac_ext
5053a6d1 18791 LIBS=$ac_check_framework_save_LIBS
b128dfee 18792
c823f118 18793fi
5053a6d1
DWT
18794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18795$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18796 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
18797
18798
7eda51e0 18799 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
18800 haveit=
18801 for x in $LIBS; do
18802
18803 acl_save_prefix="$prefix"
18804 prefix="$acl_final_prefix"
18805 acl_save_exec_prefix="$exec_prefix"
18806 exec_prefix="$acl_final_exec_prefix"
18807 eval x=\"$x\"
18808 exec_prefix="$acl_save_exec_prefix"
18809 prefix="$acl_save_prefix"
18810
18811 if test "X$x" = "X$element"; then
18812 haveit=yes
18813 break
18814 fi
18815 done
18816 if test -z "$haveit"; then
18817 LIBS="${LIBS}${LIBS:+ }$element"
18818 fi
18819 done
c823f118 18820
66170b30 18821
7eda51e0
JF
18822 CY_EXECUTE=1
18823
18824
18825
18826else
18827
18828 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18829
18830pkg_failed=no
18831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18832$as_echo_n "checking for WEBKIT... " >&6; }
18833
18834if test -n "$WEBKIT_CFLAGS"; then
18835 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18836 elif test -n "$PKG_CONFIG"; then
18837 if test -n "$PKG_CONFIG" && \
18838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18839 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18840 ac_status=$?
18841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18842 test $ac_status = 0; }; then
18843 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18844else
18845 pkg_failed=yes
18846fi
18847 else
18848 pkg_failed=untried
18849fi
18850if test -n "$WEBKIT_LIBS"; then
18851 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18852 elif test -n "$PKG_CONFIG"; then
18853 if test -n "$PKG_CONFIG" && \
18854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18855 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18856 ac_status=$?
18857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18858 test $ac_status = 0; }; then
18859 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18860else
18861 pkg_failed=yes
18862fi
18863 else
18864 pkg_failed=untried
18865fi
18866
66170b30
JF
18867
18868
7eda51e0
JF
18869if test $pkg_failed = yes; then
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18871$as_echo "no" >&6; }
b128dfee 18872
7eda51e0
JF
18873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18874 _pkg_short_errors_supported=yes
18875else
18876 _pkg_short_errors_supported=no
632b71ea 18877fi
7eda51e0 18878 if test $_pkg_short_errors_supported = yes; then
00a96142 18879 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0 18880 else
00a96142 18881 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
18882 fi
18883 # Put the nasty error message in config.log where it belongs
18884 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 18885
7eda51e0
JF
18886 :
18887elif test $pkg_failed = untried; then
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18889$as_echo "no" >&6; }
18890 :
5053a6d1
DWT
18891else
18892 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18893 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18895$as_echo "yes" >&6; }
c823f118 18896
7eda51e0
JF
18897 CY_EXECUTE=1
18898
66170b30 18899
7eda51e0 18900 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 18901 haveit=
d70419f1 18902 for x in $CPPFLAGS; do
c823f118 18903
5053a6d1
DWT
18904 acl_save_prefix="$prefix"
18905 prefix="$acl_final_prefix"
18906 acl_save_exec_prefix="$exec_prefix"
18907 exec_prefix="$acl_final_exec_prefix"
18908 eval x=\"$x\"
18909 exec_prefix="$acl_save_exec_prefix"
18910 prefix="$acl_save_prefix"
c823f118 18911
5053a6d1
DWT
18912 if test "X$x" = "X$element"; then
18913 haveit=yes
18914 break
18915 fi
18916 done
18917 if test -z "$haveit"; then
d70419f1 18918 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
18919 fi
18920 done
c823f118 18921
b66977f1 18922
7eda51e0 18923 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
18924 haveit=
18925 for x in $LIBS; do
18926
18927 acl_save_prefix="$prefix"
18928 prefix="$acl_final_prefix"
18929 acl_save_exec_prefix="$exec_prefix"
18930 exec_prefix="$acl_final_exec_prefix"
18931 eval x=\"$x\"
18932 exec_prefix="$acl_save_exec_prefix"
18933 prefix="$acl_save_prefix"
18934
18935 if test "X$x" = "X$element"; then
18936 haveit=yes
18937 break
18938 fi
18939 done
18940 if test -z "$haveit"; then
18941 LIBS="${LIBS}${LIBS:+ }$element"
18942 fi
18943 done
18944
18945
7eda51e0
JF
18946fi; if test "x$CY_EXECUTE" = x1; then break; fi
18947 done
18948
5053a6d1 18949fi
9918a0fa
JF
18950fi
18951
babf7fe8
JF
18952 LTJAVASCRIPTCORE=$LIBS
18953 LIBS=$cy_save
5053a6d1 18954
b66977f1 18955
babf7fe8
JF
18956 ;; #(
18957 *) :
18958 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18959esac
b66977f1 18960
babf7fe8 18961else
b66977f1 18962
7eda51e0 18963
7eda51e0 18964
babf7fe8
JF
18965 cy_save=$LIBS
18966 LIBS=
9918a0fa
JF
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
18968$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
18969if ${ac_cv_search_JSEvaluateScript+:} false; then :
18970 $as_echo_n "(cached) " >&6
18971else
18972 ac_func_search_save_LIBS=$LIBS
18973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18974/* end confdefs.h. */
18975
18976/* Override any GCC internal prototype to avoid an error.
18977 Use char because int might match the return type of a GCC
18978 builtin and then its argument prototype would still apply. */
18979#ifdef __cplusplus
18980extern "C"
18981#endif
18982char JSEvaluateScript ();
18983int
18984main ()
18985{
18986return JSEvaluateScript ();
18987 ;
18988 return 0;
18989}
18990_ACEOF
18991for ac_lib in '' JavaScriptCore; do
18992 if test -z "$ac_lib"; then
18993 ac_res="none required"
18994 else
18995 ac_res=-l$ac_lib
18996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18997 fi
18998 if ac_fn_cxx_try_link "$LINENO"; then :
18999 ac_cv_search_JSEvaluateScript=$ac_res
19000fi
19001rm -f core conftest.err conftest.$ac_objext \
19002 conftest$ac_exeext
19003 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19004 break
19005fi
19006done
19007if ${ac_cv_search_JSEvaluateScript+:} false; then :
19008
19009else
19010 ac_cv_search_JSEvaluateScript=no
19011fi
19012rm conftest.$ac_ext
19013LIBS=$ac_func_search_save_LIBS
19014fi
19015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19016$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19017ac_res=$ac_cv_search_JSEvaluateScript
19018if test "$ac_res" != no; then :
19019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19020
19021 CY_EXECUTE=1
19022
19023
19024else
7eda51e0 19025
babf7fe8
JF
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19027$as_echo_n "checking for framework JavaScriptCore... " >&6; }
19028if ${ac_cv_framework_JavaScriptCore+:} false; then :
19029 $as_echo_n "(cached) " >&6
19030else
7eda51e0 19031
babf7fe8
JF
19032 ac_check_framework_save_LIBS=$LIBS
19033 LIBS="-framework JavaScriptCore $LIBS"
19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035/* end confdefs.h. */
7eda51e0 19036
babf7fe8 19037 #include <JavaScriptCore/JSBase.h>
7eda51e0 19038
babf7fe8
JF
19039int
19040main ()
19041{
7eda51e0 19042
babf7fe8 19043 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 19044
babf7fe8
JF
19045 ;
19046 return 0;
19047}
19048_ACEOF
19049if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 19050
babf7fe8 19051 ac_cv_framework_JavaScriptCore=yes
b66977f1 19052
b66977f1 19053else
babf7fe8
JF
19054 ac_cv_framework_JavaScriptCore=no
19055fi
19056rm -f core conftest.err conftest.$ac_objext \
19057 conftest$ac_exeext conftest.$ac_ext
19058 LIBS=$ac_check_framework_save_LIBS
7eda51e0 19059
babf7fe8
JF
19060fi
19061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19062$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19063 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 19064
7eda51e0 19065
babf7fe8
JF
19066 for element in "-framework JavaScriptCore"; do
19067 haveit=
19068 for x in $LIBS; do
19069
19070 acl_save_prefix="$prefix"
19071 prefix="$acl_final_prefix"
19072 acl_save_exec_prefix="$exec_prefix"
19073 exec_prefix="$acl_final_exec_prefix"
19074 eval x=\"$x\"
19075 exec_prefix="$acl_save_exec_prefix"
19076 prefix="$acl_save_prefix"
19077
19078 if test "X$x" = "X$element"; then
19079 haveit=yes
19080 break
19081 fi
19082 done
19083 if test -z "$haveit"; then
19084 LIBS="${LIBS}${LIBS:+ }$element"
19085 fi
19086 done
19087
19088
19089 CY_EXECUTE=1
19090
19091
19092
19093else
19094
19095 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19096
19097pkg_failed=no
19098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19099$as_echo_n "checking for WEBKIT... " >&6; }
19100
19101if test -n "$WEBKIT_CFLAGS"; then
19102 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19103 elif test -n "$PKG_CONFIG"; then
19104 if test -n "$PKG_CONFIG" && \
19105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19106 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19107 ac_status=$?
19108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19109 test $ac_status = 0; }; then
19110 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
19111else
19112 pkg_failed=yes
19113fi
19114 else
19115 pkg_failed=untried
19116fi
19117if test -n "$WEBKIT_LIBS"; then
19118 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19119 elif test -n "$PKG_CONFIG"; then
19120 if test -n "$PKG_CONFIG" && \
19121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19122 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19123 ac_status=$?
19124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19125 test $ac_status = 0; }; then
19126 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19127else
19128 pkg_failed=yes
19129fi
19130 else
19131 pkg_failed=untried
19132fi
19133
19134
19135
19136if test $pkg_failed = yes; then
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19138$as_echo "no" >&6; }
19139
19140if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19141 _pkg_short_errors_supported=yes
19142else
19143 _pkg_short_errors_supported=no
19144fi
19145 if test $_pkg_short_errors_supported = yes; then
00a96142 19146 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
babf7fe8 19147 else
00a96142 19148 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
19149 fi
19150 # Put the nasty error message in config.log where it belongs
19151 echo "$WEBKIT_PKG_ERRORS" >&5
19152
19153 :
19154elif test $pkg_failed = untried; then
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19156$as_echo "no" >&6; }
19157 :
19158else
19159 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19160 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19162$as_echo "yes" >&6; }
19163
19164 CY_EXECUTE=1
19165
19166
19167 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19168 haveit=
19169 for x in $CPPFLAGS; do
19170
19171 acl_save_prefix="$prefix"
19172 prefix="$acl_final_prefix"
19173 acl_save_exec_prefix="$exec_prefix"
19174 exec_prefix="$acl_final_exec_prefix"
19175 eval x=\"$x\"
19176 exec_prefix="$acl_save_exec_prefix"
19177 prefix="$acl_save_prefix"
19178
19179 if test "X$x" = "X$element"; then
19180 haveit=yes
19181 break
19182 fi
19183 done
19184 if test -z "$haveit"; then
19185 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19186 fi
19187 done
19188
19189
19190 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19191 haveit=
19192 for x in $LIBS; do
19193
19194 acl_save_prefix="$prefix"
19195 prefix="$acl_final_prefix"
19196 acl_save_exec_prefix="$exec_prefix"
19197 exec_prefix="$acl_final_exec_prefix"
19198 eval x=\"$x\"
19199 exec_prefix="$acl_save_exec_prefix"
19200 prefix="$acl_save_prefix"
19201
19202 if test "X$x" = "X$element"; then
19203 haveit=yes
19204 break
19205 fi
19206 done
19207 if test -z "$haveit"; then
19208 LIBS="${LIBS}${LIBS:+ }$element"
19209 fi
19210 done
19211
19212
19213fi; if test "x$CY_EXECUTE" = x1; then break; fi
19214 done
19215
19216fi
9918a0fa
JF
19217fi
19218
babf7fe8
JF
19219 LTJAVASCRIPTCORE=$LIBS
19220 LIBS=$cy_save
19221
19222
19223
19224fi
19225
19226
a93f15c0
JF
19227# Check whether --enable-console was given.
19228if test "${enable_console+set}" = set; then :
19229 enableval=$enable_console;
19230fi
19231
19232 if test "x$enable_console" != "xno"; then
19233 CY_CONSOLE_TRUE=
19234 CY_CONSOLE_FALSE='#'
19235else
19236 CY_CONSOLE_TRUE='#'
19237 CY_CONSOLE_FALSE=
19238fi
19239
19240
7eda51e0
JF
19241
19242
19243 if test "x$CY_EXECUTE" = x1; then
19244 CY_EXECUTE_TRUE=
19245 CY_EXECUTE_FALSE='#'
b66977f1 19246else
7eda51e0
JF
19247 CY_EXECUTE_TRUE='#'
19248 CY_EXECUTE_FALSE=
b66977f1
DWT
19249fi
19250
19251
19252
7eda51e0
JF
19253case $CY_EXECUTE in #(
19254 1) :
19255
19256 for ac_header in ffi.h ffi/ffi.h
19257do :
19258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19259ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19260if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19261 cat >>confdefs.h <<_ACEOF
19262#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19263_ACEOF
19264 break
b66977f1 19265fi
7eda51e0
JF
19266
19267done
19268
296ee9a6
JF
19269
19270
19271 cy_save=$LIBS
19272 LIBS=
7eda51e0 19273 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 19274
b66977f1 19275
296ee9a6
JF
19276 LIBFFI_CFLAGS
19277 C compiler flags for LIBFFI, overriding pkg-config
19278 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
19279
19280pkg_failed=no
7eda51e0
JF
19281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19282$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 19283
7eda51e0
JF
19284if test -n "$LIBFFI_CFLAGS"; then
19285 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
19286 elif test -n "$PKG_CONFIG"; then
19287 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19288 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19289 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19290 ac_status=$?
19291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19292 test $ac_status = 0; }; then
7eda51e0 19293 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
19294else
19295 pkg_failed=yes
19296fi
12833ad8
JF
19297 else
19298 pkg_failed=untried
b66977f1 19299fi
7eda51e0
JF
19300if test -n "$LIBFFI_LIBS"; then
19301 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19302 elif test -n "$PKG_CONFIG"; then
19303 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19304 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19305 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19306 ac_status=$?
19307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19308 test $ac_status = 0; }; then
7eda51e0 19309 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
19310else
19311 pkg_failed=yes
19312fi
12833ad8
JF
19313 else
19314 pkg_failed=untried
b66977f1
DWT
19315fi
19316
19317
19318
19319if test $pkg_failed = yes; then
12833ad8
JF
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321$as_echo "no" >&6; }
b66977f1
DWT
19322
19323if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19324 _pkg_short_errors_supported=yes
19325else
19326 _pkg_short_errors_supported=no
19327fi
19328 if test $_pkg_short_errors_supported = yes; then
00a96142 19329 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 19330 else
00a96142 19331 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
19332 fi
19333 # Put the nasty error message in config.log where it belongs
7eda51e0 19334 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19335
7eda51e0
JF
19336 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19337elif test $pkg_failed = untried; then
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19339$as_echo "no" >&6; }
19340 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19341else
19342 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19343 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19345$as_echo "yes" >&6; }
b66977f1
DWT
19346
19347
7eda51e0 19348 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19349 haveit=
d70419f1 19350 for x in $CPPFLAGS; do
b66977f1
DWT
19351
19352 acl_save_prefix="$prefix"
19353 prefix="$acl_final_prefix"
19354 acl_save_exec_prefix="$exec_prefix"
19355 exec_prefix="$acl_final_exec_prefix"
19356 eval x=\"$x\"
19357 exec_prefix="$acl_save_exec_prefix"
19358 prefix="$acl_save_prefix"
19359
19360 if test "X$x" = "X$element"; then
19361 haveit=yes
19362 break
19363 fi
19364 done
19365 if test -z "$haveit"; then
d70419f1 19366 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
19367 fi
19368 done
19369
19370
7eda51e0 19371 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
19372 haveit=
19373 for x in $LIBS; do
19374
19375 acl_save_prefix="$prefix"
19376 prefix="$acl_final_prefix"
19377 acl_save_exec_prefix="$exec_prefix"
19378 exec_prefix="$acl_final_exec_prefix"
19379 eval x=\"$x\"
19380 exec_prefix="$acl_save_exec_prefix"
19381 prefix="$acl_save_prefix"
19382
19383 if test "X$x" = "X$element"; then
19384 haveit=yes
19385 break
19386 fi
19387 done
19388 if test -z "$haveit"; then
19389 LIBS="${LIBS}${LIBS:+ }$element"
19390 fi
19391 done
19392
19393
19394fi
19395
7eda51e0
JF
19396else
19397
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19399$as_echo_n "checking for library containing ffi_call... " >&6; }
19400if ${ac_cv_search_ffi_call+:} false; then :
19401 $as_echo_n "(cached) " >&6
19402else
19403 ac_func_search_save_LIBS=$LIBS
19404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405/* end confdefs.h. */
19406
19407/* Override any GCC internal prototype to avoid an error.
19408 Use char because int might match the return type of a GCC
19409 builtin and then its argument prototype would still apply. */
19410#ifdef __cplusplus
19411extern "C"
19412#endif
19413char ffi_call ();
19414int
19415main ()
19416{
19417return ffi_call ();
19418 ;
19419 return 0;
19420}
19421_ACEOF
19422for ac_lib in '' ffi; do
19423 if test -z "$ac_lib"; then
19424 ac_res="none required"
19425 else
19426 ac_res=-l$ac_lib
19427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19428 fi
19429 if ac_fn_cxx_try_link "$LINENO"; then :
19430 ac_cv_search_ffi_call=$ac_res
19431fi
19432rm -f core conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext
19434 if ${ac_cv_search_ffi_call+:} false; then :
19435 break
19436fi
19437done
19438if ${ac_cv_search_ffi_call+:} false; then :
19439
19440else
19441 ac_cv_search_ffi_call=no
19442fi
19443rm conftest.$ac_ext
19444LIBS=$ac_func_search_save_LIBS
19445fi
19446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19447$as_echo "$ac_cv_search_ffi_call" >&6; }
19448ac_res=$ac_cv_search_ffi_call
19449if test "$ac_res" != no; then :
19450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19451
19452fi
19453
19454 case $ac_cv_search_ffi_call in #(
19455 no) :
b66977f1
DWT
19456
19457
19458pkg_failed=no
7eda51e0
JF
19459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19460$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 19461
7eda51e0
JF
19462if test -n "$LIBFFI_CFLAGS"; then
19463 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
19464 elif test -n "$PKG_CONFIG"; then
19465 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19467 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19468 ac_status=$?
19469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19470 test $ac_status = 0; }; then
7eda51e0 19471 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
19472else
19473 pkg_failed=yes
19474fi
12833ad8
JF
19475 else
19476 pkg_failed=untried
b66977f1 19477fi
7eda51e0
JF
19478if test -n "$LIBFFI_LIBS"; then
19479 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19480 elif test -n "$PKG_CONFIG"; then
19481 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19483 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19484 ac_status=$?
19485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19486 test $ac_status = 0; }; then
7eda51e0 19487 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
19488else
19489 pkg_failed=yes
19490fi
12833ad8
JF
19491 else
19492 pkg_failed=untried
b66977f1
DWT
19493fi
19494
19495
19496
19497if test $pkg_failed = yes; then
12833ad8
JF
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19499$as_echo "no" >&6; }
b66977f1
DWT
19500
19501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19502 _pkg_short_errors_supported=yes
19503else
19504 _pkg_short_errors_supported=no
19505fi
19506 if test $_pkg_short_errors_supported = yes; then
00a96142 19507 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 19508 else
00a96142 19509 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
19510 fi
19511 # Put the nasty error message in config.log where it belongs
7eda51e0 19512 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19513
7eda51e0
JF
19514 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19515elif test $pkg_failed = untried; then
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19517$as_echo "no" >&6; }
19518 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 19519else
7eda51e0
JF
19520 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19521 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19523$as_echo "yes" >&6; }
b66977f1 19524
b66977f1 19525
7eda51e0 19526 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19527 haveit=
d70419f1 19528 for x in $CPPFLAGS; do
7eda51e0
JF
19529
19530 acl_save_prefix="$prefix"
19531 prefix="$acl_final_prefix"
19532 acl_save_exec_prefix="$exec_prefix"
19533 exec_prefix="$acl_final_exec_prefix"
19534 eval x=\"$x\"
19535 exec_prefix="$acl_save_exec_prefix"
19536 prefix="$acl_save_prefix"
19537
19538 if test "X$x" = "X$element"; then
19539 haveit=yes
19540 break
19541 fi
19542 done
19543 if test -z "$haveit"; then
d70419f1 19544 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
19545 fi
19546 done
19547
19548
7eda51e0
JF
19549 for element in `$PKG_CONFIG --libs libffi`; do
19550 haveit=
19551 for x in $LIBS; do
19552
19553 acl_save_prefix="$prefix"
19554 prefix="$acl_final_prefix"
19555 acl_save_exec_prefix="$exec_prefix"
19556 exec_prefix="$acl_final_exec_prefix"
19557 eval x=\"$x\"
19558 exec_prefix="$acl_save_exec_prefix"
19559 prefix="$acl_save_prefix"
19560
19561 if test "X$x" = "X$element"; then
19562 haveit=yes
19563 break
19564 fi
19565 done
19566 if test -z "$haveit"; then
19567 LIBS="${LIBS}${LIBS:+ }$element"
19568 fi
19569 done
19570
19571
19572fi ;; #(
19573 *) :
19574 ;;
19575esac
19576
19577fi
296ee9a6
JF
19578 LTLIBFFI=$LIBS
19579 LIBS=$cy_save
19580
19581
7eda51e0 19582
39ed1631
JF
19583 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
19584if test "x$ac_cv_header_jni_h" = xyes; then :
19585
19586 CY_JAVA=1
19587
19588
19589 cy_save=$LIBS
19590 LIBS=
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
19592$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
19593if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
19594 $as_echo_n "(cached) " >&6
19595else
19596 ac_func_search_save_LIBS=$LIBS
19597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19598/* end confdefs.h. */
19599
19600/* Override any GCC internal prototype to avoid an error.
19601 Use char because int might match the return type of a GCC
19602 builtin and then its argument prototype would still apply. */
19603#ifdef __cplusplus
19604extern "C"
19605#endif
19606char JNI_GetCreatedJavaVMs ();
19607int
19608main ()
19609{
19610return JNI_GetCreatedJavaVMs ();
19611 ;
19612 return 0;
19613}
19614_ACEOF
19615for ac_lib in '' dvm; do
19616 if test -z "$ac_lib"; then
19617 ac_res="none required"
19618 else
19619 ac_res=-l$ac_lib
19620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19621 fi
19622 if ac_fn_cxx_try_link "$LINENO"; then :
19623 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
19624fi
19625rm -f core conftest.err conftest.$ac_objext \
19626 conftest$ac_exeext
19627 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
19628 break
19629fi
19630done
19631if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
19632
19633else
19634 ac_cv_search_JNI_GetCreatedJavaVMs=no
19635fi
19636rm conftest.$ac_ext
19637LIBS=$ac_func_search_save_LIBS
19638fi
19639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
19640$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
19641ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
19642if test "$ac_res" != no; then :
19643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19644
19645
19646fi
19647
19648 LTJAVA=$LIBS
19649 LIBS=$cy_save
19650
19651
19652
19653else
19654
19655 CY_JAVA=0
19656
19657
19658fi
19659
19660
19661
7eda51e0
JF
19662 ac_ext=mm
19663ac_cpp='$OBJCXXCPP $CPPFLAGS'
19664ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19665ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19666ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19667
19668
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19670$as_echo_n "checking if we really have Objective C++... " >&6; }
19671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672/* end confdefs.h. */
19673
19674_ACEOF
19675if ac_fn_objcxx_try_compile "$LINENO"; then :
19676
19677 CY_OBJECTIVEC=1
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19679$as_echo "yes" >&6; }
19680
19681else
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19683$as_echo "no" >&6; }
7eda51e0
JF
19684fi
19685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 19686
7eda51e0 19687 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 19688
7eda51e0 19689
babf7fe8
JF
19690 cy_save=$LIBS
19691 LIBS=
19692
7eda51e0
JF
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19694$as_echo_n "checking for framework CoreFoundation... " >&6; }
19695if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
19696 $as_echo_n "(cached) " >&6
19697else
19698
19699 ac_check_framework_save_LIBS=$LIBS
7eda51e0 19700 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
19701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19702/* end confdefs.h. */
19703
7eda51e0 19704 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
19705
19706int
19707main ()
19708{
7eda51e0 19709CFAllocatorGetDefault();
b66977f1
DWT
19710 ;
19711 return 0;
19712}
19713_ACEOF
7eda51e0 19714if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19715
7eda51e0 19716 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
19717
19718else
7eda51e0 19719 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
19720fi
19721rm -f core conftest.err conftest.$ac_objext \
19722 conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_check_framework_save_LIBS
19724
19725fi
7eda51e0
JF
19726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19727$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19728 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
19729
19730
7eda51e0 19731 for element in "-framework CoreFoundation"; do
b66977f1
DWT
19732 haveit=
19733 for x in $LIBS; do
19734
19735 acl_save_prefix="$prefix"
19736 prefix="$acl_final_prefix"
19737 acl_save_exec_prefix="$exec_prefix"
19738 exec_prefix="$acl_final_exec_prefix"
19739 eval x=\"$x\"
19740 exec_prefix="$acl_save_exec_prefix"
19741 prefix="$acl_save_prefix"
19742
19743 if test "X$x" = "X$element"; then
19744 haveit=yes
19745 break
19746 fi
19747 done
19748 if test -z "$haveit"; then
19749 LIBS="${LIBS}${LIBS:+ }$element"
19750 fi
19751 done
19752
66170b30 19753
66170b30
JF
19754
19755
b66977f1 19756
b66977f1 19757
7eda51e0
JF
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19759$as_echo_n "checking for framework Foundation... " >&6; }
19760if ${ac_cv_framework_Foundation+:} false; then :
19761 $as_echo_n "(cached) " >&6
b66977f1 19762else
b66977f1 19763
7eda51e0
JF
19764 ac_check_framework_save_LIBS=$LIBS
19765 LIBS="-framework Foundation $LIBS"
19766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19767/* end confdefs.h. */
66170b30 19768
7eda51e0 19769 #include <Foundation/NSObject.h>
b66977f1 19770
7eda51e0
JF
19771int
19772main ()
19773{
19774[[NSObject alloc] init];
19775 ;
19776 return 0;
19777}
19778_ACEOF
19779if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19780
7eda51e0 19781 ac_cv_framework_Foundation=yes
b66977f1 19782
7eda51e0
JF
19783else
19784 ac_cv_framework_Foundation=no
19785fi
19786rm -f core conftest.err conftest.$ac_objext \
19787 conftest$ac_exeext conftest.$ac_ext
19788 LIBS=$ac_check_framework_save_LIBS
19789
19790fi
19791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19792$as_echo "$ac_cv_framework_Foundation" >&6; }
19793 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
19794
19795
7eda51e0 19796 for element in "-framework Foundation"; do
b66977f1
DWT
19797 haveit=
19798 for x in $LIBS; do
19799
19800 acl_save_prefix="$prefix"
19801 prefix="$acl_final_prefix"
19802 acl_save_exec_prefix="$exec_prefix"
19803 exec_prefix="$acl_final_exec_prefix"
19804 eval x=\"$x\"
19805 exec_prefix="$acl_save_exec_prefix"
19806 prefix="$acl_save_prefix"
19807
19808 if test "X$x" = "X$element"; then
19809 haveit=yes
19810 break
19811 fi
19812 done
19813 if test -z "$haveit"; then
19814 LIBS="${LIBS}${LIBS:+ }$element"
19815 fi
19816 done
19817
7eda51e0
JF
19818 cat >>confdefs.h <<_ACEOF
19819#define HAVE_FRAMEWORK_FOUNDATION 1
19820_ACEOF
19821
b66977f1 19822
7eda51e0 19823fi
b66977f1
DWT
19824
19825
7eda51e0 19826else
b66977f1 19827
b66977f1 19828
7eda51e0
JF
19829 for ac_prog in gnustep-config
19830do
19831 # Extract the first word of "$ac_prog", so it can be a program name with args.
19832set dummy $ac_prog; ac_word=$2
19833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19834$as_echo_n "checking for $ac_word... " >&6; }
19835if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19836 $as_echo_n "(cached) " >&6
b66977f1 19837else
7eda51e0
JF
19838 if test -n "$GNUSTEP_CONFIG"; then
19839 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 19840else
7eda51e0
JF
19841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19842for as_dir in $PATH
19843do
19844 IFS=$as_save_IFS
19845 test -z "$as_dir" && as_dir=.
19846 for ac_exec_ext in '' $ac_executable_extensions; do
19847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19848 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19850 break 2
19851 fi
19852done
19853 done
19854IFS=$as_save_IFS
b66977f1 19855
b66977f1 19856fi
b66977f1 19857fi
7eda51e0
JF
19858GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19859if test -n "$GNUSTEP_CONFIG"; then
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19861$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 19862else
7eda51e0 19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19864$as_echo "no" >&6; }
b66977f1 19865fi
66170b30 19866
66170b30 19867
7eda51e0
JF
19868 test -n "$GNUSTEP_CONFIG" && break
19869done
b66977f1 19870
b66977f1 19871
7eda51e0 19872 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 19873
b66977f1
DWT
19874
19875
7eda51e0 19876 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 19877 haveit=
7eda51e0 19878 for x in $OBJCXXFLAGS; do
b66977f1
DWT
19879
19880 acl_save_prefix="$prefix"
19881 prefix="$acl_final_prefix"
19882 acl_save_exec_prefix="$exec_prefix"
19883 exec_prefix="$acl_final_exec_prefix"
19884 eval x=\"$x\"
19885 exec_prefix="$acl_save_exec_prefix"
19886 prefix="$acl_save_prefix"
19887
19888 if test "X$x" = "X$element"; then
19889 haveit=yes
19890 break
19891 fi
19892 done
babf7fe8
JF
19893 if test -z "$haveit"; then
19894 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19895 fi
19896 done
a667869d 19897
a667869d 19898
babf7fe8 19899 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 19900 haveit=
babf7fe8 19901 for x in $LIBS; do
a667869d 19902
632b71ea
DWT
19903 acl_save_prefix="$prefix"
19904 prefix="$acl_final_prefix"
19905 acl_save_exec_prefix="$exec_prefix"
19906 exec_prefix="$acl_final_exec_prefix"
19907 eval x=\"$x\"
19908 exec_prefix="$acl_save_exec_prefix"
19909 prefix="$acl_save_prefix"
19910
19911 if test "X$x" = "X$element"; then
19912 haveit=yes
19913 break
19914 fi
19915 done
19916 if test -z "$haveit"; then
babf7fe8 19917 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
19918 fi
19919 done
19920
5053a6d1 19921
babf7fe8
JF
19922else
19923 CY_OBJECTIVEC=0
19924
19925fi
19926
19927fi
19928 LTOBJECTIVEC=$LIBS
19929 LIBS=$cy_save
19930
19931
19932
19933fi
19934
19935 ac_ext=cpp
19936ac_cpp='$CXXCPP $CPPFLAGS'
19937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19940
19941 ;; #(
19942 *) :
19943 ;;
19944esac
19945
39ed1631
JF
19946 if test "x$CY_JAVA" = x1; then
19947 CY_JAVA_TRUE=
19948 CY_JAVA_FALSE='#'
19949else
19950 CY_JAVA_TRUE='#'
19951 CY_JAVA_FALSE=
19952fi
19953
babf7fe8
JF
19954 if test "x$CY_OBJECTIVEC" = x1; then
19955 CY_OBJECTIVEC_TRUE=
19956 CY_OBJECTIVEC_FALSE='#'
19957else
19958 CY_OBJECTIVEC_TRUE='#'
19959 CY_OBJECTIVEC_FALSE=
19960fi
19961
19962
19963
19964 cy_save=$LIBS
19965 LIBS=
19966
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19968$as_echo_n "checking for a readline compatible library... " >&6; }
19969if ${ax_cv_lib_readline+:} false; then :
5053a6d1 19970 $as_echo_n "(cached) " >&6
a667869d 19971else
632b71ea 19972
babf7fe8
JF
19973 ORIG_LIBS="$LIBS"
19974 for readline_lib in readline edit editline; do
19975 for termcap_lib in "" termcap curses ncurses; do
19976 if test -z "$termcap_lib"; then
19977 TRY_LIB="-l$readline_lib"
19978 else
19979 TRY_LIB="-l$readline_lib -l$termcap_lib"
19980 fi
19981 LIBS="$ORIG_LIBS $TRY_LIB"
19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 19983/* end confdefs.h. */
632b71ea 19984
babf7fe8
JF
19985/* Override any GCC internal prototype to avoid an error.
19986 Use char because int might match the return type of a GCC
19987 builtin and then its argument prototype would still apply. */
19988#ifdef __cplusplus
19989extern "C"
19990#endif
19991char readline ();
5053a6d1
DWT
19992int
19993main ()
19994{
babf7fe8 19995return readline ();
5053a6d1
DWT
19996 ;
19997 return 0;
19998}
19999_ACEOF
babf7fe8
JF
20000if ac_fn_cxx_try_link "$LINENO"; then :
20001 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
20002fi
20003rm -f core conftest.err conftest.$ac_objext \
20004 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
20005 if test -n "$ax_cv_lib_readline"; then
20006 break
20007 fi
20008 done
20009 if test -n "$ax_cv_lib_readline"; then
20010 break
20011 fi
20012 done
20013 if test -z "$ax_cv_lib_readline"; then
20014 ax_cv_lib_readline="no"
20015 fi
20016 LIBS="$ORIG_LIBS"
20017
20018fi
20019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
20020$as_echo "$ax_cv_lib_readline" >&6; }
20021
20022 if test "$ax_cv_lib_readline" != "no"; then
20023 LIBS="$LIBS $ax_cv_lib_readline"
20024
20025$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20026
20027 for ac_header in readline.h readline/readline.h
20028do :
20029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20030ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20031if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20032 cat >>confdefs.h <<_ACEOF
20033#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20034_ACEOF
20035
20036fi
20037
20038done
20039
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20041$as_echo_n "checking whether readline supports history... " >&6; }
20042if ${ax_cv_lib_readline_history+:} false; then :
20043 $as_echo_n "(cached) " >&6
20044else
20045
20046 ax_cv_lib_readline_history="no"
7eda51e0
JF
20047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20048/* end confdefs.h. */
5053a6d1 20049
babf7fe8
JF
20050/* Override any GCC internal prototype to avoid an error.
20051 Use char because int might match the return type of a GCC
20052 builtin and then its argument prototype would still apply. */
20053#ifdef __cplusplus
20054extern "C"
20055#endif
20056char add_history ();
058f1bc8
DWT
20057int
20058main ()
20059{
babf7fe8 20060return add_history ();
058f1bc8
DWT
20061 ;
20062 return 0;
20063}
20064_ACEOF
babf7fe8
JF
20065if ac_fn_cxx_try_link "$LINENO"; then :
20066 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
20067fi
20068rm -f core conftest.err conftest.$ac_objext \
20069 conftest$ac_exeext conftest.$ac_ext
a667869d 20070
a667869d 20071fi
babf7fe8
JF
20072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
20073$as_echo "$ax_cv_lib_readline_history" >&6; }
20074 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 20075
babf7fe8 20076$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 20077
babf7fe8
JF
20078 for ac_header in history.h readline/history.h
20079do :
20080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20081ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20082if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20083 cat >>confdefs.h <<_ACEOF
20084#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 20085_ACEOF
babf7fe8 20086
7eda51e0 20087fi
058f1bc8 20088
babf7fe8 20089done
058f1bc8 20090
babf7fe8 20091 fi
7eda51e0 20092 fi
058f1bc8 20093
babf7fe8
JF
20094 LTLIBREADLINE=$LIBS
20095 LIBS=$cy_save
058f1bc8 20096
058f1bc8 20097
babf7fe8
JF
20098case $ax_cv_lib_readline in #(
20099 no) :
20100 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20101 *) :
20102 ;;
20103esac
058f1bc8
DWT
20104
20105
babf7fe8
JF
20106 cy_save=$LIBS
20107 LIBS=
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20109$as_echo_n "checking for library containing cur_term... " >&6; }
20110if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
20111 $as_echo_n "(cached) " >&6
20112else
babf7fe8
JF
20113 ac_func_search_save_LIBS=$LIBS
20114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
20115/* end confdefs.h. */
20116
babf7fe8
JF
20117/* Override any GCC internal prototype to avoid an error.
20118 Use char because int might match the return type of a GCC
20119 builtin and then its argument prototype would still apply. */
7eda51e0 20120#ifdef __cplusplus
babf7fe8 20121extern "C"
7eda51e0 20122#endif
babf7fe8 20123char cur_term ();
7eda51e0
JF
20124int
20125main ()
20126{
babf7fe8 20127return cur_term ();
7eda51e0
JF
20128 ;
20129 return 0;
20130}
20131_ACEOF
a93f15c0 20132for ac_lib in '' termcap ncurses; do
babf7fe8
JF
20133 if test -z "$ac_lib"; then
20134 ac_res="none required"
20135 else
20136 ac_res=-l$ac_lib
20137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20138 fi
20139 if ac_fn_cxx_try_link "$LINENO"; then :
20140 ac_cv_search_cur_term=$ac_res
7eda51e0 20141fi
babf7fe8
JF
20142rm -f core conftest.err conftest.$ac_objext \
20143 conftest$ac_exeext
20144 if ${ac_cv_search_cur_term+:} false; then :
20145 break
7eda51e0 20146fi
babf7fe8
JF
20147done
20148if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 20149
babf7fe8
JF
20150else
20151 ac_cv_search_cur_term=no
20152fi
20153rm conftest.$ac_ext
20154LIBS=$ac_func_search_save_LIBS
20155fi
20156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20157$as_echo "$ac_cv_search_cur_term" >&6; }
20158ac_res=$ac_cv_search_cur_term
20159if test "$ac_res" != no; then :
20160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 20161
babf7fe8 20162fi
058f1bc8 20163
babf7fe8
JF
20164 LTLIBTERMCAP=$LIBS
20165 LIBS=$cy_save
058f1bc8 20166
058f1bc8 20167
66170b30
JF
20168
20169
3615a2f7
JF
20170
20171
9777bd50
JF
20172SO=$acl_shlibext
20173
e1cce270 20174
7eda51e0
JF
20175if test "x$CY_EXECUTE" = x1; then :
20176
20177 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 20178if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 20179
7eda51e0 20180 if test -n "$ac_tool_prefix"; then
a243b558 20181 for ac_prog in lipo
794e88e7
DWT
20182 do
20183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20186$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20187if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
20188 $as_echo_n "(cached) " >&6
20189else
a243b558
JF
20190 if test -n "$_LIPO"; then
20191 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
20192else
20193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20194for as_dir in $PATH
20195do
20196 IFS=$as_save_IFS
20197 test -z "$as_dir" && as_dir=.
20198 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20200 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20202 break 2
20203 fi
20204done
20205 done
20206IFS=$as_save_IFS
20207
20208fi
20209fi
a243b558
JF
20210_LIPO=$ac_cv_prog__LIPO
20211if test -n "$_LIPO"; then
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20213$as_echo "$_LIPO" >&6; }
794e88e7
DWT
20214else
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20216$as_echo "no" >&6; }
20217fi
20218
20219
a243b558 20220 test -n "$_LIPO" && break
794e88e7
DWT
20221 done
20222fi
a243b558
JF
20223if test -z "$_LIPO"; then
20224 ac_ct__LIPO=$_LIPO
20225 for ac_prog in lipo
794e88e7
DWT
20226do
20227 # Extract the first word of "$ac_prog", so it can be a program name with args.
20228set dummy $ac_prog; ac_word=$2
20229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20230$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20231if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
20232 $as_echo_n "(cached) " >&6
20233else
a243b558
JF
20234 if test -n "$ac_ct__LIPO"; then
20235 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
20236else
20237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20238for as_dir in $PATH
20239do
20240 IFS=$as_save_IFS
20241 test -z "$as_dir" && as_dir=.
20242 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20244 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
20245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20246 break 2
20247 fi
20248done
20249 done
20250IFS=$as_save_IFS
20251
20252fi
20253fi
a243b558
JF
20254ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20255if test -n "$ac_ct__LIPO"; then
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20257$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
20258else
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20260$as_echo "no" >&6; }
20261fi
20262
20263
a243b558 20264 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
20265done
20266
a243b558
JF
20267 if test "x$ac_ct__LIPO" = x; then
20268 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
20269 else
20270 case $cross_compiling:$ac_tool_warned in
20271yes:)
20272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20274ac_tool_warned=yes ;;
e1cce270 20275esac
a243b558 20276 _LIPO=$ac_ct__LIPO
794e88e7
DWT
20277 fi
20278fi
20279
7eda51e0 20280 if test -n "$ac_tool_prefix"; then
a243b558 20281 for ac_prog in nm
794e88e7
DWT
20282 do
20283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20284set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20286$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20287if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
20288 $as_echo_n "(cached) " >&6
20289else
a243b558
JF
20290 if test -n "$_NM"; then
20291 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
20292else
20293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20294for as_dir in $PATH
20295do
20296 IFS=$as_save_IFS
20297 test -z "$as_dir" && as_dir=.
20298 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20300 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20302 break 2
20303 fi
20304done
20305 done
20306IFS=$as_save_IFS
20307
20308fi
20309fi
a243b558
JF
20310_NM=$ac_cv_prog__NM
20311if test -n "$_NM"; then
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20313$as_echo "$_NM" >&6; }
794e88e7
DWT
20314else
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20316$as_echo "no" >&6; }
20317fi
20318
20319
a243b558 20320 test -n "$_NM" && break
794e88e7
DWT
20321 done
20322fi
a243b558
JF
20323if test -z "$_NM"; then
20324 ac_ct__NM=$_NM
20325 for ac_prog in nm
794e88e7
DWT
20326do
20327 # Extract the first word of "$ac_prog", so it can be a program name with args.
20328set dummy $ac_prog; ac_word=$2
20329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20330$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20331if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
20332 $as_echo_n "(cached) " >&6
20333else
a243b558
JF
20334 if test -n "$ac_ct__NM"; then
20335 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
20336else
20337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20338for as_dir in $PATH
20339do
20340 IFS=$as_save_IFS
20341 test -z "$as_dir" && as_dir=.
20342 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20344 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
20345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20346 break 2
20347 fi
20348done
20349 done
20350IFS=$as_save_IFS
20351
20352fi
20353fi
a243b558
JF
20354ac_ct__NM=$ac_cv_prog_ac_ct__NM
20355if test -n "$ac_ct__NM"; then
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20357$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
20358else
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20360$as_echo "no" >&6; }
20361fi
20362
20363
a243b558 20364 test -n "$ac_ct__NM" && break
794e88e7
DWT
20365done
20366
a243b558
JF
20367 if test "x$ac_ct__NM" = x; then
20368 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
20369 else
20370 case $cross_compiling:$ac_tool_warned in
20371yes:)
20372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20374ac_tool_warned=yes ;;
20375esac
a243b558 20376 _NM=$ac_ct__NM
794e88e7
DWT
20377 fi
20378fi
20379
7eda51e0 20380 if test -n "$ac_tool_prefix"; then
a243b558 20381 for ac_prog in otool
794e88e7
DWT
20382 do
20383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20384set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20386$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20387if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
20388 $as_echo_n "(cached) " >&6
20389else
a243b558
JF
20390 if test -n "$_OTOOL"; then
20391 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
20392else
20393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20394for as_dir in $PATH
20395do
20396 IFS=$as_save_IFS
20397 test -z "$as_dir" && as_dir=.
20398 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20400 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20402 break 2
20403 fi
20404done
20405 done
20406IFS=$as_save_IFS
20407
20408fi
20409fi
a243b558
JF
20410_OTOOL=$ac_cv_prog__OTOOL
20411if test -n "$_OTOOL"; then
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20413$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
20414else
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20416$as_echo "no" >&6; }
20417fi
20418
20419
a243b558 20420 test -n "$_OTOOL" && break
794e88e7
DWT
20421 done
20422fi
a243b558
JF
20423if test -z "$_OTOOL"; then
20424 ac_ct__OTOOL=$_OTOOL
20425 for ac_prog in otool
794e88e7
DWT
20426do
20427 # Extract the first word of "$ac_prog", so it can be a program name with args.
20428set dummy $ac_prog; ac_word=$2
20429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20430$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20431if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
20432 $as_echo_n "(cached) " >&6
20433else
a243b558
JF
20434 if test -n "$ac_ct__OTOOL"; then
20435 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
20436else
20437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20438for as_dir in $PATH
20439do
20440 IFS=$as_save_IFS
20441 test -z "$as_dir" && as_dir=.
20442 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20444 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
20445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20446 break 2
20447 fi
20448done
20449 done
20450IFS=$as_save_IFS
20451
20452fi
20453fi
a243b558
JF
20454ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20455if test -n "$ac_ct__OTOOL"; then
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20457$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
20458else
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20460$as_echo "no" >&6; }
20461fi
20462
20463
a243b558 20464 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
20465done
20466
a243b558
JF
20467 if test "x$ac_ct__OTOOL" = x; then
20468 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
20469 else
20470 case $cross_compiling:$ac_tool_warned in
20471yes:)
20472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20474ac_tool_warned=yes ;;
20475esac
a243b558 20476 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
20477 fi
20478fi
20479
7eda51e0 20480 CY_ATTACH_GROUP=procmod
794e88e7 20481
7eda51e0 20482 CY_MACH=1
e1cce270
DWT
20483
20484fi
20485
20486
7eda51e0 20487fi
a243b558
JF
20488 if test "x$CY_MACH" = x1; then
20489 CY_MACH_TRUE=
20490 CY_MACH_FALSE='#'
20491else
20492 CY_MACH_TRUE='#'
20493 CY_MACH_FALSE=
47aaa820 20494fi
9c60689e 20495
66170b30 20496
a243b558
JF
20497ac_config_files="$ac_config_files Makefile"
20498
9c60689e
DWT
20499cat >confcache <<\_ACEOF
20500# This file is a shell script that caches the results of configure
20501# tests run on this system so they can be shared between configure
20502# scripts and configure runs, see configure's option --config-cache.
20503# It is not useful on other systems. If it contains results you don't
20504# want to keep, you may remove or edit it.
20505#
20506# config.status only pays attention to the cache file if you give it
20507# the --recheck option to rerun configure.
20508#
20509# `ac_cv_env_foo' variables (set or unset) will be overridden when
20510# loading this file, other *unset* `ac_cv_foo' will be assigned the
20511# following values.
20512
20513_ACEOF
20514
20515# The following way of writing the cache mishandles newlines in values,
20516# but we know of no workaround that is simple, portable, and efficient.
20517# So, we kill variables containing newlines.
20518# Ultrix sh set writes to stderr and can't be redirected directly,
20519# and sets the high bit in the cache file unless we assign to the vars.
20520(
20521 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20522 eval ac_val=\$$ac_var
20523 case $ac_val in #(
20524 *${as_nl}*)
20525 case $ac_var in #(
20526 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20527$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20528 esac
20529 case $ac_var in #(
20530 _ | IFS | as_nl) ;; #(
20531 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20532 *) { eval $ac_var=; unset $ac_var;} ;;
20533 esac ;;
20534 esac
20535 done
20536
20537 (set) 2>&1 |
20538 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20539 *${as_nl}ac_space=\ *)
20540 # `set' does not quote correctly, so add quotes: double-quote
20541 # substitution turns \\\\ into \\, and sed turns \\ into \.
20542 sed -n \
20543 "s/'/'\\\\''/g;
20544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20545 ;; #(
20546 *)
20547 # `set' quotes correctly as required by POSIX, so do not add quotes.
20548 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20549 ;;
20550 esac |
20551 sort
20552) |
20553 sed '
20554 /^ac_cv_env_/b end
20555 t clear
20556 :clear
20557 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20558 t end
20559 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20560 :end' >>confcache
20561if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20562 if test -w "$cache_file"; then
ee134472 20563 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20565$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
20566 if test ! -f "$cache_file" || test -h "$cache_file"; then
20567 cat confcache >"$cache_file"
20568 else
20569 case $cache_file in #(
20570 */* | ?:*)
20571 mv -f confcache "$cache_file"$$ &&
20572 mv -f "$cache_file"$$ "$cache_file" ;; #(
20573 *)
20574 mv -f confcache "$cache_file" ;;
20575 esac
20576 fi
20577 fi
9c60689e
DWT
20578 else
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20580$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20581 fi
20582fi
20583rm -f confcache
20584
20585test "x$prefix" = xNONE && prefix=$ac_default_prefix
20586# Let make expand exec_prefix.
20587test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20588
296ee9a6 20589DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
20590
20591ac_libobjs=
20592ac_ltlibobjs=
12833ad8 20593U=
9c60689e
DWT
20594for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20595 # 1. Remove the extension, and $U if already installed.
20596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20597 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20599 # will be set to the directory where LIBOBJS objects are built.
20600 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20601 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20602done
20603LIBOBJS=$ac_libobjs
20604
20605LTLIBOBJS=$ac_ltlibobjs
20606
20607
66170b30
JF
20608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20609$as_echo_n "checking that generated files are newer than configure... " >&6; }
20610 if test -n "$am_sleep_pid"; then
20611 # Hide warnings about reused PIDs.
20612 wait $am_sleep_pid 2>/dev/null
20613 fi
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20615$as_echo "done" >&6; }
20616 if test -n "$EXEEXT"; then
20617 am__EXEEXT_TRUE=
20618 am__EXEEXT_FALSE='#'
20619else
20620 am__EXEEXT_TRUE='#'
20621 am__EXEEXT_FALSE=
20622fi
20623
babf7fe8
JF
20624if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20625 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20626Usually this means the macro was only invoked conditionally." "$LINENO" 5
20627fi
66170b30
JF
20628if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20629 as_fn_error $? "conditional \"AMDEP\" was never defined.
20630Usually this means the macro was only invoked conditionally." "$LINENO" 5
20631fi
a93f15c0
JF
20632if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20633 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20634Usually this means the macro was only invoked conditionally." "$LINENO" 5
20635fi
66170b30
JF
20636if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20637 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20638Usually this means the macro was only invoked conditionally." "$LINENO" 5
20639fi
20640if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20641 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20642Usually this means the macro was only invoked conditionally." "$LINENO" 5
20643fi
a93f15c0
JF
20644if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
20645 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
20646Usually this means the macro was only invoked conditionally." "$LINENO" 5
20647fi
a243b558
JF
20648if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20649 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20650Usually this means the macro was only invoked conditionally." "$LINENO" 5
20651fi
39ed1631
JF
20652if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
20653 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
20654Usually this means the macro was only invoked conditionally." "$LINENO" 5
20655fi
a243b558
JF
20656if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20657 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20658Usually this means the macro was only invoked conditionally." "$LINENO" 5
20659fi
20660if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20661 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20662Usually this means the macro was only invoked conditionally." "$LINENO" 5
20663fi
9c60689e 20664
ee134472 20665: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
20666ac_write_fail=0
20667ac_clean_files_save=$ac_clean_files
20668ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20669{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20670$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20671as_write_fail=0
20672cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20673#! $SHELL
20674# Generated by $as_me.
20675# Run this file to recreate the current configuration.
20676# Compiler output produced by configure, useful for debugging
20677# configure, is in config.log if it exists.
20678
20679debug=false
20680ac_cs_recheck=false
20681ac_cs_silent=false
20682
20683SHELL=\${CONFIG_SHELL-$SHELL}
20684export SHELL
20685_ASEOF
20686cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20687## -------------------- ##
20688## M4sh Initialization. ##
20689## -------------------- ##
20690
20691# Be more Bourne compatible
20692DUALCASE=1; export DUALCASE # for MKS sh
20693if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20694 emulate sh
20695 NULLCMD=:
20696 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20697 # is contrary to our usage. Disable this feature.
20698 alias -g '${1+"$@"}'='"$@"'
20699 setopt NO_GLOB_SUBST
20700else
20701 case `(set -o) 2>/dev/null` in #(
20702 *posix*) :
20703 set -o posix ;; #(
20704 *) :
20705 ;;
20706esac
20707fi
20708
20709
20710as_nl='
20711'
20712export as_nl
20713# Printing a long string crashes Solaris 7 /usr/bin/printf.
20714as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20715as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20716as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20717# Prefer a ksh shell builtin over an external printf program on Solaris,
20718# but without wasting forks for bash or zsh.
20719if test -z "$BASH_VERSION$ZSH_VERSION" \
20720 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20721 as_echo='print -r --'
20722 as_echo_n='print -rn --'
20723elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20724 as_echo='printf %s\n'
20725 as_echo_n='printf %s'
20726else
20727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20729 as_echo_n='/usr/ucb/echo -n'
20730 else
20731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20732 as_echo_n_body='eval
20733 arg=$1;
20734 case $arg in #(
20735 *"$as_nl"*)
20736 expr "X$arg" : "X\\(.*\\)$as_nl";
20737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20738 esac;
20739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20740 '
20741 export as_echo_n_body
20742 as_echo_n='sh -c $as_echo_n_body as_echo'
20743 fi
20744 export as_echo_body
20745 as_echo='sh -c $as_echo_body as_echo'
20746fi
20747
20748# The user is always right.
20749if test "${PATH_SEPARATOR+set}" != set; then
20750 PATH_SEPARATOR=:
20751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20753 PATH_SEPARATOR=';'
20754 }
20755fi
20756
20757
20758# IFS
20759# We need space, tab and new line, in precisely that order. Quoting is
20760# there to prevent editors from complaining about space-tab.
20761# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20762# splitting by setting IFS to empty value.)
20763IFS=" "" $as_nl"
20764
20765# Find who we are. Look in the path if we contain no directory separator.
ee134472 20766as_myself=
9c60689e
DWT
20767case $0 in #((
20768 *[\\/]* ) as_myself=$0 ;;
20769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20770for as_dir in $PATH
20771do
20772 IFS=$as_save_IFS
20773 test -z "$as_dir" && as_dir=.
20774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20775 done
20776IFS=$as_save_IFS
20777
20778 ;;
20779esac
20780# We did not find ourselves, most probably we were run as `sh COMMAND'
20781# in which case we are not to be found in the path.
20782if test "x$as_myself" = x; then
20783 as_myself=$0
20784fi
20785if test ! -f "$as_myself"; then
20786 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20787 exit 1
20788fi
20789
20790# Unset variables that we do not need and which cause bugs (e.g. in
20791# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20792# suppresses any "Segmentation fault" message there. '((' could
20793# trigger a bug in pdksh 5.2.14.
20794for as_var in BASH_ENV ENV MAIL MAILPATH
20795do eval test x\${$as_var+set} = xset \
20796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20797done
20798PS1='$ '
20799PS2='> '
20800PS4='+ '
20801
20802# NLS nuisances.
20803LC_ALL=C
20804export LC_ALL
20805LANGUAGE=C
20806export LANGUAGE
20807
20808# CDPATH.
20809(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20810
20811
12833ad8
JF
20812# as_fn_error STATUS ERROR [LINENO LOG_FD]
20813# ----------------------------------------
9c60689e
DWT
20814# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20815# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 20816# script with STATUS, using 1 if that was 0.
9c60689e
DWT
20817as_fn_error ()
20818{
12833ad8
JF
20819 as_status=$1; test $as_status -eq 0 && as_status=1
20820 if test "$4"; then
20821 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20822 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 20823 fi
12833ad8 20824 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
20825 as_fn_exit $as_status
20826} # as_fn_error
20827
20828
20829# as_fn_set_status STATUS
20830# -----------------------
20831# Set $? to STATUS, without forking.
20832as_fn_set_status ()
20833{
20834 return $1
20835} # as_fn_set_status
20836
20837# as_fn_exit STATUS
20838# -----------------
20839# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20840as_fn_exit ()
20841{
20842 set +e
20843 as_fn_set_status $1
20844 exit $1
20845} # as_fn_exit
20846
20847# as_fn_unset VAR
20848# ---------------
20849# Portably unset VAR.
20850as_fn_unset ()
20851{
20852 { eval $1=; unset $1;}
20853}
20854as_unset=as_fn_unset
20855# as_fn_append VAR VALUE
20856# ----------------------
20857# Append the text in VALUE to the end of the definition contained in VAR. Take
20858# advantage of any shell optimizations that allow amortized linear growth over
20859# repeated appends, instead of the typical quadratic growth present in naive
20860# implementations.
20861if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20862 eval 'as_fn_append ()
20863 {
20864 eval $1+=\$2
20865 }'
20866else
20867 as_fn_append ()
20868 {
20869 eval $1=\$$1\$2
20870 }
20871fi # as_fn_append
20872
20873# as_fn_arith ARG...
20874# ------------------
20875# Perform arithmetic evaluation on the ARGs, and store the result in the
20876# global $as_val. Take advantage of shells that can avoid forks. The arguments
20877# must be portable across $(()) and expr.
20878if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20879 eval 'as_fn_arith ()
20880 {
20881 as_val=$(( $* ))
20882 }'
20883else
20884 as_fn_arith ()
20885 {
20886 as_val=`expr "$@" || test $? -eq 1`
20887 }
20888fi # as_fn_arith
20889
20890
20891if expr a : '\(a\)' >/dev/null 2>&1 &&
20892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20893 as_expr=expr
20894else
20895 as_expr=false
20896fi
20897
20898if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20899 as_basename=basename
20900else
20901 as_basename=false
20902fi
20903
20904if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20905 as_dirname=dirname
20906else
20907 as_dirname=false
20908fi
20909
20910as_me=`$as_basename -- "$0" ||
20911$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20912 X"$0" : 'X\(//\)$' \| \
20913 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20914$as_echo X/"$0" |
20915 sed '/^.*\/\([^/][^/]*\)\/*$/{
20916 s//\1/
20917 q
20918 }
20919 /^X\/\(\/\/\)$/{
20920 s//\1/
20921 q
20922 }
20923 /^X\/\(\/\).*/{
20924 s//\1/
20925 q
20926 }
20927 s/.*/./; q'`
20928
20929# Avoid depending upon Character Ranges.
20930as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20931as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20932as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20933as_cr_digits='0123456789'
20934as_cr_alnum=$as_cr_Letters$as_cr_digits
20935
20936ECHO_C= ECHO_N= ECHO_T=
20937case `echo -n x` in #(((((
20938-n*)
20939 case `echo 'xy\c'` in
20940 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20941 xy) ECHO_C='\c';;
20942 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20943 ECHO_T=' ';;
20944 esac;;
20945*)
20946 ECHO_N='-n';;
20947esac
20948
20949rm -f conf$$ conf$$.exe conf$$.file
20950if test -d conf$$.dir; then
20951 rm -f conf$$.dir/conf$$.file
20952else
20953 rm -f conf$$.dir
20954 mkdir conf$$.dir 2>/dev/null
20955fi
20956if (echo >conf$$.file) 2>/dev/null; then
20957 if ln -s conf$$.file conf$$ 2>/dev/null; then
20958 as_ln_s='ln -s'
20959 # ... but there are two gotchas:
20960 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20961 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 20962 # In both cases, we have to default to `cp -pR'.
9c60689e 20963 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 20964 as_ln_s='cp -pR'
9c60689e
DWT
20965 elif ln conf$$.file conf$$ 2>/dev/null; then
20966 as_ln_s=ln
20967 else
53ba6704 20968 as_ln_s='cp -pR'
9c60689e
DWT
20969 fi
20970else
53ba6704 20971 as_ln_s='cp -pR'
9c60689e
DWT
20972fi
20973rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20974rmdir conf$$.dir 2>/dev/null
20975
20976
20977# as_fn_mkdir_p
20978# -------------
20979# Create "$as_dir" as a directory, including parents if necessary.
20980as_fn_mkdir_p ()
20981{
20982
20983 case $as_dir in #(
20984 -*) as_dir=./$as_dir;;
20985 esac
20986 test -d "$as_dir" || eval $as_mkdir_p || {
20987 as_dirs=
20988 while :; do
20989 case $as_dir in #(
20990 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20991 *) as_qdir=$as_dir;;
20992 esac
20993 as_dirs="'$as_qdir' $as_dirs"
20994 as_dir=`$as_dirname -- "$as_dir" ||
20995$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996 X"$as_dir" : 'X\(//\)[^/]' \| \
20997 X"$as_dir" : 'X\(//\)$' \| \
20998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20999$as_echo X"$as_dir" |
21000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21001 s//\1/
21002 q
21003 }
21004 /^X\(\/\/\)[^/].*/{
21005 s//\1/
21006 q
21007 }
21008 /^X\(\/\/\)$/{
21009 s//\1/
21010 q
21011 }
21012 /^X\(\/\).*/{
21013 s//\1/
21014 q
21015 }
21016 s/.*/./; q'`
21017 test -d "$as_dir" && break
21018 done
21019 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 21020 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
21021
21022
21023} # as_fn_mkdir_p
21024if mkdir -p . 2>/dev/null; then
21025 as_mkdir_p='mkdir -p "$as_dir"'
21026else
21027 test -d ./-p && rmdir ./-p
21028 as_mkdir_p=false
21029fi
21030
53ba6704
JF
21031
21032# as_fn_executable_p FILE
21033# -----------------------
21034# Test if FILE is an executable regular file.
21035as_fn_executable_p ()
21036{
21037 test -f "$1" && test -x "$1"
21038} # as_fn_executable_p
21039as_test_x='test -x'
21040as_executable_p=as_fn_executable_p
9c60689e
DWT
21041
21042# Sed expression to map a string onto a valid CPP name.
21043as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21044
21045# Sed expression to map a string onto a valid variable name.
21046as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21047
21048
21049exec 6>&1
21050## ----------------------------------- ##
21051## Main body of $CONFIG_STATUS script. ##
21052## ----------------------------------- ##
21053_ASEOF
21054test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21055
21056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21057# Save the log message, to keep $0 and so on meaningful, and to
21058# report actual input values of CONFIG_FILES etc. instead of their
21059# values after options handling.
21060ac_log="
21061This file was extended by Cycript $as_me 0.9, which was
53ba6704 21062generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
21063
21064 CONFIG_FILES = $CONFIG_FILES
21065 CONFIG_HEADERS = $CONFIG_HEADERS
21066 CONFIG_LINKS = $CONFIG_LINKS
21067 CONFIG_COMMANDS = $CONFIG_COMMANDS
21068 $ $0 $@
21069
21070on `(hostname || uname -n) 2>/dev/null | sed 1q`
21071"
21072
21073_ACEOF
21074
21075case $ac_config_files in *"
21076"*) set x $ac_config_files; shift; ac_config_files=$*;;
21077esac
21078
296ee9a6
JF
21079case $ac_config_headers in *"
21080"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21081esac
9c60689e
DWT
21082
21083
21084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21085# Files that config.status was made for.
21086config_files="$ac_config_files"
296ee9a6 21087config_headers="$ac_config_headers"
9c60689e
DWT
21088config_commands="$ac_config_commands"
21089
21090_ACEOF
21091
21092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21093ac_cs_usage="\
21094\`$as_me' instantiates files and other configuration actions
21095from templates according to the current configuration. Unless the files
21096and actions are specified as TAGs, all are instantiated by default.
21097
21098Usage: $0 [OPTION]... [TAG]...
21099
21100 -h, --help print this help, then exit
21101 -V, --version print version number and configuration settings, then exit
21102 --config print configuration, then exit
21103 -q, --quiet, --silent
21104 do not print progress messages
21105 -d, --debug don't remove temporary files
21106 --recheck update $as_me by reconfiguring in the same conditions
21107 --file=FILE[:TEMPLATE]
21108 instantiate the configuration file FILE
296ee9a6
JF
21109 --header=FILE[:TEMPLATE]
21110 instantiate the configuration header FILE
9c60689e
DWT
21111
21112Configuration files:
21113$config_files
21114
296ee9a6
JF
21115Configuration headers:
21116$config_headers
21117
9c60689e
DWT
21118Configuration commands:
21119$config_commands
21120
21121Report bugs to <saurik@saurik.com>.
21122Cycript home page: <http://www.cycript.org/>."
21123
21124_ACEOF
21125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21126ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21127ac_cs_version="\\
21128Cycript config.status 0.9
53ba6704 21129configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
21130 with options \\"\$ac_cs_config\\"
21131
53ba6704 21132Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
21133This config.status script is free software; the Free Software Foundation
21134gives unlimited permission to copy, distribute and modify it."
21135
21136ac_pwd='$ac_pwd'
21137srcdir='$srcdir'
21138INSTALL='$INSTALL'
66170b30
JF
21139MKDIR_P='$MKDIR_P'
21140AWK='$AWK'
9c60689e
DWT
21141test -n "\$AWK" || AWK=awk
21142_ACEOF
21143
21144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21145# The default lists apply if the user does not specify any file.
21146ac_need_defaults=:
21147while test $# != 0
21148do
21149 case $1 in
12833ad8 21150 --*=?*)
9c60689e
DWT
21151 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21152 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21153 ac_shift=:
21154 ;;
12833ad8
JF
21155 --*=)
21156 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21157 ac_optarg=
21158 ac_shift=:
21159 ;;
9c60689e
DWT
21160 *)
21161 ac_option=$1
21162 ac_optarg=$2
21163 ac_shift=shift
21164 ;;
21165 esac
21166
21167 case $ac_option in
21168 # Handling of the options.
21169 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21170 ac_cs_recheck=: ;;
21171 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21172 $as_echo "$ac_cs_version"; exit ;;
21173 --config | --confi | --conf | --con | --co | --c )
21174 $as_echo "$ac_cs_config"; exit ;;
21175 --debug | --debu | --deb | --de | --d | -d )
21176 debug=: ;;
21177 --file | --fil | --fi | --f )
21178 $ac_shift
21179 case $ac_optarg in
21180 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 21181 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
21182 esac
21183 as_fn_append CONFIG_FILES " '$ac_optarg'"
21184 ac_need_defaults=false;;
296ee9a6
JF
21185 --header | --heade | --head | --hea )
21186 $ac_shift
21187 case $ac_optarg in
21188 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21189 esac
21190 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21191 ac_need_defaults=false;;
21192 --he | --h)
21193 # Conflict between --help and --header
21194 as_fn_error $? "ambiguous option: \`$1'
21195Try \`$0 --help' for more information.";;
21196 --help | --hel | -h )
9c60689e
DWT
21197 $as_echo "$ac_cs_usage"; exit ;;
21198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21199 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21200 ac_cs_silent=: ;;
21201
21202 # This is an error.
12833ad8 21203 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
21204Try \`$0 --help' for more information." ;;
21205
21206 *) as_fn_append ac_config_targets " $1"
21207 ac_need_defaults=false ;;
21208
21209 esac
21210 shift
21211done
21212
21213ac_configure_extra_args=
21214
21215if $ac_cs_silent; then
21216 exec 6>/dev/null
21217 ac_configure_extra_args="$ac_configure_extra_args --silent"
21218fi
21219
21220_ACEOF
21221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21222if \$ac_cs_recheck; then
53ba6704 21223 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
21224 shift
21225 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21226 CONFIG_SHELL='$SHELL'
21227 export CONFIG_SHELL
21228 exec "\$@"
21229fi
21230
21231_ACEOF
21232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21233exec 5>>config.log
21234{
21235 echo
21236 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21237## Running $as_me. ##
21238_ASBOX
21239 $as_echo "$ac_log"
21240} >&5
21241
21242_ACEOF
21243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21244#
21245# INIT-COMMANDS
21246#
66170b30 21247AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
21248
21249
21250# The HP-UX ksh and POSIX shell print the target directory to stdout
21251# if CDPATH is set.
21252(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21253
21254sed_quote_subst='$sed_quote_subst'
21255double_quote_subst='$double_quote_subst'
21256delay_variable_subst='$delay_variable_subst'
ee134472
JF
21257macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21258macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21259enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21260enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21261pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21262enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21263SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21264ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 21265PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21266host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21267host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21268host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21269build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21270build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21271build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21272SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21273Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21274GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21275EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21276FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21277LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21278NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21279LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21280max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21281ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21282exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21283lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21284lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21285lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21286lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21287lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21288reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21289reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21290OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21291deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21292file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21293file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21294want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21295DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21296sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21297AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21298AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21299archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21300STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21301RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21302old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21303old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21304old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21305lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21306CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21307CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21308compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21309GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21310lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21311lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21312lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21313lt_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"`'
21314nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21315lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21316objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21317MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21318lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21319lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21320lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21321lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21322lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21323need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21324MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21325DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21326NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21327LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21328OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21329OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21330libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21331shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21332extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21333archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21334enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21335export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21336whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21337compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21338old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21339old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21340archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21341archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21342module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21343module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21344with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21345allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21346no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21347hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21348hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21349hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21350hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21351hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21352hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21353hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21354inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21355link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21356always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21357export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21358exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21359include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21360prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21361postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21362file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21363variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21364need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21365need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21366version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21367runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21368shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21369shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21370libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21371library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21372soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21373install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21374postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21375postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21376finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21377finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21378hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21379sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21380sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21381hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21382enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21383enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21384enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21385old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21386striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21387compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21388predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21389postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21390predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21391postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21392compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21393LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21394reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21395reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21396old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21397compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21398GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21399lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21400lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21401lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21402lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21403lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21404archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21405enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21406export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21407whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21408compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21409old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21410old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21411archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21412archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21413module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21414module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21415with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21416allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21417no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21418hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21419hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21420hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21421hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21422hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21423hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21424hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21425inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21426link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21427always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21428export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21429exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21430include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21431prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21432postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21433file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21434hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21435compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21436predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21437postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21438predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21439postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21440compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
21441
21442LTCC='$LTCC'
21443LTCFLAGS='$LTCFLAGS'
21444compiler='$compiler_DEFAULT'
21445
ee134472
JF
21446# A function that is used when there is no print builtin or printf.
21447func_fallback_echo ()
21448{
21449 eval 'cat <<_LTECHO_EOF
21450\$1
21451_LTECHO_EOF'
21452}
21453
9c60689e 21454# Quote evaled strings.
ee134472
JF
21455for var in SHELL \
21456ECHO \
53ba6704 21457PATH_SEPARATOR \
ee134472 21458SED \
9c60689e
DWT
21459GREP \
21460EGREP \
21461FGREP \
21462LD \
21463NM \
21464LN_S \
21465lt_SP2NL \
21466lt_NL2SP \
21467reload_flag \
21468OBJDUMP \
21469deplibs_check_method \
21470file_magic_cmd \
ee134472
JF
21471file_magic_glob \
21472want_nocaseglob \
21473DLLTOOL \
21474sharedlib_from_linklib_cmd \
9c60689e
DWT
21475AR \
21476AR_FLAGS \
ee134472 21477archiver_list_spec \
9c60689e
DWT
21478STRIP \
21479RANLIB \
21480CC \
21481CFLAGS \
21482compiler \
21483lt_cv_sys_global_symbol_pipe \
21484lt_cv_sys_global_symbol_to_cdecl \
21485lt_cv_sys_global_symbol_to_c_name_address \
21486lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 21487nm_file_list_spec \
9c60689e 21488lt_prog_compiler_no_builtin_flag \
9c60689e 21489lt_prog_compiler_pic \
ee134472 21490lt_prog_compiler_wl \
9c60689e
DWT
21491lt_prog_compiler_static \
21492lt_cv_prog_compiler_c_o \
21493need_locks \
ee134472 21494MANIFEST_TOOL \
9c60689e
DWT
21495DSYMUTIL \
21496NMEDIT \
21497LIPO \
21498OTOOL \
21499OTOOL64 \
21500shrext_cmds \
21501export_dynamic_flag_spec \
21502whole_archive_flag_spec \
21503compiler_needs_object \
21504with_gnu_ld \
21505allow_undefined_flag \
21506no_undefined_flag \
21507hardcode_libdir_flag_spec \
9c60689e 21508hardcode_libdir_separator \
9c60689e
DWT
21509exclude_expsyms \
21510include_expsyms \
21511file_list_spec \
21512variables_saved_for_relink \
21513libname_spec \
21514library_names_spec \
21515soname_spec \
ee134472 21516install_override_mode \
9c60689e
DWT
21517finish_eval \
21518old_striplib \
21519striplib \
21520compiler_lib_search_dirs \
21521predep_objects \
21522postdep_objects \
21523predeps \
21524postdeps \
21525compiler_lib_search_path \
21526LD_CXX \
ee134472 21527reload_flag_CXX \
9c60689e
DWT
21528compiler_CXX \
21529lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 21530lt_prog_compiler_pic_CXX \
ee134472 21531lt_prog_compiler_wl_CXX \
9c60689e
DWT
21532lt_prog_compiler_static_CXX \
21533lt_cv_prog_compiler_c_o_CXX \
21534export_dynamic_flag_spec_CXX \
21535whole_archive_flag_spec_CXX \
21536compiler_needs_object_CXX \
21537with_gnu_ld_CXX \
21538allow_undefined_flag_CXX \
21539no_undefined_flag_CXX \
21540hardcode_libdir_flag_spec_CXX \
9c60689e 21541hardcode_libdir_separator_CXX \
9c60689e
DWT
21542exclude_expsyms_CXX \
21543include_expsyms_CXX \
21544file_list_spec_CXX \
21545compiler_lib_search_dirs_CXX \
21546predep_objects_CXX \
21547postdep_objects_CXX \
21548predeps_CXX \
21549postdeps_CXX \
21550compiler_lib_search_path_CXX; do
ee134472 21551 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21552 *[\\\\\\\`\\"\\\$]*)
ee134472 21553 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
21554 ;;
21555 *)
21556 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21557 ;;
21558 esac
21559done
21560
21561# Double-quote double-evaled strings.
21562for var in reload_cmds \
21563old_postinstall_cmds \
21564old_postuninstall_cmds \
21565old_archive_cmds \
21566extract_expsyms_cmds \
21567old_archive_from_new_cmds \
21568old_archive_from_expsyms_cmds \
21569archive_cmds \
21570archive_expsym_cmds \
21571module_cmds \
21572module_expsym_cmds \
21573export_symbols_cmds \
21574prelink_cmds \
ee134472 21575postlink_cmds \
9c60689e
DWT
21576postinstall_cmds \
21577postuninstall_cmds \
21578finish_cmds \
21579sys_lib_search_path_spec \
21580sys_lib_dlsearch_path_spec \
ee134472 21581reload_cmds_CXX \
9c60689e
DWT
21582old_archive_cmds_CXX \
21583old_archive_from_new_cmds_CXX \
21584old_archive_from_expsyms_cmds_CXX \
21585archive_cmds_CXX \
21586archive_expsym_cmds_CXX \
21587module_cmds_CXX \
21588module_expsym_cmds_CXX \
21589export_symbols_cmds_CXX \
ee134472
JF
21590prelink_cmds_CXX \
21591postlink_cmds_CXX; do
21592 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21593 *[\\\\\\\`\\"\\\$]*)
ee134472 21594 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
21595 ;;
21596 *)
21597 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21598 ;;
21599 esac
21600done
21601
9c60689e
DWT
21602ac_aux_dir='$ac_aux_dir'
21603xsi_shell='$xsi_shell'
21604lt_shell_append='$lt_shell_append'
21605
21606# See if we are running on zsh, and set the options which allow our
21607# commands through without removal of \ escapes INIT.
21608if test -n "\${ZSH_VERSION+set}" ; then
21609 setopt NO_GLOB_SUBST
21610fi
21611
21612
21613 PACKAGE='$PACKAGE'
21614 VERSION='$VERSION'
21615 TIMESTAMP='$TIMESTAMP'
21616 RM='$RM'
21617 ofile='$ofile'
21618
21619
21620
21621
21622
21623
21624_ACEOF
21625
21626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21627
21628# Handling of arguments.
21629for ac_config_target in $ac_config_targets
21630do
21631 case $ac_config_target in
296ee9a6 21632 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 21633 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 21634 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 21635 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 21636
ee134472 21637 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
21638 esac
21639done
21640
21641
21642# If the user did not use the arguments to specify the items to instantiate,
21643# then the envvar interface is used. Set only those that are not.
21644# We use the long form for the default assignment because of an extremely
21645# bizarre bug on SunOS 4.1.3.
21646if $ac_need_defaults; then
21647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 21648 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
21649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21650fi
21651
21652# Have a temporary directory for convenience. Make it in the build tree
21653# simply because there is no reason against having it here, and in addition,
21654# creating and moving files from /tmp can sometimes cause problems.
21655# Hook for its removal unless debugging.
21656# Note that there is a small window in which the directory will not be cleaned:
21657# after its creation but before its name has been assigned to `$tmp'.
21658$debug ||
21659{
ee134472 21660 tmp= ac_tmp=
9c60689e 21661 trap 'exit_status=$?
ee134472
JF
21662 : "${ac_tmp:=$tmp}"
21663 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
21664' 0
21665 trap 'as_fn_exit 1' 1 2 13 15
21666}
21667# Create a (secure) tmp directory for tmp files.
21668
21669{
21670 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 21671 test -d "$tmp"
9c60689e
DWT
21672} ||
21673{
21674 tmp=./conf$$-$RANDOM
21675 (umask 077 && mkdir "$tmp")
12833ad8 21676} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 21677ac_tmp=$tmp
9c60689e
DWT
21678
21679# Set up the scripts for CONFIG_FILES section.
21680# No need to generate them if there are no CONFIG_FILES.
21681# This happens for instance with `./config.status config.h'.
21682if test -n "$CONFIG_FILES"; then
21683
21684
21685ac_cr=`echo X | tr X '\015'`
21686# On cygwin, bash can eat \r inside `` if the user requested igncr.
21687# But we know of no other shell where ac_cr would be empty at this
21688# point, so we can use a bashism as a fallback.
21689if test "x$ac_cr" = x; then
21690 eval ac_cr=\$\'\\r\'
21691fi
21692ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21693if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 21694 ac_cs_awk_cr='\\r'
9c60689e
DWT
21695else
21696 ac_cs_awk_cr=$ac_cr
21697fi
21698
ee134472 21699echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
21700_ACEOF
21701
21702
21703{
21704 echo "cat >conf$$subs.awk <<_ACEOF" &&
21705 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21706 echo "_ACEOF"
21707} >conf$$subs.sh ||
12833ad8
JF
21708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21709ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
21710ac_delim='%!_!# '
21711for ac_last_try in false false false false false :; do
21712 . ./conf$$subs.sh ||
12833ad8 21713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21714
21715 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21716 if test $ac_delim_n = $ac_delim_num; then
21717 break
21718 elif $ac_last_try; then
12833ad8 21719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21720 else
21721 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21722 fi
21723done
21724rm -f conf$$subs.sh
21725
21726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 21727cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
21728_ACEOF
21729sed -n '
21730h
21731s/^/S["/; s/!.*/"]=/
21732p
21733g
21734s/^[^!]*!//
21735:repl
21736t repl
21737s/'"$ac_delim"'$//
21738t delim
21739:nl
21740h
21741s/\(.\{148\}\)..*/\1/
21742t more1
21743s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21744p
21745n
21746b repl
21747:more1
21748s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21749p
21750g
21751s/.\{148\}//
21752t nl
21753:delim
21754h
21755s/\(.\{148\}\)..*/\1/
21756t more2
21757s/["\\]/\\&/g; s/^/"/; s/$/"/
21758p
21759b
21760:more2
21761s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21762p
21763g
21764s/.\{148\}//
21765t delim
21766' <conf$$subs.awk | sed '
21767/^[^""]/{
21768 N
21769 s/\n//
21770}
21771' >>$CONFIG_STATUS || ac_write_fail=1
21772rm -f conf$$subs.awk
21773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21774_ACAWK
ee134472 21775cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
21776 for (key in S) S_is_set[key] = 1
21777 FS = "\a"
21778
21779}
21780{
21781 line = $ 0
21782 nfields = split(line, field, "@")
21783 substed = 0
21784 len = length(field[1])
21785 for (i = 2; i < nfields; i++) {
21786 key = field[i]
21787 keylen = length(key)
21788 if (S_is_set[key]) {
21789 value = S[key]
21790 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21791 len += length(value) + length(field[++i])
21792 substed = 1
21793 } else
21794 len += 1 + keylen
21795 }
21796
21797 print line
21798}
21799
21800_ACAWK
21801_ACEOF
21802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21803if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21804 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21805else
21806 cat
ee134472 21807fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 21808 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
21809_ACEOF
21810
12833ad8
JF
21811# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21812# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
21813# trailing colons and then remove the whole line if VPATH becomes empty
21814# (actually we leave an empty line to preserve line numbers).
21815if test "x$srcdir" = x.; then
12833ad8
JF
21816 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21817h
21818s///
21819s/^/:/
21820s/[ ]*$/:/
21821s/:\$(srcdir):/:/g
21822s/:\${srcdir}:/:/g
21823s/:@srcdir@:/:/g
21824s/^:*//
9c60689e 21825s/:*$//
12833ad8
JF
21826x
21827s/\(=[ ]*\).*/\1/
21828G
21829s/\n//
9c60689e
DWT
21830s/^[^=]*=[ ]*$//
21831}'
21832fi
21833
21834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21835fi # test -n "$CONFIG_FILES"
21836
296ee9a6
JF
21837# Set up the scripts for CONFIG_HEADERS section.
21838# No need to generate them if there are no CONFIG_HEADERS.
21839# This happens for instance with `./config.status Makefile'.
21840if test -n "$CONFIG_HEADERS"; then
21841cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21842BEGIN {
21843_ACEOF
21844
21845# Transform confdefs.h into an awk script `defines.awk', embedded as
21846# here-document in config.status, that substitutes the proper values into
21847# config.h.in to produce config.h.
21848
21849# Create a delimiter string that does not exist in confdefs.h, to ease
21850# handling of long lines.
21851ac_delim='%!_!# '
21852for ac_last_try in false false :; do
21853 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21854 if test -z "$ac_tt"; then
21855 break
21856 elif $ac_last_try; then
21857 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21858 else
21859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21860 fi
21861done
21862
21863# For the awk script, D is an array of macro values keyed by name,
21864# likewise P contains macro parameters if any. Preserve backslash
21865# newline sequences.
21866
21867ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21868sed -n '
21869s/.\{148\}/&'"$ac_delim"'/g
21870t rset
21871:rset
21872s/^[ ]*#[ ]*define[ ][ ]*/ /
21873t def
21874d
21875:def
21876s/\\$//
21877t bsnl
21878s/["\\]/\\&/g
21879s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21880D["\1"]=" \3"/p
21881s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21882d
21883:bsnl
21884s/["\\]/\\&/g
21885s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21886D["\1"]=" \3\\\\\\n"\\/p
21887t cont
21888s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21889t cont
21890d
21891:cont
21892n
21893s/.\{148\}/&'"$ac_delim"'/g
21894t clear
21895:clear
21896s/\\$//
21897t bsnlc
21898s/["\\]/\\&/g; s/^/"/; s/$/"/p
21899d
21900:bsnlc
21901s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21902b cont
21903' <confdefs.h | sed '
21904s/'"$ac_delim"'/"\\\
21905"/g' >>$CONFIG_STATUS || ac_write_fail=1
21906
21907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21908 for (key in D) D_is_set[key] = 1
21909 FS = "\a"
21910}
21911/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21912 line = \$ 0
21913 split(line, arg, " ")
21914 if (arg[1] == "#") {
21915 defundef = arg[2]
21916 mac1 = arg[3]
21917 } else {
21918 defundef = substr(arg[1], 2)
21919 mac1 = arg[2]
21920 }
21921 split(mac1, mac2, "(") #)
21922 macro = mac2[1]
21923 prefix = substr(line, 1, index(line, defundef) - 1)
21924 if (D_is_set[macro]) {
21925 # Preserve the white space surrounding the "#".
21926 print prefix "define", macro P[macro] D[macro]
21927 next
21928 } else {
21929 # Replace #undef with comments. This is necessary, for example,
21930 # in the case of _POSIX_SOURCE, which is predefined and required
21931 # on some systems where configure will not decide to define it.
21932 if (defundef == "undef") {
21933 print "/*", prefix defundef, macro, "*/"
21934 next
21935 }
21936 }
21937}
21938{ print }
21939_ACAWK
21940_ACEOF
21941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21942 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21943fi # test -n "$CONFIG_HEADERS"
21944
9c60689e 21945
296ee9a6 21946eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
21947shift
21948for ac_tag
21949do
21950 case $ac_tag in
21951 :[FHLC]) ac_mode=$ac_tag; continue;;
21952 esac
21953 case $ac_mode$ac_tag in
21954 :[FHL]*:*);;
ee134472 21955 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
21956 :[FH]-) ac_tag=-:-;;
21957 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21958 esac
21959 ac_save_IFS=$IFS
21960 IFS=:
21961 set x $ac_tag
21962 IFS=$ac_save_IFS
21963 shift
21964 ac_file=$1
21965 shift
21966
21967 case $ac_mode in
21968 :L) ac_source=$1;;
21969 :[FH])
21970 ac_file_inputs=
21971 for ac_f
21972 do
21973 case $ac_f in
ee134472 21974 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
21975 *) # Look for the file first in the build tree, then in the source tree
21976 # (if the path is not absolute). The absolute path cannot be DOS-style,
21977 # because $ac_f cannot contain `:'.
21978 test -f "$ac_f" ||
21979 case $ac_f in
21980 [\\/$]*) false;;
21981 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21982 esac ||
ee134472 21983 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
21984 esac
21985 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21986 as_fn_append ac_file_inputs " '$ac_f'"
21987 done
21988
21989 # Let's still pretend it is `configure' which instantiates (i.e., don't
21990 # use $as_me), people would be surprised to read:
21991 # /* config.h. Generated by config.status. */
21992 configure_input='Generated from '`
21993 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21994 `' by configure.'
21995 if test x"$ac_file" != x-; then
21996 configure_input="$ac_file. $configure_input"
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21998$as_echo "$as_me: creating $ac_file" >&6;}
21999 fi
22000 # Neutralize special characters interpreted by sed in replacement strings.
22001 case $configure_input in #(
22002 *\&* | *\|* | *\\* )
22003 ac_sed_conf_input=`$as_echo "$configure_input" |
22004 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22005 *) ac_sed_conf_input=$configure_input;;
22006 esac
22007
22008 case $ac_tag in
ee134472
JF
22009 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
22011 esac
22012 ;;
22013 esac
22014
22015 ac_dir=`$as_dirname -- "$ac_file" ||
22016$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22017 X"$ac_file" : 'X\(//\)[^/]' \| \
22018 X"$ac_file" : 'X\(//\)$' \| \
22019 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22020$as_echo X"$ac_file" |
22021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22022 s//\1/
22023 q
22024 }
22025 /^X\(\/\/\)[^/].*/{
22026 s//\1/
22027 q
22028 }
22029 /^X\(\/\/\)$/{
22030 s//\1/
22031 q
22032 }
22033 /^X\(\/\).*/{
22034 s//\1/
22035 q
22036 }
22037 s/.*/./; q'`
22038 as_dir="$ac_dir"; as_fn_mkdir_p
22039 ac_builddir=.
22040
22041case "$ac_dir" in
22042.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22043*)
22044 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22045 # A ".." for each directory in $ac_dir_suffix.
22046 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22047 case $ac_top_builddir_sub in
22048 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22049 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22050 esac ;;
22051esac
22052ac_abs_top_builddir=$ac_pwd
22053ac_abs_builddir=$ac_pwd$ac_dir_suffix
22054# for backward compatibility:
22055ac_top_builddir=$ac_top_build_prefix
35fa52c0 22056
9c60689e
DWT
22057case $srcdir in
22058 .) # We are building in place.
22059 ac_srcdir=.
22060 ac_top_srcdir=$ac_top_builddir_sub
22061 ac_abs_top_srcdir=$ac_pwd ;;
22062 [\\/]* | ?:[\\/]* ) # Absolute name.
22063 ac_srcdir=$srcdir$ac_dir_suffix;
22064 ac_top_srcdir=$srcdir
22065 ac_abs_top_srcdir=$srcdir ;;
22066 *) # Relative name.
22067 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22068 ac_top_srcdir=$ac_top_build_prefix$srcdir
22069 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22070esac
22071ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
22072
22073
9c60689e
DWT
22074 case $ac_mode in
22075 :F)
22076 #
22077 # CONFIG_FILE
22078 #
35fa52c0 22079
9c60689e
DWT
22080 case $INSTALL in
22081 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22082 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22083 esac
66170b30
JF
22084 ac_MKDIR_P=$MKDIR_P
22085 case $MKDIR_P in
22086 [\\/$]* | ?:[\\/]* ) ;;
22087 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22088 esac
9c60689e 22089_ACEOF
35fa52c0 22090
9c60689e
DWT
22091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22092# If the template does not know about datarootdir, expand it.
22093# FIXME: This hack should be removed a few years after 2.60.
22094ac_datarootdir_hack=; ac_datarootdir_seen=
22095ac_sed_dataroot='
22096/datarootdir/ {
22097 p
22098 q
22099}
22100/@datadir@/p
22101/@docdir@/p
22102/@infodir@/p
22103/@localedir@/p
22104/@mandir@/p'
22105case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22106*datarootdir*) ac_datarootdir_seen=yes;;
22107*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22109$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22110_ACEOF
22111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22112 ac_datarootdir_hack='
22113 s&@datadir@&$datadir&g
22114 s&@docdir@&$docdir&g
22115 s&@infodir@&$infodir&g
22116 s&@localedir@&$localedir&g
22117 s&@mandir@&$mandir&g
22118 s&\\\${datarootdir}&$datarootdir&g' ;;
22119esac
22120_ACEOF
35fa52c0 22121
9c60689e
DWT
22122# Neutralize VPATH when `$srcdir' = `.'.
22123# Shell code in configure.ac might set extrasub.
22124# FIXME: do we really want to maintain this feature?
22125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22126ac_sed_extra="$ac_vpsub
22127$extrasub
22128_ACEOF
22129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22130:t
22131/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22132s|@configure_input@|$ac_sed_conf_input|;t t
22133s&@top_builddir@&$ac_top_builddir_sub&;t t
22134s&@top_build_prefix@&$ac_top_build_prefix&;t t
22135s&@srcdir@&$ac_srcdir&;t t
22136s&@abs_srcdir@&$ac_abs_srcdir&;t t
22137s&@top_srcdir@&$ac_top_srcdir&;t t
22138s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22139s&@builddir@&$ac_builddir&;t t
22140s&@abs_builddir@&$ac_abs_builddir&;t t
22141s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22142s&@INSTALL@&$ac_INSTALL&;t t
66170b30 22143s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
22144$ac_datarootdir_hack
22145"
ee134472
JF
22146eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22147 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
22148
22149test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
22150 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22151 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22152 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 22153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22154which seems to be undefined. Please make sure it is defined" >&5
9c60689e 22155$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22156which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 22157
ee134472 22158 rm -f "$ac_tmp/stdin"
9c60689e 22159 case $ac_file in
ee134472
JF
22160 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22161 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 22162 esac \
12833ad8 22163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 22164 ;;
296ee9a6
JF
22165 :H)
22166 #
22167 # CONFIG_HEADER
22168 #
22169 if test x"$ac_file" != x-; then
22170 {
22171 $as_echo "/* $configure_input */" \
22172 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22173 } >"$ac_tmp/config.h" \
22174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22175 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22177$as_echo "$as_me: $ac_file is unchanged" >&6;}
22178 else
22179 rm -f "$ac_file"
22180 mv "$ac_tmp/config.h" "$ac_file" \
22181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22182 fi
22183 else
22184 $as_echo "/* $configure_input */" \
22185 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22186 || as_fn_error $? "could not create -" "$LINENO" 5
22187 fi
22188# Compute "$ac_file"'s index in $config_headers.
22189_am_arg="$ac_file"
22190_am_stamp_count=1
22191for _am_header in $config_headers :; do
22192 case $_am_header in
22193 $_am_arg | $_am_arg:* )
22194 break ;;
22195 * )
22196 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22197 esac
22198done
22199echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22200$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201 X"$_am_arg" : 'X\(//\)[^/]' \| \
22202 X"$_am_arg" : 'X\(//\)$' \| \
22203 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22204$as_echo X"$_am_arg" |
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'`/stamp-h$_am_stamp_count
22222 ;;
35fa52c0 22223
9c60689e
DWT
22224 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22225$as_echo "$as_me: executing $ac_file commands" >&6;}
22226 ;;
22227 esac
35fa52c0 22228
35fa52c0 22229
9c60689e 22230 case $ac_file$ac_mode in
66170b30
JF
22231 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22232 # Older Autoconf quotes --file arguments for eval, but not when files
22233 # are listed without --file. Let's play safe and only enable the eval
22234 # if we detect the quoting.
22235 case $CONFIG_FILES in
22236 *\'*) eval set x "$CONFIG_FILES" ;;
22237 *) set x $CONFIG_FILES ;;
22238 esac
22239 shift
22240 for mf
22241 do
22242 # Strip MF so we end up with the name of the file.
22243 mf=`echo "$mf" | sed -e 's/:.*$//'`
22244 # Check whether this is an Automake generated Makefile or not.
22245 # We used to match only the files named 'Makefile.in', but
22246 # some people rename them; so instead we look at the file content.
22247 # Grep'ing the first line is not enough: some people post-process
22248 # each Makefile.in and add a new line on top of each file to say so.
22249 # Grep'ing the whole file is not good either: AIX grep has a line
22250 # limit of 2048, but all sed's we know have understand at least 4000.
22251 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22252 dirpart=`$as_dirname -- "$mf" ||
22253$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22254 X"$mf" : 'X\(//\)[^/]' \| \
22255 X"$mf" : 'X\(//\)$' \| \
22256 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22257$as_echo X"$mf" |
22258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22259 s//\1/
22260 q
22261 }
22262 /^X\(\/\/\)[^/].*/{
22263 s//\1/
22264 q
22265 }
22266 /^X\(\/\/\)$/{
22267 s//\1/
22268 q
22269 }
22270 /^X\(\/\).*/{
22271 s//\1/
22272 q
22273 }
22274 s/.*/./; q'`
22275 else
22276 continue
22277 fi
22278 # Extract the definition of DEPDIR, am__include, and am__quote
22279 # from the Makefile without running 'make'.
22280 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22281 test -z "$DEPDIR" && continue
22282 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 22283 test -z "$am__include" && continue
66170b30
JF
22284 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22285 # Find all dependency output files, they are included files with
22286 # $(DEPDIR) in their names. We invoke sed twice because it is the
22287 # simplest approach to changing $(DEPDIR) to its actual value in the
22288 # expansion.
22289 for file in `sed -n "
22290 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22291 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22292 # Make sure the directory exists.
22293 test -f "$dirpart/$file" && continue
22294 fdir=`$as_dirname -- "$file" ||
22295$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22296 X"$file" : 'X\(//\)[^/]' \| \
22297 X"$file" : 'X\(//\)$' \| \
22298 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22299$as_echo X"$file" |
22300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22301 s//\1/
22302 q
22303 }
22304 /^X\(\/\/\)[^/].*/{
22305 s//\1/
22306 q
22307 }
22308 /^X\(\/\/\)$/{
22309 s//\1/
22310 q
22311 }
22312 /^X\(\/\).*/{
22313 s//\1/
22314 q
22315 }
22316 s/.*/./; q'`
22317 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22318 # echo "creating $dirpart/$file"
22319 echo '# dummy' > "$dirpart/$file"
22320 done
22321 done
22322}
22323 ;;
9c60689e
DWT
22324 "libtool":C)
22325
22326 # See if we are running on zsh, and set the options which allow our
22327 # commands through without removal of \ escapes.
22328 if test -n "${ZSH_VERSION+set}" ; then
22329 setopt NO_GLOB_SUBST
35fa52c0 22330 fi
35fa52c0 22331
9c60689e
DWT
22332 cfgfile="${ofile}T"
22333 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22334 $RM "$cfgfile"
35fa52c0 22335
9c60689e
DWT
22336 cat <<_LT_EOF >> "$cfgfile"
22337#! $SHELL
35fa52c0 22338
9c60689e
DWT
22339# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22340# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22341# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22342# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22343#
22344# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
53ba6704
JF
22345# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22346# Foundation, Inc.
9c60689e
DWT
22347# Written by Gordon Matzigkeit, 1996
22348#
22349# This file is part of GNU Libtool.
22350#
22351# GNU Libtool is free software; you can redistribute it and/or
22352# modify it under the terms of the GNU General Public License as
22353# published by the Free Software Foundation; either version 2 of
22354# the License, or (at your option) any later version.
22355#
22356# As a special exception to the GNU General Public License,
22357# if you distribute this file as part of a program or library that
22358# is built using GNU Libtool, you may include this file under the
22359# same distribution terms that you use for the rest of that program.
22360#
22361# GNU Libtool is distributed in the hope that it will be useful,
22362# but WITHOUT ANY WARRANTY; without even the implied warranty of
22363# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22364# GNU General Public License for more details.
22365#
22366# You should have received a copy of the GNU General Public License
22367# along with GNU Libtool; see the file COPYING. If not, a copy
22368# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22369# obtained by writing to the Free Software Foundation, Inc.,
22370# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 22371
35fa52c0 22372
9c60689e
DWT
22373# The names of the tagged configurations supported by this script.
22374available_tags="CXX "
35fa52c0 22375
9c60689e 22376# ### BEGIN LIBTOOL CONFIG
35fa52c0 22377
9c60689e
DWT
22378# Which release of libtool.m4 was used?
22379macro_version=$macro_version
22380macro_revision=$macro_revision
35fa52c0 22381
9c60689e
DWT
22382# Whether or not to build static libraries.
22383build_old_libs=$enable_static
35fa52c0 22384
549f29b5
DWT
22385# Whether or not to build shared libraries.
22386build_libtool_libs=$enable_shared
22387
9c60689e
DWT
22388# What type of objects to build.
22389pic_mode=$pic_mode
35fa52c0 22390
9c60689e
DWT
22391# Whether or not to optimize for fast installation.
22392fast_install=$enable_fast_install
35fa52c0 22393
ee134472
JF
22394# Shell to use when invoking shell scripts.
22395SHELL=$lt_SHELL
22396
22397# An echo program that protects backslashes.
22398ECHO=$lt_ECHO
22399
53ba6704
JF
22400# The PATH separator for the build system.
22401PATH_SEPARATOR=$lt_PATH_SEPARATOR
22402
9c60689e
DWT
22403# The host system.
22404host_alias=$host_alias
22405host=$host
22406host_os=$host_os
35fa52c0 22407
9c60689e
DWT
22408# The build system.
22409build_alias=$build_alias
22410build=$build
22411build_os=$build_os
22412
22413# A sed program that does not truncate output.
22414SED=$lt_SED
22415
22416# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22417Xsed="\$SED -e 1s/^X//"
22418
22419# A grep program that handles long lines.
22420GREP=$lt_GREP
22421
22422# An ERE matcher.
22423EGREP=$lt_EGREP
22424
22425# A literal string matcher.
22426FGREP=$lt_FGREP
22427
22428# A BSD- or MS-compatible name lister.
22429NM=$lt_NM
22430
22431# Whether we need soft or hard links.
22432LN_S=$lt_LN_S
22433
22434# What is the maximum length of a command?
22435max_cmd_len=$max_cmd_len
22436
22437# Object file suffix (normally "o").
22438objext=$ac_objext
22439
22440# Executable file suffix (normally "").
22441exeext=$exeext
22442
22443# whether the shell understands "unset".
22444lt_unset=$lt_unset
22445
22446# turn spaces into newlines.
22447SP2NL=$lt_lt_SP2NL
22448
22449# turn newlines into spaces.
22450NL2SP=$lt_lt_NL2SP
22451
ee134472
JF
22452# convert \$build file names to \$host format.
22453to_host_file_cmd=$lt_cv_to_host_file_cmd
22454
22455# convert \$build files to toolchain format.
22456to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
22457
22458# An object symbol dumper.
22459OBJDUMP=$lt_OBJDUMP
22460
22461# Method to check whether dependent libraries are shared objects.
22462deplibs_check_method=$lt_deplibs_check_method
22463
ee134472 22464# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
22465file_magic_cmd=$lt_file_magic_cmd
22466
ee134472
JF
22467# How to find potential files when deplibs_check_method = "file_magic".
22468file_magic_glob=$lt_file_magic_glob
22469
22470# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22471want_nocaseglob=$lt_want_nocaseglob
22472
22473# DLL creation program.
22474DLLTOOL=$lt_DLLTOOL
22475
22476# Command to associate shared and link libraries.
22477sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22478
9c60689e
DWT
22479# The archiver.
22480AR=$lt_AR
ee134472
JF
22481
22482# Flags to create an archive.
9c60689e
DWT
22483AR_FLAGS=$lt_AR_FLAGS
22484
ee134472
JF
22485# How to feed a file listing to the archiver.
22486archiver_list_spec=$lt_archiver_list_spec
22487
9c60689e
DWT
22488# A symbol stripping program.
22489STRIP=$lt_STRIP
22490
22491# Commands used to install an old-style archive.
22492RANLIB=$lt_RANLIB
22493old_postinstall_cmds=$lt_old_postinstall_cmds
22494old_postuninstall_cmds=$lt_old_postuninstall_cmds
22495
ee134472
JF
22496# Whether to use a lock for old archive extraction.
22497lock_old_archive_extraction=$lock_old_archive_extraction
22498
9c60689e
DWT
22499# A C compiler.
22500LTCC=$lt_CC
22501
22502# LTCC compiler flags.
22503LTCFLAGS=$lt_CFLAGS
22504
22505# Take the output of nm and produce a listing of raw symbols and C names.
22506global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22507
22508# Transform the output of nm in a proper C declaration.
22509global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22510
22511# Transform the output of nm in a C name address pair.
22512global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22513
22514# Transform the output of nm in a C name address pair when lib prefix is needed.
22515global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22516
ee134472
JF
22517# Specify filename containing input files for \$NM.
22518nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 22519
ee134472
JF
22520# The root where to search for dependent libraries,and in which our libraries should be installed.
22521lt_sysroot=$lt_sysroot
9c60689e 22522
ee134472
JF
22523# The name of the directory that contains temporary libtool files.
22524objdir=$objdir
9c60689e
DWT
22525
22526# Used to examine libraries when file_magic_cmd begins with "file".
22527MAGIC_CMD=$MAGIC_CMD
22528
22529# Must we lock files when doing compilation?
22530need_locks=$lt_need_locks
22531
ee134472
JF
22532# Manifest tool.
22533MANIFEST_TOOL=$lt_MANIFEST_TOOL
22534
9c60689e
DWT
22535# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22536DSYMUTIL=$lt_DSYMUTIL
22537
22538# Tool to change global to local symbols on Mac OS X.
22539NMEDIT=$lt_NMEDIT
22540
22541# Tool to manipulate fat objects and archives on Mac OS X.
22542LIPO=$lt_LIPO
22543
22544# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22545OTOOL=$lt_OTOOL
22546
22547# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22548OTOOL64=$lt_OTOOL64
22549
22550# Old archive suffix (normally "a").
22551libext=$libext
22552
22553# Shared library suffix (normally ".so").
22554shrext_cmds=$lt_shrext_cmds
35fa52c0 22555
9c60689e
DWT
22556# The commands to extract the exported symbol list from a shared archive.
22557extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 22558
9c60689e
DWT
22559# Variables whose values should be saved in libtool wrapper scripts and
22560# restored at link time.
22561variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 22562
9c60689e
DWT
22563# Do we need the "lib" prefix for modules?
22564need_lib_prefix=$need_lib_prefix
35fa52c0 22565
9c60689e
DWT
22566# Do we need a version for libraries?
22567need_version=$need_version
35fa52c0 22568
9c60689e
DWT
22569# Library versioning type.
22570version_type=$version_type
35fa52c0 22571
9c60689e
DWT
22572# Shared library runtime path variable.
22573runpath_var=$runpath_var
35fa52c0 22574
9c60689e
DWT
22575# Shared library path variable.
22576shlibpath_var=$shlibpath_var
35fa52c0 22577
9c60689e
DWT
22578# Is shlibpath searched before the hard-coded library search path?
22579shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 22580
9c60689e
DWT
22581# Format of library name prefix.
22582libname_spec=$lt_libname_spec
35fa52c0 22583
9c60689e
DWT
22584# List of archive names. First name is the real one, the rest are links.
22585# The last name is the one that the linker finds with -lNAME
22586library_names_spec=$lt_library_names_spec
dbadc56a 22587
9c60689e
DWT
22588# The coded name of the library, if different from the real name.
22589soname_spec=$lt_soname_spec
dbadc56a 22590
ee134472
JF
22591# Permission mode override for installation of shared libraries.
22592install_override_mode=$lt_install_override_mode
22593
9c60689e
DWT
22594# Command to use after installation of a shared archive.
22595postinstall_cmds=$lt_postinstall_cmds
35fa52c0 22596
9c60689e
DWT
22597# Command to use after uninstallation of a shared archive.
22598postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 22599
9c60689e
DWT
22600# Commands used to finish a libtool library installation in a directory.
22601finish_cmds=$lt_finish_cmds
35fa52c0 22602
9c60689e
DWT
22603# As "finish_cmds", except a single script fragment to be evaled but
22604# not shown.
22605finish_eval=$lt_finish_eval
35fa52c0 22606
9c60689e
DWT
22607# Whether we should hardcode library paths into libraries.
22608hardcode_into_libs=$hardcode_into_libs
dbadc56a 22609
9c60689e
DWT
22610# Compile-time system search path for libraries.
22611sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 22612
9c60689e
DWT
22613# Run-time system search path for libraries.
22614sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 22615
9c60689e
DWT
22616# Whether dlopen is supported.
22617dlopen_support=$enable_dlopen
dbadc56a 22618
9c60689e
DWT
22619# Whether dlopen of programs is supported.
22620dlopen_self=$enable_dlopen_self
35fa52c0 22621
9c60689e
DWT
22622# Whether dlopen of statically linked programs is supported.
22623dlopen_self_static=$enable_dlopen_self_static
35fa52c0 22624
9c60689e
DWT
22625# Commands to strip libraries.
22626old_striplib=$lt_old_striplib
22627striplib=$lt_striplib
35fa52c0 22628
35fa52c0 22629
9c60689e
DWT
22630# The linker used to build libraries.
22631LD=$lt_LD
dbadc56a 22632
ee134472
JF
22633# How to create reloadable object files.
22634reload_flag=$lt_reload_flag
22635reload_cmds=$lt_reload_cmds
22636
9c60689e
DWT
22637# Commands used to build an old-style archive.
22638old_archive_cmds=$lt_old_archive_cmds
dbadc56a 22639
9c60689e
DWT
22640# A language specific compiler.
22641CC=$lt_compiler
35fa52c0 22642
9c60689e
DWT
22643# Is the compiler the GNU compiler?
22644with_gcc=$GCC
dbadc56a 22645
9c60689e
DWT
22646# Compiler flag to turn off builtin functions.
22647no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 22648
9c60689e
DWT
22649# Additional compiler flags for building library objects.
22650pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 22651
ee134472
JF
22652# How to pass a linker flag through the compiler.
22653wl=$lt_lt_prog_compiler_wl
22654
9c60689e
DWT
22655# Compiler flag to prevent dynamic linking.
22656link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 22657
9c60689e
DWT
22658# Does compiler simultaneously support -c and -o options?
22659compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 22660
9c60689e
DWT
22661# Whether or not to add -lc for building shared libraries.
22662build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 22663
9c60689e
DWT
22664# Whether or not to disallow shared libs when runtime libs are static.
22665allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 22666
9c60689e
DWT
22667# Compiler flag to allow reflexive dlopens.
22668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 22669
9c60689e
DWT
22670# Compiler flag to generate shared objects directly from archives.
22671whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 22672
9c60689e
DWT
22673# Whether the compiler copes with passing no objects directly.
22674compiler_needs_object=$lt_compiler_needs_object
dbadc56a 22675
9c60689e
DWT
22676# Create an old-style archive from a shared archive.
22677old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 22678
9c60689e
DWT
22679# Create a temporary old-style archive to link instead of a shared archive.
22680old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 22681
9c60689e
DWT
22682# Commands used to build a shared archive.
22683archive_cmds=$lt_archive_cmds
22684archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 22685
9c60689e
DWT
22686# Commands used to build a loadable module if different from building
22687# a shared archive.
22688module_cmds=$lt_module_cmds
22689module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 22690
9c60689e
DWT
22691# Whether we are building with GNU ld or not.
22692with_gnu_ld=$lt_with_gnu_ld
6b66678a 22693
9c60689e
DWT
22694# Flag that allows shared libraries with undefined symbols to be built.
22695allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 22696
9c60689e
DWT
22697# Flag that enforces no undefined symbols.
22698no_undefined_flag=$lt_no_undefined_flag
6b66678a 22699
9c60689e
DWT
22700# Flag to hardcode \$libdir into a binary during linking.
22701# This must work even if \$libdir does not exist
22702hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 22703
9c60689e
DWT
22704# Whether we need a single "-rpath" flag with a separated argument.
22705hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 22706
9c60689e
DWT
22707# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22708# DIR into the resulting binary.
22709hardcode_direct=$hardcode_direct
6b66678a 22710
9c60689e
DWT
22711# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22712# DIR into the resulting binary and the resulting library dependency is
22713# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22714# library is relocated.
22715hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 22716
9c60689e
DWT
22717# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22718# into the resulting binary.
22719hardcode_minus_L=$hardcode_minus_L
6b66678a 22720
9c60689e
DWT
22721# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22722# into the resulting binary.
22723hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 22724
9c60689e
DWT
22725# Set to "yes" if building a shared library automatically hardcodes DIR
22726# into the library and all subsequent libraries and executables linked
22727# against it.
22728hardcode_automatic=$hardcode_automatic
6b66678a 22729
9c60689e
DWT
22730# Set to yes if linker adds runtime paths of dependent libraries
22731# to runtime path list.
22732inherit_rpath=$inherit_rpath
6b66678a 22733
9c60689e
DWT
22734# Whether libtool must link a program against all its dependency libraries.
22735link_all_deplibs=$link_all_deplibs
22736
9c60689e
DWT
22737# Set to "yes" if exported symbols are required.
22738always_export_symbols=$always_export_symbols
6b66678a 22739
9c60689e
DWT
22740# The commands to list exported symbols.
22741export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 22742
9c60689e
DWT
22743# Symbols that should not be listed in the preloaded symbols.
22744exclude_expsyms=$lt_exclude_expsyms
6b66678a 22745
9c60689e
DWT
22746# Symbols that must always be exported.
22747include_expsyms=$lt_include_expsyms
6b66678a 22748
9c60689e
DWT
22749# Commands necessary for linking programs (against libraries) with templates.
22750prelink_cmds=$lt_prelink_cmds
6b66678a 22751
ee134472
JF
22752# Commands necessary for finishing linking programs.
22753postlink_cmds=$lt_postlink_cmds
22754
9c60689e
DWT
22755# Specify filename containing input files.
22756file_list_spec=$lt_file_list_spec
6b66678a 22757
9c60689e
DWT
22758# How to hardcode a shared library path into an executable.
22759hardcode_action=$hardcode_action
22760
22761# The directories searched by this compiler when creating a shared library.
22762compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22763
22764# Dependencies to place before and after the objects being linked to
22765# create a shared library.
22766predep_objects=$lt_predep_objects
22767postdep_objects=$lt_postdep_objects
22768predeps=$lt_predeps
22769postdeps=$lt_postdeps
22770
22771# The library search path used internally by the compiler when linking
22772# a shared library.
22773compiler_lib_search_path=$lt_compiler_lib_search_path
22774
22775# ### END LIBTOOL CONFIG
22776
22777_LT_EOF
22778
22779 case $host_os in
22780 aix3*)
22781 cat <<\_LT_EOF >> "$cfgfile"
22782# AIX sometimes has problems with the GCC collect2 program. For some
22783# reason, if we set the COLLECT_NAMES environment variable, the problems
22784# vanish in a puff of smoke.
22785if test "X${COLLECT_NAMES+set}" != Xset; then
22786 COLLECT_NAMES=
22787 export COLLECT_NAMES
6b66678a 22788fi
9c60689e
DWT
22789_LT_EOF
22790 ;;
22791 esac
6b66678a
DWT
22792
22793
9c60689e 22794ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 22795
9c60689e
DWT
22796
22797 # We use sed instead of cat because bash on DJGPP gets confused if
22798 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22799 # text mode, it properly converts lines to CR/LF. This bash problem
22800 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
22801 sed '$q' "$ltmain" >> "$cfgfile" \
22802 || (rm -f "$cfgfile"; exit 1)
22803
22804 if test x"$xsi_shell" = xyes; then
22805 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22806func_dirname ()\
22807{\
22808\ case ${1} in\
22809\ */*) func_dirname_result="${1%/*}${2}" ;;\
22810\ * ) func_dirname_result="${3}" ;;\
22811\ esac\
22812} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22813 && mv -f "$cfgfile.tmp" "$cfgfile" \
22814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22815test 0 -eq $? || _lt_function_replace_fail=:
22816
22817
22818 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22819func_basename ()\
22820{\
22821\ func_basename_result="${1##*/}"\
22822} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22823 && mv -f "$cfgfile.tmp" "$cfgfile" \
22824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22825test 0 -eq $? || _lt_function_replace_fail=:
22826
22827
22828 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22829func_dirname_and_basename ()\
22830{\
22831\ case ${1} in\
22832\ */*) func_dirname_result="${1%/*}${2}" ;;\
22833\ * ) func_dirname_result="${3}" ;;\
22834\ esac\
22835\ func_basename_result="${1##*/}"\
22836} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22837 && mv -f "$cfgfile.tmp" "$cfgfile" \
22838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22839test 0 -eq $? || _lt_function_replace_fail=:
22840
22841
22842 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22843func_stripname ()\
22844{\
22845\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22846\ # positional parameters, so assign one to ordinary parameter first.\
22847\ func_stripname_result=${3}\
22848\ func_stripname_result=${func_stripname_result#"${1}"}\
22849\ func_stripname_result=${func_stripname_result%"${2}"}\
22850} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22851 && mv -f "$cfgfile.tmp" "$cfgfile" \
22852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22853test 0 -eq $? || _lt_function_replace_fail=:
22854
22855
22856 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22857func_split_long_opt ()\
22858{\
22859\ func_split_long_opt_name=${1%%=*}\
22860\ func_split_long_opt_arg=${1#*=}\
22861} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22862 && mv -f "$cfgfile.tmp" "$cfgfile" \
22863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22864test 0 -eq $? || _lt_function_replace_fail=:
22865
22866
22867 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22868func_split_short_opt ()\
22869{\
22870\ func_split_short_opt_arg=${1#??}\
22871\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22872} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22873 && mv -f "$cfgfile.tmp" "$cfgfile" \
22874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22875test 0 -eq $? || _lt_function_replace_fail=:
22876
22877
22878 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22879func_lo2o ()\
22880{\
22881\ case ${1} in\
22882\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22883\ *) func_lo2o_result=${1} ;;\
22884\ esac\
22885} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22886 && mv -f "$cfgfile.tmp" "$cfgfile" \
22887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22888test 0 -eq $? || _lt_function_replace_fail=:
22889
22890
22891 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22892func_xform ()\
22893{\
22894 func_xform_result=${1%.*}.lo\
22895} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22896 && mv -f "$cfgfile.tmp" "$cfgfile" \
22897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22898test 0 -eq $? || _lt_function_replace_fail=:
22899
22900
22901 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22902func_arith ()\
22903{\
22904 func_arith_result=$(( $* ))\
22905} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22906 && mv -f "$cfgfile.tmp" "$cfgfile" \
22907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22908test 0 -eq $? || _lt_function_replace_fail=:
22909
22910
22911 sed -e '/^func_len ()$/,/^} # func_len /c\
22912func_len ()\
22913{\
22914 func_len_result=${#1}\
22915} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22916 && mv -f "$cfgfile.tmp" "$cfgfile" \
22917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22918test 0 -eq $? || _lt_function_replace_fail=:
22919
22920fi
22921
22922if test x"$lt_shell_append" = xyes; then
22923 sed -e '/^func_append ()$/,/^} # func_append /c\
22924func_append ()\
22925{\
22926 eval "${1}+=\\${2}"\
22927} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22928 && mv -f "$cfgfile.tmp" "$cfgfile" \
22929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22930test 0 -eq $? || _lt_function_replace_fail=:
22931
22932
22933 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22934func_append_quoted ()\
22935{\
22936\ func_quote_for_eval "${2}"\
22937\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22938} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22939 && mv -f "$cfgfile.tmp" "$cfgfile" \
22940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22941test 0 -eq $? || _lt_function_replace_fail=:
22942
22943
22944 # Save a `func_append' function call where possible by direct use of '+='
22945 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22946 && mv -f "$cfgfile.tmp" "$cfgfile" \
22947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22948 test 0 -eq $? || _lt_function_replace_fail=:
22949else
22950 # Save a `func_append' function call even when '+=' is not available
22951 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22952 && mv -f "$cfgfile.tmp" "$cfgfile" \
22953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22954 test 0 -eq $? || _lt_function_replace_fail=:
22955fi
22956
22957if test x"$_lt_function_replace_fail" = x":"; then
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22959$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22960fi
22961
22962
22963 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
22964 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22965 chmod +x "$ofile"
22966
22967
22968 cat <<_LT_EOF >> "$ofile"
22969
22970# ### BEGIN LIBTOOL TAG CONFIG: CXX
22971
22972# The linker used to build libraries.
22973LD=$lt_LD_CXX
22974
ee134472
JF
22975# How to create reloadable object files.
22976reload_flag=$lt_reload_flag_CXX
22977reload_cmds=$lt_reload_cmds_CXX
22978
9c60689e
DWT
22979# Commands used to build an old-style archive.
22980old_archive_cmds=$lt_old_archive_cmds_CXX
22981
22982# A language specific compiler.
22983CC=$lt_compiler_CXX
22984
22985# Is the compiler the GNU compiler?
22986with_gcc=$GCC_CXX
22987
22988# Compiler flag to turn off builtin functions.
22989no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 22990
9c60689e
DWT
22991# Additional compiler flags for building library objects.
22992pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 22993
ee134472
JF
22994# How to pass a linker flag through the compiler.
22995wl=$lt_lt_prog_compiler_wl_CXX
22996
9c60689e
DWT
22997# Compiler flag to prevent dynamic linking.
22998link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 22999
9c60689e
DWT
23000# Does compiler simultaneously support -c and -o options?
23001compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 23002
9c60689e
DWT
23003# Whether or not to add -lc for building shared libraries.
23004build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 23005
9c60689e
DWT
23006# Whether or not to disallow shared libs when runtime libs are static.
23007allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 23008
9c60689e
DWT
23009# Compiler flag to allow reflexive dlopens.
23010export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 23011
9c60689e
DWT
23012# Compiler flag to generate shared objects directly from archives.
23013whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 23014
9c60689e
DWT
23015# Whether the compiler copes with passing no objects directly.
23016compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 23017
9c60689e
DWT
23018# Create an old-style archive from a shared archive.
23019old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 23020
9c60689e
DWT
23021# Create a temporary old-style archive to link instead of a shared archive.
23022old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 23023
9c60689e
DWT
23024# Commands used to build a shared archive.
23025archive_cmds=$lt_archive_cmds_CXX
23026archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 23027
9c60689e
DWT
23028# Commands used to build a loadable module if different from building
23029# a shared archive.
23030module_cmds=$lt_module_cmds_CXX
23031module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 23032
9c60689e
DWT
23033# Whether we are building with GNU ld or not.
23034with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 23035
9c60689e
DWT
23036# Flag that allows shared libraries with undefined symbols to be built.
23037allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 23038
9c60689e
DWT
23039# Flag that enforces no undefined symbols.
23040no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 23041
9c60689e
DWT
23042# Flag to hardcode \$libdir into a binary during linking.
23043# This must work even if \$libdir does not exist
23044hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 23045
9c60689e
DWT
23046# Whether we need a single "-rpath" flag with a separated argument.
23047hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 23048
9c60689e
DWT
23049# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23050# DIR into the resulting binary.
23051hardcode_direct=$hardcode_direct_CXX
6b66678a 23052
9c60689e
DWT
23053# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23054# DIR into the resulting binary and the resulting library dependency is
23055# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23056# library is relocated.
23057hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 23058
9c60689e
DWT
23059# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23060# into the resulting binary.
23061hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 23062
9c60689e
DWT
23063# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23064# into the resulting binary.
23065hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 23066
9c60689e
DWT
23067# Set to "yes" if building a shared library automatically hardcodes DIR
23068# into the library and all subsequent libraries and executables linked
23069# against it.
23070hardcode_automatic=$hardcode_automatic_CXX
6b66678a 23071
9c60689e
DWT
23072# Set to yes if linker adds runtime paths of dependent libraries
23073# to runtime path list.
23074inherit_rpath=$inherit_rpath_CXX
6b66678a 23075
9c60689e
DWT
23076# Whether libtool must link a program against all its dependency libraries.
23077link_all_deplibs=$link_all_deplibs_CXX
6b66678a 23078
9c60689e
DWT
23079# Set to "yes" if exported symbols are required.
23080always_export_symbols=$always_export_symbols_CXX
6b66678a 23081
9c60689e
DWT
23082# The commands to list exported symbols.
23083export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 23084
9c60689e
DWT
23085# Symbols that should not be listed in the preloaded symbols.
23086exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 23087
9c60689e
DWT
23088# Symbols that must always be exported.
23089include_expsyms=$lt_include_expsyms_CXX
6b66678a 23090
9c60689e
DWT
23091# Commands necessary for linking programs (against libraries) with templates.
23092prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 23093
ee134472
JF
23094# Commands necessary for finishing linking programs.
23095postlink_cmds=$lt_postlink_cmds_CXX
23096
9c60689e
DWT
23097# Specify filename containing input files.
23098file_list_spec=$lt_file_list_spec_CXX
dbadc56a 23099
9c60689e
DWT
23100# How to hardcode a shared library path into an executable.
23101hardcode_action=$hardcode_action_CXX
309b0535 23102
9c60689e
DWT
23103# The directories searched by this compiler when creating a shared library.
23104compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 23105
9c60689e
DWT
23106# Dependencies to place before and after the objects being linked to
23107# create a shared library.
23108predep_objects=$lt_predep_objects_CXX
23109postdep_objects=$lt_postdep_objects_CXX
23110predeps=$lt_predeps_CXX
23111postdeps=$lt_postdeps_CXX
309b0535 23112
9c60689e
DWT
23113# The library search path used internally by the compiler when linking
23114# a shared library.
23115compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23116
23117# ### END LIBTOOL TAG CONFIG: CXX
23118_LT_EOF
23119
23120 ;;
23121
23122 esac
23123done # for ac_tag
23124
23125
23126as_fn_exit 0
23127_ACEOF
23128ac_clean_files=$ac_clean_files_save
23129
23130test $ac_write_fail = 0 ||
12833ad8 23131 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23132
23133
23134# configure is writing to config.log, and then calls config.status.
23135# config.status does its own redirection, appending to config.log.
23136# Unfortunately, on DOS this fails, as config.log is still kept open
23137# by configure, so config.status won't be able to write to it; its
23138# output is simply discarded. So we exec the FD to /dev/null,
23139# effectively closing config.log, so it can be properly (re)opened and
23140# appended to by config.status. When coming back to configure, we
23141# need to make the FD available again.
23142if test "$no_create" != yes; then
23143 ac_cs_success=:
23144 ac_config_status_args=
23145 test "$silent" = yes &&
23146 ac_config_status_args="$ac_config_status_args --quiet"
23147 exec 5>/dev/null
23148 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23149 exec 5>>config.log
23150 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23151 # would make configure fail if this is the last instruction.
12833ad8 23152 $ac_cs_success || as_fn_exit 1
309b0535 23153fi
9c60689e
DWT
23154if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23156$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23157fi
23158