]> git.saurik.com Git - cycript.git/blame - configure
Clean up dependencies now that they are tracked.
[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
6f9aea2b
JF
653LTLIBTERMCAP
654LTLIBREADLINE
a243b558
JF
655CY_OBJECTIVEC_FALSE
656CY_OBJECTIVEC_TRUE
babf7fe8 657LTOBJECTIVEC
47aaa820 658GNUSTEP_CONFIG
c823f118 659CY_OBJECTIVEC
296ee9a6 660LTLIBFFI
309b0535 661LIBFFI_LIBS
35fa52c0 662LIBFFI_CFLAGS
a243b558
JF
663CY_EXECUTE_FALSE
664CY_EXECUTE_TRUE
d4f27204 665LTLIBAPR
a93f15c0
JF
666CY_CONSOLE_FALSE
667CY_CONSOLE_TRUE
babf7fe8 668LTJAVASCRIPTCORE
35fa52c0
DWT
669WEBKIT_LIBS
670WEBKIT_CFLAGS
7eda51e0 671CY_EXECUTE
abc804fa 672CY_ARCH
9228a43a 673CY_FILTERS
e9c9a47c 674GNUTAR
e9c9a47c
DWT
675GPERF
676FLEX
677BISON
678TIME
66170b30 679GIT
12833ad8
JF
680PKG_CONFIG_LIBDIR
681PKG_CONFIG_PATH
3fd51f51 682PKG_CONFIG
a243b558 683CXXCPP
9c60689e
DWT
684CPP
685OTOOL64
686OTOOL
687LIPO
688NMEDIT
689DSYMUTIL
ee134472 690MANIFEST_TOOL
9c60689e 691RANLIB
ee134472 692DLLTOOL
9c60689e
DWT
693OBJDUMP
694LN_S
695NM
696ac_ct_DUMPBIN
697DUMPBIN
698LD
699FGREP
700EGREP
701GREP
702SED
a243b558
JF
703host_os
704host_vendor
705host_cpu
706host
707build_os
708build_vendor
709build_cpu
710build
711LIBTOOL
a243b558
JF
712ac_ct_AR
713AR
714am__fastdepOBJCXX_FALSE
715am__fastdepOBJCXX_TRUE
716OBJCXXDEPMODE
717ac_ct_OBJCXX
718OBJCXXFLAGS
719OBJCXX
720am__fastdepCXX_FALSE
721am__fastdepCXX_TRUE
722CXXDEPMODE
a93f15c0
JF
723ac_ct_CXX
724CXXFLAGS
725CXX
726am__fastdepCC_FALSE
727am__fastdepCC_TRUE
728CCDEPMODE
66170b30
JF
729am__nodep
730AMDEPBACKSLASH
731AMDEP_FALSE
732AMDEP_TRUE
733am__quote
734am__include
735DEPDIR
35fa52c0
DWT
736OBJEXT
737EXEEXT
a93f15c0 738ac_ct_CC
35fa52c0
DWT
739CPPFLAGS
740LDFLAGS
a93f15c0
JF
741CFLAGS
742CC
babf7fe8
JF
743MAINT
744MAINTAINER_MODE_FALSE
745MAINTAINER_MODE_TRUE
66170b30
JF
746AM_BACKSLASH
747AM_DEFAULT_VERBOSITY
748AM_DEFAULT_V
749AM_V
750am__untar
751am__tar
752AMTAR
753am__leading_dot
754SET_MAKE
755AWK
756mkdir_p
757MKDIR_P
758INSTALL_STRIP_PROGRAM
759STRIP
760install_sh
761MAKEINFO
762AUTOHEADER
763AUTOMAKE
764AUTOCONF
765ACLOCAL
766VERSION
767PACKAGE
768CYGPATH_W
769am__isrc
770INSTALL_DATA
771INSTALL_SCRIPT
772INSTALL_PROGRAM
dbadc56a 773target_alias
c7aa54aa
DWT
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
803PACKAGE_URL
804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL'
811ac_subst_files=''
812ac_user_opts='
813enable_option_checking
66170b30 814enable_silent_rules
babf7fe8 815enable_maintainer_mode
a243b558 816enable_dependency_tracking
9c60689e 817enable_static
549f29b5 818enable_shared
9c60689e
DWT
819with_pic
820enable_fast_install
35fa52c0 821with_gnu_ld
ee134472 822with_sysroot
9c60689e 823enable_libtool_lock
5053a6d1 824enable_javascript
a93f15c0 825enable_console
66170b30 826with_apr
c7aa54aa
DWT
827'
828 ac_precious_vars='build_alias
829host_alias
dbadc56a 830target_alias
a93f15c0
JF
831CC
832CFLAGS
dbadc56a
DWT
833LDFLAGS
834LIBS
835CPPFLAGS
a93f15c0
JF
836CXX
837CXXFLAGS
a243b558
JF
838CCC
839OBJCXX
840OBJCXXFLAGS
9c60689e 841CPP
a243b558 842CXXCPP
3fd51f51 843PKG_CONFIG
12833ad8
JF
844PKG_CONFIG_PATH
845PKG_CONFIG_LIBDIR
e9c9a47c
DWT
846BISON
847FLEX
848GPERF
66170b30 849GNUTAR
35fa52c0
DWT
850WEBKIT_CFLAGS
851WEBKIT_LIBS
a667869d 852LIBFFI_CFLAGS
790e5246
DWT
853LIBFFI_LIBS
854GNUSTEP_CONFIG'
c7aa54aa
DWT
855
856
857# Initialize some variables set by options.
858ac_init_help=
859ac_init_version=false
860ac_unrecognized_opts=
861ac_unrecognized_sep=
862# The variables have the same names as the options, with
863# dashes changed to underlines.
864cache_file=/dev/null
865exec_prefix=NONE
866no_create=
867no_recursion=
868prefix=NONE
869program_prefix=NONE
870program_suffix=NONE
871program_transform_name=s,x,x,
872silent=
873site=
874srcdir=
875verbose=
876x_includes=NONE
877x_libraries=NONE
878
879# Installation directory options.
880# These are left unexpanded so users can "make install exec_prefix=/foo"
881# and all the variables that are supposed to be based on exec_prefix
882# by default will actually change.
883# Use braces instead of parens because sh, perl, etc. also accept them.
884# (The list follows the same order as the GNU Coding Standards.)
885bindir='${exec_prefix}/bin'
886sbindir='${exec_prefix}/sbin'
887libexecdir='${exec_prefix}/libexec'
888datarootdir='${prefix}/share'
889datadir='${datarootdir}'
890sysconfdir='${prefix}/etc'
891sharedstatedir='${prefix}/com'
892localstatedir='${prefix}/var'
893includedir='${prefix}/include'
894oldincludedir='/usr/include'
895docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896infodir='${datarootdir}/info'
897htmldir='${docdir}'
898dvidir='${docdir}'
899pdfdir='${docdir}'
900psdir='${docdir}'
901libdir='${exec_prefix}/lib'
902localedir='${datarootdir}/locale'
903mandir='${datarootdir}/man'
904
905ac_prev=
906ac_dashdash=
907for ac_option
908do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
12833ad8
JF
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
c7aa54aa
DWT
920 esac
921
922 # Accept the important Cygnus configure options, so we can diagnose typos.
923
924 case $ac_dashdash$ac_option in
925 --)
926 ac_dashdash=yes ;;
927
928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 ac_prev=bindir ;;
930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 bindir=$ac_optarg ;;
932
933 -build | --build | --buil | --bui | --bu)
934 ac_prev=build_alias ;;
935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936 build_alias=$ac_optarg ;;
937
938 -cache-file | --cache-file | --cache-fil | --cache-fi \
939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940 ac_prev=cache_file ;;
941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943 cache_file=$ac_optarg ;;
944
945 --config-cache | -C)
946 cache_file=config.cache ;;
947
948 -datadir | --datadir | --datadi | --datad)
949 ac_prev=datadir ;;
950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
951 datadir=$ac_optarg ;;
952
953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954 | --dataroo | --dataro | --datar)
955 ac_prev=datarootdir ;;
956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958 datarootdir=$ac_optarg ;;
959
960 -disable-* | --disable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 964 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969"enable_$ac_useropt"
970"*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=no ;;
975
976 -docdir | --docdir | --docdi | --doc | --do)
977 ac_prev=docdir ;;
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979 docdir=$ac_optarg ;;
980
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 ac_prev=dvidir ;;
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984 dvidir=$ac_optarg ;;
985
986 -enable-* | --enable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 990 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995"enable_$ac_useropt"
996"*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1001
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1010
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1013 with_gas=yes ;;
1014
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1021
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1026
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 ac_prev=htmldir ;;
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 | --ht=*)
1031 htmldir=$ac_optarg ;;
1032
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1039
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 ac_prev=infodir ;;
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1044
1045 -libdir | --libdir | --libdi | --libd)
1046 ac_prev=libdir ;;
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1049
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1056
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1061
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1068
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 ac_prev=mandir ;;
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1073
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1076 with_fp=no ;;
1077
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1080 no_create=yes ;;
1081
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 no_recursion=yes ;;
1085
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1094
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 ac_prev=prefix ;;
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1099
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1106
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1113
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1130
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 ac_prev=pdfdir ;;
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1135
1136 -psdir | --psdir | --psdi | --psd | --ps)
1137 ac_prev=psdir ;;
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 psdir=$ac_optarg ;;
1140
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1143 silent=yes ;;
1144
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1150
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1161
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1166
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1171
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1178
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1183
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1186
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1189
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1194 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199"with_$ac_useropt"
1200"*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=\$ac_optarg ;;
1205
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1210 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215"with_$ac_useropt"
1216"*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=no ;;
1221
1222 --x)
1223 # Obsolete; use --with-x.
1224 with_x=yes ;;
1225
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1232
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1239
12833ad8
JF
1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241Try \`$0 --help' for more information"
c7aa54aa
DWT
1242 ;;
1243
1244 *=*)
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1250 esac
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1253
1254 *)
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1260 ;;
1261
1262 esac
1263done
1264
1265if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1267 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1268fi
1269
1270if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1272 no) ;;
12833ad8 1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 esac
1276fi
1277
1278# Check all directory arguments for consistency.
1279for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1283do
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1286 case $ac_val in
1287 */ )
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1290 esac
1291 # Be sure to have absolute directory names.
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
12833ad8 1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1297done
1298
1299# There might be people who depend on the old broken behavior: `$host'
1300# used to hold the argument of --host etc.
1301# FIXME: To remove some day.
1302build=$build_alias
1303host=$host_alias
1304target=$target_alias
1305
1306# FIXME: To remove some day.
1307if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
c7aa54aa
DWT
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1312 fi
1313fi
1314
1315ac_tool_prefix=
1316test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318test "$silent" = yes && exec 6>/dev/null
1319
1320
1321ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322ac_ls_di=`ls -di .` &&
1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1324 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1325test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1326 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1327
1328
1329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338$as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1359 fi
1360else
1361 ac_srcdir_defaulted=no
1362fi
1363if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1366fi
1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
12833ad8 1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1370 pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
12833ad8 1409 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448_ACEOF
1449
1450 cat <<\_ACEOF
35fa52c0 1451
66170b30
JF
1452Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
35fa52c0
DWT
1457System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of Cycript 0.9:";;
1466 esac
1467 cat <<\_ACEOF
1468
35fa52c0
DWT
1469Optional Features:
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1473 --enable-silent-rules less verbose build output (undo: "make V=1")
1474 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1475 --enable-maintainer-mode
1476 enable make rules and dependencies not useful (and
1477 sometimes confusing) to the casual installer
66170b30
JF
1478 --enable-dependency-tracking
1479 do not reject slow dependency extractors
1480 --disable-dependency-tracking
1481 speeds up one-time build
a243b558
JF
1482 --enable-static[=PKGS] build static libraries [default=no]
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
9c60689e 1486 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1487 --enable-javascript[=ENGINE]
790e5246 1488 use a JavaScript runtime (currently the only
b66977f1
DWT
1489 available option for ENGINE is JavaScriptCore)
1490 [default=yes]
a93f15c0 1491 --disable-console disable console
35fa52c0
DWT
1492
1493Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1496 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e
DWT
1497 both]
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1499 --with-sysroot=DIR Search for dependent libraries within DIR
1500 (or the compiler's sysroot if not specified).
309b0535
DWT
1501 --with-apr=PATH prefix for installed APR or the full path to
1502 apr-config
35fa52c0 1503
dbadc56a 1504Some influential environment variables:
a93f15c0
JF
1505 CC C compiler command
1506 CFLAGS C compiler flags
dbadc56a
DWT
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1511 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1512 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
a243b558
JF
1514 OBJCXX Objective C++ compiler command
1515 OBJCXXFLAGS Objective C++ compiler flags
9c60689e 1516 CPP C preprocessor
a243b558 1517 CXXCPP C++ preprocessor
3fd51f51 1518 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1519 PKG_CONFIG_PATH
1520 directories to add to pkg-config's search path
1521 PKG_CONFIG_LIBDIR
1522 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1523 BISON GNU Project parser generator (yacc replacement)
1524 FLEX the fast lexical analyser generator
1525 GPERF perfect hash function generator
66170b30 1526 GNUTAR a very sticky lump of files
35fa52c0
DWT
1527 WEBKIT_CFLAGS
1528 C compiler flags for WEBKIT, overriding pkg-config
1529 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1530 GNUSTEP_CONFIG
1531 prints information about the current gnustep installation
dbadc56a
DWT
1532
1533Use these variables to override the choices made by `configure' or to help
1534it to find libraries and programs with nonstandard names/locations.
1535
c7aa54aa
DWT
1536Report bugs to <saurik@saurik.com>.
1537Cycript home page: <http://www.cycript.org/>.
1538_ACEOF
1539ac_status=$?
1540fi
1541
1542if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1549
1550case "$ac_dir" in
1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552*)
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560esac
1561ac_abs_top_builddir=$ac_pwd
1562ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563# for backward compatibility:
1564ac_top_builddir=$ac_top_build_prefix
1565
1566case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579esac
1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1595fi
1596
1597test -n "$ac_init_help" && exit $ac_status
1598if $ac_init_version; then
1599 cat <<\_ACEOF
1600Cycript configure 0.9
53ba6704 1601generated by GNU Autoconf 2.69
c7aa54aa 1602
53ba6704 1603Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1604This configure script is free software; the Free Software Foundation
1605gives unlimited permission to copy, distribute and modify it.
66170b30
JF
1606
1607Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
1608_ACEOF
1609 exit
1610fi
1611
1612## ------------------------ ##
1613## Autoconf initialization. ##
1614## ------------------------ ##
dbadc56a 1615
a93f15c0
JF
1616# ac_fn_c_try_compile LINENO
1617# --------------------------
a243b558 1618# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1619ac_fn_c_try_compile ()
a243b558
JF
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
a93f15c0 1639 test -z "$ac_c_werror_flag" ||
a243b558
JF
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
a93f15c0 1652} # ac_fn_c_try_compile
a243b558 1653
a93f15c0
JF
1654# ac_fn_cxx_try_compile LINENO
1655# ----------------------------
a243b558 1656# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1657ac_fn_cxx_try_compile ()
a243b558
JF
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext
1661 if { { ac_try="$ac_compile"
1662case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_compile") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
a93f15c0 1677 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1678 test ! -s conftest.err
1679 } && test -s conftest.$ac_objext; then :
1680 ac_retval=0
1681else
1682 $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1
1686fi
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
a93f15c0 1690} # ac_fn_cxx_try_compile
a243b558 1691
a93f15c0
JF
1692# ac_fn_objcxx_try_compile LINENO
1693# -------------------------------
35fa52c0 1694# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1695ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1700case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1712 fi
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
a93f15c0 1715 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1718 ac_retval=0
1719else
1720 $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724fi
ee134472 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1726 as_fn_set_status $ac_retval
35fa52c0 1727
a93f15c0 1728} # ac_fn_objcxx_try_compile
35fa52c0
DWT
1729
1730# ac_fn_c_try_link LINENO
1731# -----------------------
1732# Try to link conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_c_try_link ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext conftest$ac_exeext
1737 if { { ac_try="$ac_link"
1738case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest$ac_exeext && {
1756 test "$cross_compiling" = yes ||
53ba6704 1757 test -x conftest$ac_exeext
35fa52c0
DWT
1758 }; then :
1759 ac_retval=0
1760else
1761 $as_echo "$as_me: failed program was:" >&5
1762sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765fi
1766 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768 # interfere with the next link command; also delete a directory that is
1769 # left behind by Apple's compiler. We do this before executing the actions.
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1772 as_fn_set_status $ac_retval
35fa52c0
DWT
1773
1774} # ac_fn_c_try_link
1775
9c60689e
DWT
1776# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777# -------------------------------------------------------
1778# Tests whether HEADER exists and can be compiled using the include files in
1779# INCLUDES, setting the cache variable VAR accordingly.
1780ac_fn_c_check_header_compile ()
dbadc56a
DWT
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
ee134472 1785if eval \${$3+:} false; then :
9c60689e
DWT
1786 $as_echo_n "(cached) " >&6
1787else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h. */
1790$4
1791#include <$2>
1792_ACEOF
1793if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795else
1796 eval "$3=no"
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
ee134472 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1804
1805} # ac_fn_c_check_header_compile
1806
1807# ac_fn_c_try_cpp LINENO
1808# ----------------------
1809# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_c_try_cpp ()
1811{
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1814case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
9c60689e 1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1828 test $ac_status = 0; } > conftest.i && {
9c60689e 1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1830 test ! -s conftest.err
9c60689e 1831 }; then :
dbadc56a
DWT
1832 ac_retval=0
1833else
1834 $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
9c60689e 1837 ac_retval=1
dbadc56a 1838fi
ee134472 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1840 as_fn_set_status $ac_retval
dbadc56a 1841
9c60689e 1842} # ac_fn_c_try_cpp
35fa52c0
DWT
1843
1844# ac_fn_c_try_run LINENO
1845# ----------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847# that executables *can* be run.
1848ac_fn_c_try_run ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862 { { case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_try") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; }; }; then :
1872 ac_retval=0
1873else
1874 $as_echo "$as_me: program exited with status $ac_status" >&5
1875 $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=$ac_status
1879fi
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1882 as_fn_set_status $ac_retval
35fa52c0
DWT
1883
1884} # ac_fn_c_try_run
6b66678a 1885
9c60689e
DWT
1886# ac_fn_c_check_func LINENO FUNC VAR
1887# ----------------------------------
1888# Tests whether FUNC exists, setting the cache variable VAR accordingly
1889ac_fn_c_check_func ()
6b66678a
DWT
1890{
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893$as_echo_n "checking for $2... " >&6; }
ee134472 1894if eval \${$3+:} false; then :
9c60689e 1895 $as_echo_n "(cached) " >&6
6b66678a 1896else
9c60689e
DWT
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h. */
1899/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1901#define $2 innocuous_$2
6b66678a 1902
9c60689e
DWT
1903/* System header to define __stub macros and hopefully few prototypes,
1904 which can conflict with char $2 (); below.
1905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906 <limits.h> exists even on freestanding compilers. */
1907
1908#ifdef __STDC__
1909# include <limits.h>
1910#else
1911# include <assert.h>
1912#endif
1913
1914#undef $2
1915
1916/* Override any GCC internal prototype to avoid an error.
1917 Use char because int might match the return type of a GCC
1918 builtin and then its argument prototype would still apply. */
1919#ifdef __cplusplus
1920extern "C"
1921#endif
1922char $2 ();
1923/* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926#if defined __stub_$2 || defined __stub___$2
1927choke me
1928#endif
1929
1930int
1931main ()
1932{
1933return $2 ();
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_link "$LINENO"; then :
1939 eval "$3=yes"
1940else
1941 eval "$3=no"
1942fi
1943rm -f core conftest.err conftest.$ac_objext \
1944 conftest$ac_exeext conftest.$ac_ext
6b66678a 1945fi
9c60689e
DWT
1946eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948$as_echo "$ac_res" >&6; }
ee134472 1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1950
9c60689e 1951} # ac_fn_c_check_func
6b66678a 1952
9c60689e
DWT
1953# ac_fn_cxx_try_cpp LINENO
1954# ------------------------
1955# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1956ac_fn_cxx_try_cpp ()
1957{
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_cpp conftest.$ac_ext"
1960case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963esac
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965$as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1972 fi
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1974 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1975 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 }; then :
1978 ac_retval=0
1979else
1980 $as_echo "$as_me: failed program was:" >&5
1981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 ac_retval=1
1984fi
ee134472 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1986 as_fn_set_status $ac_retval
1987
1988} # ac_fn_cxx_try_cpp
1989
1990# ac_fn_cxx_try_link LINENO
1991# -------------------------
1992# Try to link conftest.$ac_ext, and return whether this succeeded.
1993ac_fn_cxx_try_link ()
1994{
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 rm -f conftest.$ac_objext conftest$ac_exeext
1997 if { { ac_try="$ac_link"
1998case "(($ac_try" in
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2001esac
2002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003$as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_link") 2>conftest.err
2005 ac_status=$?
2006 if test -s conftest.err; then
2007 grep -v '^ *+' conftest.err >conftest.er1
2008 cat conftest.er1 >&5
2009 mv -f conftest.er1 conftest.err
2010 fi
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; } && {
2013 test -z "$ac_cxx_werror_flag" ||
2014 test ! -s conftest.err
2015 } && test -s conftest$ac_exeext && {
2016 test "$cross_compiling" = yes ||
53ba6704 2017 test -x conftest$ac_exeext
9c60689e
DWT
2018 }; then :
2019 ac_retval=0
2020else
2021 $as_echo "$as_me: failed program was:" >&5
2022sed 's/^/| /' conftest.$ac_ext >&5
2023
2024 ac_retval=1
2025fi
2026 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2027 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2028 # interfere with the next link command; also delete a directory that is
2029 # left behind by Apple's compiler. We do this before executing the actions.
2030 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2032 as_fn_set_status $ac_retval
2033
2034} # ac_fn_cxx_try_link
2035
47aaa820
DWT
2036# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2037# ---------------------------------------------------------
2038# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2039# the include files in INCLUDES and setting the cache variable VAR
2040# accordingly.
2041ac_fn_cxx_check_header_mongrel ()
2042{
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2044 if eval \${$3+:} false; then :
47aaa820
DWT
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046$as_echo_n "checking for $2... " >&6; }
ee134472 2047if eval \${$3+:} false; then :
47aaa820
DWT
2048 $as_echo_n "(cached) " >&6
2049fi
2050eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052$as_echo "$ac_res" >&6; }
2053else
2054 # Is the header compilable?
2055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2056$as_echo_n "checking $2 usability... " >&6; }
2057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$4
2060#include <$2>
2061_ACEOF
2062if ac_fn_cxx_try_compile "$LINENO"; then :
2063 ac_header_compiler=yes
2064else
2065 ac_header_compiler=no
2066fi
2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2069$as_echo "$ac_header_compiler" >&6; }
2070
2071# Is the header present?
2072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2073$as_echo_n "checking $2 presence... " >&6; }
2074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h. */
2076#include <$2>
2077_ACEOF
2078if ac_fn_cxx_try_cpp "$LINENO"; then :
2079 ac_header_preproc=yes
2080else
2081 ac_header_preproc=no
2082fi
12833ad8 2083rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2085$as_echo "$ac_header_preproc" >&6; }
2086
2087# So? What about this header?
2088case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2089 yes:no: )
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2091$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2093$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2094 ;;
2095 no:yes:* )
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2097$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2099$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2101$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2103$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2105$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2106( $as_echo "## -------------------------------- ##
47aaa820 2107## Report this to saurik@saurik.com ##
12833ad8 2108## -------------------------------- ##"
47aaa820
DWT
2109 ) | sed "s/^/$as_me: WARNING: /" >&2
2110 ;;
2111esac
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113$as_echo_n "checking for $2... " >&6; }
ee134472 2114if eval \${$3+:} false; then :
47aaa820
DWT
2115 $as_echo_n "(cached) " >&6
2116else
2117 eval "$3=\$ac_header_compiler"
2118fi
2119eval ac_res=\$$3
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121$as_echo "$ac_res" >&6; }
2122fi
ee134472 2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2124
2125} # ac_fn_cxx_check_header_mongrel
2126
c823f118
DWT
2127# ac_fn_objcxx_try_link LINENO
2128# ----------------------------
2129# Try to link conftest.$ac_ext, and return whether this succeeded.
2130ac_fn_objcxx_try_link ()
2131{
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 rm -f conftest.$ac_objext conftest$ac_exeext
2134 if { { ac_try="$ac_link"
2135case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138esac
2139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140$as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_link") 2>conftest.err
2142 ac_status=$?
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2147 fi
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && {
2150 test -z "$ac_objcxx_werror_flag" ||
2151 test ! -s conftest.err
2152 } && test -s conftest$ac_exeext && {
2153 test "$cross_compiling" = yes ||
53ba6704 2154 test -x conftest$ac_exeext
c823f118
DWT
2155 }; then :
2156 ac_retval=0
2157else
2158 $as_echo "$as_me: failed program was:" >&5
2159sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 ac_retval=1
2162fi
2163 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2164 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2165 # interfere with the next link command; also delete a directory that is
2166 # left behind by Apple's compiler. We do this before executing the actions.
2167 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2169 as_fn_set_status $ac_retval
2170
2171} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2172cat >config.log <<_ACEOF
2173This file contains any messages produced by compilers while
2174running configure, to aid debugging if configure makes a mistake.
2175
2176It was created by Cycript $as_me 0.9, which was
53ba6704 2177generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2178
2179 $ $0 $@
2180
2181_ACEOF
2182exec 5>>config.log
2183{
2184cat <<_ASUNAME
2185## --------- ##
2186## Platform. ##
2187## --------- ##
2188
2189hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2190uname -m = `(uname -m) 2>/dev/null || echo unknown`
2191uname -r = `(uname -r) 2>/dev/null || echo unknown`
2192uname -s = `(uname -s) 2>/dev/null || echo unknown`
2193uname -v = `(uname -v) 2>/dev/null || echo unknown`
2194
2195/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2196/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2197
2198/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2199/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2200/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2201/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2202/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2203/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2204/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2205
2206_ASUNAME
2207
2208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209for as_dir in $PATH
2210do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 $as_echo "PATH: $as_dir"
2214 done
2215IFS=$as_save_IFS
2216
2217} >&5
2218
2219cat >&5 <<_ACEOF
2220
2221
2222## ----------- ##
2223## Core tests. ##
2224## ----------- ##
2225
2226_ACEOF
2227
2228
2229# Keep a trace of the command line.
2230# Strip out --no-create and --no-recursion so they do not pile up.
2231# Strip out --silent because we don't want to record it for future runs.
2232# Also quote any args containing shell meta-characters.
2233# Make two passes to allow for proper duplicate-argument suppression.
2234ac_configure_args=
2235ac_configure_args0=
2236ac_configure_args1=
2237ac_must_keep_next=false
2238for ac_pass in 1 2
2239do
2240 for ac_arg
2241 do
2242 case $ac_arg in
2243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2245 | -silent | --silent | --silen | --sile | --sil)
2246 continue ;;
2247 *\'*)
2248 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2249 esac
2250 case $ac_pass in
2251 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2252 2)
2253 as_fn_append ac_configure_args1 " '$ac_arg'"
2254 if test $ac_must_keep_next = true; then
2255 ac_must_keep_next=false # Got value, back to normal.
2256 else
2257 case $ac_arg in
2258 *=* | --config-cache | -C | -disable-* | --disable-* \
2259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2261 | -with-* | --with-* | -without-* | --without-* | --x)
2262 case "$ac_configure_args0 " in
2263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2264 esac
2265 ;;
2266 -* ) ac_must_keep_next=true ;;
2267 esac
2268 fi
2269 as_fn_append ac_configure_args " '$ac_arg'"
2270 ;;
2271 esac
2272 done
2273done
2274{ ac_configure_args0=; unset ac_configure_args0;}
2275{ ac_configure_args1=; unset ac_configure_args1;}
2276
2277# When interrupted or exit'd, cleanup temporary files, and complete
2278# config.log. We remove comments because anyway the quotes in there
2279# would cause problems or look ugly.
2280# WARNING: Use '\'' to represent an apostrophe within the trap.
2281# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2282trap 'exit_status=$?
2283 # Save into config.log some information that might help in debugging.
2284 {
2285 echo
2286
12833ad8 2287 $as_echo "## ---------------- ##
c7aa54aa 2288## Cache variables. ##
12833ad8 2289## ---------------- ##"
c7aa54aa
DWT
2290 echo
2291 # The following way of writing the cache mishandles newlines in values,
2292(
2293 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2294 eval ac_val=\$$ac_var
2295 case $ac_val in #(
2296 *${as_nl}*)
2297 case $ac_var in #(
2298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2299$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2300 esac
2301 case $ac_var in #(
2302 _ | IFS | as_nl) ;; #(
2303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2304 *) { eval $ac_var=; unset $ac_var;} ;;
2305 esac ;;
2306 esac
2307 done
2308 (set) 2>&1 |
2309 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2310 *${as_nl}ac_space=\ *)
2311 sed -n \
2312 "s/'\''/'\''\\\\'\'''\''/g;
2313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2314 ;; #(
2315 *)
2316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2317 ;;
2318 esac |
2319 sort
2320)
2321 echo
2322
12833ad8 2323 $as_echo "## ----------------- ##
c7aa54aa 2324## Output variables. ##
12833ad8 2325## ----------------- ##"
c7aa54aa
DWT
2326 echo
2327 for ac_var in $ac_subst_vars
2328 do
2329 eval ac_val=\$$ac_var
2330 case $ac_val in
2331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 esac
2333 $as_echo "$ac_var='\''$ac_val'\''"
2334 done | sort
2335 echo
2336
2337 if test -n "$ac_subst_files"; then
12833ad8 2338 $as_echo "## ------------------- ##
c7aa54aa 2339## File substitutions. ##
12833ad8 2340## ------------------- ##"
c7aa54aa
DWT
2341 echo
2342 for ac_var in $ac_subst_files
2343 do
2344 eval ac_val=\$$ac_var
2345 case $ac_val in
2346 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2347 esac
2348 $as_echo "$ac_var='\''$ac_val'\''"
2349 done | sort
2350 echo
2351 fi
2352
2353 if test -s confdefs.h; then
12833ad8 2354 $as_echo "## ----------- ##
c7aa54aa 2355## confdefs.h. ##
12833ad8 2356## ----------- ##"
c7aa54aa
DWT
2357 echo
2358 cat confdefs.h
2359 echo
2360 fi
2361 test "$ac_signal" != 0 &&
2362 $as_echo "$as_me: caught signal $ac_signal"
2363 $as_echo "$as_me: exit $exit_status"
2364 } >&5
2365 rm -f core *.core core.conftest.* &&
2366 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2367 exit $exit_status
2368' 0
2369for ac_signal in 1 2 13 15; do
2370 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2371done
2372ac_signal=0
2373
2374# confdefs.h avoids OS command line length limits that DEFS can exceed.
2375rm -f -r conftest* confdefs.h
2376
2377$as_echo "/* confdefs.h */" > confdefs.h
2378
2379# Predefined preprocessor variables.
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_NAME "$PACKAGE_NAME"
2383_ACEOF
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2387_ACEOF
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_VERSION "$PACKAGE_VERSION"
2391_ACEOF
2392
2393cat >>confdefs.h <<_ACEOF
2394#define PACKAGE_STRING "$PACKAGE_STRING"
2395_ACEOF
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2399_ACEOF
2400
2401cat >>confdefs.h <<_ACEOF
2402#define PACKAGE_URL "$PACKAGE_URL"
2403_ACEOF
2404
2405
2406# Let the site file select an alternate cache file if it wants to.
2407# Prefer an explicitly selected file to automatically selected ones.
2408ac_site_file1=NONE
2409ac_site_file2=NONE
2410if test -n "$CONFIG_SITE"; then
12833ad8
JF
2411 # We do not want a PATH search for config.site.
2412 case $CONFIG_SITE in #((
2413 -*) ac_site_file1=./$CONFIG_SITE;;
2414 */*) ac_site_file1=$CONFIG_SITE;;
2415 *) ac_site_file1=./$CONFIG_SITE;;
2416 esac
c7aa54aa
DWT
2417elif test "x$prefix" != xNONE; then
2418 ac_site_file1=$prefix/share/config.site
2419 ac_site_file2=$prefix/etc/config.site
2420else
2421 ac_site_file1=$ac_default_prefix/share/config.site
2422 ac_site_file2=$ac_default_prefix/etc/config.site
2423fi
2424for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2425do
2426 test "x$ac_site_file" = xNONE && continue
9c60689e 2427 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2429$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2430 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2431 . "$ac_site_file" \
2432 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434as_fn_error $? "failed to load site script $ac_site_file
ee134472 2435See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2436 fi
2437done
2438
2439if test -r "$cache_file"; then
9c60689e
DWT
2440 # Some versions of bash will fail to source /dev/null (special files
2441 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2442 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2444$as_echo "$as_me: loading cache $cache_file" >&6;}
2445 case $cache_file in
2446 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2447 *) . "./$cache_file";;
2448 esac
2449 fi
2450else
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2452$as_echo "$as_me: creating cache $cache_file" >&6;}
2453 >$cache_file
2454fi
2455
2456# Check that the precious variables saved in the cache have kept the same
2457# value.
2458ac_cache_corrupted=false
2459for ac_var in $ac_precious_vars; do
2460 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2461 eval ac_new_set=\$ac_env_${ac_var}_set
2462 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2463 eval ac_new_val=\$ac_env_${ac_var}_value
2464 case $ac_old_set,$ac_new_set in
2465 set,)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2467$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,set)
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2471$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2472 ac_cache_corrupted=: ;;
2473 ,);;
2474 *)
2475 if test "x$ac_old_val" != "x$ac_new_val"; then
2476 # differences in whitespace do not lead to failure.
2477 ac_old_val_w=`echo x $ac_old_val`
2478 ac_new_val_w=`echo x $ac_new_val`
2479 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2481$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2482 ac_cache_corrupted=:
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2485$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2486 eval $ac_var=\$ac_old_val
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2489$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2491$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2492 fi;;
2493 esac
2494 # Pass precious variables to config.status.
2495 if test "$ac_new_set" = set; then
2496 case $ac_new_val in
2497 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2498 *) ac_arg=$ac_var=$ac_new_val ;;
2499 esac
2500 case " $ac_configure_args " in
2501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2502 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2503 esac
2504 fi
2505done
2506if $ac_cache_corrupted; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2510$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2511 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2512fi
2513## -------------------- ##
2514## Main body of script. ##
2515## -------------------- ##
2516
2517ac_ext=c
2518ac_cpp='$CPP $CPPFLAGS'
2519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
2523
66170b30
JF
2524
2525
35fa52c0 2526
6b66678a
DWT
2527ac_aux_dir=
2528for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2529 if test -f "$ac_dir/install-sh"; then
2530 ac_aux_dir=$ac_dir
2531 ac_install_sh="$ac_aux_dir/install-sh -c"
2532 break
2533 elif test -f "$ac_dir/install.sh"; then
2534 ac_aux_dir=$ac_dir
2535 ac_install_sh="$ac_aux_dir/install.sh -c"
2536 break
2537 elif test -f "$ac_dir/shtool"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/shtool install -c"
2540 break
2541 fi
6b66678a
DWT
2542done
2543if test -z "$ac_aux_dir"; then
12833ad8 2544 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2545fi
2546
2547# These three variables are undocumented and unsupported,
2548# and are intended to be withdrawn in a future Autoconf release.
2549# They can cause serious problems if a builder's source tree is in a directory
2550# whose full name contains unusual characters.
2551ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2552ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2553ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2554
2555
9c60689e 2556
296ee9a6
JF
2557ac_config_headers="$ac_config_headers config.h"
2558
9c60689e 2559
a93f15c0 2560am__api_version='1.14'
9c60689e 2561
66170b30
JF
2562# Find a good install program. We prefer a C program (faster),
2563# so one script is as good as another. But avoid the broken or
2564# incompatible versions:
2565# SysV /etc/install, /usr/sbin/install
2566# SunOS /usr/etc/install
2567# IRIX /sbin/install
2568# AIX /bin/install
2569# AmigaOS /C/install, which installs bootblocks on floppy discs
2570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573# OS/2's system install, which has a completely different semantic
2574# ./install, which can be erroneously created by make from ./install.sh.
2575# Reject install programs that cannot install multiple files.
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577$as_echo_n "checking for a BSD-compatible install... " >&6; }
2578if test -z "$INSTALL"; then
2579if ${ac_cv_path_install+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 # Account for people who put trailing slashes in PATH elements.
2588case $as_dir/ in #((
2589 ./ | .// | /[cC]/* | \
2590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2592 /usr/ucb/* ) ;;
2593 *)
2594 # OSF1 and SCO ODT 3.0 have their own names for install.
2595 # Don't use installbsd from OSF since it installs stuff as root
2596 # by default.
2597 for ac_prog in ginstall scoinst install; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2600 if test $ac_prog = install &&
2601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2603 :
2604 elif test $ac_prog = install &&
2605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2607 :
2608 else
2609 rm -rf conftest.one conftest.two conftest.dir
2610 echo one > conftest.one
2611 echo two > conftest.two
2612 mkdir conftest.dir
2613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614 test -s conftest.one && test -s conftest.two &&
2615 test -s conftest.dir/conftest.one &&
2616 test -s conftest.dir/conftest.two
2617 then
2618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619 break 3
2620 fi
2621 fi
2622 fi
2623 done
2624 done
2625 ;;
2626esac
9c60689e 2627
66170b30
JF
2628 done
2629IFS=$as_save_IFS
9c60689e 2630
66170b30 2631rm -rf conftest.one conftest.two conftest.dir
9c60689e 2632
66170b30
JF
2633fi
2634 if test "${ac_cv_path_install+set}" = set; then
2635 INSTALL=$ac_cv_path_install
2636 else
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for INSTALL within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 INSTALL=$ac_install_sh
2642 fi
2643fi
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645$as_echo "$INSTALL" >&6; }
9c60689e 2646
66170b30
JF
2647# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648# It thinks the first close brace ends the variable substitution.
2649test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2650
66170b30 2651test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2652
66170b30 2653test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2654
66170b30
JF
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656$as_echo_n "checking whether build environment is sane... " >&6; }
2657# Reject unsafe characters in $srcdir or the absolute working directory
2658# name. Accept space and tab only in the latter.
2659am_lf='
2660'
2661case `pwd` in
2662 *[\\\"\#\$\&\'\`$am_lf]*)
2663 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2664esac
2665case $srcdir in
2666 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2667 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2668esac
9c60689e 2669
66170b30
JF
2670# Do 'set' in a subshell so we don't clobber the current shell's
2671# arguments. Must try -L first in case configure is actually a
2672# symlink; some systems play weird games with the mod time of symlinks
2673# (eg FreeBSD returns the mod time of the symlink's containing
2674# directory).
2675if (
2676 am_has_slept=no
2677 for am_try in 1 2; do
2678 echo "timestamp, slept: $am_has_slept" > conftest.file
2679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680 if test "$*" = "X"; then
2681 # -L didn't work.
2682 set X `ls -t "$srcdir/configure" conftest.file`
2683 fi
2684 if test "$*" != "X $srcdir/configure conftest.file" \
2685 && test "$*" != "X conftest.file $srcdir/configure"; then
2686
2687 # If neither matched, then we have a broken ls. This can happen
2688 # if, for instance, CONFIG_SHELL is bash and it inherits a
2689 # broken ls alias from the environment. This has actually
2690 # happened. Such a system could not be considered "sane".
2691 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2692 alias in your environment" "$LINENO" 5
2693 fi
2694 if test "$2" = conftest.file || test $am_try -eq 2; then
2695 break
2696 fi
2697 # Just in case.
2698 sleep 1
2699 am_has_slept=yes
2700 done
2701 test "$2" = conftest.file
2702 )
2703then
2704 # Ok.
2705 :
2706else
2707 as_fn_error $? "newly created file is older than distributed files!
2708Check your system clock" "$LINENO" 5
2709fi
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711$as_echo "yes" >&6; }
2712# If we didn't sleep, we still need to ensure time stamps of config.status and
2713# generated files are strictly newer.
2714am_sleep_pid=
2715if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2716 ( sleep 1 ) &
2717 am_sleep_pid=$!
2718fi
2719
2720rm -f conftest.file
2721
2722test "$program_prefix" != NONE &&
2723 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2724# Use a double $ so make ignores it.
2725test "$program_suffix" != NONE &&
2726 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2727# Double any \ or $.
2728# By default was `s,x,x', remove it if useless.
2729ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2730program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2731
2732# expand $ac_aux_dir to an absolute path
2733am_aux_dir=`cd $ac_aux_dir && pwd`
2734
2735if test x"${MISSING+set}" != xset; then
2736 case $am_aux_dir in
2737 *\ * | *\ *)
2738 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2739 *)
2740 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2741 esac
2742fi
2743# Use eval to expand $SHELL
2744if eval "$MISSING --is-lightweight"; then
2745 am_missing_run="$MISSING "
2746else
2747 am_missing_run=
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2749$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2750fi
9c60689e 2751
66170b30
JF
2752if test x"${install_sh}" != xset; then
2753 case $am_aux_dir in
2754 *\ * | *\ *)
2755 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2756 *)
2757 install_sh="\${SHELL} $am_aux_dir/install-sh"
2758 esac
2759fi
9c60689e 2760
66170b30
JF
2761# Installed binaries are usually stripped using 'strip' when the user
2762# run "make install-strip". However 'strip' might not be the right
2763# tool to use in cross-compilation environments, therefore Automake
2764# will honor the 'STRIP' environment variable to overrule this program.
2765if test "$cross_compiling" != no; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768set dummy ${ac_tool_prefix}strip; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if ${ac_cv_prog_STRIP+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773else
2774 if test -n "$STRIP"; then
2775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789 done
2790IFS=$as_save_IFS
9c60689e 2791
66170b30
JF
2792fi
2793fi
2794STRIP=$ac_cv_prog_STRIP
2795if test -n "$STRIP"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797$as_echo "$STRIP" >&6; }
2798else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
9c60689e 2802
9c60689e 2803
66170b30
JF
2804fi
2805if test -z "$ac_cv_prog_STRIP"; then
2806 ac_ct_STRIP=$STRIP
2807 # Extract the first word of "strip", so it can be a program name with args.
2808set dummy strip; ac_word=$2
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
2811if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2812 $as_echo_n "(cached) " >&6
2813else
66170b30
JF
2814 if test -n "$ac_ct_STRIP"; then
2815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_ac_ct_STRIP="strip"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828done
2829 done
2830IFS=$as_save_IFS
9c60689e
DWT
2831
2832fi
66170b30
JF
2833fi
2834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2835if test -n "$ac_ct_STRIP"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2837$as_echo "$ac_ct_STRIP" >&6; }
2838else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840$as_echo "no" >&6; }
2841fi
2842
2843 if test "x$ac_ct_STRIP" = x; then
2844 STRIP=":"
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847yes:)
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850ac_tool_warned=yes ;;
9c60689e 2851esac
66170b30
JF
2852 STRIP=$ac_ct_STRIP
2853 fi
2854else
2855 STRIP="$ac_cv_prog_STRIP"
2856fi
9c60689e 2857
66170b30
JF
2858fi
2859INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2860
66170b30
JF
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2862$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2863if test -z "$MKDIR_P"; then
2864 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2865 $as_echo_n "(cached) " >&6
2866else
66170b30
JF
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2869do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_prog in mkdir gmkdir; do
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2875 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2876 'mkdir (GNU coreutils) '* | \
2877 'mkdir (coreutils) '* | \
2878 'mkdir (fileutils) '4.1*)
2879 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2880 break 3;;
2881 esac
2882 done
2883 done
2884 done
2885IFS=$as_save_IFS
2886
2887fi
2888
2889 test -d ./--version && rmdir ./--version
2890 if test "${ac_cv_path_mkdir+set}" = set; then
2891 MKDIR_P="$ac_cv_path_mkdir -p"
2892 else
2893 # As a last resort, use the slow shell script. Don't cache a
2894 # value for MKDIR_P within a source directory, because that will
2895 # break other packages using the cache if that directory is
2896 # removed, or if the value is a relative name.
2897 MKDIR_P="$ac_install_sh -d"
2898 fi
2899fi
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2901$as_echo "$MKDIR_P" >&6; }
2902
2903for ac_prog in gawk mawk nawk awk
2904do
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906set dummy $ac_prog; ac_word=$2
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908$as_echo_n "checking for $ac_word... " >&6; }
2909if ${ac_cv_prog_AWK+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911else
2912 if test -n "$AWK"; then
2913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_AWK="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926done
2927 done
2928IFS=$as_save_IFS
2929
2930fi
2931fi
2932AWK=$ac_cv_prog_AWK
2933if test -n "$AWK"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2935$as_echo "$AWK" >&6; }
2936else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
2939fi
2940
2941
2942 test -n "$AWK" && break
2943done
2944
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2946$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2947set x ${MAKE-make}
2948ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2949if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951else
2952 cat >conftest.make <<\_ACEOF
2953SHELL = /bin/sh
2954all:
2955 @echo '@@@%%%=$(MAKE)=@@@%%%'
2956_ACEOF
2957# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2958case `${MAKE-make} -f conftest.make 2>/dev/null` in
2959 *@@@%%%=?*=@@@%%%*)
2960 eval ac_cv_prog_make_${ac_make}_set=yes;;
2961 *)
2962 eval ac_cv_prog_make_${ac_make}_set=no;;
2963esac
2964rm -f conftest.make
2965fi
2966if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968$as_echo "yes" >&6; }
2969 SET_MAKE=
2970else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973 SET_MAKE="MAKE=${MAKE-make}"
2974fi
2975
2976rm -rf .tst 2>/dev/null
2977mkdir .tst 2>/dev/null
2978if test -d .tst; then
2979 am__leading_dot=.
2980else
2981 am__leading_dot=_
2982fi
2983rmdir .tst 2>/dev/null
2984
2985# Check whether --enable-silent-rules was given.
2986if test "${enable_silent_rules+set}" = set; then :
2987 enableval=$enable_silent_rules;
2988fi
2989
2990case $enable_silent_rules in # (((
2991 yes) AM_DEFAULT_VERBOSITY=0;;
2992 no) AM_DEFAULT_VERBOSITY=1;;
2993 *) AM_DEFAULT_VERBOSITY=1;;
2994esac
2995am_make=${MAKE-make}
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2998if ${am_cv_make_support_nested_variables+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000else
3001 if $as_echo 'TRUE=$(BAR$(V))
3002BAR0=false
3003BAR1=true
3004V=1
3005am__doit:
3006 @$(TRUE)
3007.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3008 am_cv_make_support_nested_variables=yes
3009else
3010 am_cv_make_support_nested_variables=no
3011fi
3012fi
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014$as_echo "$am_cv_make_support_nested_variables" >&6; }
3015if test $am_cv_make_support_nested_variables = yes; then
3016 AM_V='$(V)'
3017 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018else
3019 AM_V=$AM_DEFAULT_VERBOSITY
3020 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021fi
3022AM_BACKSLASH='\'
3023
3024if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026 # is not polluted with repeated "-I."
3027 am__isrc=' -I$(srcdir)'
3028 # test to see if srcdir already configured
3029 if test -f $srcdir/config.status; then
3030 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3031 fi
3032fi
3033
3034# test whether we have cygpath
3035if test -z "$CYGPATH_W"; then
3036 if (cygpath --version) >/dev/null 2>/dev/null; then
3037 CYGPATH_W='cygpath -w'
3038 else
3039 CYGPATH_W=echo
3040 fi
3041fi
3042
3043
3044# Define the identity of the package.
3045 PACKAGE='cycript'
3046 VERSION='0.9'
3047
3048
3049cat >>confdefs.h <<_ACEOF
3050#define PACKAGE "$PACKAGE"
3051_ACEOF
3052
3053
3054cat >>confdefs.h <<_ACEOF
3055#define VERSION "$VERSION"
3056_ACEOF
3057
3058# Some tools Automake needs.
3059
3060ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3061
3062
3063AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3064
3065
3066AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3067
3068
3069AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3070
3071
3072MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3073
3074# For better backward compatibility. To be removed once Automake 1.9.x
3075# dies out for good. For more background, see:
3076# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3077# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3078mkdir_p='$(MKDIR_P)'
3079
3080# We need awk for the "check" target. The system "awk" is bad on
3081# some platforms.
3082# Always define AMTAR for backward compatibility. Yes, it's still used
3083# in the wild :-( We should find a proper way to deprecate it ...
3084AMTAR='$${TAR-tar}'
3085
a93f15c0
JF
3086
3087# We'll loop over all known methods to create a tar archive until one works.
3088_am_tools='gnutar pax cpio none'
3089
66170b30
JF
3090am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3091
3092
3093
3094
3095
66170b30 3096
a93f15c0
JF
3097# POSIX will say in a future version that running "rm -f" with no argument
3098# is OK; and we want to be able to make that assumption in our Makefile
3099# recipes. So use an aggressive probe to check that the usage we want is
3100# actually supported "in the wild" to an acceptable degree.
3101# See automake bug#10828.
3102# To make any issue more visible, cause the running configure to be aborted
3103# by default if the 'rm' program in use doesn't match our expectations; the
3104# user can still override this though.
3105if rm -f && rm -fr && rm -rf; then : OK; else
3106 cat >&2 <<'END'
3107Oops!
3108
3109Your 'rm' program seems unable to run without file operands specified
3110on the command line, even when the '-f' option is present. This is contrary
3111to the behaviour of most rm programs out there, and not conforming with
3112the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3113
3114Please tell bug-automake@gnu.org about your system, including the value
3115of your $PATH and any error possibly output before this message. This
3116can help us improve future automake versions.
3117
3118END
3119 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3120 echo 'Configuration will proceed anyway, since you have set the' >&2
3121 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3122 echo >&2
3123 else
3124 cat >&2 <<'END'
3125Aborting the configuration process, to ensure you take notice of the issue.
3126
3127You can download and install GNU coreutils to get an 'rm' implementation
3128that behaves properly: <http://www.gnu.org/software/coreutils/>.
3129
3130If you want to complete the configuration process using your problematic
3131'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3132to "yes", and re-run configure.
3133
3134END
3135 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3136 fi
3137fi
3138
babf7fe8
JF
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3140$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3141 # Check whether --enable-maintainer-mode was given.
3142if test "${enable_maintainer_mode+set}" = set; then :
3143 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3144else
3145 USE_MAINTAINER_MODE=no
3146fi
3147
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3149$as_echo "$USE_MAINTAINER_MODE" >&6; }
3150 if test $USE_MAINTAINER_MODE = yes; then
3151 MAINTAINER_MODE_TRUE=
3152 MAINTAINER_MODE_FALSE='#'
3153else
3154 MAINTAINER_MODE_TRUE='#'
3155 MAINTAINER_MODE_FALSE=
3156fi
3157
3158 MAINT=$MAINTAINER_MODE_TRUE
3159
3160
3161
a93f15c0
JF
3162ac_ext=c
3163ac_cpp='$CPP $CPPFLAGS'
3164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3169set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3172if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3173 $as_echo_n "(cached) " >&6
3174else
a93f15c0
JF
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3177else
3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179for as_dir in $PATH
3180do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3185 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3188 fi
3189done
3190 done
3191IFS=$as_save_IFS
3192
3193fi
3194fi
a93f15c0
JF
3195CC=$ac_cv_prog_CC
3196if test -n "$CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198$as_echo "$CC" >&6; }
35fa52c0
DWT
3199else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201$as_echo "no" >&6; }
3202fi
3203
3204
35fa52c0 3205fi
a93f15c0
JF
3206if test -z "$ac_cv_prog_CC"; then
3207 ac_ct_CC=$CC
3208 # Extract the first word of "gcc", so it can be a program name with args.
3209set dummy gcc; ac_word=$2
35fa52c0
DWT
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3212if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3213 $as_echo_n "(cached) " >&6
3214else
a93f15c0
JF
3215 if test -n "$ac_ct_CC"; then
3216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3217else
3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH
3220do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3225 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3228 fi
3229done
3230 done
3231IFS=$as_save_IFS
3232
3233fi
3234fi
a93f15c0
JF
3235ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236if test -n "$ac_ct_CC"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3239else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241$as_echo "no" >&6; }
3242fi
3243
a93f15c0
JF
3244 if test "x$ac_ct_CC" = x; then
3245 CC=""
35fa52c0
DWT
3246 else
3247 case $cross_compiling:$ac_tool_warned in
3248yes:)
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251ac_tool_warned=yes ;;
3252esac
a93f15c0 3253 CC=$ac_ct_CC
35fa52c0 3254 fi
a93f15c0
JF
3255else
3256 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3257fi
3258
a93f15c0
JF
3259if test -z "$CC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3262set dummy ${ac_tool_prefix}cc; ac_word=$2
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
3265if ${ac_cv_prog_CC+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_CC="${ac_tool_prefix}cc"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
a243b558 3281 fi
35fa52c0 3282done
a93f15c0
JF
3283 done
3284IFS=$as_save_IFS
35fa52c0 3285
a93f15c0
JF
3286fi
3287fi
3288CC=$ac_cv_prog_CC
3289if test -n "$CC"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291$as_echo "$CC" >&6; }
3292else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295fi
35fa52c0 3296
35fa52c0 3297
a93f15c0
JF
3298 fi
3299fi
3300if test -z "$CC"; then
3301 # Extract the first word of "cc", so it can be a program name with args.
3302set dummy cc; ac_word=$2
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304$as_echo_n "checking for $ac_word... " >&6; }
3305if ${ac_cv_prog_CC+:} false; then :
3306 $as_echo_n "(cached) " >&6
3307else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310else
3311 ac_prog_rejected=no
3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH
35fa52c0 3314do
a93f15c0
JF
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3320 ac_prog_rejected=yes
3321 continue
3322 fi
3323 ac_cv_prog_CC="cc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327done
3328 done
3329IFS=$as_save_IFS
3330
3331if test $ac_prog_rejected = yes; then
3332 # We found a bogon in the path, so make sure we never use it.
3333 set dummy $ac_cv_prog_CC
3334 shift
3335 if test $# != 0; then
3336 # We chose a different compiler from the bogus one.
3337 # However, it has the same basename, so the bogon will be chosen
3338 # first if we set CC to just the basename; use the full file name.
3339 shift
3340 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3341 fi
3342fi
3343fi
3344fi
3345CC=$ac_cv_prog_CC
3346if test -n "$CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348$as_echo "$CC" >&6; }
3349else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351$as_echo "no" >&6; }
3352fi
3353
3354
3355fi
3356if test -z "$CC"; then
3357 if test -n "$ac_tool_prefix"; then
3358 for ac_prog in cl.exe
3359 do
3360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3361set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363$as_echo_n "checking for $ac_word... " >&6; }
3364if ${ac_cv_prog_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366else
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369else
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381done
3382 done
3383IFS=$as_save_IFS
3384
3385fi
3386fi
3387CC=$ac_cv_prog_CC
3388if test -n "$CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3390$as_echo "$CC" >&6; }
3391else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393$as_echo "no" >&6; }
3394fi
3395
3396
3397 test -n "$CC" && break
3398 done
3399fi
3400if test -z "$CC"; then
3401 ac_ct_CC=$CC
3402 for ac_prog in cl.exe
3403do
3404 # Extract the first word of "$ac_prog", so it can be a program name with args.
3405set dummy $ac_prog; ac_word=$2
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407$as_echo_n "checking for $ac_word... " >&6; }
3408if ${ac_cv_prog_ac_ct_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410else
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3413else
3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_ac_ct_CC="$ac_prog"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425done
3426 done
3427IFS=$as_save_IFS
3428
3429fi
3430fi
3431ac_ct_CC=$ac_cv_prog_ac_ct_CC
3432if test -n "$ac_ct_CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3434$as_echo "$ac_ct_CC" >&6; }
3435else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437$as_echo "no" >&6; }
3438fi
3439
3440
3441 test -n "$ac_ct_CC" && break
3442done
3443
3444 if test "x$ac_ct_CC" = x; then
3445 CC=""
3446 else
3447 case $cross_compiling:$ac_tool_warned in
3448yes:)
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451ac_tool_warned=yes ;;
3452esac
3453 CC=$ac_ct_CC
3454 fi
3455fi
3456
3457fi
3458
3459
3460test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462as_fn_error $? "no acceptable C compiler found in \$PATH
3463See \`config.log' for more details" "$LINENO" 5; }
3464
3465# Provide some information about the compiler.
3466$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3467set X $ac_compile
3468ac_compiler=$2
3469for ac_option in --version -v -V -qversion; do
3470 { { ac_try="$ac_compiler $ac_option >&5"
3471case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474esac
3475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476$as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3478 ac_status=$?
3479 if test -s conftest.err; then
3480 sed '10a\
3481... rest of stderr output deleted ...
3482 10q' conftest.err >conftest.er1
3483 cat conftest.er1 >&5
3484 fi
3485 rm -f conftest.er1 conftest.err
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }
3488done
3489
3490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491/* end confdefs.h. */
3492
3493int
3494main ()
3495{
3496
3497 ;
3498 return 0;
3499}
3500_ACEOF
3501ac_clean_files_save=$ac_clean_files
3502ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3503# Try to create an executable without -o first, disregard a.out.
3504# It will help us diagnose broken compilers, and finding out an intuition
3505# of exeext.
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3507$as_echo_n "checking whether the C compiler works... " >&6; }
3508ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3509
3510# The possible output files:
3511ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3512
3513ac_rmfiles=
3514for ac_file in $ac_files
3515do
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3519 esac
3520done
35fa52c0
DWT
3521rm -f $ac_rmfiles
3522
3523if { { ac_try="$ac_link_default"
3524case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527esac
3528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529$as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link_default") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536# in a Makefile. We should not override ac_cv_exeext if it was cached,
3537# so that the user can short-circuit this test for compilers unknown to
3538# Autoconf.
3539for ac_file in $ac_files ''
3540do
3541 test -f "$ac_file" || continue
3542 case $ac_file in
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3544 ;;
3545 [ab].out )
3546 # We found the default executable, but exeext='' is most
3547 # certainly right.
3548 break;;
3549 *.* )
3550 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3551 then :; else
3552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553 fi
3554 # We set ac_cv_exeext here because the later test for it is not
3555 # safe: cross compilers may not add the suffix if given an `-o'
3556 # argument, so we may need to know it at that point already.
3557 # Even if this section looks crufty: it has the advantage of
3558 # actually working.
3559 break;;
3560 * )
3561 break;;
3562 esac
3563done
3564test "$ac_cv_exeext" = no && ac_cv_exeext=
3565
3566else
3567 ac_file=''
3568fi
35fa52c0 3569if test -z "$ac_file"; then :
9c60689e
DWT
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571$as_echo "no" >&6; }
3572$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3577as_fn_error 77 "C compiler cannot create executables
ee134472 3578See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3579else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3581$as_echo "yes" >&6; }
35fa52c0 3582fi
a93f15c0
JF
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3584$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3586$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3587ac_exeext=$ac_cv_exeext
3588
9c60689e 3589rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3590ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3592$as_echo_n "checking for suffix of executables... " >&6; }
3593if { { ac_try="$ac_link"
3594case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597esac
3598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599$as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_link") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; then :
3604 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3605# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3606# work properly (i.e., refer to `conftest.exe'), while it won't with
3607# `rm'.
3608for ac_file in conftest.exe conftest conftest.*; do
3609 test -f "$ac_file" || continue
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3612 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613 break;;
3614 * ) break;;
3615 esac
3616done
3617else
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3620as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3621See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3622fi
9c60689e 3623rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3625$as_echo "$ac_cv_exeext" >&6; }
3626
3627rm -f conftest.$ac_ext
3628EXEEXT=$ac_cv_exeext
3629ac_exeext=$EXEEXT
9c60689e
DWT
3630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631/* end confdefs.h. */
3632#include <stdio.h>
3633int
3634main ()
3635{
3636FILE *f = fopen ("conftest.out", "w");
3637 return ferror (f) || fclose (f) != 0;
3638
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643ac_clean_files="$ac_clean_files conftest.out"
3644# Check that the compiler produces executables we can run. If not, either
3645# the compiler is broken, or we cross compile.
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3647$as_echo_n "checking whether we are cross compiling... " >&6; }
3648if test "$cross_compiling" != yes; then
3649 { { ac_try="$ac_link"
3650case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653esac
3654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655$as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }
3660 if { ac_try='./conftest$ac_cv_exeext'
3661 { { case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_try") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; }; then
3671 cross_compiling=no
3672 else
3673 if test "$cross_compiling" = maybe; then
3674 cross_compiling=yes
3675 else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3678as_fn_error $? "cannot run C compiled programs.
9c60689e 3679If you meant to cross compile, use \`--host'.
ee134472 3680See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3681 fi
3682 fi
3683fi
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3685$as_echo "$cross_compiling" >&6; }
3686
3687rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3688ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3690$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3691if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3692 $as_echo_n "(cached) " >&6
3693else
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h. */
3696
3697int
3698main ()
3699{
3700
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705rm -f conftest.o conftest.obj
3706if { { ac_try="$ac_compile"
3707case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710esac
3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712$as_echo "$ac_try_echo"; } >&5
3713 (eval "$ac_compile") 2>&5
3714 ac_status=$?
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }; then :
3717 for ac_file in conftest.o conftest.obj conftest.*; do
3718 test -f "$ac_file" || continue;
3719 case $ac_file in
3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3722 break;;
3723 esac
3724done
3725else
3726 $as_echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3731as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3732See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3733fi
3734rm -f conftest.$ac_cv_objext conftest.$ac_ext
3735fi
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3737$as_echo "$ac_cv_objext" >&6; }
3738OBJEXT=$ac_cv_objext
3739ac_objext=$OBJEXT
a93f15c0
JF
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3741$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3742if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3743 $as_echo_n "(cached) " >&6
3744else
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746/* end confdefs.h. */
3747
3748int
3749main ()
3750{
3751#ifndef __GNUC__
3752 choke me
3753#endif
3754
3755 ;
3756 return 0;
3757}
3758_ACEOF
a93f15c0 3759if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3760 ac_compiler_gnu=yes
3761else
3762 ac_compiler_gnu=no
3763fi
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3765ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3766
3767fi
a93f15c0
JF
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3769$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3770if test $ac_compiler_gnu = yes; then
a93f15c0 3771 GCC=yes
35fa52c0 3772else
a93f15c0 3773 GCC=
35fa52c0 3774fi
a93f15c0
JF
3775ac_test_CFLAGS=${CFLAGS+set}
3776ac_save_CFLAGS=$CFLAGS
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3778$as_echo_n "checking whether $CC accepts -g... " >&6; }
3779if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3780 $as_echo_n "(cached) " >&6
3781else
a93f15c0
JF
3782 ac_save_c_werror_flag=$ac_c_werror_flag
3783 ac_c_werror_flag=yes
3784 ac_cv_prog_cc_g=no
3785 CFLAGS="-g"
35fa52c0
DWT
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787/* end confdefs.h. */
3788
3789int
3790main ()
3791{
3792
3793 ;
3794 return 0;
3795}
3796_ACEOF
a93f15c0
JF
3797if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_cv_prog_cc_g=yes
35fa52c0 3799else
a93f15c0 3800 CFLAGS=""
35fa52c0
DWT
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h. */
3803
3804int
3805main ()
3806{
3807
3808 ;
3809 return 0;
3810}
3811_ACEOF
a93f15c0 3812if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3813
3814else
a93f15c0
JF
3815 ac_c_werror_flag=$ac_save_c_werror_flag
3816 CFLAGS="-g"
35fa52c0
DWT
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h. */
3819
3820int
3821main ()
3822{
3823
3824 ;
3825 return 0;
3826}
3827_ACEOF
a93f15c0
JF
3828if ac_fn_c_try_compile "$LINENO"; then :
3829 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3830fi
3831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832fi
3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3836 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3837fi
a93f15c0
JF
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3839$as_echo "$ac_cv_prog_cc_g" >&6; }
3840if test "$ac_test_CFLAGS" = set; then
3841 CFLAGS=$ac_save_CFLAGS
3842elif test $ac_cv_prog_cc_g = yes; then
3843 if test "$GCC" = yes; then
3844 CFLAGS="-g -O2"
35fa52c0 3845 else
a93f15c0 3846 CFLAGS="-g"
35fa52c0
DWT
3847 fi
3848else
a93f15c0
JF
3849 if test "$GCC" = yes; then
3850 CFLAGS="-O2"
35fa52c0 3851 else
a93f15c0 3852 CFLAGS=
35fa52c0
DWT
3853 fi
3854fi
a93f15c0
JF
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3856$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3857if ${ac_cv_prog_cc_c89+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859else
3860 ac_cv_prog_cc_c89=no
3861ac_save_CC=$CC
3862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863/* end confdefs.h. */
3864#include <stdarg.h>
3865#include <stdio.h>
3866struct stat;
3867/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3868struct buf { int x; };
3869FILE * (*rcsopen) (struct buf *, struct stat *, int);
3870static char *e (p, i)
3871 char **p;
3872 int i;
3873{
3874 return p[i];
3875}
3876static char *f (char * (*g) (char **, int), char **p, ...)
3877{
3878 char *s;
3879 va_list v;
3880 va_start (v,p);
3881 s = g (p, va_arg (v,int));
3882 va_end (v);
3883 return s;
3884}
3885
3886/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3887 function prototypes and stuff, but not '\xHH' hex character constants.
3888 These don't provoke an error unfortunately, instead are silently treated
3889 as 'x'. The following induces an error, until -std is added to get
3890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3891 array size at least. It's necessary to write '\x00'==0 to get something
3892 that's true only with -std. */
3893int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3894
3895/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3896 inside strings and character constants. */
3897#define FOO(x) 'x'
3898int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3899
3900int test (int i, double x);
3901struct s1 {int (*f) (int a);};
3902struct s2 {int (*f) (double a);};
3903int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3904int argc;
3905char **argv;
3906int
3907main ()
3908{
3909return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3910 ;
3911 return 0;
3912}
3913_ACEOF
3914for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3916do
3917 CC="$ac_save_CC $ac_arg"
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_cv_prog_cc_c89=$ac_arg
3920fi
3921rm -f core conftest.err conftest.$ac_objext
3922 test "x$ac_cv_prog_cc_c89" != "xno" && break
3923done
3924rm -f conftest.$ac_ext
3925CC=$ac_save_CC
3926
3927fi
3928# AC_CACHE_VAL
3929case "x$ac_cv_prog_cc_c89" in
3930 x)
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3932$as_echo "none needed" >&6; } ;;
3933 xno)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3935$as_echo "unsupported" >&6; } ;;
3936 *)
3937 CC="$CC $ac_cv_prog_cc_c89"
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3939$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3940esac
3941if test "x$ac_cv_prog_cc_c89" != xno; then :
3942
3943fi
3944
3945ac_ext=c
3946ac_cpp='$CPP $CPPFLAGS'
3947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950
3951ac_ext=c
3952ac_cpp='$CPP $CPPFLAGS'
3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3957$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3958if ${am_cv_prog_cc_c_o+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960else
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h. */
3963
3964int
3965main ()
3966{
3967
3968 ;
3969 return 0;
3970}
3971_ACEOF
3972 # Make sure it works both with $CC and with simple cc.
3973 # Following AC_PROG_CC_C_O, we do the test twice because some
3974 # compilers refuse to overwrite an existing .o file with -o,
3975 # though they will create one.
3976 am_cv_prog_cc_c_o=yes
3977 for am_i in 1 2; do
3978 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3979 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } \
3983 && test -f conftest2.$ac_objext; then
3984 : OK
3985 else
3986 am_cv_prog_cc_c_o=no
3987 break
3988 fi
3989 done
3990 rm -f core conftest*
3991 unset am_i
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3994$as_echo "$am_cv_prog_cc_c_o" >&6; }
3995if test "$am_cv_prog_cc_c_o" != yes; then
3996 # Losing compiler, so override with the script.
3997 # FIXME: It is wrong to rewrite CC.
3998 # But if we don't then we get into trouble of one sort or another.
3999 # A longer-term fix would be to have automake use am__CC in this case,
4000 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4001 CC="$am_aux_dir/compile $CC"
4002fi
a243b558
JF
4003ac_ext=c
4004ac_cpp='$CPP $CPPFLAGS'
4005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4008
a243b558 4009DEPDIR="${am__leading_dot}deps"
35fa52c0 4010
a243b558 4011ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4012
35fa52c0 4013
a243b558
JF
4014am_make=${MAKE-make}
4015cat > confinc << 'END'
4016am__doit:
4017 @echo this is the am__doit target
4018.PHONY: am__doit
4019END
4020# If we don't find an include directive, just comment out the code.
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4022$as_echo_n "checking for style of include used by $am_make... " >&6; }
4023am__include="#"
4024am__quote=
4025_am_result=none
4026# First try GNU make style include.
4027echo "include confinc" > confmf
4028# Ignore all kinds of additional output from 'make'.
4029case `$am_make -s -f confmf 2> /dev/null` in #(
4030*the\ am__doit\ target*)
4031 am__include=include
4032 am__quote=
4033 _am_result=GNU
4034 ;;
4035esac
4036# Now try BSD make style include.
4037if test "$am__include" = "#"; then
4038 echo '.include "confinc"' > confmf
4039 case `$am_make -s -f confmf 2> /dev/null` in #(
4040 *the\ am__doit\ target*)
4041 am__include=.include
4042 am__quote="\""
4043 _am_result=BSD
4044 ;;
4045 esac
35fa52c0 4046fi
35fa52c0 4047
a243b558
JF
4048
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4050$as_echo "$_am_result" >&6; }
4051rm -f confinc confmf
4052
4053# Check whether --enable-dependency-tracking was given.
4054if test "${enable_dependency_tracking+set}" = set; then :
4055 enableval=$enable_dependency_tracking;
35fa52c0 4056fi
35fa52c0 4057
a243b558
JF
4058if test "x$enable_dependency_tracking" != xno; then
4059 am_depcomp="$ac_aux_dir/depcomp"
4060 AMDEPBACKSLASH='\'
4061 am__nodep='_no'
4062fi
4063 if test "x$enable_dependency_tracking" != xno; then
4064 AMDEP_TRUE=
4065 AMDEP_FALSE='#'
4066else
4067 AMDEP_TRUE='#'
4068 AMDEP_FALSE=
35fa52c0
DWT
4069fi
4070
35fa52c0 4071
a243b558 4072
a93f15c0 4073depcc="$CC" am_compiler_list=
66170b30
JF
4074
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4076$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4077if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4078 $as_echo_n "(cached) " >&6
4079else
4080 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4081 # We make a subdir and do the tests there. Otherwise we can end up
4082 # making bogus files that we don't know about and never remove. For
4083 # instance it was reported that on HP-UX the gcc test will end up
4084 # making a dummy file named 'D' -- because '-MD' means "put the output
4085 # in D".
4086 rm -rf conftest.dir
4087 mkdir conftest.dir
4088 # Copy depcomp to subdir because otherwise we won't find it if we're
4089 # using a relative directory.
4090 cp "$am_depcomp" conftest.dir
4091 cd conftest.dir
4092 # We will build objects and dependencies in a subdirectory because
4093 # it helps to detect inapplicable dependency modes. For instance
4094 # both Tru64's cc and ICC support -MD to output dependencies as a
4095 # side effect of compilation, but ICC will put the dependencies in
4096 # the current directory while Tru64 will put them in the object
4097 # directory.
4098 mkdir sub
4099
a93f15c0 4100 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4101 if test "$am_compiler_list" = ""; then
4102 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4103 fi
4104 am__universal=false
4105 case " $depcc " in #(
4106 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4107 esac
4108
4109 for depmode in $am_compiler_list; do
4110 # Setup a source with many dependencies, because some compilers
4111 # like to wrap large dependency lists on column 80 (with \), and
4112 # we should not choose a depcomp mode which is confused by this.
4113 #
4114 # We need to recreate these files for each test, as the compiler may
4115 # overwrite some of them when testing with obscure command lines.
4116 # This happens at least with the AIX C compiler.
4117 : > sub/conftest.c
4118 for i in 1 2 3 4 5 6; do
4119 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4120 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4121 # Solaris 10 /bin/sh.
4122 echo '/* dummy */' > sub/conftst$i.h
4123 done
4124 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4125
4126 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4127 # mode. It turns out that the SunPro C++ compiler does not properly
4128 # handle '-M -o', and we need to detect this. Also, some Intel
4129 # versions had trouble with output in subdirs.
4130 am__obj=sub/conftest.${OBJEXT-o}
4131 am__minus_obj="-o $am__obj"
4132 case $depmode in
4133 gcc)
4134 # This depmode causes a compiler race in universal mode.
4135 test "$am__universal" = false || continue
4136 ;;
4137 nosideeffect)
4138 # After this tag, mechanisms are not by side-effect, so they'll
4139 # only be used when explicitly requested.
4140 if test "x$enable_dependency_tracking" = xyes; then
4141 continue
4142 else
4143 break
4144 fi
4145 ;;
4146 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4147 # This compiler won't grok '-c -o', but also, the minuso test has
4148 # not run yet. These depmodes are late enough in the game, and
4149 # so weak that their functioning should not be impacted.
4150 am__obj=conftest.${OBJEXT-o}
4151 am__minus_obj=
4152 ;;
4153 none) break ;;
4154 esac
4155 if depmode=$depmode \
4156 source=sub/conftest.c object=$am__obj \
4157 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4158 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4159 >/dev/null 2>conftest.err &&
4160 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4161 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4162 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4163 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4164 # icc doesn't choke on unknown options, it will just issue warnings
4165 # or remarks (even with -Werror). So we grep stderr for any message
4166 # that says an option was ignored or not supported.
4167 # When given -MP, icc 7.0 and 7.1 complain thusly:
4168 # icc: Command line warning: ignoring option '-M'; no argument required
4169 # The diagnosis changed in icc 8.0:
4170 # icc: Command line remark: option '-MP' not supported
4171 if (grep 'ignoring option' conftest.err ||
4172 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4173 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4174 break
4175 fi
4176 fi
4177 done
4178
4179 cd ..
4180 rm -rf conftest.dir
4181else
a93f15c0 4182 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4183fi
4184
4185fi
a93f15c0
JF
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4187$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4188CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4189
4190 if
4191 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4192 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4193 am__fastdepCC_TRUE=
4194 am__fastdepCC_FALSE='#'
66170b30 4195else
a93f15c0
JF
4196 am__fastdepCC_TRUE='#'
4197 am__fastdepCC_FALSE=
66170b30
JF
4198fi
4199
4200
a93f15c0
JF
4201ac_ext=cpp
4202ac_cpp='$CXXCPP $CPPFLAGS'
4203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4206if test -z "$CXX"; then
4207 if test -n "$CCC"; then
4208 CXX=$CCC
4209 else
4210 if test -n "$ac_tool_prefix"; then
4211 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4212 do
4213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4214set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4217if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4218 $as_echo_n "(cached) " >&6
4219else
a93f15c0
JF
4220 if test -n "$CXX"; then
4221 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4222else
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
35fa52c0
DWT
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4230 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234done
9c60689e
DWT
4235 done
4236IFS=$as_save_IFS
35fa52c0 4237
9c60689e 4238fi
a243b558 4239fi
a93f15c0
JF
4240CXX=$ac_cv_prog_CXX
4241if test -n "$CXX"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4243$as_echo "$CXX" >&6; }
a243b558
JF
4244else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
4247fi
35fa52c0 4248
35fa52c0 4249
a93f15c0 4250 test -n "$CXX" && break
a243b558
JF
4251 done
4252fi
a93f15c0
JF
4253if test -z "$CXX"; then
4254 ac_ct_CXX=$CXX
4255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4256do
4257 # Extract the first word of "$ac_prog", so it can be a program name with args.
4258set dummy $ac_prog; ac_word=$2
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4261if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4262 $as_echo_n "(cached) " >&6
4263else
a93f15c0
JF
4264 if test -n "$ac_ct_CXX"; then
4265 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4266else
4267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
9c60689e
DWT
4269do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
9c60689e 4272 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4274 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278done
9c60689e
DWT
4279 done
4280IFS=$as_save_IFS
a243b558
JF
4281
4282fi
4283fi
a93f15c0
JF
4284ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4285if test -n "$ac_ct_CXX"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4287$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4288else
a243b558
JF
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
9c60689e 4291fi
6b66678a
DWT
4292
4293
a93f15c0 4294 test -n "$ac_ct_CXX" && break
a243b558 4295done
6b66678a 4296
a93f15c0
JF
4297 if test "x$ac_ct_CXX" = x; then
4298 CXX="g++"
a243b558
JF
4299 else
4300 case $cross_compiling:$ac_tool_warned in
4301yes:)
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304ac_tool_warned=yes ;;
9c60689e 4305esac
a93f15c0 4306 CXX=$ac_ct_CXX
9c60689e 4307 fi
9c60689e 4308fi
6b66678a 4309
a93f15c0
JF
4310 fi
4311fi
a243b558 4312# Provide some information about the compiler.
a93f15c0 4313$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4314set X $ac_compile
4315ac_compiler=$2
4316for ac_option in --version -v -V -qversion; do
4317 { { ac_try="$ac_compiler $ac_option >&5"
4318case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323$as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4325 ac_status=$?
4326 if test -s conftest.err; then
4327 sed '10a\
4328... rest of stderr output deleted ...
4329 10q' conftest.err >conftest.er1
4330 cat conftest.er1 >&5
4331 fi
4332 rm -f conftest.er1 conftest.err
4333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334 test $ac_status = 0; }
4335done
6b66678a 4336
a93f15c0
JF
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4338$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4339if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4340 $as_echo_n "(cached) " >&6
6b66678a 4341else
a243b558
JF
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h. */
6b66678a 4344
a243b558
JF
4345int
4346main ()
4347{
4348#ifndef __GNUC__
4349 choke me
4350#endif
4351
4352 ;
4353 return 0;
4354}
4355_ACEOF
a93f15c0 4356if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4357 ac_compiler_gnu=yes
9c60689e 4358else
a243b558 4359 ac_compiler_gnu=no
6b66678a 4360fi
a243b558 4361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4362ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4363
4364fi
a93f15c0
JF
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4366$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4367if test $ac_compiler_gnu = yes; then
a93f15c0 4368 GXX=yes
a243b558 4369else
a93f15c0 4370 GXX=
a243b558 4371fi
a93f15c0
JF
4372ac_test_CXXFLAGS=${CXXFLAGS+set}
4373ac_save_CXXFLAGS=$CXXFLAGS
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4375$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4376if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4377 $as_echo_n "(cached) " >&6
4378else
a93f15c0
JF
4379 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4380 ac_cxx_werror_flag=yes
4381 ac_cv_prog_cxx_g=no
4382 CXXFLAGS="-g"
a243b558
JF
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384/* end confdefs.h. */
309b0535 4385
a243b558
JF
4386int
4387main ()
4388{
309b0535 4389
a243b558
JF
4390 ;
4391 return 0;
4392}
4393_ACEOF
a93f15c0
JF
4394if ac_fn_cxx_try_compile "$LINENO"; then :
4395 ac_cv_prog_cxx_g=yes
a243b558 4396else
a93f15c0 4397 CXXFLAGS=""
a243b558
JF
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399/* end confdefs.h. */
309b0535 4400
a243b558
JF
4401int
4402main ()
4403{
309b0535 4404
a243b558
JF
4405 ;
4406 return 0;
4407}
4408_ACEOF
a93f15c0 4409if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4410
a243b558 4411else
a93f15c0
JF
4412 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4413 CXXFLAGS="-g"
a243b558
JF
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415/* end confdefs.h. */
309b0535 4416
a243b558
JF
4417int
4418main ()
4419{
309b0535 4420
a243b558
JF
4421 ;
4422 return 0;
4423}
4424_ACEOF
a93f15c0
JF
4425if ac_fn_cxx_try_compile "$LINENO"; then :
4426 ac_cv_prog_cxx_g=yes
9c60689e 4427fi
a243b558 4428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4429fi
a243b558 4430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4431fi
a243b558 4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4433 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4434fi
a93f15c0
JF
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4436$as_echo "$ac_cv_prog_cxx_g" >&6; }
4437if test "$ac_test_CXXFLAGS" = set; then
4438 CXXFLAGS=$ac_save_CXXFLAGS
4439elif test $ac_cv_prog_cxx_g = yes; then
4440 if test "$GXX" = yes; then
4441 CXXFLAGS="-g -O2"
a243b558 4442 else
a93f15c0 4443 CXXFLAGS="-g"
a243b558 4444 fi
9c60689e 4445else
a93f15c0
JF
4446 if test "$GXX" = yes; then
4447 CXXFLAGS="-O2"
a243b558 4448 else
a93f15c0 4449 CXXFLAGS=
a243b558 4450 fi
9c60689e 4451fi
a243b558
JF
4452ac_ext=c
4453ac_cpp='$CPP $CPPFLAGS'
4454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4457
a93f15c0 4458depcc="$CXX" am_compiler_list=
309b0535 4459
a243b558
JF
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4461$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4462if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4463 $as_echo_n "(cached) " >&6
4464else
4465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4466 # We make a subdir and do the tests there. Otherwise we can end up
4467 # making bogus files that we don't know about and never remove. For
4468 # instance it was reported that on HP-UX the gcc test will end up
4469 # making a dummy file named 'D' -- because '-MD' means "put the output
4470 # in D".
4471 rm -rf conftest.dir
4472 mkdir conftest.dir
4473 # Copy depcomp to subdir because otherwise we won't find it if we're
4474 # using a relative directory.
4475 cp "$am_depcomp" conftest.dir
4476 cd conftest.dir
4477 # We will build objects and dependencies in a subdirectory because
4478 # it helps to detect inapplicable dependency modes. For instance
4479 # both Tru64's cc and ICC support -MD to output dependencies as a
4480 # side effect of compilation, but ICC will put the dependencies in
4481 # the current directory while Tru64 will put them in the object
4482 # directory.
4483 mkdir sub
309b0535 4484
a93f15c0 4485 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4486 if test "$am_compiler_list" = ""; then
4487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4488 fi
4489 am__universal=false
a93f15c0
JF
4490 case " $depcc " in #(
4491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4492 esac
9c60689e 4493
a243b558
JF
4494 for depmode in $am_compiler_list; do
4495 # Setup a source with many dependencies, because some compilers
4496 # like to wrap large dependency lists on column 80 (with \), and
4497 # we should not choose a depcomp mode which is confused by this.
4498 #
4499 # We need to recreate these files for each test, as the compiler may
4500 # overwrite some of them when testing with obscure command lines.
4501 # This happens at least with the AIX C compiler.
4502 : > sub/conftest.c
4503 for i in 1 2 3 4 5 6; do
4504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4505 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4506 # Solaris 10 /bin/sh.
4507 echo '/* dummy */' > sub/conftst$i.h
4508 done
4509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4510
a243b558
JF
4511 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4512 # mode. It turns out that the SunPro C++ compiler does not properly
4513 # handle '-M -o', and we need to detect this. Also, some Intel
4514 # versions had trouble with output in subdirs.
4515 am__obj=sub/conftest.${OBJEXT-o}
4516 am__minus_obj="-o $am__obj"
4517 case $depmode in
4518 gcc)
4519 # This depmode causes a compiler race in universal mode.
4520 test "$am__universal" = false || continue
4521 ;;
4522 nosideeffect)
4523 # After this tag, mechanisms are not by side-effect, so they'll
4524 # only be used when explicitly requested.
4525 if test "x$enable_dependency_tracking" = xyes; then
4526 continue
4527 else
4528 break
309b0535 4529 fi
a243b558
JF
4530 ;;
4531 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4532 # This compiler won't grok '-c -o', but also, the minuso test has
4533 # not run yet. These depmodes are late enough in the game, and
4534 # so weak that their functioning should not be impacted.
4535 am__obj=conftest.${OBJEXT-o}
4536 am__minus_obj=
4537 ;;
4538 none) break ;;
4539 esac
4540 if depmode=$depmode \
4541 source=sub/conftest.c object=$am__obj \
4542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4544 >/dev/null 2>conftest.err &&
4545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4549 # icc doesn't choke on unknown options, it will just issue warnings
4550 # or remarks (even with -Werror). So we grep stderr for any message
4551 # that says an option was ignored or not supported.
4552 # When given -MP, icc 7.0 and 7.1 complain thusly:
4553 # icc: Command line warning: ignoring option '-M'; no argument required
4554 # The diagnosis changed in icc 8.0:
4555 # icc: Command line remark: option '-MP' not supported
4556 if (grep 'ignoring option' conftest.err ||
4557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4558 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4559 break
4560 fi
4561 fi
309b0535 4562 done
a243b558
JF
4563
4564 cd ..
4565 rm -rf conftest.dir
4566else
a93f15c0 4567 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4568fi
a243b558 4569
9c60689e 4570fi
a93f15c0
JF
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4572$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4573CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4574
4575 if
4576 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4577 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4578 am__fastdepCXX_TRUE=
4579 am__fastdepCXX_FALSE='#'
9c60689e 4580else
a93f15c0
JF
4581 am__fastdepCXX_TRUE='#'
4582 am__fastdepCXX_FALSE=
a243b558
JF
4583fi
4584
4585
a93f15c0
JF
4586ac_ext=mm
4587ac_cpp='$OBJCXXCPP $CPPFLAGS'
4588ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4591if test -n "$ac_tool_prefix"; then
a93f15c0 4592 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4593 do
4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4598if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4599 $as_echo_n "(cached) " >&6
4600else
a93f15c0
JF
4601 if test -n "$OBJCXX"; then
4602 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4611 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
9c60689e 4614 fi
a243b558
JF
4615done
4616 done
4617IFS=$as_save_IFS
9c60689e 4618
a243b558
JF
4619fi
4620fi
a93f15c0
JF
4621OBJCXX=$ac_cv_prog_OBJCXX
4622if test -n "$OBJCXX"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4624$as_echo "$OBJCXX" >&6; }
35fa52c0 4625else
a243b558
JF
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627$as_echo "no" >&6; }
35fa52c0 4628fi
9c60689e 4629
a243b558 4630
a93f15c0 4631 test -n "$OBJCXX" && break
a243b558
JF
4632 done
4633fi
a93f15c0
JF
4634if test -z "$OBJCXX"; then
4635 ac_ct_OBJCXX=$OBJCXX
4636 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4637do
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639set dummy $ac_prog; ac_word=$2
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4642if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4643 $as_echo_n "(cached) " >&6
4644else
a93f15c0
JF
4645 if test -n "$ac_ct_OBJCXX"; then
4646 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4647else
4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4655 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659done
4660 done
4661IFS=$as_save_IFS
9c60689e 4662
a243b558
JF
4663fi
4664fi
a93f15c0
JF
4665ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4666if test -n "$ac_ct_OBJCXX"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4668$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4669else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671$as_echo "no" >&6; }
4672fi
35fa52c0 4673
35fa52c0 4674
a93f15c0 4675 test -n "$ac_ct_OBJCXX" && break
a243b558 4676done
35fa52c0 4677
a93f15c0
JF
4678 if test "x$ac_ct_OBJCXX" = x; then
4679 OBJCXX="g++"
a243b558
JF
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682yes:)
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685ac_tool_warned=yes ;;
4686esac
a93f15c0 4687 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4688 fi
4689fi
ee134472 4690
a243b558 4691# Provide some information about the compiler.
a93f15c0 4692$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4693set X $ac_compile
4694ac_compiler=$2
4695for ac_option in --version -v -V -qversion; do
4696 { { ac_try="$ac_compiler $ac_option >&5"
4697case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700esac
4701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702$as_echo "$ac_try_echo"; } >&5
4703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4704 ac_status=$?
4705 if test -s conftest.err; then
4706 sed '10a\
4707... rest of stderr output deleted ...
4708 10q' conftest.err >conftest.er1
4709 cat conftest.er1 >&5
4710 fi
4711 rm -f conftest.er1 conftest.err
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714done
53ba6704 4715
a93f15c0
JF
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4717$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4718if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4719 $as_echo_n "(cached) " >&6
4720else
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h. */
35fa52c0 4723
a243b558
JF
4724int
4725main ()
4726{
4727#ifndef __GNUC__
4728 choke me
4729#endif
9c60689e 4730
a243b558
JF
4731 ;
4732 return 0;
4733}
4734_ACEOF
a93f15c0 4735if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4736 ac_compiler_gnu=yes
35fa52c0 4737else
a243b558 4738 ac_compiler_gnu=no
35fa52c0 4739fi
a243b558 4740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4741ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4742
a243b558 4743fi
a93f15c0
JF
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4745$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4746if test $ac_compiler_gnu = yes; then
a93f15c0 4747 GOBJCXX=yes
35fa52c0 4748else
a93f15c0 4749 GOBJCXX=
9c60689e 4750fi
a93f15c0
JF
4751ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4752ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4754$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4755if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4756 $as_echo_n "(cached) " >&6
4757else
a93f15c0
JF
4758 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4759 ac_objcxx_werror_flag=yes
4760 ac_cv_prog_objcxx_g=no
4761 OBJCXXFLAGS="-g"
a243b558
JF
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763/* end confdefs.h. */
9c60689e 4764
a243b558
JF
4765int
4766main ()
4767{
9c60689e 4768
a243b558
JF
4769 ;
4770 return 0;
4771}
4772_ACEOF
a93f15c0
JF
4773if ac_fn_objcxx_try_compile "$LINENO"; then :
4774 ac_cv_prog_objcxx_g=yes
a243b558 4775else
a93f15c0 4776 OBJCXXFLAGS=""
a243b558
JF
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
9c60689e 4779
a243b558
JF
4780int
4781main ()
4782{
9c60689e 4783
a243b558
JF
4784 ;
4785 return 0;
4786}
4787_ACEOF
a93f15c0 4788if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4789
a243b558 4790else
a93f15c0
JF
4791 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4792 OBJCXXFLAGS="-g"
a243b558 4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4794/* end confdefs.h. */
4795
a243b558
JF
4796int
4797main ()
4798{
a93f15c0 4799
a243b558
JF
4800 ;
4801 return 0;
4802}
4803_ACEOF
a93f15c0
JF
4804if ac_fn_objcxx_try_compile "$LINENO"; then :
4805 ac_cv_prog_objcxx_g=yes
a243b558 4806fi
a93f15c0 4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4808fi
a93f15c0
JF
4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4815$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4816if test "$ac_test_OBJCXXFLAGS" = set; then
4817 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4818elif test $ac_cv_prog_objcxx_g = yes; then
4819 if test "$GOBJCXX" = yes; then
4820 OBJCXXFLAGS="-g -O2"
4821 else
4822 OBJCXXFLAGS="-g"
4823 fi
4824else
4825 if test "$GOBJCXX" = yes; then
4826 OBJCXXFLAGS="-O2"
4827 else
4828 OBJCXXFLAGS=
4829 fi
35fa52c0 4830fi
a243b558
JF
4831ac_ext=c
4832ac_cpp='$CPP $CPPFLAGS'
4833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836
a93f15c0 4837depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4838
a243b558
JF
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4840$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4841if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4842 $as_echo_n "(cached) " >&6
4843else
a243b558
JF
4844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845 # We make a subdir and do the tests there. Otherwise we can end up
4846 # making bogus files that we don't know about and never remove. For
4847 # instance it was reported that on HP-UX the gcc test will end up
4848 # making a dummy file named 'D' -- because '-MD' means "put the output
4849 # in D".
4850 rm -rf conftest.dir
4851 mkdir conftest.dir
4852 # Copy depcomp to subdir because otherwise we won't find it if we're
4853 # using a relative directory.
4854 cp "$am_depcomp" conftest.dir
4855 cd conftest.dir
4856 # We will build objects and dependencies in a subdirectory because
4857 # it helps to detect inapplicable dependency modes. For instance
4858 # both Tru64's cc and ICC support -MD to output dependencies as a
4859 # side effect of compilation, but ICC will put the dependencies in
4860 # the current directory while Tru64 will put them in the object
4861 # directory.
4862 mkdir sub
4863
a93f15c0 4864 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4865 if test "$am_compiler_list" = ""; then
4866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867 fi
4868 am__universal=false
a93f15c0 4869
a243b558
JF
4870
4871 for depmode in $am_compiler_list; do
4872 # Setup a source with many dependencies, because some compilers
4873 # like to wrap large dependency lists on column 80 (with \), and
4874 # we should not choose a depcomp mode which is confused by this.
4875 #
4876 # We need to recreate these files for each test, as the compiler may
4877 # overwrite some of them when testing with obscure command lines.
4878 # This happens at least with the AIX C compiler.
4879 : > sub/conftest.c
4880 for i in 1 2 3 4 5 6; do
4881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4882 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4883 # Solaris 10 /bin/sh.
4884 echo '/* dummy */' > sub/conftst$i.h
4885 done
4886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4887
4888 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4889 # mode. It turns out that the SunPro C++ compiler does not properly
4890 # handle '-M -o', and we need to detect this. Also, some Intel
4891 # versions had trouble with output in subdirs.
4892 am__obj=sub/conftest.${OBJEXT-o}
4893 am__minus_obj="-o $am__obj"
4894 case $depmode in
4895 gcc)
4896 # This depmode causes a compiler race in universal mode.
4897 test "$am__universal" = false || continue
4898 ;;
4899 nosideeffect)
4900 # After this tag, mechanisms are not by side-effect, so they'll
4901 # only be used when explicitly requested.
4902 if test "x$enable_dependency_tracking" = xyes; then
4903 continue
4904 else
4905 break
4906 fi
4907 ;;
4908 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4909 # This compiler won't grok '-c -o', but also, the minuso test has
4910 # not run yet. These depmodes are late enough in the game, and
4911 # so weak that their functioning should not be impacted.
4912 am__obj=conftest.${OBJEXT-o}
4913 am__minus_obj=
4914 ;;
4915 none) break ;;
4916 esac
4917 if depmode=$depmode \
4918 source=sub/conftest.c object=$am__obj \
4919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4921 >/dev/null 2>conftest.err &&
4922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926 # icc doesn't choke on unknown options, it will just issue warnings
4927 # or remarks (even with -Werror). So we grep stderr for any message
4928 # that says an option was ignored or not supported.
4929 # When given -MP, icc 7.0 and 7.1 complain thusly:
4930 # icc: Command line warning: ignoring option '-M'; no argument required
4931 # The diagnosis changed in icc 8.0:
4932 # icc: Command line remark: option '-MP' not supported
4933 if (grep 'ignoring option' conftest.err ||
4934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4935 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
4936 break
4937 fi
4938 fi
4939 done
9c60689e 4940
a243b558
JF
4941 cd ..
4942 rm -rf conftest.dir
4943else
a93f15c0 4944 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 4945fi
a243b558 4946
35fa52c0 4947fi
a93f15c0
JF
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4949$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4950OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
4951
4952 if
4953 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4954 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4955 am__fastdepOBJCXX_TRUE=
4956 am__fastdepOBJCXX_FALSE='#'
a243b558 4957else
a93f15c0
JF
4958 am__fastdepOBJCXX_TRUE='#'
4959 am__fastdepOBJCXX_FALSE=
a243b558
JF
4960fi
4961
4962
4963
a93f15c0 4964
a243b558
JF
4965if test -n "$ac_tool_prefix"; then
4966 for ac_prog in ar lib "link -lib"
4967 do
4968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971$as_echo_n "checking for $ac_word... " >&6; }
4972if ${ac_cv_prog_AR+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974else
4975 if test -n "$AR"; then
4976 ac_cv_prog_AR="$AR" # Let the user override the test.
4977else
4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989done
4990 done
4991IFS=$as_save_IFS
4992
4993fi
4994fi
4995AR=$ac_cv_prog_AR
4996if test -n "$AR"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4998$as_echo "$AR" >&6; }
35fa52c0
DWT
4999else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001$as_echo "no" >&6; }
5002fi
9c60689e 5003
a243b558
JF
5004
5005 test -n "$AR" && break
5006 done
5007fi
5008if test -z "$AR"; then
5009 ac_ct_AR=$AR
5010 for ac_prog in ar lib "link -lib"
5011do
5012 # Extract the first word of "$ac_prog", so it can be a program name with args.
5013set dummy $ac_prog; ac_word=$2
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015$as_echo_n "checking for $ac_word... " >&6; }
5016if ${ac_cv_prog_ac_ct_AR+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018else
5019 if test -n "$ac_ct_AR"; then
5020 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5021else
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029 ac_cv_prog_ac_ct_AR="$ac_prog"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5032 fi
5033done
5034 done
5035IFS=$as_save_IFS
5036
5037fi
5038fi
5039ac_ct_AR=$ac_cv_prog_ac_ct_AR
5040if test -n "$ac_ct_AR"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5042$as_echo "$ac_ct_AR" >&6; }
5043else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045$as_echo "no" >&6; }
5046fi
5047
5048
5049 test -n "$ac_ct_AR" && break
5050done
5051
5052 if test "x$ac_ct_AR" = x; then
5053 AR="false"
9c60689e
DWT
5054 else
5055 case $cross_compiling:$ac_tool_warned in
5056yes:)
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5059ac_tool_warned=yes ;;
35fa52c0 5060esac
a243b558 5061 AR=$ac_ct_AR
9c60689e 5062 fi
a243b558
JF
5063fi
5064
5065: ${AR=ar}
5066
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5068$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5069if ${am_cv_ar_interface+:} false; then :
5070 $as_echo_n "(cached) " >&6
9c60689e 5071else
a93f15c0
JF
5072 ac_ext=c
5073ac_cpp='$CPP $CPPFLAGS'
5074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077
5078 am_cv_ar_interface=ar
a243b558
JF
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h. */
5081int some_variable = 0;
5082_ACEOF
5083if ac_fn_c_try_compile "$LINENO"; then :
5084 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5086 (eval $am_ar_try) 2>&5
5087 ac_status=$?
5088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5089 test $ac_status = 0; }
5090 if test "$ac_status" -eq 0; then
5091 am_cv_ar_interface=ar
5092 else
5093 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5095 (eval $am_ar_try) 2>&5
5096 ac_status=$?
5097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5098 test $ac_status = 0; }
5099 if test "$ac_status" -eq 0; then
5100 am_cv_ar_interface=lib
5101 else
5102 am_cv_ar_interface=unknown
5103 fi
5104 fi
5105 rm -f conftest.lib libconftest.a
5106
35fa52c0 5107fi
a243b558 5108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
5109 ac_ext=c
5110ac_cpp='$CPP $CPPFLAGS'
5111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 5114
a243b558
JF
5115fi
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5117$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 5118
a243b558
JF
5119case $am_cv_ar_interface in
5120ar)
5121 ;;
5122lib)
5123 # Microsoft lib, so override with the ar-lib wrapper script.
5124 # FIXME: It is wrong to rewrite AR.
5125 # But if we don't then we get into trouble of one sort or another.
5126 # A longer-term fix would be to have automake use am__AR in this case,
5127 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5128 # similar.
5129 AR="$am_aux_dir/ar-lib $AR"
5130 ;;
5131unknown)
5132 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5133 ;;
5134esac
35fa52c0 5135
35fa52c0 5136
35fa52c0 5137
a243b558
JF
5138case `pwd` in
5139 *\ * | *\ *)
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5141$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5142esac
35fa52c0
DWT
5143
5144
5145
a243b558
JF
5146macro_version='2.4.2'
5147macro_revision='1.3337'
35fa52c0
DWT
5148
5149
5150
5151
5152
5153
5154
5155
5156
35fa52c0 5157
35fa52c0 5158
ee134472 5159
35fa52c0 5160
a243b558 5161ltmain="$ac_aux_dir/ltmain.sh"
35fa52c0 5162
a243b558
JF
5163# Make sure we can run config.sub.
5164$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5165 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5166
a243b558
JF
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5168$as_echo_n "checking build system type... " >&6; }
5169if ${ac_cv_build+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171else
5172 ac_build_alias=$build_alias
5173test "x$ac_build_alias" = x &&
5174 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5175test "x$ac_build_alias" = x &&
5176 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5177ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5178 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5179
a243b558
JF
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5182$as_echo "$ac_cv_build" >&6; }
5183case $ac_cv_build in
5184*-*-*) ;;
5185*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5186esac
5187build=$ac_cv_build
5188ac_save_IFS=$IFS; IFS='-'
5189set x $ac_cv_build
5190shift
5191build_cpu=$1
5192build_vendor=$2
5193shift; shift
5194# Remember, the first character of IFS is used to create $*,
5195# except with old shells:
5196build_os=$*
5197IFS=$ac_save_IFS
5198case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5199
35fa52c0 5200
a243b558
JF
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5202$as_echo_n "checking host system type... " >&6; }
5203if ${ac_cv_host+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205else
5206 if test "x$host_alias" = x; then
5207 ac_cv_host=$ac_cv_build
5208else
5209 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5210 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5211fi
35fa52c0 5212
a243b558
JF
5213fi
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5215$as_echo "$ac_cv_host" >&6; }
5216case $ac_cv_host in
5217*-*-*) ;;
5218*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5219esac
5220host=$ac_cv_host
5221ac_save_IFS=$IFS; IFS='-'
5222set x $ac_cv_host
5223shift
5224host_cpu=$1
5225host_vendor=$2
5226shift; shift
5227# Remember, the first character of IFS is used to create $*,
5228# except with old shells:
5229host_os=$*
5230IFS=$ac_save_IFS
5231case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5232
9c60689e 5233
a243b558
JF
5234# Backslashify metacharacters that are still active within
5235# double-quoted strings.
5236sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5237
a243b558
JF
5238# Same as above, but do not quote variable references.
5239double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5240
a243b558
JF
5241# Sed substitution to delay expansion of an escaped shell variable in a
5242# double_quote_subst'ed string.
5243delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5244
a243b558
JF
5245# Sed substitution to delay expansion of an escaped single quote.
5246delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5247
a243b558
JF
5248# Sed substitution to avoid accidental globbing in evaled expressions
5249no_glob_subst='s/\*/\\\*/g'
35fa52c0 5250
a243b558
JF
5251ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5252ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5253ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5254
a243b558
JF
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5256$as_echo_n "checking how to print strings... " >&6; }
5257# Test print first, because it will be a builtin if present.
5258if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5259 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5260 ECHO='print -r --'
5261elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5262 ECHO='printf %s\n'
5263else
5264 # Use this function as a fallback that always works.
5265 func_fallback_echo ()
5266 {
5267 eval 'cat <<_LTECHO_EOF
5268$1
5269_LTECHO_EOF'
5270 }
5271 ECHO='func_fallback_echo'
ee134472
JF
5272fi
5273
a243b558
JF
5274# func_echo_all arg...
5275# Invoke $ECHO with all args, space-separated.
5276func_echo_all ()
5277{
5278 $ECHO ""
5279}
35fa52c0 5280
a243b558
JF
5281case "$ECHO" in
5282 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5283$as_echo "printf" >&6; } ;;
5284 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5285$as_echo "print -r" >&6; } ;;
5286 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5287$as_echo "cat" >&6; } ;;
5288esac
35fa52c0 5289
35fa52c0 5290
ee134472
JF
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
35fa52c0 5301
9c60689e 5302
a243b558
JF
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5304$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5305if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5306 $as_echo_n "(cached) " >&6
5307else
a243b558
JF
5308 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5309 for ac_i in 1 2 3 4 5 6 7; do
5310 ac_script="$ac_script$as_nl$ac_script"
5311 done
5312 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5313 { ac_script=; unset ac_script;}
5314 if test -z "$SED"; then
5315 ac_path_SED_found=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5318for as_dir in $PATH
5319do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
a243b558 5322 for ac_prog in sed gsed; do
9c60689e 5323 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5324 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5325 as_fn_executable_p "$ac_path_SED" || continue
5326# Check for GNU ac_path_SED and select it if it is found.
5327 # Check for GNU $ac_path_SED
5328case `"$ac_path_SED" --version 2>&1` in
5329*GNU*)
5330 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5331*)
5332 ac_count=0
5333 $as_echo_n 0123456789 >"conftest.in"
5334 while :
5335 do
5336 cat "conftest.in" "conftest.in" >"conftest.tmp"
5337 mv "conftest.tmp" "conftest.in"
5338 cp "conftest.in" "conftest.nl"
5339 $as_echo '' >> "conftest.nl"
5340 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5342 as_fn_arith $ac_count + 1 && ac_count=$as_val
5343 if test $ac_count -gt ${ac_path_SED_max-0}; then
5344 # Best one so far, save it but keep looking for a better one
5345 ac_cv_path_SED="$ac_path_SED"
5346 ac_path_SED_max=$ac_count
5347 fi
5348 # 10*(2^10) chars as input seems more than enough
5349 test $ac_count -gt 10 && break
35fa52c0 5350 done
a243b558
JF
5351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5352esac
9c60689e 5353
a243b558
JF
5354 $ac_path_SED_found && break 3
5355 done
5356 done
9c60689e
DWT
5357 done
5358IFS=$as_save_IFS
a243b558
JF
5359 if test -z "$ac_cv_path_SED"; then
5360 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5361 fi
5362else
a243b558 5363 ac_cv_path_SED=$SED
9c60689e
DWT
5364fi
5365
a243b558
JF
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5368$as_echo "$ac_cv_path_SED" >&6; }
5369 SED="$ac_cv_path_SED"
5370 rm -f conftest.sed
9c60689e 5371
a243b558
JF
5372test -z "$SED" && SED=sed
5373Xsed="$SED -e 1s/^X//"
9c60689e 5374
ee134472 5375
ee134472 5376
9c60689e
DWT
5377
5378
5379
5380
5381
5382
5383
5384
a243b558
JF
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5386$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5387if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5388 $as_echo_n "(cached) " >&6
5389else
a243b558
JF
5390 if test -z "$GREP"; then
5391 ac_path_GREP_found=false
5392 # Loop through the user's path and test for each of PROGNAME-LIST
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5395do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
a243b558 5398 for ac_prog in grep ggrep; do
9c60689e 5399 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5400 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5401 as_fn_executable_p "$ac_path_GREP" || continue
5402# Check for GNU ac_path_GREP and select it if it is found.
5403 # Check for GNU $ac_path_GREP
5404case `"$ac_path_GREP" --version 2>&1` in
5405*GNU*)
5406 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5407*)
5408 ac_count=0
5409 $as_echo_n 0123456789 >"conftest.in"
5410 while :
5411 do
5412 cat "conftest.in" "conftest.in" >"conftest.tmp"
5413 mv "conftest.tmp" "conftest.in"
5414 cp "conftest.in" "conftest.nl"
5415 $as_echo 'GREP' >> "conftest.nl"
5416 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5418 as_fn_arith $ac_count + 1 && ac_count=$as_val
5419 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5420 # Best one so far, save it but keep looking for a better one
5421 ac_cv_path_GREP="$ac_path_GREP"
5422 ac_path_GREP_max=$ac_count
5423 fi
5424 # 10*(2^10) chars as input seems more than enough
5425 test $ac_count -gt 10 && break
5426 done
5427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428esac
9c60689e 5429
a243b558
JF
5430 $ac_path_GREP_found && break 3
5431 done
ee134472 5432 done
a243b558
JF
5433 done
5434IFS=$as_save_IFS
5435 if test -z "$ac_cv_path_GREP"; then
5436 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5437 fi
5438else
5439 ac_cv_path_GREP=$GREP
9c60689e 5440fi
a243b558
JF
5441
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5444$as_echo "$ac_cv_path_GREP" >&6; }
5445 GREP="$ac_cv_path_GREP"
5446
5447
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5449$as_echo_n "checking for egrep... " >&6; }
5450if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5451 $as_echo_n "(cached) " >&6
5452else
a243b558
JF
5453 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5454 then ac_cv_path_EGREP="$GREP -E"
5455 else
5456 if test -z "$EGREP"; then
5457 ac_path_EGREP_found=false
5458 # Loop through the user's path and test for each of PROGNAME-LIST
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5461do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
a243b558 5464 for ac_prog in egrep; do
9c60689e 5465 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5466 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5467 as_fn_executable_p "$ac_path_EGREP" || continue
5468# Check for GNU ac_path_EGREP and select it if it is found.
5469 # Check for GNU $ac_path_EGREP
5470case `"$ac_path_EGREP" --version 2>&1` in
5471*GNU*)
5472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5473*)
5474 ac_count=0
5475 $as_echo_n 0123456789 >"conftest.in"
5476 while :
5477 do
5478 cat "conftest.in" "conftest.in" >"conftest.tmp"
5479 mv "conftest.tmp" "conftest.in"
5480 cp "conftest.in" "conftest.nl"
5481 $as_echo 'EGREP' >> "conftest.nl"
5482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5484 as_fn_arith $ac_count + 1 && ac_count=$as_val
5485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5486 # Best one so far, save it but keep looking for a better one
5487 ac_cv_path_EGREP="$ac_path_EGREP"
5488 ac_path_EGREP_max=$ac_count
5489 fi
5490 # 10*(2^10) chars as input seems more than enough
5491 test $ac_count -gt 10 && break
9c60689e 5492 done
a243b558
JF
5493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5494esac
9c60689e 5495
a243b558
JF
5496 $ac_path_EGREP_found && break 3
5497 done
5498 done
5499 done
5500IFS=$as_save_IFS
5501 if test -z "$ac_cv_path_EGREP"; then
5502 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5503 fi
9c60689e 5504else
a243b558 5505 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5506fi
5507
a243b558
JF
5508 fi
5509fi
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5511$as_echo "$ac_cv_path_EGREP" >&6; }
5512 EGREP="$ac_cv_path_EGREP"
ee134472 5513
ee134472 5514
a243b558
JF
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5516$as_echo_n "checking for fgrep... " >&6; }
5517if ${ac_cv_path_FGREP+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519else
5520 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5521 then ac_cv_path_FGREP="$GREP -F"
5522 else
5523 if test -z "$FGREP"; then
5524 ac_path_FGREP_found=false
5525 # Loop through the user's path and test for each of PROGNAME-LIST
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5528do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_prog in fgrep; do
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5534 as_fn_executable_p "$ac_path_FGREP" || continue
5535# Check for GNU ac_path_FGREP and select it if it is found.
5536 # Check for GNU $ac_path_FGREP
5537case `"$ac_path_FGREP" --version 2>&1` in
5538*GNU*)
5539 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5540*)
5541 ac_count=0
5542 $as_echo_n 0123456789 >"conftest.in"
5543 while :
5544 do
5545 cat "conftest.in" "conftest.in" >"conftest.tmp"
5546 mv "conftest.tmp" "conftest.in"
5547 cp "conftest.in" "conftest.nl"
5548 $as_echo 'FGREP' >> "conftest.nl"
5549 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5551 as_fn_arith $ac_count + 1 && ac_count=$as_val
5552 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5553 # Best one so far, save it but keep looking for a better one
5554 ac_cv_path_FGREP="$ac_path_FGREP"
5555 ac_path_FGREP_max=$ac_count
5556 fi
5557 # 10*(2^10) chars as input seems more than enough
5558 test $ac_count -gt 10 && break
5559 done
5560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5561esac
a243b558
JF
5562
5563 $ac_path_FGREP_found && break 3
5564 done
5565 done
5566 done
5567IFS=$as_save_IFS
5568 if test -z "$ac_cv_path_FGREP"; then
5569 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5570 fi
a243b558
JF
5571else
5572 ac_cv_path_FGREP=$FGREP
ee134472
JF
5573fi
5574
a243b558
JF
5575 fi
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5578$as_echo "$ac_cv_path_FGREP" >&6; }
5579 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5580
5581
a243b558 5582test -z "$GREP" && GREP=grep
ee134472
JF
5583
5584
5585
5586
5587
5588
5589
ee134472 5590
ee134472 5591
ee134472 5592
ee134472 5593
ee134472 5594
ee134472
JF
5595
5596
5597
5598
5599
5600
5601
a243b558
JF
5602# Check whether --with-gnu-ld was given.
5603if test "${with_gnu_ld+set}" = set; then :
5604 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5605else
5606 with_gnu_ld=no
5607fi
5608
5609ac_prog=ld
5610if test "$GCC" = yes; then
5611 # Check if gcc -print-prog-name=ld gives a path.
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5613$as_echo_n "checking for ld used by $CC... " >&6; }
5614 case $host in
5615 *-*-mingw*)
5616 # gcc leaves a trailing carriage return which upsets mingw
5617 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5618 *)
5619 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5620 esac
5621 case $ac_prog in
5622 # Accept absolute paths.
5623 [\\/]* | ?:[\\/]*)
5624 re_direlt='/[^/][^/]*/\.\./'
5625 # Canonicalize the pathname of ld
5626 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5627 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5628 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5629 done
5630 test -z "$LD" && LD="$ac_prog"
5631 ;;
5632 "")
5633 # If it fails, then pretend we aren't using GCC.
5634 ac_prog=ld
5635 ;;
5636 *)
5637 # If it is relative, then search for the first ld in PATH.
5638 with_gnu_ld=unknown
5639 ;;
5640 esac
5641elif test "$with_gnu_ld" = yes; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5643$as_echo_n "checking for GNU ld... " >&6; }
5644else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5646$as_echo_n "checking for non-GNU ld... " >&6; }
5647fi
5648if ${lt_cv_path_LD+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650else
5651 if test -z "$LD"; then
5652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5653 for ac_dir in $PATH; do
5654 IFS="$lt_save_ifs"
5655 test -z "$ac_dir" && ac_dir=.
5656 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5657 lt_cv_path_LD="$ac_dir/$ac_prog"
5658 # Check to see if the program is GNU ld. I'd rather use --version,
5659 # but apparently some variants of GNU ld only accept -v.
5660 # Break only if it was the GNU/non-GNU ld that we prefer.
5661 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5662 *GNU* | *'with BFD'*)
5663 test "$with_gnu_ld" != no && break
5664 ;;
5665 *)
5666 test "$with_gnu_ld" != yes && break
5667 ;;
5668 esac
5669 fi
5670 done
5671 IFS="$lt_save_ifs"
5672else
5673 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5674fi
5675fi
5676
5677LD="$lt_cv_path_LD"
5678if test -n "$LD"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5680$as_echo "$LD" >&6; }
5681else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683$as_echo "no" >&6; }
5684fi
5685test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5687$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5688if ${lt_cv_prog_gnu_ld+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690else
5691 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5692case `$LD -v 2>&1 </dev/null` in
5693*GNU* | *'with BFD'*)
5694 lt_cv_prog_gnu_ld=yes
5695 ;;
5696*)
5697 lt_cv_prog_gnu_ld=no
5698 ;;
5699esac
5700fi
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5702$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5703with_gnu_ld=$lt_cv_prog_gnu_ld
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5714$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5715if ${lt_cv_path_NM+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717else
5718 if test -n "$NM"; then
5719 # Let the user override the test.
5720 lt_cv_path_NM="$NM"
5721else
5722 lt_nm_to_check="${ac_tool_prefix}nm"
5723 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5724 lt_nm_to_check="$lt_nm_to_check nm"
5725 fi
5726 for lt_tmp_nm in $lt_nm_to_check; do
5727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5728 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5729 IFS="$lt_save_ifs"
5730 test -z "$ac_dir" && ac_dir=.
5731 tmp_nm="$ac_dir/$lt_tmp_nm"
5732 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5733 # Check to see if the nm accepts a BSD-compat flag.
5734 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5735 # nm: unknown option "B" ignored
5736 # Tru64's nm complains that /dev/null is an invalid object file
5737 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5738 */dev/null* | *'Invalid file or object type'*)
5739 lt_cv_path_NM="$tmp_nm -B"
5740 break
5741 ;;
5742 *)
5743 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5744 */dev/null*)
5745 lt_cv_path_NM="$tmp_nm -p"
5746 break
5747 ;;
5748 *)
5749 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5750 continue # so that we can try to find one that supports BSD flags
5751 ;;
5752 esac
5753 ;;
5754 esac
5755 fi
5756 done
5757 IFS="$lt_save_ifs"
5758 done
5759 : ${lt_cv_path_NM=no}
5760fi
5761fi
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5763$as_echo "$lt_cv_path_NM" >&6; }
5764if test "$lt_cv_path_NM" != "no"; then
5765 NM="$lt_cv_path_NM"
5766else
5767 # Didn't find any BSD compatible name lister, look for dumpbin.
5768 if test -n "$DUMPBIN"; then :
5769 # Let the user override the test.
5770 else
5771 if test -n "$ac_tool_prefix"; then
5772 for ac_prog in dumpbin "link -dump"
5773 do
5774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5778if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5779 $as_echo_n "(cached) " >&6
5780else
a243b558
JF
5781 if test -n "$DUMPBIN"; then
5782 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5791 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795done
5796 done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
a243b558
JF
5801DUMPBIN=$ac_cv_prog_DUMPBIN
5802if test -n "$DUMPBIN"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5804$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5805else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810
a243b558
JF
5811 test -n "$DUMPBIN" && break
5812 done
ee134472 5813fi
a243b558
JF
5814if test -z "$DUMPBIN"; then
5815 ac_ct_DUMPBIN=$DUMPBIN
5816 for ac_prog in dumpbin "link -dump"
5817do
5818 # Extract the first word of "$ac_prog", so it can be a program name with args.
5819set dummy $ac_prog; ac_word=$2
ee134472
JF
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5822if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5823 $as_echo_n "(cached) " >&6
5824else
a243b558
JF
5825 if test -n "$ac_ct_DUMPBIN"; then
5826 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5827else
5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH
5830do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5835 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839done
5840 done
5841IFS=$as_save_IFS
5842
5843fi
5844fi
a243b558
JF
5845ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5846if test -n "$ac_ct_DUMPBIN"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5848$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5849else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851$as_echo "no" >&6; }
5852fi
5853
a243b558
JF
5854
5855 test -n "$ac_ct_DUMPBIN" && break
5856done
5857
5858 if test "x$ac_ct_DUMPBIN" = x; then
5859 DUMPBIN=":"
ee134472
JF
5860 else
5861 case $cross_compiling:$ac_tool_warned in
5862yes:)
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865ac_tool_warned=yes ;;
5866esac
a243b558 5867 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5868 fi
9c60689e
DWT
5869fi
5870
a243b558
JF
5871 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5872 *COFF*)
5873 DUMPBIN="$DUMPBIN -symbols"
5874 ;;
5875 *)
5876 DUMPBIN=:
5877 ;;
5878 esac
5879 fi
9c60689e 5880
a243b558
JF
5881 if test "$DUMPBIN" != ":"; then
5882 NM="$DUMPBIN"
5883 fi
5884fi
5885test -z "$NM" && NM=nm
9c60689e
DWT
5886
5887
5888
5889
5890
a243b558
JF
5891
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5893$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5894if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5895 $as_echo_n "(cached) " >&6
5896else
a243b558
JF
5897 lt_cv_nm_interface="BSD nm"
5898 echo "int some_variable = 0;" > conftest.$ac_ext
5899 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5900 (eval "$ac_compile" 2>conftest.err)
5901 cat conftest.err >&5
5902 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5903 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5904 cat conftest.err >&5
5905 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5906 cat conftest.out >&5
5907 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5908 lt_cv_nm_interface="MS dumpbin"
9c60689e 5909 fi
a93f15c0 5910 rm -f conftest*
9c60689e 5911fi
a243b558
JF
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5913$as_echo "$lt_cv_nm_interface" >&6; }
5914
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5916$as_echo_n "checking whether ln -s works... " >&6; }
5917LN_S=$as_ln_s
5918if test "$LN_S" = "ln -s"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5920$as_echo "yes" >&6; }
9c60689e 5921else
a243b558
JF
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5923$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5924fi
5925
a243b558
JF
5926# find the maximum length of command line arguments
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5928$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5929if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5930 $as_echo_n "(cached) " >&6
5931else
a243b558
JF
5932 i=0
5933 teststring="ABCD"
9c60689e 5934
a243b558
JF
5935 case $build_os in
5936 msdosdjgpp*)
5937 # On DJGPP, this test can blow up pretty badly due to problems in libc
5938 # (any single argument exceeding 2000 bytes causes a buffer overrun
5939 # during glob expansion). Even if it were fixed, the result of this
5940 # check would be larger than it should be.
5941 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5942 ;;
9c60689e 5943
a243b558
JF
5944 gnu*)
5945 # Under GNU Hurd, this test is not required because there is
5946 # no limit to the length of command line arguments.
5947 # Libtool will interpret -1 as no limit whatsoever
5948 lt_cv_sys_max_cmd_len=-1;
5949 ;;
9c60689e 5950
a243b558
JF
5951 cygwin* | mingw* | cegcc*)
5952 # On Win9x/ME, this test blows up -- it succeeds, but takes
5953 # about 5 minutes as the teststring grows exponentially.
5954 # Worse, since 9x/ME are not pre-emptively multitasking,
5955 # you end up with a "frozen" computer, even though with patience
5956 # the test eventually succeeds (with a max line length of 256k).
5957 # Instead, let's just punt: use the minimum linelength reported by
5958 # all of the supported platforms: 8192 (on NT/2K/XP).
5959 lt_cv_sys_max_cmd_len=8192;
5960 ;;
9c60689e 5961
a243b558
JF
5962 mint*)
5963 # On MiNT this can take a long time and run out of memory.
5964 lt_cv_sys_max_cmd_len=8192;
5965 ;;
9c60689e 5966
a243b558
JF
5967 amigaos*)
5968 # On AmigaOS with pdksh, this test takes hours, literally.
5969 # So we just punt and use a minimum line length of 8192.
5970 lt_cv_sys_max_cmd_len=8192;
5971 ;;
9c60689e 5972
a243b558
JF
5973 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5974 # This has been around since 386BSD, at least. Likely further.
5975 if test -x /sbin/sysctl; then
5976 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5977 elif test -x /usr/sbin/sysctl; then
5978 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5979 else
5980 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5981 fi
5982 # And add a safety zone
5983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5985 ;;
9c60689e 5986
a243b558
JF
5987 interix*)
5988 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5989 lt_cv_sys_max_cmd_len=196608
5990 ;;
9c60689e 5991
a243b558
JF
5992 os2*)
5993 # The test takes a long time on OS/2.
5994 lt_cv_sys_max_cmd_len=8192
5995 ;;
9c60689e 5996
a243b558
JF
5997 osf*)
5998 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5999 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6000 # nice to cause kernel panics so lets avoid the loop below.
6001 # First set a reasonable default.
6002 lt_cv_sys_max_cmd_len=16384
6003 #
6004 if test -x /sbin/sysconfig; then
6005 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6006 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6007 esac
6008 fi
6009 ;;
6010 sco3.2v5*)
6011 lt_cv_sys_max_cmd_len=102400
6012 ;;
6013 sysv5* | sco5v6* | sysv4.2uw2*)
6014 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6015 if test -n "$kargmax"; then
6016 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6017 else
6018 lt_cv_sys_max_cmd_len=32768
6019 fi
9c60689e
DWT
6020 ;;
6021 *)
a243b558
JF
6022 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6023 if test -n "$lt_cv_sys_max_cmd_len"; then
6024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6026 else
6027 # Make teststring a little bigger before we do anything with it.
6028 # a 1K string should be a reasonable start.
6029 for i in 1 2 3 4 5 6 7 8 ; do
6030 teststring=$teststring$teststring
6031 done
6032 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6033 # If test is not a shell built-in, we'll probably end up computing a
6034 # maximum length that is only half of the actual maximum length, but
6035 # we can't tell.
6036 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6037 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6038 test $i != 17 # 1/2 MB should be enough
6039 do
6040 i=`expr $i + 1`
6041 teststring=$teststring$teststring
6042 done
6043 # Only check the string length outside the loop.
6044 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6045 teststring=
6046 # Add a significant safety factor because C++ compilers can tack on
6047 # massive amounts of additional arguments before passing them to the
6048 # linker. It appears as though 1/2 is a usable value.
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6050 fi
9c60689e
DWT
6051 ;;
6052 esac
ee134472 6053
a243b558 6054fi
ee134472 6055
a243b558
JF
6056if test -n $lt_cv_sys_max_cmd_len ; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6058$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6059else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6061$as_echo "none" >&6; }
6062fi
6063max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
6064
6065
9c60689e
DWT
6066
6067
6068
6069
a243b558
JF
6070: ${CP="cp -f"}
6071: ${MV="mv -f"}
6072: ${RM="rm -f"}
9c60689e 6073
a243b558
JF
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6075$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6076# Try some XSI features
6077xsi_shell=no
6078( _lt_dummy="a/b/c"
6079 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6080 = c,a/b,b/c, \
6081 && eval 'test $(( 1 + 1 )) -eq 2 \
6082 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6083 && xsi_shell=yes
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6085$as_echo "$xsi_shell" >&6; }
9c60689e
DWT
6086
6087
a243b558
JF
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6089$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6090lt_shell_append=no
6091( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6092 >/dev/null 2>&1 \
6093 && lt_shell_append=yes
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6095$as_echo "$lt_shell_append" >&6; }
9c60689e
DWT
6096
6097
a243b558
JF
6098if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6099 lt_unset=unset
6100else
6101 lt_unset=false
6102fi
9c60689e
DWT
6103
6104
6105
6106
6107
a243b558
JF
6108# test EBCDIC or ASCII
6109case `echo X|tr X '\101'` in
6110 A) # ASCII based system
6111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6112 lt_SP2NL='tr \040 \012'
6113 lt_NL2SP='tr \015\012 \040\040'
6114 ;;
6115 *) # EBCDIC based system
6116 lt_SP2NL='tr \100 \n'
6117 lt_NL2SP='tr \r\n \100\100'
6118 ;;
6119esac
9c60689e
DWT
6120
6121
6122
6123
6124
6125
6126
6127
6128
a243b558
JF
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6130$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6131if ${lt_cv_to_host_file_cmd+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133else
6134 case $host in
6135 *-*-mingw* )
6136 case $build in
6137 *-*-mingw* ) # actually msys
6138 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6139 ;;
6140 *-*-cygwin* )
6141 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6142 ;;
6143 * ) # otherwise, assume *nix
6144 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6145 ;;
6146 esac
6147 ;;
6148 *-*-cygwin* )
6149 case $build in
6150 *-*-mingw* ) # actually msys
6151 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6152 ;;
6153 *-*-cygwin* )
6154 lt_cv_to_host_file_cmd=func_convert_file_noop
6155 ;;
6156 * ) # otherwise, assume *nix
6157 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6158 ;;
6159 esac
6160 ;;
6161 * ) # unhandled hosts (and "normal" native builds)
6162 lt_cv_to_host_file_cmd=func_convert_file_noop
6163 ;;
6164esac
9c60689e 6165
a243b558 6166fi
9c60689e 6167
a243b558
JF
6168to_host_file_cmd=$lt_cv_to_host_file_cmd
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6170$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6171
6172
6173
6174
6175
a243b558
JF
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6177$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6178if ${lt_cv_to_tool_file_cmd+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180else
6181 #assume ordinary cross tools, or native build.
6182lt_cv_to_tool_file_cmd=func_convert_file_noop
6183case $host in
6184 *-*-mingw* )
6185 case $build in
6186 *-*-mingw* ) # actually msys
6187 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6188 ;;
6189 esac
6190 ;;
6191esac
9c60689e 6192
a243b558 6193fi
9c60689e 6194
a243b558
JF
6195to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6197$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6198
9c60689e 6199
9c60689e 6200
9c60689e
DWT
6201
6202
a243b558
JF
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6204$as_echo_n "checking for $LD option to reload object files... " >&6; }
6205if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6206 $as_echo_n "(cached) " >&6
6207else
a243b558
JF
6208 lt_cv_ld_reload_flag='-r'
6209fi
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6211$as_echo "$lt_cv_ld_reload_flag" >&6; }
6212reload_flag=$lt_cv_ld_reload_flag
6213case $reload_flag in
6214"" | " "*) ;;
6215*) reload_flag=" $reload_flag" ;;
6216esac
6217reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6218case $host_os in
a243b558
JF
6219 cygwin* | mingw* | pw32* | cegcc*)
6220 if test "$GCC" != yes; then
6221 reload_cmds=false
6222 fi
6223 ;;
6224 darwin*)
6225 if test "$GCC" = yes; then
6226 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6227 else
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229 fi
6230 ;;
9c60689e
DWT
6231esac
6232
9c60689e 6233
9c60689e 6234
9c60689e 6235
9c60689e 6236
9c60689e 6237
9c60689e 6238
9c60689e 6239
9c60689e 6240
a243b558
JF
6241if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6243set dummy ${ac_tool_prefix}objdump; ac_word=$2
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245$as_echo_n "checking for $ac_word... " >&6; }
6246if ${ac_cv_prog_OBJDUMP+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248else
6249 if test -n "$OBJDUMP"; then
6250 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6251else
6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263done
6264 done
6265IFS=$as_save_IFS
9c60689e 6266
a243b558
JF
6267fi
6268fi
6269OBJDUMP=$ac_cv_prog_OBJDUMP
6270if test -n "$OBJDUMP"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6272$as_echo "$OBJDUMP" >&6; }
6273else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275$as_echo "no" >&6; }
6276fi
9c60689e 6277
9c60689e 6278
a243b558
JF
6279fi
6280if test -z "$ac_cv_prog_OBJDUMP"; then
6281 ac_ct_OBJDUMP=$OBJDUMP
6282 # Extract the first word of "objdump", so it can be a program name with args.
6283set dummy objdump; ac_word=$2
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285$as_echo_n "checking for $ac_word... " >&6; }
6286if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288else
6289 if test -n "$ac_ct_OBJDUMP"; then
6290 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
9c60689e
DWT
6302 fi
6303done
a243b558
JF
6304 done
6305IFS=$as_save_IFS
9c60689e
DWT
6306
6307fi
9c60689e 6308fi
a243b558
JF
6309ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6310if test -n "$ac_ct_OBJDUMP"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6312$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6313else
a243b558
JF
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
9c60689e
DWT
6316fi
6317
a243b558
JF
6318 if test "x$ac_ct_OBJDUMP" = x; then
6319 OBJDUMP="false"
6320 else
6321 case $cross_compiling:$ac_tool_warned in
6322yes:)
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325ac_tool_warned=yes ;;
6326esac
6327 OBJDUMP=$ac_ct_OBJDUMP
6328 fi
6329else
6330 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6331fi
6332
a243b558 6333test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6334
6335
6336
6337
6338
6339
6340
6341
6342
a243b558
JF
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6344$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6345if ${lt_cv_deplibs_check_method+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347else
6348 lt_cv_file_magic_cmd='$MAGIC_CMD'
6349lt_cv_file_magic_test_file=
6350lt_cv_deplibs_check_method='unknown'
6351# Need to set the preceding variable on all platforms that support
6352# interlibrary dependencies.
6353# 'none' -- dependencies not supported.
6354# `unknown' -- same as none, but documents that we really don't know.
6355# 'pass_all' -- all dependencies passed with no checks.
6356# 'test_compile' -- check by making test program.
6357# 'file_magic [[regex]]' -- check by looking for files in library path
6358# which responds to the $file_magic_cmd with a given extended regex.
6359# If you have `file' or equivalent on your system and you're not sure
6360# whether `pass_all' will *always* work, you probably want this one.
9c60689e 6361
a243b558
JF
6362case $host_os in
6363aix[4-9]*)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
9c60689e 6366
a243b558
JF
6367beos*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
9c60689e 6370
a243b558
JF
6371bsdi[45]*)
6372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6373 lt_cv_file_magic_cmd='/usr/bin/file -L'
6374 lt_cv_file_magic_test_file=/shlib/libc.so
6375 ;;
9c60689e 6376
a243b558
JF
6377cygwin*)
6378 # func_win32_libid is a shell function defined in ltmain.sh
6379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6380 lt_cv_file_magic_cmd='func_win32_libid'
6381 ;;
9c60689e 6382
a243b558
JF
6383mingw* | pw32*)
6384 # Base MSYS/MinGW do not provide the 'file' command needed by
6385 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6386 # unless we find 'file', for example because we are cross-compiling.
6387 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6388 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6390 lt_cv_file_magic_cmd='func_win32_libid'
6391 else
6392 # Keep this pattern in sync with the one in func_win32_libid.
6393 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6394 lt_cv_file_magic_cmd='$OBJDUMP -f'
6395 fi
6396 ;;
9c60689e 6397
a243b558
JF
6398cegcc*)
6399 # use the weaker test based on 'objdump'. See mingw*.
6400 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6401 lt_cv_file_magic_cmd='$OBJDUMP -f'
6402 ;;
9c60689e 6403
a243b558
JF
6404darwin* | rhapsody*)
6405 lt_cv_deplibs_check_method=pass_all
6406 ;;
9c60689e 6407
a243b558
JF
6408freebsd* | dragonfly*)
6409 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6410 case $host_cpu in
6411 i*86 )
6412 # Not sure whether the presence of OpenBSD here was a mistake.
6413 # Let's accept both of them until this is cleared up.
6414 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6415 lt_cv_file_magic_cmd=/usr/bin/file
6416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6417 ;;
6418 esac
6419 else
6420 lt_cv_deplibs_check_method=pass_all
6421 fi
6422 ;;
9c60689e 6423
a243b558
JF
6424gnu*)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
9c60689e 6427
a243b558
JF
6428haiku*)
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
9c60689e 6431
a243b558
JF
6432hpux10.20* | hpux11*)
6433 lt_cv_file_magic_cmd=/usr/bin/file
6434 case $host_cpu in
6435 ia64*)
6436 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6437 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6438 ;;
6439 hppa*64*)
6440 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]'
6441 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6442 ;;
6443 *)
6444 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6445 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6446 ;;
6447 esac
6448 ;;
9c60689e 6449
a243b558
JF
6450interix[3-9]*)
6451 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6453 ;;
9c60689e 6454
a243b558
JF
6455irix5* | irix6* | nonstopux*)
6456 case $LD in
6457 *-32|*"-32 ") libmagic=32-bit;;
6458 *-n32|*"-n32 ") libmagic=N32;;
6459 *-64|*"-64 ") libmagic=64-bit;;
6460 *) libmagic=never-match;;
6461 esac
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
9c60689e 6464
a243b558
JF
6465# This must be glibc/ELF.
6466linux* | k*bsd*-gnu | kopensolaris*-gnu)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
9c60689e 6469
a243b558
JF
6470netbsd*)
6471 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6473 else
6474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6475 fi
6476 ;;
9c60689e 6477
a243b558
JF
6478newos6*)
6479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6480 lt_cv_file_magic_cmd=/usr/bin/file
6481 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6482 ;;
9c60689e 6483
a243b558
JF
6484*nto* | *qnx*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
9c60689e 6487
a243b558
JF
6488openbsd*)
6489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6491 else
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6493 fi
6494 ;;
9c60689e 6495
a243b558
JF
6496osf3* | osf4* | osf5*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
9c60689e 6499
a243b558
JF
6500rdos*)
6501 lt_cv_deplibs_check_method=pass_all
9c60689e 6502 ;;
a243b558
JF
6503
6504solaris*)
6505 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6506 ;;
6507
a243b558
JF
6508sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6509 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6510 ;;
6511
a243b558
JF
6512sysv4 | sysv4.3*)
6513 case $host_vendor in
6514 motorola)
6515 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]'
6516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6517 ;;
6518 ncr)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521 sequent)
6522 lt_cv_file_magic_cmd='/bin/file'
6523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6524 ;;
6525 sni)
6526 lt_cv_file_magic_cmd='/bin/file'
6527 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6528 lt_cv_file_magic_test_file=/lib/libc.so
6529 ;;
6530 siemens)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533 pc)
6534 lt_cv_deplibs_check_method=pass_all
6535 ;;
6536 esac
6537 ;;
9c60689e 6538
a243b558
JF
6539tpf*)
6540 lt_cv_deplibs_check_method=pass_all
6541 ;;
6542esac
9c60689e 6543
a243b558
JF
6544fi
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6546$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6547
a243b558
JF
6548file_magic_glob=
6549want_nocaseglob=no
6550if test "$build" = "$host"; then
6551 case $host_os in
6552 mingw* | pw32*)
6553 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6554 want_nocaseglob=yes
6555 else
6556 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6557 fi
6558 ;;
6559 esac
9c60689e 6560fi
9c60689e 6561
a243b558
JF
6562file_magic_cmd=$lt_cv_file_magic_cmd
6563deplibs_check_method=$lt_cv_deplibs_check_method
6564test -z "$deplibs_check_method" && deplibs_check_method=unknown
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
9c60689e 6585
9c60689e 6586
ee134472 6587if test -n "$ac_tool_prefix"; then
a243b558
JF
6588 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6589set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6592if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6593 $as_echo_n "(cached) " >&6
6594else
a243b558
JF
6595 if test -n "$DLLTOOL"; then
6596 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6597else
6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6605 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609done
6610 done
6611IFS=$as_save_IFS
6612
6613fi
6614fi
a243b558
JF
6615DLLTOOL=$ac_cv_prog_DLLTOOL
6616if test -n "$DLLTOOL"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6618$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6619else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621$as_echo "no" >&6; }
6622fi
6623
6624
6625fi
a243b558
JF
6626if test -z "$ac_cv_prog_DLLTOOL"; then
6627 ac_ct_DLLTOOL=$DLLTOOL
6628 # Extract the first word of "dlltool", so it can be a program name with args.
6629set dummy dlltool; ac_word=$2
ee134472
JF
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6632if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6633 $as_echo_n "(cached) " >&6
6634else
a243b558
JF
6635 if test -n "$ac_ct_DLLTOOL"; then
6636 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6637else
6638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6645 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649done
6650 done
6651IFS=$as_save_IFS
6652
6653fi
6654fi
a243b558
JF
6655ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6656if test -n "$ac_ct_DLLTOOL"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6658$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6659else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661$as_echo "no" >&6; }
6662fi
6663
a243b558
JF
6664 if test "x$ac_ct_DLLTOOL" = x; then
6665 DLLTOOL="false"
ee134472
JF
6666 else
6667 case $cross_compiling:$ac_tool_warned in
6668yes:)
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6671ac_tool_warned=yes ;;
6672esac
a243b558 6673 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6674 fi
6675else
a243b558 6676 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6677fi
6678
a243b558
JF
6679test -z "$DLLTOOL" && DLLTOOL=dlltool
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6691$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6692if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6693 $as_echo_n "(cached) " >&6
6694else
a243b558
JF
6695 lt_cv_sharedlib_from_linklib_cmd='unknown'
6696
6697case $host_os in
6698cygwin* | mingw* | pw32* | cegcc*)
6699 # two different shell functions defined in ltmain.sh
6700 # decide which to use based on capabilities of $DLLTOOL
6701 case `$DLLTOOL --help 2>&1` in
6702 *--identify-strict*)
6703 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6704 ;;
6705 *)
6706 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6707 ;;
6708 esac
6709 ;;
6710*)
6711 # fallback: assume linklib IS sharedlib
6712 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6713 ;;
6714esac
6715
ee134472 6716fi
a243b558
JF
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6718$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6719sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6720test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6721
6722
6723
6724
6725
9c60689e 6726
a243b558
JF
6727
6728if test -n "$ac_tool_prefix"; then
6729 for ac_prog in ar
6730 do
6731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6735if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6736 $as_echo_n "(cached) " >&6
6737else
a243b558
JF
6738 if test -n "$AR"; then
6739 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6740else
6741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6748 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752done
6753 done
6754IFS=$as_save_IFS
6755
6756fi
6757fi
a243b558
JF
6758AR=$ac_cv_prog_AR
6759if test -n "$AR"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6761$as_echo "$AR" >&6; }
9c60689e
DWT
6762else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764$as_echo "no" >&6; }
6765fi
6766
6767
a243b558
JF
6768 test -n "$AR" && break
6769 done
9c60689e 6770fi
a243b558
JF
6771if test -z "$AR"; then
6772 ac_ct_AR=$AR
6773 for ac_prog in ar
6774do
6775 # Extract the first word of "$ac_prog", so it can be a program name with args.
6776set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6779if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6780 $as_echo_n "(cached) " >&6
6781else
a243b558
JF
6782 if test -n "$ac_ct_AR"; then
6783 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6784else
6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6792 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796done
6797 done
6798IFS=$as_save_IFS
6799
6800fi
6801fi
a243b558
JF
6802ac_ct_AR=$ac_cv_prog_ac_ct_AR
6803if test -n "$ac_ct_AR"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6805$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6806else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808$as_echo "no" >&6; }
6809fi
6810
a243b558
JF
6811
6812 test -n "$ac_ct_AR" && break
6813done
6814
6815 if test "x$ac_ct_AR" = x; then
6816 AR="false"
9c60689e
DWT
6817 else
6818 case $cross_compiling:$ac_tool_warned in
6819yes:)
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822ac_tool_warned=yes ;;
6823esac
a243b558 6824 AR=$ac_ct_AR
9c60689e 6825 fi
a243b558
JF
6826fi
6827
6828: ${AR=ar}
6829: ${AR_FLAGS=cru}
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6842$as_echo_n "checking for archiver @FILE support... " >&6; }
6843if ${lt_cv_ar_at_file+:} false; then :
6844 $as_echo_n "(cached) " >&6
9c60689e 6845else
a243b558
JF
6846 lt_cv_ar_at_file=no
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h. */
6849
6850int
6851main ()
6852{
6853
6854 ;
6855 return 0;
6856}
6857_ACEOF
6858if ac_fn_c_try_compile "$LINENO"; then :
6859 echo conftest.$ac_objext > conftest.lst
6860 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6862 (eval $lt_ar_try) 2>&5
6863 ac_status=$?
6864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6865 test $ac_status = 0; }
6866 if test "$ac_status" -eq 0; then
6867 # Ensure the archiver fails upon bogus file names.
6868 rm -f conftest.$ac_objext libconftest.a
6869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6870 (eval $lt_ar_try) 2>&5
6871 ac_status=$?
6872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873 test $ac_status = 0; }
6874 if test "$ac_status" -ne 0; then
6875 lt_cv_ar_at_file=@
6876 fi
6877 fi
6878 rm -f conftest.* libconftest.a
6879
9c60689e 6880fi
a243b558 6881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6882
a243b558
JF
6883fi
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6885$as_echo "$lt_cv_ar_at_file" >&6; }
6886
6887if test "x$lt_cv_ar_at_file" = xno; then
6888 archiver_list_spec=
6889else
6890 archiver_list_spec=$lt_cv_ar_at_file
6891fi
6892
6893
6894
6895
6896
6897
6898
6899if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6901set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6904if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6905 $as_echo_n "(cached) " >&6
6906else
a243b558
JF
6907 if test -n "$STRIP"; then
6908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6917 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922 done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
a243b558
JF
6927STRIP=$ac_cv_prog_STRIP
6928if test -n "$STRIP"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6930$as_echo "$STRIP" >&6; }
9c60689e
DWT
6931else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936
6937fi
a243b558
JF
6938if test -z "$ac_cv_prog_STRIP"; then
6939 ac_ct_STRIP=$STRIP
6940 # Extract the first word of "strip", so it can be a program name with args.
6941set dummy strip; ac_word=$2
9c60689e
DWT
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6944if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6945 $as_echo_n "(cached) " >&6
6946else
a243b558
JF
6947 if test -n "$ac_ct_STRIP"; then
6948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6957 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961done
6962 done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
a243b558
JF
6967ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6968if test -n "$ac_ct_STRIP"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6970$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6971else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
a243b558
JF
6976 if test "x$ac_ct_STRIP" = x; then
6977 STRIP=":"
9c60689e
DWT
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980yes:)
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983ac_tool_warned=yes ;;
6984esac
a243b558 6985 STRIP=$ac_ct_STRIP
9c60689e
DWT
6986 fi
6987else
a243b558 6988 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6989fi
6990
a243b558
JF
6991test -z "$STRIP" && STRIP=:
6992
6993
6994
6995
6996
6997
6998if test -n "$ac_tool_prefix"; then
6999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7003if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
7004 $as_echo_n "(cached) " >&6
7005else
a243b558
JF
7006 if test -n "$RANLIB"; then
7007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
7008else
7009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010for as_dir in $PATH
7011do
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
7017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7019 fi
7020done
7021 done
7022IFS=$as_save_IFS
7023
7024fi
7025fi
a243b558
JF
7026RANLIB=$ac_cv_prog_RANLIB
7027if test -n "$RANLIB"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7029$as_echo "$RANLIB" >&6; }
9c60689e
DWT
7030else
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032$as_echo "no" >&6; }
7033fi
7034
7035
7036fi
a243b558
JF
7037if test -z "$ac_cv_prog_RANLIB"; then
7038 ac_ct_RANLIB=$RANLIB
7039 # Extract the first word of "ranlib", so it can be a program name with args.
7040set dummy ranlib; ac_word=$2
9c60689e
DWT
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7043if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
7044 $as_echo_n "(cached) " >&6
7045else
a243b558
JF
7046 if test -n "$ac_ct_RANLIB"; then
7047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
7048else
7049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7056 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060done
7061 done
7062IFS=$as_save_IFS
7063
7064fi
7065fi
a243b558
JF
7066ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7067if test -n "$ac_ct_RANLIB"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7069$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
7070else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072$as_echo "no" >&6; }
7073fi
7074
a243b558
JF
7075 if test "x$ac_ct_RANLIB" = x; then
7076 RANLIB=":"
9c60689e
DWT
7077 else
7078 case $cross_compiling:$ac_tool_warned in
7079yes:)
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082ac_tool_warned=yes ;;
7083esac
a243b558 7084 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
7085 fi
7086else
a243b558 7087 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
7088fi
7089
a243b558
JF
7090test -z "$RANLIB" && RANLIB=:
7091
7092
9c60689e 7093
9c60689e
DWT
7094
7095
a243b558
JF
7096
7097# Determine commands to create old-style static archives.
7098old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7099old_postinstall_cmds='chmod 644 $oldlib'
7100old_postuninstall_cmds=
7101
7102if test -n "$RANLIB"; then
7103 case $host_os in
7104 openbsd*)
7105 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7106 ;;
7107 *)
7108 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7109 ;;
7110 esac
7111 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
7112fi
7113
a243b558
JF
7114case $host_os in
7115 darwin*)
7116 lock_old_archive_extraction=yes ;;
7117 *)
7118 lock_old_archive_extraction=no ;;
9c60689e 7119esac
9c60689e 7120
9c60689e 7121
9c60689e
DWT
7122
7123
9c60689e 7124
9c60689e 7125
9c60689e
DWT
7126
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
53ba6704 7153
9c60689e 7154
9c60689e 7155
9c60689e 7156
53ba6704 7157
a243b558
JF
7158
7159# If no C compiler was specified, use CC.
7160LTCC=${LTCC-"$CC"}
7161
7162# If no C compiler flags were specified, use CFLAGS.
7163LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7164
7165# Allow CC to be a program name with arguments.
7166compiler=$CC
7167
7168
7169# Check for command to grab the raw symbol name followed by C symbol from nm.
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7171$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7172if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7173 $as_echo_n "(cached) " >&6
7174else
ee134472 7175
a243b558
JF
7176# These are sane defaults that work on at least a few old systems.
7177# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7178
a243b558
JF
7179# Character class describing NM global symbol codes.
7180symcode='[BCDEGRST]'
9c60689e 7181
a243b558
JF
7182# Regexp to match symbols that can be accessed directly from C.
7183sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7184
a243b558
JF
7185# Define system-specific variables.
7186case $host_os in
7187aix*)
7188 symcode='[BCDT]'
7189 ;;
7190cygwin* | mingw* | pw32* | cegcc*)
7191 symcode='[ABCDGISTW]'
7192 ;;
7193hpux*)
7194 if test "$host_cpu" = ia64; then
7195 symcode='[ABCDEGRST]'
7196 fi
7197 ;;
7198irix* | nonstopux*)
7199 symcode='[BCDEGRST]'
7200 ;;
7201osf*)
7202 symcode='[BCDEGQRST]'
7203 ;;
7204solaris*)
7205 symcode='[BDRT]'
7206 ;;
7207sco3.2v5*)
7208 symcode='[DT]'
7209 ;;
7210sysv4.2uw2*)
7211 symcode='[DT]'
7212 ;;
7213sysv5* | sco5v6* | unixware* | OpenUNIX*)
7214 symcode='[ABDT]'
7215 ;;
7216sysv4)
7217 symcode='[DFNSTU]'
7218 ;;
7219esac
9c60689e 7220
a243b558
JF
7221# If we're using GNU nm, then use its standard symbol codes.
7222case `$NM -V 2>&1` in
7223*GNU* | *'with BFD'*)
7224 symcode='[ABCDGIRSTW]' ;;
7225esac
9c60689e 7226
a243b558
JF
7227# Transform an extracted symbol line into a proper C declaration.
7228# Some systems (esp. on ia64) link data and code symbols differently,
7229# so use this general approach.
7230lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7231
a243b558
JF
7232# Transform an extracted symbol line into symbol name and symbol address
7233lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7234lt_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 7235
a243b558
JF
7236# Handle CRLF in mingw tool chain
7237opt_cr=
7238case $build_os in
7239mingw*)
7240 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7241 ;;
7242esac
9c60689e 7243
a243b558
JF
7244# Try without a prefix underscore, then with it.
7245for ac_symprfx in "" "_"; do
9c60689e 7246
a243b558
JF
7247 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7248 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7249
a243b558
JF
7250 # Write the raw and C identifiers.
7251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7252 # Fake it for dumpbin and say T for any non-static function
7253 # and D for any global variable.
7254 # Also find C++ and __fastcall symbols from MSVC++,
7255 # which start with @ or ?.
7256 lt_cv_sys_global_symbol_pipe="$AWK '"\
7257" {last_section=section; section=\$ 3};"\
7258" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7259" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7260" \$ 0!~/External *\|/{next};"\
7261" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7262" {if(hide[section]) next};"\
7263" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7264" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7265" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7266" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7267" ' prfx=^$ac_symprfx"
7268 else
7269 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7270 fi
7271 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7272
a243b558
JF
7273 # Check to see that the pipe works correctly.
7274 pipe_works=no
9c60689e 7275
a93f15c0 7276 rm -f conftest*
a243b558
JF
7277 cat > conftest.$ac_ext <<_LT_EOF
7278#ifdef __cplusplus
7279extern "C" {
7280#endif
7281char nm_test_var;
7282void nm_test_func(void);
7283void nm_test_func(void){}
7284#ifdef __cplusplus
7285}
7286#endif
7287int main(){nm_test_var='a';nm_test_func();return(0);}
7288_LT_EOF
9c60689e 7289
a243b558
JF
7290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7291 (eval $ac_compile) 2>&5
7292 ac_status=$?
7293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294 test $ac_status = 0; }; then
7295 # Now try to grab the symbols.
7296 nlist=conftest.nm
7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7298 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7299 ac_status=$?
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; } && test -s "$nlist"; then
7302 # Try sorting and uniquifying the output.
7303 if sort "$nlist" | uniq > "$nlist"T; then
7304 mv -f "$nlist"T "$nlist"
7305 else
7306 rm -f "$nlist"T
7307 fi
9c60689e 7308
a243b558
JF
7309 # Make sure that we snagged all the symbols we need.
7310 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7311 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7312 cat <<_LT_EOF > conftest.$ac_ext
7313/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7314#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7315/* DATA imports from DLLs on WIN32 con't be const, because runtime
7316 relocations are performed -- see ld's documentation on pseudo-relocs. */
7317# define LT_DLSYM_CONST
7318#elif defined(__osf__)
7319/* This system does not cope well with relocations in const data. */
7320# define LT_DLSYM_CONST
7321#else
7322# define LT_DLSYM_CONST const
7323#endif
9c60689e 7324
a243b558
JF
7325#ifdef __cplusplus
7326extern "C" {
7327#endif
9c60689e 7328
a243b558
JF
7329_LT_EOF
7330 # Now generate the symbol file.
7331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7332
a243b558 7333 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7334
a243b558
JF
7335/* The mapping between symbol names and symbols. */
7336LT_DLSYM_CONST struct {
7337 const char *name;
7338 void *address;
7339}
7340lt__PROGRAM__LTX_preloaded_symbols[] =
7341{
7342 { "@PROGRAM@", (void *) 0 },
7343_LT_EOF
7344 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7345 cat <<\_LT_EOF >> conftest.$ac_ext
7346 {0, (void *) 0}
7347};
9c60689e 7348
a243b558
JF
7349/* This works around a problem in FreeBSD linker */
7350#ifdef FREEBSD_WORKAROUND
7351static const void *lt_preloaded_setup() {
7352 return lt__PROGRAM__LTX_preloaded_symbols;
7353}
7354#endif
9c60689e 7355
a243b558
JF
7356#ifdef __cplusplus
7357}
7358#endif
7359_LT_EOF
7360 # Now try linking the two files.
7361 mv conftest.$ac_objext conftstm.$ac_objext
7362 lt_globsym_save_LIBS=$LIBS
7363 lt_globsym_save_CFLAGS=$CFLAGS
7364 LIBS="conftstm.$ac_objext"
7365 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7367 (eval $ac_link) 2>&5
7368 ac_status=$?
7369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7370 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7371 pipe_works=yes
7372 fi
7373 LIBS=$lt_globsym_save_LIBS
7374 CFLAGS=$lt_globsym_save_CFLAGS
7375 else
7376 echo "cannot find nm_test_func in $nlist" >&5
7377 fi
7378 else
7379 echo "cannot find nm_test_var in $nlist" >&5
7380 fi
7381 else
7382 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7383 fi
7384 else
7385 echo "$progname: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7387 fi
7388 rm -rf conftest* conftst*
9c60689e 7389
a243b558
JF
7390 # Do not use the global_symbol_pipe unless it works.
7391 if test "$pipe_works" = yes; then
7392 break
7393 else
7394 lt_cv_sys_global_symbol_pipe=
7395 fi
7396done
9c60689e 7397
9c60689e 7398fi
9c60689e 7399
a243b558
JF
7400if test -z "$lt_cv_sys_global_symbol_pipe"; then
7401 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7402fi
a243b558
JF
7403if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7405$as_echo "failed" >&6; }
9c60689e 7406else
a243b558
JF
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7408$as_echo "ok" >&6; }
9c60689e
DWT
7409fi
7410
a243b558
JF
7411# Response file support.
7412if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7413 nm_file_list_spec='@'
7414elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7415 nm_file_list_spec='@'
9c60689e 7416fi
9c60689e 7417
9c60689e 7418
9c60689e 7419
9c60689e 7420
9c60689e 7421
9c60689e
DWT
7422
7423
9c60689e 7424
9c60689e 7425
9c60689e
DWT
7426
7427
7428
ee134472
JF
7429
7430
9c60689e
DWT
7431
7432
7433
7434
7435
7436
7437
7438
7439
549f29b5 7440
549f29b5
DWT
7441
7442
549f29b5 7443
a243b558
JF
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7445$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7446
a243b558
JF
7447# Check whether --with-sysroot was given.
7448if test "${with_sysroot+set}" = set; then :
7449 withval=$with_sysroot;
9c60689e 7450else
a243b558 7451 with_sysroot=no
9c60689e
DWT
7452fi
7453
7454
a243b558
JF
7455lt_sysroot=
7456case ${with_sysroot} in #(
7457 yes)
7458 if test "$GCC" = yes; then
7459 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7460 fi
7461 ;; #(
7462 /*)
7463 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7464 ;; #(
7465 no|'')
7466 ;; #(
7467 *)
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7469$as_echo "${with_sysroot}" >&6; }
7470 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7471 ;;
7472esac
9c60689e 7473
a243b558
JF
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7475$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7476
7477
7478
7479
7480
a243b558
JF
7481# Check whether --enable-libtool-lock was given.
7482if test "${enable_libtool_lock+set}" = set; then :
7483 enableval=$enable_libtool_lock;
9c60689e
DWT
7484fi
7485
a243b558 7486test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9c60689e 7487
a243b558
JF
7488# Some flags need to be propagated to the compiler or linker for good
7489# libtool support.
7490case $host in
7491ia64-*-hpux*)
7492 # Find out which ABI we are using.
7493 echo 'int i;' > conftest.$ac_ext
7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7495 (eval $ac_compile) 2>&5
7496 ac_status=$?
7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498 test $ac_status = 0; }; then
7499 case `/usr/bin/file conftest.$ac_objext` in
7500 *ELF-32*)
7501 HPUX_IA64_MODE="32"
7502 ;;
7503 *ELF-64*)
7504 HPUX_IA64_MODE="64"
7505 ;;
7506 esac
7507 fi
7508 rm -rf conftest*
7509 ;;
7510*-*-irix6*)
7511 # Find out which ABI we are using.
7512 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7514 (eval $ac_compile) 2>&5
7515 ac_status=$?
7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; }; then
7518 if test "$lt_cv_prog_gnu_ld" = yes; then
7519 case `/usr/bin/file conftest.$ac_objext` in
7520 *32-bit*)
7521 LD="${LD-ld} -melf32bsmip"
7522 ;;
7523 *N32*)
7524 LD="${LD-ld} -melf32bmipn32"
7525 ;;
7526 *64-bit*)
7527 LD="${LD-ld} -melf64bmip"
7528 ;;
7529 esac
7530 else
7531 case `/usr/bin/file conftest.$ac_objext` in
7532 *32-bit*)
7533 LD="${LD-ld} -32"
7534 ;;
7535 *N32*)
7536 LD="${LD-ld} -n32"
7537 ;;
7538 *64-bit*)
7539 LD="${LD-ld} -64"
7540 ;;
7541 esac
7542 fi
7543 fi
7544 rm -rf conftest*
7545 ;;
9c60689e 7546
a243b558
JF
7547x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7548s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7549 # Find out which ABI we are using.
7550 echo 'int i;' > conftest.$ac_ext
7551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7552 (eval $ac_compile) 2>&5
7553 ac_status=$?
7554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7555 test $ac_status = 0; }; then
7556 case `/usr/bin/file conftest.o` in
7557 *32-bit*)
7558 case $host in
7559 x86_64-*kfreebsd*-gnu)
7560 LD="${LD-ld} -m elf_i386_fbsd"
7561 ;;
7562 x86_64-*linux*)
7563 LD="${LD-ld} -m elf_i386"
7564 ;;
7565 ppc64-*linux*|powerpc64-*linux*)
7566 LD="${LD-ld} -m elf32ppclinux"
7567 ;;
7568 s390x-*linux*)
7569 LD="${LD-ld} -m elf_s390"
7570 ;;
7571 sparc64-*linux*)
7572 LD="${LD-ld} -m elf32_sparc"
7573 ;;
7574 esac
7575 ;;
7576 *64-bit*)
7577 case $host in
7578 x86_64-*kfreebsd*-gnu)
7579 LD="${LD-ld} -m elf_x86_64_fbsd"
7580 ;;
7581 x86_64-*linux*)
7582 LD="${LD-ld} -m elf_x86_64"
7583 ;;
7584 ppc*-*linux*|powerpc*-*linux*)
7585 LD="${LD-ld} -m elf64ppc"
7586 ;;
7587 s390*-*linux*|s390*-*tpf*)
7588 LD="${LD-ld} -m elf64_s390"
7589 ;;
7590 sparc*-*linux*)
7591 LD="${LD-ld} -m elf64_sparc"
7592 ;;
7593 esac
7594 ;;
7595 esac
7596 fi
7597 rm -rf conftest*
7598 ;;
9c60689e 7599
a243b558
JF
7600*-*-sco3.2v5*)
7601 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7602 SAVE_CFLAGS="$CFLAGS"
7603 CFLAGS="$CFLAGS -belf"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7605$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7606if ${lt_cv_cc_needs_belf+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608else
7609 ac_ext=c
7610ac_cpp='$CPP $CPPFLAGS'
7611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7614
a243b558
JF
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616/* end confdefs.h. */
9c60689e 7617
a243b558
JF
7618int
7619main ()
7620{
9c60689e 7621
a243b558
JF
7622 ;
7623 return 0;
7624}
7625_ACEOF
7626if ac_fn_c_try_link "$LINENO"; then :
7627 lt_cv_cc_needs_belf=yes
9c60689e 7628else
a243b558 7629 lt_cv_cc_needs_belf=no
9c60689e 7630fi
a243b558
JF
7631rm -f core conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7633 ac_ext=c
7634ac_cpp='$CPP $CPPFLAGS'
7635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7637ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7638
a243b558
JF
7639fi
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7641$as_echo "$lt_cv_cc_needs_belf" >&6; }
7642 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7643 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7644 CFLAGS="$SAVE_CFLAGS"
7645 fi
7646 ;;
7647*-*solaris*)
7648 # Find out which ABI we are using.
7649 echo 'int i;' > conftest.$ac_ext
7650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7651 (eval $ac_compile) 2>&5
7652 ac_status=$?
7653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7654 test $ac_status = 0; }; then
7655 case `/usr/bin/file conftest.o` in
7656 *64-bit*)
7657 case $lt_cv_prog_gnu_ld in
7658 yes*)
7659 case $host in
7660 i?86-*-solaris*)
7661 LD="${LD-ld} -m elf_x86_64"
7662 ;;
7663 sparc*-*-solaris*)
7664 LD="${LD-ld} -m elf64_sparc"
7665 ;;
7666 esac
7667 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7668 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7669 LD="${LD-ld}_sol2"
7670 fi
7671 ;;
7672 *)
7673 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7674 LD="${LD-ld} -64"
7675 fi
7676 ;;
7677 esac
7678 ;;
7679 esac
7680 fi
7681 rm -rf conftest*
7682 ;;
7683esac
9c60689e 7684
a243b558 7685need_locks="$enable_libtool_lock"
9c60689e 7686
a243b558
JF
7687if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7689set dummy ${ac_tool_prefix}mt; ac_word=$2
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691$as_echo_n "checking for $ac_word... " >&6; }
7692if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694else
7695 if test -n "$MANIFEST_TOOL"; then
7696 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7697else
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709done
7710 done
7711IFS=$as_save_IFS
9c60689e 7712
a243b558
JF
7713fi
7714fi
7715MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7716if test -n "$MANIFEST_TOOL"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7718$as_echo "$MANIFEST_TOOL" >&6; }
7719else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721$as_echo "no" >&6; }
7722fi
9c60689e
DWT
7723
7724
a243b558
JF
7725fi
7726if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7727 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7728 # Extract the first word of "mt", so it can be a program name with args.
7729set dummy mt; ac_word=$2
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731$as_echo_n "checking for $ac_word... " >&6; }
7732if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734else
7735 if test -n "$ac_ct_MANIFEST_TOOL"; then
7736 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749done
7750 done
7751IFS=$as_save_IFS
9c60689e 7752
a243b558
JF
7753fi
7754fi
7755ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7756if test -n "$ac_ct_MANIFEST_TOOL"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7758$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7759else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
7762fi
9c60689e 7763
a243b558
JF
7764 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7765 MANIFEST_TOOL=":"
7766 else
7767 case $cross_compiling:$ac_tool_warned in
7768yes:)
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7771ac_tool_warned=yes ;;
7772esac
7773 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7774 fi
7775else
7776 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7777fi
9c60689e 7778
a243b558
JF
7779test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7781$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7782if ${lt_cv_path_mainfest_tool+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784else
7785 lt_cv_path_mainfest_tool=no
7786 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7787 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7788 cat conftest.err >&5
7789 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7790 lt_cv_path_mainfest_tool=yes
7791 fi
a93f15c0 7792 rm -f conftest*
a243b558
JF
7793fi
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7795$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7796if test "x$lt_cv_path_mainfest_tool" != xyes; then
7797 MANIFEST_TOOL=:
7798fi
9c60689e
DWT
7799
7800
7801
7802
7803
7804
a243b558
JF
7805 case $host_os in
7806 rhapsody* | darwin*)
7807 if test -n "$ac_tool_prefix"; then
7808 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7809set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811$as_echo_n "checking for $ac_word... " >&6; }
7812if ${ac_cv_prog_DSYMUTIL+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814else
7815 if test -n "$DSYMUTIL"; then
7816 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7817else
7818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819for as_dir in $PATH
7820do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7828 fi
7829done
7830 done
7831IFS=$as_save_IFS
9c60689e 7832
a243b558
JF
7833fi
7834fi
7835DSYMUTIL=$ac_cv_prog_DSYMUTIL
7836if test -n "$DSYMUTIL"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7838$as_echo "$DSYMUTIL" >&6; }
7839else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841$as_echo "no" >&6; }
7842fi
9c60689e
DWT
7843
7844
9c60689e 7845fi
a243b558
JF
7846if test -z "$ac_cv_prog_DSYMUTIL"; then
7847 ac_ct_DSYMUTIL=$DSYMUTIL
7848 # Extract the first word of "dsymutil", so it can be a program name with args.
7849set dummy dsymutil; ac_word=$2
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851$as_echo_n "checking for $ac_word... " >&6; }
7852if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
7853 $as_echo_n "(cached) " >&6
7854else
a243b558
JF
7855 if test -n "$ac_ct_DSYMUTIL"; then
7856 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 7857else
a243b558
JF
7858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869done
7870 done
7871IFS=$as_save_IFS
7872
9c60689e 7873fi
9c60689e 7874fi
a243b558
JF
7875ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7876if test -n "$ac_ct_DSYMUTIL"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7878$as_echo "$ac_ct_DSYMUTIL" >&6; }
7879else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881$as_echo "no" >&6; }
7882fi
9c60689e 7883
a243b558
JF
7884 if test "x$ac_ct_DSYMUTIL" = x; then
7885 DSYMUTIL=":"
7886 else
7887 case $cross_compiling:$ac_tool_warned in
7888yes:)
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7891ac_tool_warned=yes ;;
9c60689e 7892esac
a243b558
JF
7893 DSYMUTIL=$ac_ct_DSYMUTIL
7894 fi
7895else
7896 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7897fi
9c60689e 7898
a243b558
JF
7899 if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7901set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903$as_echo_n "checking for $ac_word... " >&6; }
7904if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
7905 $as_echo_n "(cached) " >&6
7906else
a243b558
JF
7907 if test -n "$NMEDIT"; then
7908 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7909else
7910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921done
9c60689e 7922 done
a243b558 7923IFS=$as_save_IFS
9c60689e 7924
a243b558
JF
7925fi
7926fi
7927NMEDIT=$ac_cv_prog_NMEDIT
7928if test -n "$NMEDIT"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7930$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
7931else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933$as_echo "no" >&6; }
7934fi
7935
7936
a243b558
JF
7937fi
7938if test -z "$ac_cv_prog_NMEDIT"; then
7939 ac_ct_NMEDIT=$NMEDIT
7940 # Extract the first word of "nmedit", so it can be a program name with args.
7941set dummy nmedit; ac_word=$2
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943$as_echo_n "checking for $ac_word... " >&6; }
7944if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
7945 $as_echo_n "(cached) " >&6
7946else
a243b558
JF
7947 if test -n "$ac_ct_NMEDIT"; then
7948 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7949else
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961done
9c60689e 7962 done
a243b558 7963IFS=$as_save_IFS
9c60689e 7964
a243b558
JF
7965fi
7966fi
7967ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7968if test -n "$ac_ct_NMEDIT"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7970$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
7971else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973$as_echo "no" >&6; }
7974fi
7975
a243b558
JF
7976 if test "x$ac_ct_NMEDIT" = x; then
7977 NMEDIT=":"
9c60689e 7978 else
a243b558
JF
7979 case $cross_compiling:$ac_tool_warned in
7980yes:)
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983ac_tool_warned=yes ;;
7984esac
7985 NMEDIT=$ac_ct_NMEDIT
9c60689e 7986 fi
a243b558
JF
7987else
7988 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
7989fi
7990
a243b558
JF
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7993set dummy ${ac_tool_prefix}lipo; ac_word=$2
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995$as_echo_n "checking for $ac_word... " >&6; }
7996if ${ac_cv_prog_LIPO+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998else
7999 if test -n "$LIPO"; then
8000 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8001else
8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013done
8014 done
8015IFS=$as_save_IFS
9c60689e 8016
a243b558
JF
8017fi
8018fi
8019LIPO=$ac_cv_prog_LIPO
8020if test -n "$LIPO"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8022$as_echo "$LIPO" >&6; }
8023else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
8026fi
9c60689e 8027
9c60689e 8028
a243b558
JF
8029fi
8030if test -z "$ac_cv_prog_LIPO"; then
8031 ac_ct_LIPO=$LIPO
8032 # Extract the first word of "lipo", so it can be a program name with args.
8033set dummy lipo; ac_word=$2
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035$as_echo_n "checking for $ac_word... " >&6; }
8036if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
8037 $as_echo_n "(cached) " >&6
8038else
a243b558
JF
8039 if test -n "$ac_ct_LIPO"; then
8040 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8041else
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_ac_ct_LIPO="lipo"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053done
8054 done
8055IFS=$as_save_IFS
9c60689e
DWT
8056
8057fi
a243b558
JF
8058fi
8059ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8060if test -n "$ac_ct_LIPO"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8062$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 8063else
a243b558
JF
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
9c60689e
DWT
8066fi
8067
a243b558
JF
8068 if test "x$ac_ct_LIPO" = x; then
8069 LIPO=":"
8070 else
8071 case $cross_compiling:$ac_tool_warned in
8072yes:)
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075ac_tool_warned=yes ;;
8076esac
8077 LIPO=$ac_ct_LIPO
8078 fi
8079else
8080 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
8081fi
8082
a243b558
JF
8083 if test -n "$ac_tool_prefix"; then
8084 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8085set dummy ${ac_tool_prefix}otool; ac_word=$2
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087$as_echo_n "checking for $ac_word... " >&6; }
8088if ${ac_cv_prog_OTOOL+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090else
8091 if test -n "$OTOOL"; then
8092 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8093else
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105done
8106 done
8107IFS=$as_save_IFS
9c60689e 8108
a243b558
JF
8109fi
8110fi
8111OTOOL=$ac_cv_prog_OTOOL
8112if test -n "$OTOOL"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8114$as_echo "$OTOOL" >&6; }
8115else
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117$as_echo "no" >&6; }
8118fi
9c60689e
DWT
8119
8120
a243b558
JF
8121fi
8122if test -z "$ac_cv_prog_OTOOL"; then
8123 ac_ct_OTOOL=$OTOOL
8124 # Extract the first word of "otool", so it can be a program name with args.
8125set dummy otool; ac_word=$2
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127$as_echo_n "checking for $ac_word... " >&6; }
8128if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130else
8131 if test -n "$ac_ct_OTOOL"; then
8132 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8133else
8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135for as_dir in $PATH
8136do
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_ac_ct_OTOOL="otool"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8144 fi
8145done
8146 done
8147IFS=$as_save_IFS
9c60689e 8148
a243b558
JF
8149fi
8150fi
8151ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8152if test -n "$ac_ct_OTOOL"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8154$as_echo "$ac_ct_OTOOL" >&6; }
8155else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157$as_echo "no" >&6; }
8158fi
9c60689e 8159
a243b558
JF
8160 if test "x$ac_ct_OTOOL" = x; then
8161 OTOOL=":"
8162 else
8163 case $cross_compiling:$ac_tool_warned in
8164yes:)
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167ac_tool_warned=yes ;;
8168esac
8169 OTOOL=$ac_ct_OTOOL
8170 fi
8171else
8172 OTOOL="$ac_cv_prog_OTOOL"
8173fi
9c60689e 8174
a243b558
JF
8175 if test -n "$ac_tool_prefix"; then
8176 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8177set dummy ${ac_tool_prefix}otool64; ac_word=$2
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179$as_echo_n "checking for $ac_word... " >&6; }
8180if ${ac_cv_prog_OTOOL64+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182else
8183 if test -n "$OTOOL64"; then
8184 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8185else
8186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187for as_dir in $PATH
8188do
8189 IFS=$as_save_IFS
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8193 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 break 2
8196 fi
8197done
8198 done
8199IFS=$as_save_IFS
9c60689e 8200
a243b558
JF
8201fi
8202fi
8203OTOOL64=$ac_cv_prog_OTOOL64
8204if test -n "$OTOOL64"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8206$as_echo "$OTOOL64" >&6; }
8207else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209$as_echo "no" >&6; }
8210fi
9c60689e 8211
9c60689e 8212
a243b558
JF
8213fi
8214if test -z "$ac_cv_prog_OTOOL64"; then
8215 ac_ct_OTOOL64=$OTOOL64
8216 # Extract the first word of "otool64", so it can be a program name with args.
8217set dummy otool64; ac_word=$2
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219$as_echo_n "checking for $ac_word... " >&6; }
8220if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222else
8223 if test -n "$ac_ct_OTOOL64"; then
8224 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8225else
8226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8233 ac_cv_prog_ac_ct_OTOOL64="otool64"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237done
8238 done
8239IFS=$as_save_IFS
9c60689e 8240
a243b558
JF
8241fi
8242fi
8243ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8244if test -n "$ac_ct_OTOOL64"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8246$as_echo "$ac_ct_OTOOL64" >&6; }
8247else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249$as_echo "no" >&6; }
8250fi
9c60689e 8251
a243b558
JF
8252 if test "x$ac_ct_OTOOL64" = x; then
8253 OTOOL64=":"
8254 else
8255 case $cross_compiling:$ac_tool_warned in
8256yes:)
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8259ac_tool_warned=yes ;;
8260esac
8261 OTOOL64=$ac_ct_OTOOL64
8262 fi
8263else
8264 OTOOL64="$ac_cv_prog_OTOOL64"
8265fi
ee134472 8266
9c60689e 8267
9c60689e 8268
9c60689e 8269
9c60689e 8270
9c60689e 8271
ee134472 8272
9c60689e 8273
9c60689e 8274
9c60689e 8275
9c60689e 8276
9c60689e 8277
9c60689e 8278
9c60689e 8279
9c60689e 8280
9c60689e 8281
9c60689e 8282
9c60689e 8283
9c60689e 8284
9c60689e 8285
9c60689e 8286
9c60689e 8287
9c60689e 8288
9c60689e 8289
9c60689e 8290
a243b558
JF
8291
8292
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8294$as_echo_n "checking for -single_module linker flag... " >&6; }
8295if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8296 $as_echo_n "(cached) " >&6
8297else
a243b558
JF
8298 lt_cv_apple_cc_single_mod=no
8299 if test -z "${LT_MULTI_MODULE}"; then
8300 # By default we will add the -single_module flag. You can override
8301 # by either setting the environment variable LT_MULTI_MODULE
8302 # non-empty at configure time, or by adding -multi_module to the
8303 # link flags.
8304 rm -rf libconftest.dylib*
8305 echo "int foo(void){return 1;}" > conftest.c
8306 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8307-dynamiclib -Wl,-single_module conftest.c" >&5
8308 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8309 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8310 _lt_result=$?
8311 # If there is a non-empty error log, and "single_module"
8312 # appears in it, assume the flag caused a linker warning
8313 if test -s conftest.err && $GREP single_module conftest.err; then
8314 cat conftest.err >&5
8315 # Otherwise, if the output was created with a 0 exit code from
8316 # the compiler, it worked.
8317 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8318 lt_cv_apple_cc_single_mod=yes
8319 else
8320 cat conftest.err >&5
8321 fi
8322 rm -rf libconftest.dylib*
8323 rm -f conftest.*
8324 fi
ee134472 8325fi
a243b558
JF
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8327$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8328
a243b558
JF
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8330$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8331if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8332 $as_echo_n "(cached) " >&6
8333else
a243b558
JF
8334 lt_cv_ld_exported_symbols_list=no
8335 save_LDFLAGS=$LDFLAGS
8336 echo "_main" > conftest.sym
8337 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h. */
9c60689e 8340
a243b558
JF
8341int
8342main ()
8343{
9c60689e 8344
a243b558
JF
8345 ;
8346 return 0;
8347}
8348_ACEOF
8349if ac_fn_c_try_link "$LINENO"; then :
8350 lt_cv_ld_exported_symbols_list=yes
9c60689e 8351else
a243b558 8352 lt_cv_ld_exported_symbols_list=no
9c60689e 8353fi
a243b558
JF
8354rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8356 LDFLAGS="$save_LDFLAGS"
9c60689e
DWT
8357
8358fi
a243b558
JF
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8360$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8361
a243b558
JF
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8363$as_echo_n "checking for -force_load linker flag... " >&6; }
8364if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8365 $as_echo_n "(cached) " >&6
8366else
a243b558
JF
8367 lt_cv_ld_force_load=no
8368 cat > conftest.c << _LT_EOF
8369int forced_loaded() { return 2;}
8370_LT_EOF
8371 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8372 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8373 echo "$AR cru libconftest.a conftest.o" >&5
8374 $AR cru libconftest.a conftest.o 2>&5
8375 echo "$RANLIB libconftest.a" >&5
8376 $RANLIB libconftest.a 2>&5
8377 cat > conftest.c << _LT_EOF
8378int main() { return 0;}
8379_LT_EOF
8380 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8381 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8382 _lt_result=$?
8383 if test -s conftest.err && $GREP force_load conftest.err; then
8384 cat conftest.err >&5
8385 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8386 lt_cv_ld_force_load=yes
8387 else
8388 cat conftest.err >&5
8389 fi
8390 rm -f conftest.err libconftest.a conftest conftest.c
8391 rm -rf conftest.dSYM
9c60689e
DWT
8392
8393fi
a243b558
JF
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8395$as_echo "$lt_cv_ld_force_load" >&6; }
8396 case $host_os in
8397 rhapsody* | darwin1.[012])
8398 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8399 darwin1.*)
8400 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8401 darwin*) # darwin 5.x on
8402 # if running on 10.5 or later, the deployment target defaults
8403 # to the OS version, if on x86, and 10.4, the deployment
8404 # target defaults to 10.4. Don't you love it?
8405 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8406 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8408 10.[012]*)
8409 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8410 10.*)
8411 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8412 esac
8413 ;;
8414 esac
8415 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8416 _lt_dar_single_mod='$single_module'
8417 fi
8418 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8419 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8420 else
8421 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8422 fi
8423 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8424 _lt_dsymutil='~$DSYMUTIL $lib || :'
8425 else
8426 _lt_dsymutil=
8427 fi
8428 ;;
8429 esac
9c60689e 8430
a243b558
JF
8431ac_ext=c
8432ac_cpp='$CPP $CPPFLAGS'
8433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435ac_compiler_gnu=$ac_cv_c_compiler_gnu
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8437$as_echo_n "checking how to run the C preprocessor... " >&6; }
8438# On Suns, sometimes $CPP names a directory.
8439if test -n "$CPP" && test -d "$CPP"; then
8440 CPP=
9c60689e 8441fi
a243b558
JF
8442if test -z "$CPP"; then
8443 if ${ac_cv_prog_CPP+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445else
8446 # Double quotes because CPP needs to be expanded
8447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8448 do
8449 ac_preproc_ok=false
8450for ac_c_preproc_warn_flag in '' yes
8451do
8452 # Use a header file that comes with gcc, so configuring glibc
8453 # with a fresh cross-compiler works.
8454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455 # <limits.h> exists even on freestanding compilers.
8456 # On the NeXT, cc -E runs the code through the compiler's parser,
8457 # not just through cpp. "Syntax error" is here to catch this case.
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h. */
8460#ifdef __STDC__
8461# include <limits.h>
8462#else
8463# include <assert.h>
8464#endif
8465 Syntax error
8466_ACEOF
8467if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8468
a243b558
JF
8469else
8470 # Broken: fails on valid input.
8471continue
8472fi
8473rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8474
a243b558
JF
8475 # OK, works on sane cases. Now check whether nonexistent headers
8476 # can be detected and how.
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478/* end confdefs.h. */
8479#include <ac_nonexistent.h>
8480_ACEOF
8481if ac_fn_c_try_cpp "$LINENO"; then :
8482 # Broken: success on invalid input.
8483continue
8484else
8485 # Passes both tests.
8486ac_preproc_ok=:
8487break
8488fi
8489rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8490
a243b558
JF
8491done
8492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8493rm -f conftest.i conftest.err conftest.$ac_ext
8494if $ac_preproc_ok; then :
8495 break
8496fi
9c60689e 8497
a243b558
JF
8498 done
8499 ac_cv_prog_CPP=$CPP
9c60689e 8500
a243b558
JF
8501fi
8502 CPP=$ac_cv_prog_CPP
9c60689e 8503else
a243b558
JF
8504 ac_cv_prog_CPP=$CPP
8505fi
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8507$as_echo "$CPP" >&6; }
8508ac_preproc_ok=false
8509for ac_c_preproc_warn_flag in '' yes
8510do
8511 # Use a header file that comes with gcc, so configuring glibc
8512 # with a fresh cross-compiler works.
8513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8514 # <limits.h> exists even on freestanding compilers.
8515 # On the NeXT, cc -E runs the code through the compiler's parser,
8516 # not just through cpp. "Syntax error" is here to catch this case.
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h. */
8519#ifdef __STDC__
8520# include <limits.h>
8521#else
8522# include <assert.h>
8523#endif
8524 Syntax error
8525_ACEOF
8526if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8527
a243b558
JF
8528else
8529 # Broken: fails on valid input.
8530continue
9c60689e 8531fi
a243b558 8532rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8533
a243b558
JF
8534 # OK, works on sane cases. Now check whether nonexistent headers
8535 # can be detected and how.
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537/* end confdefs.h. */
8538#include <ac_nonexistent.h>
8539_ACEOF
8540if ac_fn_c_try_cpp "$LINENO"; then :
8541 # Broken: success on invalid input.
8542continue
8543else
8544 # Passes both tests.
8545ac_preproc_ok=:
8546break
8547fi
8548rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8549
a243b558
JF
8550done
8551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8552rm -f conftest.i conftest.err conftest.$ac_ext
8553if $ac_preproc_ok; then :
9c60689e 8554
a243b558
JF
8555else
8556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8558as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8559See \`config.log' for more details" "$LINENO" 5; }
8560fi
9c60689e 8561
a243b558
JF
8562ac_ext=c
8563ac_cpp='$CPP $CPPFLAGS'
8564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8566ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8567
8568
a243b558
JF
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8570$as_echo_n "checking for ANSI C header files... " >&6; }
8571if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8572 $as_echo_n "(cached) " >&6
8573else
a243b558
JF
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h. */
8576#include <stdlib.h>
8577#include <stdarg.h>
8578#include <string.h>
8579#include <float.h>
9c60689e 8580
a243b558
JF
8581int
8582main ()
8583{
9c60689e 8584
a243b558
JF
8585 ;
8586 return 0;
8587}
8588_ACEOF
8589if ac_fn_c_try_compile "$LINENO"; then :
8590 ac_cv_header_stdc=yes
8591else
8592 ac_cv_header_stdc=no
9c60689e 8593fi
a243b558
JF
8594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595
8596if test $ac_cv_header_stdc = yes; then
8597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599/* end confdefs.h. */
8600#include <string.h>
9c60689e 8601
a243b558
JF
8602_ACEOF
8603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8604 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8605
a243b558
JF
8606else
8607 ac_cv_header_stdc=no
8608fi
8609rm -f conftest*
9c60689e 8610
a243b558
JF
8611fi
8612
8613if test $ac_cv_header_stdc = yes; then
8614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h. */
8617#include <stdlib.h>
8618
8619_ACEOF
8620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8621 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8622
9c60689e 8623else
a243b558 8624 ac_cv_header_stdc=no
9c60689e 8625fi
a243b558 8626rm -f conftest*
9c60689e 8627
a243b558 8628fi
9c60689e 8629
a243b558
JF
8630if test $ac_cv_header_stdc = yes; then
8631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8632 if test "$cross_compiling" = yes; then :
8633 :
8634else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h. */
8637#include <ctype.h>
8638#include <stdlib.h>
8639#if ((' ' & 0x0FF) == 0x020)
8640# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8641# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8642#else
8643# define ISLOWER(c) \
8644 (('a' <= (c) && (c) <= 'i') \
8645 || ('j' <= (c) && (c) <= 'r') \
8646 || ('s' <= (c) && (c) <= 'z'))
8647# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8648#endif
9c60689e 8649
a243b558
JF
8650#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8651int
8652main ()
8653{
8654 int i;
8655 for (i = 0; i < 256; i++)
8656 if (XOR (islower (i), ISLOWER (i))
8657 || toupper (i) != TOUPPER (i))
8658 return 2;
8659 return 0;
8660}
8661_ACEOF
8662if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8663
a243b558
JF
8664else
8665 ac_cv_header_stdc=no
8666fi
8667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8668 conftest.$ac_objext conftest.beam conftest.$ac_ext
8669fi
9c60689e 8670
a243b558
JF
8671fi
8672fi
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8674$as_echo "$ac_cv_header_stdc" >&6; }
8675if test $ac_cv_header_stdc = yes; then
9c60689e 8676
a243b558 8677$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8678
a243b558 8679fi
9c60689e 8680
a243b558
JF
8681# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8682for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8683 inttypes.h stdint.h unistd.h
8684do :
8685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8686ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8687"
8688if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8689 cat >>confdefs.h <<_ACEOF
8690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8691_ACEOF
9c60689e 8692
a243b558 8693fi
ee134472 8694
a243b558 8695done
ee134472 8696
9c60689e 8697
a243b558
JF
8698for ac_header in dlfcn.h
8699do :
8700 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8701"
8702if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8703 cat >>confdefs.h <<_ACEOF
8704#define HAVE_DLFCN_H 1
8705_ACEOF
9c60689e 8706
a243b558 8707fi
9c60689e 8708
a243b558 8709done
9c60689e 8710
9c60689e 8711
9c60689e 8712
9c60689e 8713
a243b558
JF
8714func_stripname_cnf ()
8715{
8716 case ${2} in
8717 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8718 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8719 esac
8720} # func_stripname_cnf
9c60689e 8721
9c60689e 8722
ee134472 8723
a243b558
JF
8724
8725
8726# Set options
8727# Check whether --enable-static was given.
8728if test "${enable_static+set}" = set; then :
8729 enableval=$enable_static; p=${PACKAGE-default}
8730 case $enableval in
8731 yes) enable_static=yes ;;
8732 no) enable_static=no ;;
8733 *)
8734 enable_static=no
8735 # Look at the argument we got. We use all the common list separators.
8736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8737 for pkg in $enableval; do
8738 IFS="$lt_save_ifs"
8739 if test "X$pkg" = "X$p"; then
8740 enable_static=yes
8741 fi
8742 done
8743 IFS="$lt_save_ifs"
9c60689e 8744 ;;
a243b558
JF
8745 esac
8746else
8747 enable_static=no
8748fi
9c60689e 8749
9c60689e 8750
9c60689e 8751
9c60689e 8752
9c60689e 8753
9c60689e 8754
9c60689e 8755
9c60689e 8756
9c60689e 8757
9c60689e 8758
a243b558 8759 enable_dlopen=no
9c60689e 8760
9c60689e 8761
a243b558
JF
8762 enable_win32_dll=no
8763
8764
8765 # Check whether --enable-shared was given.
8766if test "${enable_shared+set}" = set; then :
8767 enableval=$enable_shared; p=${PACKAGE-default}
8768 case $enableval in
8769 yes) enable_shared=yes ;;
8770 no) enable_shared=no ;;
9c60689e 8771 *)
a243b558
JF
8772 enable_shared=no
8773 # Look at the argument we got. We use all the common list separators.
8774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8775 for pkg in $enableval; do
8776 IFS="$lt_save_ifs"
8777 if test "X$pkg" = "X$p"; then
8778 enable_shared=yes
8779 fi
8780 done
8781 IFS="$lt_save_ifs"
9c60689e
DWT
8782 ;;
8783 esac
a243b558
JF
8784else
8785 enable_shared=yes
8786fi
9c60689e 8787
9c60689e 8788
9c60689e 8789
9c60689e 8790
9c60689e 8791
9c60689e 8792
9c60689e 8793
9c60689e 8794
9c60689e 8795
9c60689e 8796
9c60689e 8797
a243b558
JF
8798# Check whether --with-pic was given.
8799if test "${with_pic+set}" = set; then :
8800 withval=$with_pic; lt_p=${PACKAGE-default}
8801 case $withval in
8802 yes|no) pic_mode=$withval ;;
8803 *)
8804 pic_mode=default
8805 # Look at the argument we got. We use all the common list separators.
8806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8807 for lt_pkg in $withval; do
8808 IFS="$lt_save_ifs"
8809 if test "X$lt_pkg" = "X$lt_p"; then
8810 pic_mode=yes
8811 fi
8812 done
8813 IFS="$lt_save_ifs"
8814 ;;
8815 esac
8816else
8817 pic_mode=default
9c60689e 8818fi
ee134472 8819
ee134472 8820
a243b558 8821test -z "$pic_mode" && pic_mode=default
9c60689e 8822
9c60689e 8823
9c60689e 8824
9c60689e 8825
ee134472 8826
ee134472 8827
9c60689e 8828
a243b558
JF
8829 # Check whether --enable-fast-install was given.
8830if test "${enable_fast_install+set}" = set; then :
8831 enableval=$enable_fast_install; p=${PACKAGE-default}
8832 case $enableval in
8833 yes) enable_fast_install=yes ;;
8834 no) enable_fast_install=no ;;
8835 *)
8836 enable_fast_install=no
8837 # Look at the argument we got. We use all the common list separators.
8838 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8839 for pkg in $enableval; do
8840 IFS="$lt_save_ifs"
8841 if test "X$pkg" = "X$p"; then
8842 enable_fast_install=yes
9c60689e 8843 fi
a243b558
JF
8844 done
8845 IFS="$lt_save_ifs"
9c60689e 8846 ;;
a243b558
JF
8847 esac
8848else
8849 enable_fast_install=yes
8850fi
9c60689e 8851
9c60689e 8852
9c60689e 8853
9c60689e 8854
9c60689e
DWT
8855
8856
53ba6704 8857
9c60689e 8858
9c60689e 8859
9c60689e 8860
9c60689e 8861
a243b558
JF
8862# This can be used to rebuild libtool when needed
8863LIBTOOL_DEPS="$ltmain"
9c60689e 8864
a243b558
JF
8865# Always use our own libtool.
8866LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 8867
9c60689e 8868
9c60689e 8869
9c60689e 8870
9c60689e 8871
ee134472 8872
ee134472 8873
ee134472 8874
ee134472 8875
9c60689e 8876
9c60689e 8877
9c60689e 8878
9c60689e 8879
9c60689e 8880
9c60689e 8881
9c60689e 8882
9c60689e 8883
9c60689e 8884
9c60689e 8885
9c60689e 8886
9c60689e 8887
9c60689e 8888
9c60689e 8889
9c60689e 8890
9c60689e 8891
9c60689e 8892
9c60689e 8893
9c60689e 8894
9c60689e 8895
9c60689e 8896
a243b558 8897test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
a243b558
JF
8912if test -n "${ZSH_VERSION+set}" ; then
8913 setopt NO_GLOB_SUBST
8914fi
9c60689e 8915
a243b558
JF
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8917$as_echo_n "checking for objdir... " >&6; }
8918if ${lt_cv_objdir+:} false; then :
ee134472
JF
8919 $as_echo_n "(cached) " >&6
8920else
a243b558
JF
8921 rm -f .libs 2>/dev/null
8922mkdir .libs 2>/dev/null
8923if test -d .libs; then
8924 lt_cv_objdir=.libs
8925else
8926 # MS-DOS does not allow filenames that begin with a dot.
8927 lt_cv_objdir=_libs
ee134472 8928fi
a243b558
JF
8929rmdir .libs 2>/dev/null
8930fi
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8932$as_echo "$lt_cv_objdir" >&6; }
8933objdir=$lt_cv_objdir
9c60689e
DWT
8934
8935
8936
8937
8938
a243b558
JF
8939cat >>confdefs.h <<_ACEOF
8940#define LT_OBJDIR "$lt_cv_objdir/"
8941_ACEOF
9c60689e
DWT
8942
8943
8944
8945
a243b558
JF
8946case $host_os in
8947aix3*)
8948 # AIX sometimes has problems with the GCC collect2 program. For some
8949 # reason, if we set the COLLECT_NAMES environment variable, the problems
8950 # vanish in a puff of smoke.
8951 if test "X${COLLECT_NAMES+set}" != Xset; then
8952 COLLECT_NAMES=
8953 export COLLECT_NAMES
8954 fi
8955 ;;
8956esac
9c60689e 8957
a243b558
JF
8958# Global variables:
8959ofile=libtool
8960can_build_shared=yes
9c60689e 8961
a243b558
JF
8962# All known linkers require a `.a' archive for static linking (except MSVC,
8963# which needs '.lib').
8964libext=a
9c60689e 8965
a243b558 8966with_gnu_ld="$lt_cv_prog_gnu_ld"
9c60689e 8967
a243b558
JF
8968old_CC="$CC"
8969old_CFLAGS="$CFLAGS"
9c60689e 8970
a243b558
JF
8971# Set sane defaults for various variables
8972test -z "$CC" && CC=cc
8973test -z "$LTCC" && LTCC=$CC
8974test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8975test -z "$LD" && LD=ld
8976test -z "$ac_objext" && ac_objext=o
9c60689e 8977
a243b558
JF
8978for cc_temp in $compiler""; do
8979 case $cc_temp in
8980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8982 \-*) ;;
8983 *) break;;
8984 esac
8985done
8986cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
8987
8988
a243b558
JF
8989# Only perform the check for file, if the check method requires it
8990test -z "$MAGIC_CMD" && MAGIC_CMD=file
8991case $deplibs_check_method in
8992file_magic*)
8993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8995$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8996if ${lt_cv_path_MAGIC_CMD+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998else
8999 case $MAGIC_CMD in
9000[\\/*] | ?:[\\/]*)
9001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9002 ;;
9003*)
9004 lt_save_MAGIC_CMD="$MAGIC_CMD"
9005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9007 for ac_dir in $ac_dummy; do
9008 IFS="$lt_save_ifs"
9009 test -z "$ac_dir" && ac_dir=.
9010 if test -f $ac_dir/${ac_tool_prefix}file; then
9011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9012 if test -n "$file_magic_test_file"; then
9013 case $deplibs_check_method in
9014 "file_magic "*)
9015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9018 $EGREP "$file_magic_regex" > /dev/null; then
9019 :
9020 else
9021 cat <<_LT_EOF 1>&2
9c60689e 9022
a243b558
JF
9023*** Warning: the command libtool uses to detect shared libraries,
9024*** $file_magic_cmd, produces output that libtool cannot recognize.
9025*** The result is that libtool may fail to recognize shared libraries
9026*** as such. This will affect the creation of libtool libraries that
9027*** depend on shared libraries, but programs linked with such libtool
9028*** libraries will work regardless of this problem. Nevertheless, you
9029*** may want to report the problem to your system manager and/or to
9030*** bug-libtool@gnu.org
9c60689e 9031
a243b558
JF
9032_LT_EOF
9033 fi ;;
9034 esac
9035 fi
9036 break
9037 fi
9038 done
9039 IFS="$lt_save_ifs"
9040 MAGIC_CMD="$lt_save_MAGIC_CMD"
9041 ;;
9042esac
9043fi
9c60689e 9044
a243b558
JF
9045MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9046if test -n "$MAGIC_CMD"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9048$as_echo "$MAGIC_CMD" >&6; }
9049else
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051$as_echo "no" >&6; }
9052fi
9c60689e
DWT
9053
9054
9055
9056
9057
a243b558
JF
9058if test -z "$lt_cv_path_MAGIC_CMD"; then
9059 if test -n "$ac_tool_prefix"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9061$as_echo_n "checking for file... " >&6; }
9062if ${lt_cv_path_MAGIC_CMD+:} false; then :
9063 $as_echo_n "(cached) " >&6
9064else
9065 case $MAGIC_CMD in
9066[\\/*] | ?:[\\/]*)
9067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9068 ;;
9069*)
9070 lt_save_MAGIC_CMD="$MAGIC_CMD"
9071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9073 for ac_dir in $ac_dummy; do
9074 IFS="$lt_save_ifs"
9075 test -z "$ac_dir" && ac_dir=.
9076 if test -f $ac_dir/file; then
9077 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9078 if test -n "$file_magic_test_file"; then
9079 case $deplibs_check_method in
9080 "file_magic "*)
9081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9084 $EGREP "$file_magic_regex" > /dev/null; then
9085 :
9086 else
9087 cat <<_LT_EOF 1>&2
9c60689e 9088
a243b558
JF
9089*** Warning: the command libtool uses to detect shared libraries,
9090*** $file_magic_cmd, produces output that libtool cannot recognize.
9091*** The result is that libtool may fail to recognize shared libraries
9092*** as such. This will affect the creation of libtool libraries that
9093*** depend on shared libraries, but programs linked with such libtool
9094*** libraries will work regardless of this problem. Nevertheless, you
9095*** may want to report the problem to your system manager and/or to
9096*** bug-libtool@gnu.org
9c60689e 9097
a243b558
JF
9098_LT_EOF
9099 fi ;;
9100 esac
9101 fi
9102 break
9103 fi
9104 done
9105 IFS="$lt_save_ifs"
9106 MAGIC_CMD="$lt_save_MAGIC_CMD"
9107 ;;
9108esac
9109fi
9c60689e 9110
a243b558
JF
9111MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9112if test -n "$MAGIC_CMD"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9114$as_echo "$MAGIC_CMD" >&6; }
9115else
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117$as_echo "no" >&6; }
9118fi
9c60689e
DWT
9119
9120
a243b558
JF
9121 else
9122 MAGIC_CMD=:
9123 fi
9124fi
9c60689e 9125
a243b558
JF
9126 fi
9127 ;;
9128esac
9c60689e 9129
a243b558 9130# Use C for the default configuration in the libtool script
9c60689e 9131
a243b558
JF
9132lt_save_CC="$CC"
9133ac_ext=c
9134ac_cpp='$CPP $CPPFLAGS'
9135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9137ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
9138
9139
a243b558
JF
9140# Source file extension for C test sources.
9141ac_ext=c
9c60689e 9142
a243b558
JF
9143# Object file extension for compiled C test sources.
9144objext=o
9145objext=$objext
9c60689e 9146
a243b558
JF
9147# Code to be used in simple compile tests
9148lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9149
a243b558
JF
9150# Code to be used in simple link tests
9151lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9152
9153
9154
9155
9156
9157
9158
a243b558
JF
9159# If no C compiler was specified, use CC.
9160LTCC=${LTCC-"$CC"}
9c60689e 9161
a243b558
JF
9162# If no C compiler flags were specified, use CFLAGS.
9163LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9164
a243b558
JF
9165# Allow CC to be a program name with arguments.
9166compiler=$CC
9c60689e 9167
a243b558
JF
9168# Save the default compiler, since it gets overwritten when the other
9169# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9170compiler_DEFAULT=$CC
9c60689e 9171
a243b558
JF
9172# save warnings/boilerplate of simple test code
9173ac_outfile=conftest.$ac_objext
9174echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9175eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9176_lt_compiler_boilerplate=`cat conftest.err`
a93f15c0 9177$RM conftest*
9c60689e 9178
a243b558
JF
9179ac_outfile=conftest.$ac_objext
9180echo "$lt_simple_link_test_code" >conftest.$ac_ext
9181eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9182_lt_linker_boilerplate=`cat conftest.err`
9183$RM -r conftest*
9c60689e
DWT
9184
9185
a243b558
JF
9186## CAVEAT EMPTOR:
9187## There is no encapsulation within the following macros, do not change
9188## the running order or otherwise move them around unless you know exactly
9189## what you are doing...
9190if test -n "$compiler"; then
9c60689e 9191
a243b558 9192lt_prog_compiler_no_builtin_flag=
9c60689e 9193
a243b558
JF
9194if test "$GCC" = yes; then
9195 case $cc_basename in
9196 nvcc*)
9197 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9198 *)
9199 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9200 esac
9c60689e 9201
a243b558
JF
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9203$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9204if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206else
9207 lt_cv_prog_compiler_rtti_exceptions=no
9208 ac_outfile=conftest.$ac_objext
9209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9210 lt_compiler_flag="-fno-rtti -fno-exceptions"
9211 # Insert the option either (1) after the last *FLAGS variable, or
9212 # (2) before a word containing "conftest.", or (3) at the end.
9213 # Note that $ac_compile itself does not contain backslashes and begins
9214 # with a dollar sign (not a hyphen), so the echo should work correctly.
9215 # The option is referenced via a variable to avoid confusing sed.
9216 lt_compile=`echo "$ac_compile" | $SED \
9217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9219 -e 's:$: $lt_compiler_flag:'`
9220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9221 (eval "$lt_compile" 2>conftest.err)
9222 ac_status=$?
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 if (exit $ac_status) && test -s "$ac_outfile"; then
9226 # The compiler can only warn and ignore the option if not recognized
9227 # So say no if there are warnings other than the usual output.
9228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9230 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9231 lt_cv_prog_compiler_rtti_exceptions=yes
9232 fi
9233 fi
a93f15c0 9234 $RM conftest*
9c60689e 9235
a243b558
JF
9236fi
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9238$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9239
a243b558
JF
9240if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9241 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9242else
9243 :
9244fi
9c60689e 9245
a243b558 9246fi
9c60689e
DWT
9247
9248
9249
9250
9251
9252
a243b558
JF
9253 lt_prog_compiler_wl=
9254lt_prog_compiler_pic=
9255lt_prog_compiler_static=
9c60689e
DWT
9256
9257
a243b558
JF
9258 if test "$GCC" = yes; then
9259 lt_prog_compiler_wl='-Wl,'
9260 lt_prog_compiler_static='-static'
9c60689e 9261
a243b558
JF
9262 case $host_os in
9263 aix*)
9264 # All AIX code is PIC.
9265 if test "$host_cpu" = ia64; then
9266 # AIX 5 now supports IA64 processor
9267 lt_prog_compiler_static='-Bstatic'
9268 fi
9269 ;;
9c60689e 9270
a243b558
JF
9271 amigaos*)
9272 case $host_cpu in
9273 powerpc)
9274 # see comment about AmigaOS4 .so support
9275 lt_prog_compiler_pic='-fPIC'
9276 ;;
9277 m68k)
9278 # FIXME: we need at least 68020 code to build shared libraries, but
9279 # adding the `-m68020' flag to GCC prevents building anything better,
9280 # like `-m68040'.
9281 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9282 ;;
9283 esac
9284 ;;
9c60689e 9285
a243b558
JF
9286 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9287 # PIC is the default for these OSes.
9288 ;;
9c60689e 9289
a243b558
JF
9290 mingw* | cygwin* | pw32* | os2* | cegcc*)
9291 # This hack is so that the source file can tell whether it is being
9292 # built for inclusion in a dll (and should export symbols for example).
9293 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9294 # (--disable-auto-import) libraries
9295 lt_prog_compiler_pic='-DDLL_EXPORT'
9296 ;;
9c60689e 9297
a243b558
JF
9298 darwin* | rhapsody*)
9299 # PIC is the default on this platform
9300 # Common symbols not allowed in MH_DYLIB files
9301 lt_prog_compiler_pic='-fno-common'
9302 ;;
9c60689e 9303
a243b558
JF
9304 haiku*)
9305 # PIC is the default for Haiku.
9306 # The "-static" flag exists, but is broken.
9307 lt_prog_compiler_static=
9308 ;;
9c60689e 9309
a243b558
JF
9310 hpux*)
9311 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9312 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9313 # sets the default TLS model and affects inlining.
9314 case $host_cpu in
9315 hppa*64*)
9316 # +Z the default
9317 ;;
9318 *)
9319 lt_prog_compiler_pic='-fPIC'
9320 ;;
9321 esac
9322 ;;
9c60689e 9323
a243b558
JF
9324 interix[3-9]*)
9325 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9326 # Instead, we relocate shared libraries at runtime.
9327 ;;
9c60689e 9328
a243b558
JF
9329 msdosdjgpp*)
9330 # Just because we use GCC doesn't mean we suddenly get shared libraries
9331 # on systems that don't support them.
9332 lt_prog_compiler_can_build_shared=no
9333 enable_shared=no
9334 ;;
9c60689e 9335
a243b558
JF
9336 *nto* | *qnx*)
9337 # QNX uses GNU C++, but need to define -shared option too, otherwise
9338 # it will coredump.
9339 lt_prog_compiler_pic='-fPIC -shared'
9340 ;;
9c60689e 9341
a243b558
JF
9342 sysv4*MP*)
9343 if test -d /usr/nec; then
9344 lt_prog_compiler_pic=-Kconform_pic
9345 fi
9346 ;;
9c60689e 9347
a243b558
JF
9348 *)
9349 lt_prog_compiler_pic='-fPIC'
9350 ;;
9351 esac
9c60689e 9352
a243b558
JF
9353 case $cc_basename in
9354 nvcc*) # Cuda Compiler Driver 2.2
9355 lt_prog_compiler_wl='-Xlinker '
9356 if test -n "$lt_prog_compiler_pic"; then
9357 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9358 fi
9359 ;;
9360 esac
9361 else
9362 # PORTME Check for flag to pass linker flags through the system compiler.
9363 case $host_os in
9364 aix*)
9365 lt_prog_compiler_wl='-Wl,'
9366 if test "$host_cpu" = ia64; then
9367 # AIX 5 now supports IA64 processor
9368 lt_prog_compiler_static='-Bstatic'
9369 else
9370 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9371 fi
9372 ;;
9c60689e 9373
a243b558
JF
9374 mingw* | cygwin* | pw32* | os2* | cegcc*)
9375 # This hack is so that the source file can tell whether it is being
9376 # built for inclusion in a dll (and should export symbols for example).
9377 lt_prog_compiler_pic='-DDLL_EXPORT'
9378 ;;
9c60689e 9379
a243b558
JF
9380 hpux9* | hpux10* | hpux11*)
9381 lt_prog_compiler_wl='-Wl,'
9382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9383 # not for PA HP-UX.
9384 case $host_cpu in
9385 hppa*64*|ia64*)
9386 # +Z the default
9387 ;;
9388 *)
9389 lt_prog_compiler_pic='+Z'
9390 ;;
9391 esac
9392 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9393 lt_prog_compiler_static='${wl}-a ${wl}archive'
9394 ;;
9c60689e 9395
a243b558
JF
9396 irix5* | irix6* | nonstopux*)
9397 lt_prog_compiler_wl='-Wl,'
9398 # PIC (with -KPIC) is the default.
9399 lt_prog_compiler_static='-non_shared'
9400 ;;
9c60689e 9401
a243b558
JF
9402 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9403 case $cc_basename in
9404 # old Intel for x86_64 which still supported -KPIC.
9405 ecc*)
9406 lt_prog_compiler_wl='-Wl,'
9407 lt_prog_compiler_pic='-KPIC'
9408 lt_prog_compiler_static='-static'
9409 ;;
9410 # icc used to be incompatible with GCC.
9411 # ICC 10 doesn't accept -KPIC any more.
9412 icc* | ifort*)
9413 lt_prog_compiler_wl='-Wl,'
9414 lt_prog_compiler_pic='-fPIC'
9415 lt_prog_compiler_static='-static'
9416 ;;
9417 # Lahey Fortran 8.1.
9418 lf95*)
9419 lt_prog_compiler_wl='-Wl,'
9420 lt_prog_compiler_pic='--shared'
9421 lt_prog_compiler_static='--static'
9422 ;;
9423 nagfor*)
9424 # NAG Fortran compiler
9425 lt_prog_compiler_wl='-Wl,-Wl,,'
9426 lt_prog_compiler_pic='-PIC'
9427 lt_prog_compiler_static='-Bstatic'
9428 ;;
9429 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9430 # Portland Group compilers (*not* the Pentium gcc compiler,
9431 # which looks to be a dead project)
9432 lt_prog_compiler_wl='-Wl,'
9433 lt_prog_compiler_pic='-fpic'
9434 lt_prog_compiler_static='-Bstatic'
9435 ;;
9436 ccc*)
9437 lt_prog_compiler_wl='-Wl,'
9438 # All Alpha code is PIC.
9439 lt_prog_compiler_static='-non_shared'
9440 ;;
9441 xl* | bgxl* | bgf* | mpixl*)
9442 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9443 lt_prog_compiler_wl='-Wl,'
9444 lt_prog_compiler_pic='-qpic'
9445 lt_prog_compiler_static='-qstaticlink'
9446 ;;
9447 *)
9448 case `$CC -V 2>&1 | sed 5q` in
9449 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9450 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9451 lt_prog_compiler_pic='-KPIC'
9452 lt_prog_compiler_static='-Bstatic'
9453 lt_prog_compiler_wl=''
9454 ;;
9455 *Sun\ F* | *Sun*Fortran*)
9456 lt_prog_compiler_pic='-KPIC'
9457 lt_prog_compiler_static='-Bstatic'
9458 lt_prog_compiler_wl='-Qoption ld '
9459 ;;
9460 *Sun\ C*)
9461 # Sun C 5.9
9462 lt_prog_compiler_pic='-KPIC'
9463 lt_prog_compiler_static='-Bstatic'
9464 lt_prog_compiler_wl='-Wl,'
9465 ;;
9466 *Intel*\ [CF]*Compiler*)
9467 lt_prog_compiler_wl='-Wl,'
9468 lt_prog_compiler_pic='-fPIC'
9469 lt_prog_compiler_static='-static'
9470 ;;
9471 *Portland\ Group*)
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_pic='-fpic'
9474 lt_prog_compiler_static='-Bstatic'
9475 ;;
9476 esac
9477 ;;
9478 esac
9479 ;;
9c60689e 9480
a243b558
JF
9481 newsos6)
9482 lt_prog_compiler_pic='-KPIC'
9483 lt_prog_compiler_static='-Bstatic'
9484 ;;
9c60689e 9485
a243b558
JF
9486 *nto* | *qnx*)
9487 # QNX uses GNU C++, but need to define -shared option too, otherwise
9488 # it will coredump.
9489 lt_prog_compiler_pic='-fPIC -shared'
9490 ;;
9c60689e 9491
a243b558
JF
9492 osf3* | osf4* | osf5*)
9493 lt_prog_compiler_wl='-Wl,'
9494 # All OSF/1 code is PIC.
9495 lt_prog_compiler_static='-non_shared'
9496 ;;
9c60689e 9497
a243b558
JF
9498 rdos*)
9499 lt_prog_compiler_static='-non_shared'
9500 ;;
9c60689e 9501
a243b558
JF
9502 solaris*)
9503 lt_prog_compiler_pic='-KPIC'
9504 lt_prog_compiler_static='-Bstatic'
9505 case $cc_basename in
9506 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9507 lt_prog_compiler_wl='-Qoption ld ';;
9508 *)
9509 lt_prog_compiler_wl='-Wl,';;
9510 esac
9511 ;;
9c60689e 9512
a243b558
JF
9513 sunos4*)
9514 lt_prog_compiler_wl='-Qoption ld '
9515 lt_prog_compiler_pic='-PIC'
9516 lt_prog_compiler_static='-Bstatic'
9517 ;;
9c60689e 9518
a243b558
JF
9519 sysv4 | sysv4.2uw2* | sysv4.3*)
9520 lt_prog_compiler_wl='-Wl,'
9521 lt_prog_compiler_pic='-KPIC'
9522 lt_prog_compiler_static='-Bstatic'
9523 ;;
9c60689e 9524
a243b558
JF
9525 sysv4*MP*)
9526 if test -d /usr/nec ;then
9527 lt_prog_compiler_pic='-Kconform_pic'
9528 lt_prog_compiler_static='-Bstatic'
9529 fi
9530 ;;
9c60689e 9531
a243b558
JF
9532 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9533 lt_prog_compiler_wl='-Wl,'
9534 lt_prog_compiler_pic='-KPIC'
9535 lt_prog_compiler_static='-Bstatic'
9536 ;;
9c60689e 9537
a243b558
JF
9538 unicos*)
9539 lt_prog_compiler_wl='-Wl,'
9540 lt_prog_compiler_can_build_shared=no
9541 ;;
9c60689e 9542
a243b558
JF
9543 uts4*)
9544 lt_prog_compiler_pic='-pic'
9545 lt_prog_compiler_static='-Bstatic'
9546 ;;
9c60689e 9547
a243b558
JF
9548 *)
9549 lt_prog_compiler_can_build_shared=no
9550 ;;
9551 esac
9552 fi
9c60689e 9553
a243b558
JF
9554case $host_os in
9555 # For platforms which do not support PIC, -DPIC is meaningless:
9556 *djgpp*)
9557 lt_prog_compiler_pic=
9558 ;;
9559 *)
9560 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9561 ;;
9562esac
9c60689e 9563
a243b558
JF
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9565$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9566if ${lt_cv_prog_compiler_pic+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568else
9569 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9570fi
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9572$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9573lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9574
a243b558
JF
9575#
9576# Check to make sure the PIC flag actually works.
9577#
9578if test -n "$lt_prog_compiler_pic"; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9580$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9581if ${lt_cv_prog_compiler_pic_works+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583else
9584 lt_cv_prog_compiler_pic_works=no
9585 ac_outfile=conftest.$ac_objext
9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9588 # Insert the option either (1) after the last *FLAGS variable, or
9589 # (2) before a word containing "conftest.", or (3) at the end.
9590 # Note that $ac_compile itself does not contain backslashes and begins
9591 # with a dollar sign (not a hyphen), so the echo should work correctly.
9592 # The option is referenced via a variable to avoid confusing sed.
9593 lt_compile=`echo "$ac_compile" | $SED \
9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9596 -e 's:$: $lt_compiler_flag:'`
9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9598 (eval "$lt_compile" 2>conftest.err)
9599 ac_status=$?
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 if (exit $ac_status) && test -s "$ac_outfile"; then
9603 # The compiler can only warn and ignore the option if not recognized
9604 # So say no if there are warnings other than the usual output.
9605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9608 lt_cv_prog_compiler_pic_works=yes
9609 fi
9610 fi
a93f15c0 9611 $RM conftest*
9c60689e 9612
a243b558
JF
9613fi
9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9615$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9616
a243b558
JF
9617if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9618 case $lt_prog_compiler_pic in
9619 "" | " "*) ;;
9620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9621 esac
9622else
9623 lt_prog_compiler_pic=
9624 lt_prog_compiler_can_build_shared=no
9625fi
9c60689e 9626
a243b558 9627fi
9c60689e
DWT
9628
9629
9630
9631
9632
9633
9c60689e
DWT
9634
9635
9636
9637
9638
a243b558
JF
9639#
9640# Check to make sure the static flag actually works.
9641#
9642wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9644$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9645if ${lt_cv_prog_compiler_static_works+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647else
9648 lt_cv_prog_compiler_static_works=no
9649 save_LDFLAGS="$LDFLAGS"
9650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9653 # The linker can only warn and ignore the option if not recognized
9654 # So say no if there are warnings
9655 if test -s conftest.err; then
9656 # Append any errors to the config.log.
9657 cat conftest.err 1>&5
9658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9660 if diff conftest.exp conftest.er2 >/dev/null; then
9661 lt_cv_prog_compiler_static_works=yes
9662 fi
9663 else
9664 lt_cv_prog_compiler_static_works=yes
9665 fi
9666 fi
9667 $RM -r conftest*
9668 LDFLAGS="$save_LDFLAGS"
9c60689e 9669
a243b558
JF
9670fi
9671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9672$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9673
a243b558
JF
9674if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9675 :
9c60689e 9676else
a243b558 9677 lt_prog_compiler_static=
9c60689e 9678fi
9c60689e 9679
9c60689e 9680
9c60689e 9681
9c60689e 9682
9c60689e 9683
9c60689e 9684
9c60689e 9685
a243b558
JF
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9687$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9688if ${lt_cv_prog_compiler_c_o+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690else
9691 lt_cv_prog_compiler_c_o=no
9692 $RM -r conftest 2>/dev/null
9693 mkdir conftest
9694 cd conftest
9695 mkdir out
9696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9697
a243b558
JF
9698 lt_compiler_flag="-o out/conftest2.$ac_objext"
9699 # Insert the option either (1) after the last *FLAGS variable, or
9700 # (2) before a word containing "conftest.", or (3) at the end.
9701 # Note that $ac_compile itself does not contain backslashes and begins
9702 # with a dollar sign (not a hyphen), so the echo should work correctly.
9703 lt_compile=`echo "$ac_compile" | $SED \
9704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9706 -e 's:$: $lt_compiler_flag:'`
9707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9708 (eval "$lt_compile" 2>out/conftest.err)
9709 ac_status=$?
9710 cat out/conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9713 then
9714 # The compiler can only warn and ignore the option if not recognized
9715 # So say no if there are warnings
9716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9719 lt_cv_prog_compiler_c_o=yes
9720 fi
9721 fi
9722 chmod u+w . 2>&5
a93f15c0 9723 $RM conftest*
a243b558
JF
9724 # SGI C++ compiler will create directory out/ii_files/ for
9725 # template instantiation
9726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9727 $RM out/* && rmdir out
9728 cd ..
9729 $RM -r conftest
a93f15c0 9730 $RM conftest*
9c60689e 9731
a243b558
JF
9732fi
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9734$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9735
ee134472 9736
ee134472 9737
ee134472 9738
ee134472 9739
9c60689e 9740
a243b558
JF
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9742$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9743if ${lt_cv_prog_compiler_c_o+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745else
9746 lt_cv_prog_compiler_c_o=no
9747 $RM -r conftest 2>/dev/null
9748 mkdir conftest
9749 cd conftest
9750 mkdir out
9751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9752
a243b558
JF
9753 lt_compiler_flag="-o out/conftest2.$ac_objext"
9754 # Insert the option either (1) after the last *FLAGS variable, or
9755 # (2) before a word containing "conftest.", or (3) at the end.
9756 # Note that $ac_compile itself does not contain backslashes and begins
9757 # with a dollar sign (not a hyphen), so the echo should work correctly.
9758 lt_compile=`echo "$ac_compile" | $SED \
9759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9761 -e 's:$: $lt_compiler_flag:'`
9762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9763 (eval "$lt_compile" 2>out/conftest.err)
9764 ac_status=$?
9765 cat out/conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9768 then
9769 # The compiler can only warn and ignore the option if not recognized
9770 # So say no if there are warnings
9771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9774 lt_cv_prog_compiler_c_o=yes
9775 fi
9776 fi
9777 chmod u+w . 2>&5
a93f15c0 9778 $RM conftest*
a243b558
JF
9779 # SGI C++ compiler will create directory out/ii_files/ for
9780 # template instantiation
9781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9782 $RM out/* && rmdir out
9783 cd ..
9784 $RM -r conftest
a93f15c0 9785 $RM conftest*
9c60689e 9786
a243b558
JF
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9789$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9790
9c60689e 9791
a243b558
JF
9792
9793
9794hard_links="nottested"
9795if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9796 # do not overwrite the value of need_locks provided by the user
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9798$as_echo_n "checking if we can lock with hard links... " >&6; }
9799 hard_links=yes
a93f15c0 9800 $RM conftest*
a243b558
JF
9801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9802 touch conftest.a
9803 ln conftest.a conftest.b 2>&5 || hard_links=no
9804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9806$as_echo "$hard_links" >&6; }
9807 if test "$hard_links" = no; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9809$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9810 need_locks=warn
9c60689e 9811 fi
a243b558
JF
9812else
9813 need_locks=no
9814fi
9c60689e 9815
ee134472 9816
9c60689e 9817
9c60689e 9818
9c60689e 9819
a243b558
JF
9820
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9822$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9823
9824 runpath_var=
9825 allow_undefined_flag=
9826 always_export_symbols=no
9827 archive_cmds=
9828 archive_expsym_cmds=
9829 compiler_needs_object=no
9830 enable_shared_with_static_runtimes=no
9831 export_dynamic_flag_spec=
9832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9833 hardcode_automatic=no
9834 hardcode_direct=no
9835 hardcode_direct_absolute=no
9836 hardcode_libdir_flag_spec=
9837 hardcode_libdir_separator=
9838 hardcode_minus_L=no
9839 hardcode_shlibpath_var=unsupported
9840 inherit_rpath=no
9841 link_all_deplibs=unknown
9842 module_cmds=
9843 module_expsym_cmds=
9844 old_archive_from_new_cmds=
9845 old_archive_from_expsyms_cmds=
9846 thread_safe_flag_spec=
9847 whole_archive_flag_spec=
9848 # include_expsyms should be a list of space-separated symbols to be *always*
9849 # included in the symbol list
9850 include_expsyms=
9851 # exclude_expsyms can be an extended regexp of symbols to exclude
9852 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9853 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9854 # as well as any symbol that contains `d'.
9855 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9857 # platforms (ab)use it in PIC code, but their linkers get confused if
9858 # the symbol is explicitly referenced. Since portable code cannot
9859 # rely on this symbol name, it's probably fine to never include it in
9860 # preloaded symbol tables.
9861 # Exclude shared library initialization/finalization symbols.
9862 extract_expsyms_cmds=
9863
9c60689e 9864 case $host_os in
a243b558
JF
9865 cygwin* | mingw* | pw32* | cegcc*)
9866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9867 # When not using gcc, we currently assume that we are using
9868 # Microsoft Visual C++.
9869 if test "$GCC" != yes; then
9870 with_gnu_ld=no
9871 fi
9c60689e 9872 ;;
a243b558
JF
9873 interix*)
9874 # we just hope/assume this is gcc and not c89 (= MSVC++)
9875 with_gnu_ld=yes
9876 ;;
9877 openbsd*)
9878 with_gnu_ld=no
9c60689e
DWT
9879 ;;
9880 esac
9c60689e 9881
a243b558 9882 ld_shlibs=yes
ee134472 9883
a243b558
JF
9884 # On some targets, GNU ld is compatible enough with the native linker
9885 # that we're better off using the native interface for both.
9886 lt_use_gnu_ld_interface=no
9887 if test "$with_gnu_ld" = yes; then
9888 case $host_os in
9889 aix*)
9890 # The AIX port of GNU ld has always aspired to compatibility
9891 # with the native linker. However, as the warning in the GNU ld
9892 # block says, versions before 2.19.5* couldn't really create working
9893 # shared libraries, regardless of the interface used.
9894 case `$LD -v 2>&1` in
9895 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9896 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9897 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9898 *)
9899 lt_use_gnu_ld_interface=yes
9900 ;;
9901 esac
9902 ;;
9903 *)
9904 lt_use_gnu_ld_interface=yes
9905 ;;
9906 esac
9907 fi
9c60689e 9908
a243b558
JF
9909 if test "$lt_use_gnu_ld_interface" = yes; then
9910 # If archive_cmds runs LD, not CC, wlarc should be empty
9911 wlarc='${wl}'
9c60689e 9912
a243b558
JF
9913 # Set some defaults for GNU ld with shared library support. These
9914 # are reset later if shared libraries are not supported. Putting them
9915 # here allows them to be overridden if necessary.
9916 runpath_var=LD_RUN_PATH
9917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918 export_dynamic_flag_spec='${wl}--export-dynamic'
9919 # ancient GNU ld didn't support --whole-archive et. al.
9920 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9921 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9922 else
9923 whole_archive_flag_spec=
9924 fi
9925 supports_anon_versioning=no
9926 case `$LD -v 2>&1` in
9927 *GNU\ gold*) supports_anon_versioning=yes ;;
9928 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9929 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9930 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9931 *\ 2.11.*) ;; # other 2.11 versions
9932 *) supports_anon_versioning=yes ;;
9933 esac
ee134472 9934
a243b558
JF
9935 # See if GNU ld supports shared libraries.
9936 case $host_os in
9937 aix[3-9]*)
9938 # On AIX/PPC, the GNU linker is very broken
9939 if test "$host_cpu" != ia64; then
9940 ld_shlibs=no
9941 cat <<_LT_EOF 1>&2
ee134472 9942
a243b558
JF
9943*** Warning: the GNU linker, at least up to release 2.19, is reported
9944*** to be unable to reliably create shared libraries on AIX.
9945*** Therefore, libtool is disabling shared libraries support. If you
9946*** really care for shared libraries, you may want to install binutils
9947*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9948*** You will then need to restart the configuration process.
9c60689e 9949
a243b558
JF
9950_LT_EOF
9951 fi
9952 ;;
9c60689e 9953
a243b558
JF
9954 amigaos*)
9955 case $host_cpu in
9956 powerpc)
9957 # see comment about AmigaOS4 .so support
9958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9959 archive_expsym_cmds=''
9960 ;;
9961 m68k)
9962 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)'
9963 hardcode_libdir_flag_spec='-L$libdir'
9964 hardcode_minus_L=yes
9965 ;;
9966 esac
9967 ;;
9c60689e 9968
a243b558
JF
9969 beos*)
9970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9971 allow_undefined_flag=unsupported
9972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9973 # support --undefined. This deserves some investigation. FIXME
9974 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9975 else
9976 ld_shlibs=no
9977 fi
9978 ;;
9c60689e 9979
a243b558
JF
9980 cygwin* | mingw* | pw32* | cegcc*)
9981 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9982 # as there is no search path for DLLs.
9983 hardcode_libdir_flag_spec='-L$libdir'
9984 export_dynamic_flag_spec='${wl}--export-all-symbols'
9985 allow_undefined_flag=unsupported
9986 always_export_symbols=no
9987 enable_shared_with_static_runtimes=yes
9988 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'
9989 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 9990
a243b558
JF
9991 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9993 # If the export-symbols file already is a .def file (1st line
9994 # is EXPORTS), use it as is; otherwise, prepend...
9995 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9996 cp $export_symbols $output_objdir/$soname.def;
9997 else
9998 echo EXPORTS > $output_objdir/$soname.def;
9999 cat $export_symbols >> $output_objdir/$soname.def;
10000 fi~
10001 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10002 else
10003 ld_shlibs=no
10004 fi
10005 ;;
9c60689e 10006
a243b558
JF
10007 haiku*)
10008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009 link_all_deplibs=yes
10010 ;;
9c60689e 10011
a243b558
JF
10012 interix[3-9]*)
10013 hardcode_direct=no
10014 hardcode_shlibpath_var=no
10015 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10016 export_dynamic_flag_spec='${wl}-E'
10017 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10018 # Instead, shared libraries are loaded at an image base (0x10000000 by
10019 # default) and relocated if they conflict, which is a slow very memory
10020 # consuming and fragmenting process. To avoid this, we pick a random,
10021 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10022 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10023 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10024 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'
10025 ;;
9c60689e 10026
a243b558
JF
10027 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10028 tmp_diet=no
10029 if test "$host_os" = linux-dietlibc; then
10030 case $cc_basename in
10031 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10032 esac
10033 fi
10034 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10035 && test "$tmp_diet" = no
10036 then
10037 tmp_addflag=' $pic_flag'
10038 tmp_sharedflag='-shared'
10039 case $cc_basename,$host_cpu in
10040 pgcc*) # Portland Group C compiler
10041 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'
10042 tmp_addflag=' $pic_flag'
10043 ;;
10044 pgf77* | pgf90* | pgf95* | pgfortran*)
10045 # Portland Group f77 and f90 compilers
10046 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'
10047 tmp_addflag=' $pic_flag -Mnomain' ;;
10048 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10049 tmp_addflag=' -i_dynamic' ;;
10050 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10051 tmp_addflag=' -i_dynamic -nofor_main' ;;
10052 ifc* | ifort*) # Intel Fortran compiler
10053 tmp_addflag=' -nofor_main' ;;
10054 lf95*) # Lahey Fortran 8.1
10055 whole_archive_flag_spec=
10056 tmp_sharedflag='--shared' ;;
10057 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10058 tmp_sharedflag='-qmkshrobj'
10059 tmp_addflag= ;;
10060 nvcc*) # Cuda Compiler Driver 2.2
10061 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'
10062 compiler_needs_object=yes
10063 ;;
10064 esac
10065 case `$CC -V 2>&1 | sed 5q` in
10066 *Sun\ C*) # Sun C 5.9
10067 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'
10068 compiler_needs_object=yes
10069 tmp_sharedflag='-G' ;;
10070 *Sun\ F*) # Sun Fortran 8.3
10071 tmp_sharedflag='-G' ;;
10072 esac
10073 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9c60689e 10074
a243b558
JF
10075 if test "x$supports_anon_versioning" = xyes; then
10076 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10078 echo "local: *; };" >> $output_objdir/$libname.ver~
10079 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10080 fi
9c60689e 10081
a243b558
JF
10082 case $cc_basename in
10083 xlf* | bgf* | bgxlf* | mpixlf*)
10084 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10085 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10087 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10088 if test "x$supports_anon_versioning" = xyes; then
10089 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10091 echo "local: *; };" >> $output_objdir/$libname.ver~
10092 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10093 fi
10094 ;;
10095 esac
10096 else
10097 ld_shlibs=no
10098 fi
10099 ;;
9c60689e 10100
a243b558
JF
10101 netbsd*)
10102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10103 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10104 wlarc=
10105 else
10106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10107 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10108 fi
10109 ;;
9c60689e 10110
a243b558
JF
10111 solaris*)
10112 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10113 ld_shlibs=no
10114 cat <<_LT_EOF 1>&2
9c60689e 10115
a243b558
JF
10116*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10117*** create shared libraries on Solaris systems. Therefore, libtool
10118*** is disabling shared libraries support. We urge you to upgrade GNU
10119*** binutils to release 2.9.1 or newer. Another option is to modify
10120*** your PATH or compiler configuration so that the native linker is
10121*** used, and then restart.
9c60689e 10122
a243b558
JF
10123_LT_EOF
10124 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10125 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10126 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10127 else
10128 ld_shlibs=no
10129 fi
10130 ;;
9c60689e 10131
a243b558
JF
10132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10133 case `$LD -v 2>&1` in
10134 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10135 ld_shlibs=no
10136 cat <<_LT_EOF 1>&2
9c60689e 10137
a243b558
JF
10138*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10139*** reliably create shared libraries on SCO systems. Therefore, libtool
10140*** is disabling shared libraries support. We urge you to upgrade GNU
10141*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10142*** your PATH or compiler configuration so that the native linker is
10143*** used, and then restart.
9c60689e 10144
a243b558
JF
10145_LT_EOF
10146 ;;
10147 *)
10148 # For security reasons, it is highly recommended that you always
10149 # use absolute paths for naming shared libraries, and exclude the
10150 # DT_RUNPATH tag from executables and libraries. But doing so
10151 # requires that you compile everything twice, which is a pain.
10152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10156 else
10157 ld_shlibs=no
10158 fi
10159 ;;
10160 esac
10161 ;;
9c60689e 10162
a243b558
JF
10163 sunos4*)
10164 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10165 wlarc=
10166 hardcode_direct=yes
10167 hardcode_shlibpath_var=no
10168 ;;
9c60689e 10169
a243b558
JF
10170 *)
10171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10172 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10174 else
10175 ld_shlibs=no
10176 fi
10177 ;;
10178 esac
9c60689e 10179
a243b558
JF
10180 if test "$ld_shlibs" = no; then
10181 runpath_var=
10182 hardcode_libdir_flag_spec=
10183 export_dynamic_flag_spec=
10184 whole_archive_flag_spec=
10185 fi
10186 else
10187 # PORTME fill in a description of your system's linker (not GNU ld)
10188 case $host_os in
10189 aix3*)
10190 allow_undefined_flag=unsupported
10191 always_export_symbols=yes
10192 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'
10193 # Note: this linker hardcodes the directories in LIBPATH if there
10194 # are no directories specified by -L.
10195 hardcode_minus_L=yes
10196 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10197 # Neither direct hardcoding nor static linking is supported with a
10198 # broken collect2.
10199 hardcode_direct=unsupported
10200 fi
10201 ;;
9c60689e 10202
a243b558
JF
10203 aix[4-9]*)
10204 if test "$host_cpu" = ia64; then
10205 # On IA64, the linker does run time linking by default, so we don't
10206 # have to do anything special.
10207 aix_use_runtimelinking=no
10208 exp_sym_flag='-Bexport'
10209 no_entry_flag=""
10210 else
10211 # If we're using GNU nm, then we don't want the "-C" option.
10212 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10213 # Also, AIX nm treats weak defined symbols like other global
10214 # defined symbols, whereas GNU nm marks them as "W".
10215 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10216 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'
10217 else
10218 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'
10219 fi
10220 aix_use_runtimelinking=no
9c60689e 10221
a243b558
JF
10222 # Test if we are trying to use run time linking or normal
10223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10224 # need to do runtime linking.
10225 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10226 for ld_flag in $LDFLAGS; do
10227 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10228 aix_use_runtimelinking=yes
10229 break
10230 fi
10231 done
10232 ;;
10233 esac
9c60689e 10234
a243b558
JF
10235 exp_sym_flag='-bexport'
10236 no_entry_flag='-bnoentry'
10237 fi
9c60689e 10238
a243b558
JF
10239 # When large executables or shared objects are built, AIX ld can
10240 # have problems creating the table of contents. If linking a library
10241 # or program results in "error TOC overflow" add -mminimal-toc to
10242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10244
a243b558
JF
10245 archive_cmds=''
10246 hardcode_direct=yes
10247 hardcode_direct_absolute=yes
10248 hardcode_libdir_separator=':'
10249 link_all_deplibs=yes
10250 file_list_spec='${wl}-f,'
9c60689e 10251
a243b558
JF
10252 if test "$GCC" = yes; then
10253 case $host_os in aix4.[012]|aix4.[012].*)
10254 # We only want to do this on AIX 4.2 and lower, the check
10255 # below for broken collect2 doesn't work under 4.3+
10256 collect2name=`${CC} -print-prog-name=collect2`
10257 if test -f "$collect2name" &&
10258 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10259 then
10260 # We have reworked collect2
10261 :
10262 else
10263 # We have old collect2
10264 hardcode_direct=unsupported
10265 # It fails to find uninstalled libraries when the uninstalled
10266 # path is not listed in the libpath. Setting hardcode_minus_L
10267 # to unsupported forces relinking
10268 hardcode_minus_L=yes
10269 hardcode_libdir_flag_spec='-L$libdir'
10270 hardcode_libdir_separator=
10271 fi
10272 ;;
10273 esac
10274 shared_flag='-shared'
10275 if test "$aix_use_runtimelinking" = yes; then
10276 shared_flag="$shared_flag "'${wl}-G'
10277 fi
10278 else
10279 # not using gcc
10280 if test "$host_cpu" = ia64; then
10281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10282 # chokes on -Wl,-G. The following line is correct:
10283 shared_flag='-G'
10284 else
10285 if test "$aix_use_runtimelinking" = yes; then
10286 shared_flag='${wl}-G'
10287 else
10288 shared_flag='${wl}-bM:SRE'
10289 fi
10290 fi
10291 fi
9c60689e 10292
a243b558
JF
10293 export_dynamic_flag_spec='${wl}-bexpall'
10294 # It seems that -bexpall does not export symbols beginning with
10295 # underscore (_), so it is better to generate a list of symbols to export.
10296 always_export_symbols=yes
10297 if test "$aix_use_runtimelinking" = yes; then
10298 # Warning - without using the other runtime loading flags (-brtl),
10299 # -berok will link without error, but may produce a broken library.
10300 allow_undefined_flag='-berok'
10301 # Determine the default libpath from the value encoded in an
10302 # empty executable.
10303 if test "${lt_cv_aix_libpath+set}" = set; then
10304 aix_libpath=$lt_cv_aix_libpath
9c60689e 10305else
a243b558 10306 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10307 $as_echo_n "(cached) " >&6
10308else
a243b558 10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10310/* end confdefs.h. */
10311
9c60689e
DWT
10312int
10313main ()
10314{
a243b558 10315
9c60689e
DWT
10316 ;
10317 return 0;
10318}
10319_ACEOF
10320if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10321
10322 lt_aix_libpath_sed='
10323 /Import File Strings/,/^$/ {
10324 /^0/ {
10325 s/^0 *\([^ ]*\) *$/\1/
10326 p
10327 }
10328 }'
10329 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10330 # Check for a 64-bit object if we didn't find anything.
10331 if test -z "$lt_cv_aix_libpath_"; then
10332 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10333 fi
9c60689e
DWT
10334fi
10335rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10337 if test -z "$lt_cv_aix_libpath_"; then
10338 lt_cv_aix_libpath_="/usr/lib:/lib"
10339 fi
9c60689e
DWT
10340
10341fi
10342
a243b558
JF
10343 aix_libpath=$lt_cv_aix_libpath_
10344fi
9c60689e 10345
a243b558
JF
10346 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10347 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"
10348 else
10349 if test "$host_cpu" = ia64; then
10350 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10351 allow_undefined_flag="-z nodefs"
10352 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"
10353 else
10354 # Determine the default libpath from the value encoded in an
10355 # empty executable.
10356 if test "${lt_cv_aix_libpath+set}" = set; then
10357 aix_libpath=$lt_cv_aix_libpath
9c60689e 10358else
a243b558 10359 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10360 $as_echo_n "(cached) " >&6
10361else
a243b558 10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10363/* end confdefs.h. */
10364
9c60689e
DWT
10365int
10366main ()
10367{
a243b558 10368
9c60689e
DWT
10369 ;
10370 return 0;
10371}
10372_ACEOF
10373if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10374
a243b558
JF
10375 lt_aix_libpath_sed='
10376 /Import File Strings/,/^$/ {
10377 /^0/ {
10378 s/^0 *\([^ ]*\) *$/\1/
10379 p
10380 }
10381 }'
10382 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383 # Check for a 64-bit object if we didn't find anything.
10384 if test -z "$lt_cv_aix_libpath_"; then
10385 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10386 fi
9c60689e
DWT
10387fi
10388rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10390 if test -z "$lt_cv_aix_libpath_"; then
10391 lt_cv_aix_libpath_="/usr/lib:/lib"
10392 fi
10393
9c60689e 10394fi
9c60689e 10395
a243b558
JF
10396 aix_libpath=$lt_cv_aix_libpath_
10397fi
10398
10399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10400 # Warning - without using the other run time loading flags,
10401 # -berok will link without error, but may produce a broken library.
10402 no_undefined_flag=' ${wl}-bernotok'
10403 allow_undefined_flag=' ${wl}-berok'
10404 if test "$with_gnu_ld" = yes; then
10405 # We only use this code for GNU lds that support --whole-archive.
10406 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10407 else
10408 # Exported symbols can be pulled into shared objects from archives
10409 whole_archive_flag_spec='$convenience'
10410 fi
10411 archive_cmds_need_lc=yes
10412 # This is similar to how AIX traditionally builds its shared libraries.
10413 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'
10414 fi
10415 fi
10416 ;;
10417
10418 amigaos*)
10419 case $host_cpu in
10420 powerpc)
10421 # see comment about AmigaOS4 .so support
10422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10423 archive_expsym_cmds=''
10424 ;;
10425 m68k)
10426 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)'
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 hardcode_minus_L=yes
10429 ;;
10430 esac
10431 ;;
10432
10433 bsdi[45]*)
10434 export_dynamic_flag_spec=-rdynamic
10435 ;;
10436
10437 cygwin* | mingw* | pw32* | cegcc*)
10438 # When not using gcc, we currently assume that we are using
10439 # Microsoft Visual C++.
10440 # hardcode_libdir_flag_spec is actually meaningless, as there is
10441 # no search path for DLLs.
10442 case $cc_basename in
10443 cl*)
10444 # Native MSVC
10445 hardcode_libdir_flag_spec=' '
10446 allow_undefined_flag=unsupported
10447 always_export_symbols=yes
10448 file_list_spec='@'
10449 # Tell ltmain to make .lib files, not .a files.
10450 libext=lib
10451 # Tell ltmain to make .dll files, not .so files.
10452 shrext_cmds=".dll"
10453 # FIXME: Setting linknames here is a bad hack.
10454 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10455 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10456 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10457 else
10458 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10459 fi~
10460 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10461 linknames='
10462 # The linker will not automatically build a static lib if we build a DLL.
10463 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10464 enable_shared_with_static_runtimes=yes
10465 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10466 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10467 # Don't use ranlib
10468 old_postinstall_cmds='chmod 644 $oldlib'
10469 postlink_cmds='lt_outputfile="@OUTPUT@"~
10470 lt_tool_outputfile="@TOOL_OUTPUT@"~
10471 case $lt_outputfile in
10472 *.exe|*.EXE) ;;
10473 *)
10474 lt_outputfile="$lt_outputfile.exe"
10475 lt_tool_outputfile="$lt_tool_outputfile.exe"
10476 ;;
10477 esac~
10478 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10479 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10480 $RM "$lt_outputfile.manifest";
10481 fi'
10482 ;;
10483 *)
10484 # Assume MSVC wrapper
10485 hardcode_libdir_flag_spec=' '
10486 allow_undefined_flag=unsupported
10487 # Tell ltmain to make .lib files, not .a files.
10488 libext=lib
10489 # Tell ltmain to make .dll files, not .so files.
10490 shrext_cmds=".dll"
10491 # FIXME: Setting linknames here is a bad hack.
10492 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10493 # The linker will automatically build a .lib file if we build a DLL.
10494 old_archive_from_new_cmds='true'
10495 # FIXME: Should let the user specify the lib program.
10496 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10497 enable_shared_with_static_runtimes=yes
10498 ;;
10499 esac
10500 ;;
10501
10502 darwin* | rhapsody*)
10503
10504
10505 archive_cmds_need_lc=no
10506 hardcode_direct=no
10507 hardcode_automatic=yes
10508 hardcode_shlibpath_var=unsupported
10509 if test "$lt_cv_ld_force_load" = "yes"; then
10510 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\"`'
10511
10512 else
10513 whole_archive_flag_spec=''
10514 fi
10515 link_all_deplibs=yes
10516 allow_undefined_flag="$_lt_dar_allow_undefined"
10517 case $cc_basename in
10518 ifort*) _lt_dar_can_shared=yes ;;
10519 *) _lt_dar_can_shared=$GCC ;;
10520 esac
10521 if test "$_lt_dar_can_shared" = "yes"; then
10522 output_verbose_link_cmd=func_echo_all
10523 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10524 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10525 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}"
10526 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}"
10527
10528 else
10529 ld_shlibs=no
10530 fi
10531
10532 ;;
10533
10534 dgux*)
10535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10536 hardcode_libdir_flag_spec='-L$libdir'
10537 hardcode_shlibpath_var=no
10538 ;;
10539
10540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10541 # support. Future versions do this automatically, but an explicit c++rt0.o
10542 # does not break anything, and helps significantly (at the cost of a little
10543 # extra space).
10544 freebsd2.2*)
10545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10546 hardcode_libdir_flag_spec='-R$libdir'
10547 hardcode_direct=yes
10548 hardcode_shlibpath_var=no
10549 ;;
10550
10551 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10552 freebsd2.*)
10553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10554 hardcode_direct=yes
10555 hardcode_minus_L=yes
10556 hardcode_shlibpath_var=no
10557 ;;
10558
10559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10560 freebsd* | dragonfly*)
10561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10562 hardcode_libdir_flag_spec='-R$libdir'
10563 hardcode_direct=yes
10564 hardcode_shlibpath_var=no
10565 ;;
10566
10567 hpux9*)
10568 if test "$GCC" = yes; then
10569 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'
10570 else
10571 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'
10572 fi
10573 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10574 hardcode_libdir_separator=:
10575 hardcode_direct=yes
10576
10577 # hardcode_minus_L: Not really in the search PATH,
10578 # but as the default location of the library.
10579 hardcode_minus_L=yes
10580 export_dynamic_flag_spec='${wl}-E'
10581 ;;
10582
10583 hpux10*)
10584 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10585 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10586 else
10587 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10588 fi
10589 if test "$with_gnu_ld" = no; then
10590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10591 hardcode_libdir_separator=:
10592 hardcode_direct=yes
10593 hardcode_direct_absolute=yes
10594 export_dynamic_flag_spec='${wl}-E'
10595 # hardcode_minus_L: Not really in the search PATH,
10596 # but as the default location of the library.
10597 hardcode_minus_L=yes
10598 fi
10599 ;;
10600
10601 hpux11*)
10602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10603 case $host_cpu in
10604 hppa*64*)
10605 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 ;;
10607 ia64*)
10608 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10609 ;;
10610 *)
10611 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10612 ;;
10613 esac
10614 else
10615 case $host_cpu in
10616 hppa*64*)
10617 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 ;;
10619 ia64*)
10620 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10621 ;;
10622 *)
10623
10624 # Older versions of the 11.00 compiler do not understand -b yet
10625 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10627$as_echo_n "checking if $CC understands -b... " >&6; }
10628if ${lt_cv_prog_compiler__b+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630else
10631 lt_cv_prog_compiler__b=no
10632 save_LDFLAGS="$LDFLAGS"
10633 LDFLAGS="$LDFLAGS -b"
10634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10636 # The linker can only warn and ignore the option if not recognized
10637 # So say no if there are warnings
10638 if test -s conftest.err; then
10639 # Append any errors to the config.log.
10640 cat conftest.err 1>&5
10641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10643 if diff conftest.exp conftest.er2 >/dev/null; then
10644 lt_cv_prog_compiler__b=yes
10645 fi
10646 else
10647 lt_cv_prog_compiler__b=yes
10648 fi
10649 fi
10650 $RM -r conftest*
10651 LDFLAGS="$save_LDFLAGS"
10652
10653fi
10654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10655$as_echo "$lt_cv_prog_compiler__b" >&6; }
10656
10657if test x"$lt_cv_prog_compiler__b" = xyes; then
10658 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10659else
10660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10661fi
10662
10663 ;;
10664 esac
10665 fi
10666 if test "$with_gnu_ld" = no; then
10667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10668 hardcode_libdir_separator=:
10669
10670 case $host_cpu in
10671 hppa*64*|ia64*)
10672 hardcode_direct=no
10673 hardcode_shlibpath_var=no
10674 ;;
10675 *)
10676 hardcode_direct=yes
10677 hardcode_direct_absolute=yes
10678 export_dynamic_flag_spec='${wl}-E'
10679
10680 # hardcode_minus_L: Not really in the search PATH,
10681 # but as the default location of the library.
10682 hardcode_minus_L=yes
10683 ;;
10684 esac
10685 fi
10686 ;;
10687
10688 irix5* | irix6* | nonstopux*)
10689 if test "$GCC" = yes; then
10690 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'
10691 # Try to use the -exported_symbol ld option, if it does not
10692 # work, assume that -exports_file does not work either and
10693 # implicitly export all symbols.
10694 # This should be the same for all languages, so no per-tag cache variable.
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10696$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10697if ${lt_cv_irix_exported_symbol+:} false; then :
10698 $as_echo_n "(cached) " >&6
10699else
10700 save_LDFLAGS="$LDFLAGS"
10701 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703/* end confdefs.h. */
10704int foo (void) { return 0; }
10705_ACEOF
10706if ac_fn_c_try_link "$LINENO"; then :
10707 lt_cv_irix_exported_symbol=yes
10708else
10709 lt_cv_irix_exported_symbol=no
10710fi
10711rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LDFLAGS="$save_LDFLAGS"
10714fi
10715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10716$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10717 if test "$lt_cv_irix_exported_symbol" = yes; then
10718 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'
10719 fi
10720 else
10721 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'
10722 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'
10723 fi
10724 archive_cmds_need_lc='no'
10725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10726 hardcode_libdir_separator=:
10727 inherit_rpath=yes
10728 link_all_deplibs=yes
10729 ;;
10730
10731 netbsd*)
10732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10734 else
10735 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10736 fi
10737 hardcode_libdir_flag_spec='-R$libdir'
10738 hardcode_direct=yes
10739 hardcode_shlibpath_var=no
10740 ;;
10741
10742 newsos6)
10743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10744 hardcode_direct=yes
10745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10746 hardcode_libdir_separator=:
10747 hardcode_shlibpath_var=no
10748 ;;
10749
10750 *nto* | *qnx*)
10751 ;;
10752
10753 openbsd*)
10754 if test -f /usr/libexec/ld.so; then
10755 hardcode_direct=yes
10756 hardcode_shlibpath_var=no
10757 hardcode_direct_absolute=yes
10758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10762 export_dynamic_flag_spec='${wl}-E'
10763 else
10764 case $host_os in
10765 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10767 hardcode_libdir_flag_spec='-R$libdir'
10768 ;;
10769 *)
10770 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10771 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10772 ;;
10773 esac
10774 fi
10775 else
10776 ld_shlibs=no
10777 fi
10778 ;;
10779
10780 os2*)
10781 hardcode_libdir_flag_spec='-L$libdir'
10782 hardcode_minus_L=yes
10783 allow_undefined_flag=unsupported
10784 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'
10785 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10786 ;;
10787
10788 osf3*)
10789 if test "$GCC" = yes; then
10790 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10791 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'
10792 else
10793 allow_undefined_flag=' -expect_unresolved \*'
10794 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'
10795 fi
10796 archive_cmds_need_lc='no'
10797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10798 hardcode_libdir_separator=:
10799 ;;
10800
10801 osf4* | osf5*) # as osf3* with the addition of -msym flag
10802 if test "$GCC" = yes; then
10803 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10804 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'
10805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10806 else
10807 allow_undefined_flag=' -expect_unresolved \*'
10808 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'
10809 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~
10810 $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'
10811
10812 # Both c and cxx compiler support -rpath directly
10813 hardcode_libdir_flag_spec='-rpath $libdir'
10814 fi
10815 archive_cmds_need_lc='no'
10816 hardcode_libdir_separator=:
10817 ;;
10818
10819 solaris*)
10820 no_undefined_flag=' -z defs'
10821 if test "$GCC" = yes; then
10822 wlarc='${wl}'
10823 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10825 $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'
10826 else
10827 case `$CC -V 2>&1` in
10828 *"Compilers 5.0"*)
10829 wlarc=''
10830 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10831 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10832 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10833 ;;
10834 *)
10835 wlarc='${wl}'
10836 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10837 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10839 ;;
10840 esac
10841 fi
10842 hardcode_libdir_flag_spec='-R$libdir'
10843 hardcode_shlibpath_var=no
10844 case $host_os in
10845 solaris2.[0-5] | solaris2.[0-5].*) ;;
10846 *)
10847 # The compiler driver will combine and reorder linker options,
10848 # but understands `-z linker_flag'. GCC discards it without `$wl',
10849 # but is careful enough not to reorder.
10850 # Supported since Solaris 2.6 (maybe 2.5.1?)
10851 if test "$GCC" = yes; then
10852 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10853 else
10854 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10855 fi
10856 ;;
10857 esac
10858 link_all_deplibs=yes
10859 ;;
10860
10861 sunos4*)
10862 if test "x$host_vendor" = xsequent; then
10863 # Use $CC to link under sequent, because it throws in some extra .o
10864 # files that make .init and .fini sections work.
10865 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10866 else
10867 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10868 fi
10869 hardcode_libdir_flag_spec='-L$libdir'
10870 hardcode_direct=yes
10871 hardcode_minus_L=yes
10872 hardcode_shlibpath_var=no
10873 ;;
10874
10875 sysv4)
10876 case $host_vendor in
10877 sni)
10878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10879 hardcode_direct=yes # is this really true???
10880 ;;
10881 siemens)
10882 ## LD is ld it makes a PLAMLIB
10883 ## CC just makes a GrossModule.
10884 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10885 reload_cmds='$CC -r -o $output$reload_objs'
10886 hardcode_direct=no
10887 ;;
10888 motorola)
10889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10890 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10891 ;;
10892 esac
10893 runpath_var='LD_RUN_PATH'
10894 hardcode_shlibpath_var=no
10895 ;;
10896
10897 sysv4.3*)
10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899 hardcode_shlibpath_var=no
10900 export_dynamic_flag_spec='-Bexport'
10901 ;;
10902
10903 sysv4*MP*)
10904 if test -d /usr/nec; then
10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_shlibpath_var=no
10907 runpath_var=LD_RUN_PATH
10908 hardcode_runpath_var=yes
10909 ld_shlibs=yes
10910 fi
10911 ;;
10912
10913 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10914 no_undefined_flag='${wl}-z,text'
10915 archive_cmds_need_lc=no
10916 hardcode_shlibpath_var=no
10917 runpath_var='LD_RUN_PATH'
10918
10919 if test "$GCC" = yes; then
10920 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 else
10923 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 fi
10926 ;;
10927
10928 sysv5* | sco3.2v5* | sco5v6*)
10929 # Note: We can NOT use -z defs as we might desire, because we do not
10930 # link with -lc, and that would cause any symbols used from libc to
10931 # always be unresolved, which means just about no library would
10932 # ever link correctly. If we're not using GNU ld we use -z text
10933 # though, which does catch some bad symbols but isn't as heavy-handed
10934 # as -z defs.
10935 no_undefined_flag='${wl}-z,text'
10936 allow_undefined_flag='${wl}-z,nodefs'
10937 archive_cmds_need_lc=no
10938 hardcode_shlibpath_var=no
10939 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10940 hardcode_libdir_separator=':'
10941 link_all_deplibs=yes
10942 export_dynamic_flag_spec='${wl}-Bexport'
10943 runpath_var='LD_RUN_PATH'
10944
10945 if test "$GCC" = yes; then
10946 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 else
10949 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 fi
10952 ;;
10953
10954 uts4*)
10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956 hardcode_libdir_flag_spec='-L$libdir'
10957 hardcode_shlibpath_var=no
10958 ;;
10959
10960 *)
10961 ld_shlibs=no
10962 ;;
10963 esac
10964
10965 if test x$host_vendor = xsni; then
10966 case $host in
10967 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10968 export_dynamic_flag_spec='${wl}-Blargedynsym'
10969 ;;
10970 esac
10971 fi
10972 fi
10973
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10975$as_echo "$ld_shlibs" >&6; }
10976test "$ld_shlibs" = no && can_build_shared=no
10977
10978with_gnu_ld=$with_gnu_ld
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994#
10995# Do we need to explicitly link libc?
10996#
10997case "x$archive_cmds_need_lc" in
10998x|xyes)
10999 # Assume -lc should be added
11000 archive_cmds_need_lc=yes
11001
11002 if test "$enable_shared" = yes && test "$GCC" = yes; then
11003 case $archive_cmds in
11004 *'~'*)
11005 # FIXME: we may have to deal with multi-command sequences.
11006 ;;
11007 '$CC '*)
11008 # Test whether the compiler implicitly links with -lc since on some
11009 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11010 # to ld, don't add -lc before -lgcc.
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11012$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11013if ${lt_cv_archive_cmds_need_lc+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015else
a93f15c0 11016 $RM conftest*
a243b558
JF
11017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11018
11019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11020 (eval $ac_compile) 2>&5
11021 ac_status=$?
11022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11023 test $ac_status = 0; } 2>conftest.err; then
11024 soname=conftest
11025 lib=conftest
11026 libobjs=conftest.$ac_objext
11027 deplibs=
11028 wl=$lt_prog_compiler_wl
11029 pic_flag=$lt_prog_compiler_pic
11030 compiler_flags=-v
11031 linker_flags=-v
11032 verstring=
11033 output_objdir=.
11034 libname=conftest
11035 lt_save_allow_undefined_flag=$allow_undefined_flag
11036 allow_undefined_flag=
11037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11038 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11039 ac_status=$?
11040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11041 test $ac_status = 0; }
11042 then
11043 lt_cv_archive_cmds_need_lc=no
11044 else
11045 lt_cv_archive_cmds_need_lc=yes
11046 fi
11047 allow_undefined_flag=$lt_save_allow_undefined_flag
11048 else
11049 cat conftest.err 1>&5
11050 fi
a93f15c0 11051 $RM conftest*
a243b558
JF
11052
11053fi
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11055$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11056 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11057 ;;
11058 esac
11059 fi
11060 ;;
11061esac
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11215$as_echo_n "checking dynamic linker characteristics... " >&6; }
11216
11217if test "$GCC" = yes; then
11218 case $host_os in
11219 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11220 *) lt_awk_arg="/^libraries:/" ;;
11221 esac
11222 case $host_os in
11223 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11224 *) lt_sed_strip_eq="s,=/,/,g" ;;
11225 esac
11226 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11227 case $lt_search_path_spec in
11228 *\;*)
11229 # if the path contains ";" then we assume it to be the separator
11230 # otherwise default to the standard path separator (i.e. ":") - it is
11231 # assumed that no part of a normal pathname contains ";" but that should
11232 # okay in the real world where ";" in dirpaths is itself problematic.
11233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11234 ;;
11235 *)
11236 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11237 ;;
11238 esac
11239 # Ok, now we have the path, separated by spaces, we can step through it
11240 # and add multilib dir if necessary.
11241 lt_tmp_lt_search_path_spec=
11242 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11243 for lt_sys_path in $lt_search_path_spec; do
11244 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11246 else
11247 test -d "$lt_sys_path" && \
11248 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11249 fi
11250 done
11251 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11252BEGIN {RS=" "; FS="/|\n";} {
11253 lt_foo="";
11254 lt_count=0;
11255 for (lt_i = NF; lt_i > 0; lt_i--) {
11256 if ($lt_i != "" && $lt_i != ".") {
11257 if ($lt_i == "..") {
11258 lt_count++;
11259 } else {
11260 if (lt_count == 0) {
11261 lt_foo="/" $lt_i lt_foo;
11262 } else {
11263 lt_count--;
11264 }
11265 }
11266 }
11267 }
11268 if (lt_foo != "") { lt_freq[lt_foo]++; }
11269 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11270}'`
11271 # AWK program above erroneously prepends '/' to C:/dos/paths
11272 # for these hosts.
11273 case $host_os in
11274 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11275 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11276 esac
11277 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11278else
11279 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11280fi
11281library_names_spec=
11282libname_spec='lib$name'
11283soname_spec=
11284shrext_cmds=".so"
11285postinstall_cmds=
11286postuninstall_cmds=
11287finish_cmds=
11288finish_eval=
11289shlibpath_var=
11290shlibpath_overrides_runpath=unknown
11291version_type=none
11292dynamic_linker="$host_os ld.so"
11293sys_lib_dlsearch_path_spec="/lib /usr/lib"
11294need_lib_prefix=unknown
11295hardcode_into_libs=no
11296
11297# when you set need_version to no, make sure it does not cause -set_version
11298# flags to be left without arguments
11299need_version=unknown
11300
11301case $host_os in
11302aix3*)
11303 version_type=linux # correct to gnu/linux during the next big refactor
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11305 shlibpath_var=LIBPATH
11306
11307 # AIX 3 has no versioning support, so we append a major version to the name.
11308 soname_spec='${libname}${release}${shared_ext}$major'
11309 ;;
11310
11311aix[4-9]*)
11312 version_type=linux # correct to gnu/linux during the next big refactor
11313 need_lib_prefix=no
11314 need_version=no
11315 hardcode_into_libs=yes
11316 if test "$host_cpu" = ia64; then
11317 # AIX 5 supports IA64
11318 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 else
11321 # With GCC up to 2.95.x, collect2 would create an import file
11322 # for dependence libraries. The import file would start with
11323 # the line `#! .'. This would cause the generated library to
11324 # depend on `.', always an invalid library. This was fixed in
11325 # development snapshots of GCC prior to 3.0.
11326 case $host_os in
11327 aix4 | aix4.[01] | aix4.[01].*)
11328 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11329 echo ' yes '
11330 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11331 :
11332 else
11333 can_build_shared=no
11334 fi
11335 ;;
11336 esac
11337 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11338 # soname into executable. Probably we can add versioning support to
11339 # collect2, so additional links can be useful in future.
11340 if test "$aix_use_runtimelinking" = yes; then
11341 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11342 # instead of lib<name>.a to let people know that these are not
11343 # typical AIX shared libraries.
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 else
11346 # We preserve .a as extension for shared libraries through AIX4.2
11347 # and later when we are not doing run time linking.
11348 library_names_spec='${libname}${release}.a $libname.a'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 fi
11351 shlibpath_var=LIBPATH
11352 fi
11353 ;;
11354
11355amigaos*)
11356 case $host_cpu in
11357 powerpc)
11358 # Since July 2007 AmigaOS4 officially supports .so libraries.
11359 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 ;;
11362 m68k)
11363 library_names_spec='$libname.ixlibrary $libname.a'
11364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11365 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'
11366 ;;
11367 esac
11368 ;;
11369
11370beos*)
11371 library_names_spec='${libname}${shared_ext}'
11372 dynamic_linker="$host_os ld.so"
11373 shlibpath_var=LIBRARY_PATH
11374 ;;
11375
11376bsdi[45]*)
11377 version_type=linux # correct to gnu/linux during the next big refactor
11378 need_version=no
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11384 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11385 # the default ld.so.conf also contains /usr/contrib/lib and
11386 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11387 # libtool to hard-code these into programs
11388 ;;
11389
11390cygwin* | mingw* | pw32* | cegcc*)
11391 version_type=windows
11392 shrext_cmds=".dll"
11393 need_version=no
11394 need_lib_prefix=no
9c60689e 11395
a243b558
JF
11396 case $GCC,$cc_basename in
11397 yes,*)
11398 # gcc
11399 library_names_spec='$libname.dll.a'
11400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11401 postinstall_cmds='base_file=`basename \${file}`~
11402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11403 dldir=$destdir/`dirname \$dlpath`~
11404 test -d \$dldir || mkdir -p \$dldir~
11405 $install_prog $dir/$dlname \$dldir/$dlname~
11406 chmod a+x \$dldir/$dlname~
11407 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11408 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11409 fi'
11410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11411 dlpath=$dir/\$dldll~
11412 $RM \$dlpath'
11413 shlibpath_overrides_runpath=yes
9c60689e 11414
a243b558
JF
11415 case $host_os in
11416 cygwin*)
11417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e 11419
a243b558
JF
11420 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11421 ;;
11422 mingw* | cegcc*)
11423 # MinGW DLLs use traditional 'lib' prefix
11424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11425 ;;
11426 pw32*)
11427 # pw32 DLLs use 'pw' prefix rather than 'lib'
11428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11429 ;;
11430 esac
11431 dynamic_linker='Win32 ld.exe'
11432 ;;
9c60689e 11433
a243b558
JF
11434 *,cl*)
11435 # Native MSVC
11436 libname_spec='$name'
11437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11438 library_names_spec='${libname}.dll.lib'
9c60689e 11439
a243b558
JF
11440 case $build_os in
11441 mingw*)
11442 sys_lib_search_path_spec=
11443 lt_save_ifs=$IFS
11444 IFS=';'
11445 for lt_path in $LIB
11446 do
11447 IFS=$lt_save_ifs
11448 # Let DOS variable expansion print the short 8.3 style file name.
11449 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11450 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11451 done
11452 IFS=$lt_save_ifs
11453 # Convert to MSYS style.
11454 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11455 ;;
11456 cygwin*)
11457 # Convert to unix form, then to dos form, then back to unix form
11458 # but this time dos style (no spaces!) so that the unix form looks
11459 # like /cygdrive/c/PROGRA~1:/cygdr...
11460 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11461 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11462 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11463 ;;
11464 *)
11465 sys_lib_search_path_spec="$LIB"
11466 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11467 # It is most probably a Windows format PATH.
11468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11469 else
11470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11471 fi
11472 # FIXME: find the short name or the path components, as spaces are
11473 # common. (e.g. "Program Files" -> "PROGRA~1")
11474 ;;
11475 esac
11476
11477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11478 postinstall_cmds='base_file=`basename \${file}`~
11479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11480 dldir=$destdir/`dirname \$dlpath`~
11481 test -d \$dldir || mkdir -p \$dldir~
11482 $install_prog $dir/$dlname \$dldir/$dlname'
11483 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11484 dlpath=$dir/\$dldll~
11485 $RM \$dlpath'
11486 shlibpath_overrides_runpath=yes
11487 dynamic_linker='Win32 link.exe'
11488 ;;
9c60689e 11489
a243b558
JF
11490 *)
11491 # Assume MSVC wrapper
11492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11493 dynamic_linker='Win32 ld.exe'
11494 ;;
11495 esac
11496 # FIXME: first we should search . and the directory the executable is in
11497 shlibpath_var=PATH
11498 ;;
9c60689e 11499
a243b558
JF
11500darwin* | rhapsody*)
11501 dynamic_linker="$host_os dyld"
11502 version_type=darwin
11503 need_lib_prefix=no
11504 need_version=no
11505 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11506 soname_spec='${libname}${release}${major}$shared_ext'
11507 shlibpath_overrides_runpath=yes
11508 shlibpath_var=DYLD_LIBRARY_PATH
11509 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11510
a243b558
JF
11511 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11512 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11513 ;;
9c60689e 11514
a243b558
JF
11515dgux*)
11516 version_type=linux # correct to gnu/linux during the next big refactor
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 ;;
11523
11524freebsd* | dragonfly*)
11525 # DragonFly does not have aout. When/if they implement a new
11526 # versioning mechanism, adjust this.
11527 if test -x /usr/bin/objformat; then
11528 objformat=`/usr/bin/objformat`
11529 else
11530 case $host_os in
11531 freebsd[23].*) objformat=aout ;;
11532 *) objformat=elf ;;
11533 esac
11534 fi
11535 version_type=freebsd-$objformat
11536 case $version_type in
11537 freebsd-elf*)
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11539 need_version=no
11540 need_lib_prefix=no
11541 ;;
11542 freebsd-*)
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11544 need_version=yes
11545 ;;
11546 esac
11547 shlibpath_var=LD_LIBRARY_PATH
11548 case $host_os in
11549 freebsd2.*)
11550 shlibpath_overrides_runpath=yes
11551 ;;
11552 freebsd3.[01]* | freebsdelf3.[01]*)
11553 shlibpath_overrides_runpath=yes
11554 hardcode_into_libs=yes
11555 ;;
11556 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11557 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11558 shlibpath_overrides_runpath=no
11559 hardcode_into_libs=yes
11560 ;;
11561 *) # from 4.6 on, and DragonFly
11562 shlibpath_overrides_runpath=yes
11563 hardcode_into_libs=yes
11564 ;;
11565 esac
11566 ;;
9c60689e 11567
a243b558
JF
11568gnu*)
11569 version_type=linux # correct to gnu/linux during the next big refactor
11570 need_lib_prefix=no
11571 need_version=no
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=no
11576 hardcode_into_libs=yes
11577 ;;
9c60689e 11578
a243b558
JF
11579haiku*)
11580 version_type=linux # correct to gnu/linux during the next big refactor
11581 need_lib_prefix=no
11582 need_version=no
11583 dynamic_linker="$host_os runtime_loader"
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 shlibpath_var=LIBRARY_PATH
11587 shlibpath_overrides_runpath=yes
11588 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11589 hardcode_into_libs=yes
11590 ;;
9c60689e 11591
a243b558
JF
11592hpux9* | hpux10* | hpux11*)
11593 # Give a soname corresponding to the major version so that dld.sl refuses to
11594 # link against other versions.
11595 version_type=sunos
11596 need_lib_prefix=no
11597 need_version=no
11598 case $host_cpu in
11599 ia64*)
11600 shrext_cmds='.so'
11601 hardcode_into_libs=yes
11602 dynamic_linker="$host_os dld.so"
11603 shlibpath_var=LD_LIBRARY_PATH
11604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 if test "X$HPUX_IA64_MODE" = X32; then
11608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11609 else
11610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11611 fi
11612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11613 ;;
11614 hppa*64*)
11615 shrext_cmds='.sl'
11616 hardcode_into_libs=yes
11617 dynamic_linker="$host_os dld.sl"
11618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11624 ;;
11625 *)
11626 shrext_cmds='.sl'
11627 dynamic_linker="$host_os dld.sl"
11628 shlibpath_var=SHLIB_PATH
11629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
9c60689e
DWT
11632 ;;
11633 esac
a243b558
JF
11634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11635 postinstall_cmds='chmod 555 $lib'
11636 # or fails outright, so override atomically:
11637 install_override_mode=555
11638 ;;
9c60689e 11639
a243b558
JF
11640interix[3-9]*)
11641 version_type=linux # correct to gnu/linux during the next big refactor
11642 need_lib_prefix=no
11643 need_version=no
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 shlibpath_overrides_runpath=no
11649 hardcode_into_libs=yes
11650 ;;
9c60689e 11651
a243b558
JF
11652irix5* | irix6* | nonstopux*)
11653 case $host_os in
11654 nonstopux*) version_type=nonstopux ;;
11655 *)
11656 if test "$lt_cv_prog_gnu_ld" = yes; then
11657 version_type=linux # correct to gnu/linux during the next big refactor
11658 else
11659 version_type=irix
11660 fi ;;
11661 esac
11662 need_lib_prefix=no
11663 need_version=no
11664 soname_spec='${libname}${release}${shared_ext}$major'
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11666 case $host_os in
11667 irix5* | nonstopux*)
11668 libsuff= shlibsuff=
11669 ;;
11670 *)
11671 case $LD in # libtool.m4 will add one of these switches to LD
11672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11673 libsuff= shlibsuff= libmagic=32-bit;;
11674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11675 libsuff=32 shlibsuff=N32 libmagic=N32;;
11676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11678 *) libsuff= shlibsuff= libmagic=never-match;;
11679 esac
11680 ;;
11681 esac
11682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11683 shlibpath_overrides_runpath=no
11684 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11685 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11686 hardcode_into_libs=yes
11687 ;;
9c60689e 11688
a243b558
JF
11689# No shared lib support for Linux oldld, aout, or coff.
11690linux*oldld* | linux*aout* | linux*coff*)
11691 dynamic_linker=no
11692 ;;
9c60689e 11693
a243b558
JF
11694# This must be glibc/ELF.
11695linux* | k*bsd*-gnu | kopensolaris*-gnu)
11696 version_type=linux # correct to gnu/linux during the next big refactor
11697 need_lib_prefix=no
11698 need_version=no
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=no
9c60689e 11704
a243b558
JF
11705 # Some binutils ld are patched to set DT_RUNPATH
11706 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
11707 $as_echo_n "(cached) " >&6
11708else
a243b558
JF
11709 lt_cv_shlibpath_overrides_runpath=no
11710 save_LDFLAGS=$LDFLAGS
11711 save_libdir=$libdir
11712 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11713 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h. */
ee134472 11716
a243b558
JF
11717int
11718main ()
9c60689e 11719{
9c60689e 11720
a243b558
JF
11721 ;
11722 return 0;
11723}
11724_ACEOF
11725if ac_fn_c_try_link "$LINENO"; then :
11726 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11727 lt_cv_shlibpath_overrides_runpath=yes
11728fi
11729fi
11730rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LDFLAGS=$save_LDFLAGS
11733 libdir=$save_libdir
9c60689e 11734
a243b558 11735fi
9c60689e 11736
a243b558 11737 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 11738
a243b558
JF
11739 # This implies no fast_install, which is unacceptable.
11740 # Some rework will be needed to allow for fast_install
11741 # before this can be enabled.
11742 hardcode_into_libs=yes
9c60689e 11743
a243b558
JF
11744 # Append ld.so.conf contents to the search path
11745 if test -f /etc/ld.so.conf; then
11746 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' ' '`
11747 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11748 fi
ee134472 11749
a243b558
JF
11750 # We used to test for /lib/ld.so.1 and disable shared libraries on
11751 # powerpc, because MkLinux only supported shared libraries with the
11752 # GNU dynamic linker. Since this was broken with cross compilers,
11753 # most powerpc-linux boxes support dynamic linking these days and
11754 # people can always --disable-shared, the test was removed, and we
11755 # assume the GNU/Linux dynamic linker is in use.
11756 dynamic_linker='GNU/Linux ld.so'
11757 ;;
9c60689e 11758
a243b558
JF
11759netbsd*)
11760 version_type=sunos
11761 need_lib_prefix=no
11762 need_version=no
11763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11766 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 11767 else
a243b558
JF
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 dynamic_linker='NetBSD ld.elf_so'
9c60689e 11771 fi
a243b558
JF
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=yes
11774 hardcode_into_libs=yes
11775 ;;
9c60689e 11776
a243b558
JF
11777newsos6)
11778 version_type=linux # correct to gnu/linux during the next big refactor
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=yes
11782 ;;
9c60689e 11783
a243b558
JF
11784*nto* | *qnx*)
11785 version_type=qnx
11786 need_lib_prefix=no
11787 need_version=no
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789 soname_spec='${libname}${release}${shared_ext}$major'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=no
11792 hardcode_into_libs=yes
11793 dynamic_linker='ldqnx.so'
11794 ;;
9c60689e 11795
a243b558
JF
11796openbsd*)
11797 version_type=sunos
11798 sys_lib_dlsearch_path_spec="/usr/lib"
11799 need_lib_prefix=no
11800 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11801 case $host_os in
11802 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11803 *) need_version=no ;;
9c60689e 11804 esac
a243b558
JF
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11809 case $host_os in
11810 openbsd2.[89] | openbsd2.[89].*)
11811 shlibpath_overrides_runpath=no
11812 ;;
11813 *)
11814 shlibpath_overrides_runpath=yes
11815 ;;
11816 esac
11817 else
11818 shlibpath_overrides_runpath=yes
11819 fi
11820 ;;
9c60689e 11821
a243b558
JF
11822os2*)
11823 libname_spec='$name'
11824 shrext_cmds=".dll"
11825 need_lib_prefix=no
11826 library_names_spec='$libname${shared_ext} $libname.a'
11827 dynamic_linker='OS/2 ld.exe'
11828 shlibpath_var=LIBPATH
11829 ;;
9c60689e 11830
a243b558
JF
11831osf3* | osf4* | osf5*)
11832 version_type=osf
11833 need_lib_prefix=no
11834 need_version=no
11835 soname_spec='${libname}${release}${shared_ext}$major'
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837 shlibpath_var=LD_LIBRARY_PATH
11838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11840 ;;
11841
11842rdos*)
11843 dynamic_linker=no
11844 ;;
11845
11846solaris*)
11847 version_type=linux # correct to gnu/linux during the next big refactor
11848 need_lib_prefix=no
11849 need_version=no
11850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851 soname_spec='${libname}${release}${shared_ext}$major'
11852 shlibpath_var=LD_LIBRARY_PATH
11853 shlibpath_overrides_runpath=yes
11854 hardcode_into_libs=yes
11855 # ldd complains unless libraries are executable
11856 postinstall_cmds='chmod +x $lib'
11857 ;;
9c60689e 11858
a243b558
JF
11859sunos4*)
11860 version_type=sunos
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=yes
11865 if test "$with_gnu_ld" = yes; then
11866 need_lib_prefix=no
11867 fi
11868 need_version=yes
11869 ;;
9c60689e 11870
a243b558
JF
11871sysv4 | sysv4.3*)
11872 version_type=linux # correct to gnu/linux during the next big refactor
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 case $host_vendor in
11877 sni)
11878 shlibpath_overrides_runpath=no
11879 need_lib_prefix=no
11880 runpath_var=LD_RUN_PATH
11881 ;;
11882 siemens)
11883 need_lib_prefix=no
11884 ;;
11885 motorola)
11886 need_lib_prefix=no
11887 need_version=no
11888 shlibpath_overrides_runpath=no
11889 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11890 ;;
11891 esac
11892 ;;
9c60689e 11893
a243b558
JF
11894sysv4*MP*)
11895 if test -d /usr/nec ;then
11896 version_type=linux # correct to gnu/linux during the next big refactor
11897 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11898 soname_spec='$libname${shared_ext}.$major'
11899 shlibpath_var=LD_LIBRARY_PATH
11900 fi
11901 ;;
9c60689e 11902
a243b558
JF
11903sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11904 version_type=freebsd-elf
11905 need_lib_prefix=no
11906 need_version=no
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 shlibpath_var=LD_LIBRARY_PATH
11910 shlibpath_overrides_runpath=yes
11911 hardcode_into_libs=yes
11912 if test "$with_gnu_ld" = yes; then
11913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11914 else
11915 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11916 case $host_os in
11917 sco3.2v5*)
11918 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11919 ;;
11920 esac
11921 fi
11922 sys_lib_dlsearch_path_spec='/usr/lib'
11923 ;;
9c60689e 11924
a243b558
JF
11925tpf*)
11926 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11927 version_type=linux # correct to gnu/linux during the next big refactor
11928 need_lib_prefix=no
11929 need_version=no
11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 shlibpath_overrides_runpath=no
11933 hardcode_into_libs=yes
11934 ;;
9c60689e 11935
a243b558
JF
11936uts4*)
11937 version_type=linux # correct to gnu/linux during the next big refactor
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 ;;
9c60689e 11942
a243b558
JF
11943*)
11944 dynamic_linker=no
11945 ;;
11946esac
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11948$as_echo "$dynamic_linker" >&6; }
11949test "$dynamic_linker" = no && can_build_shared=no
9c60689e 11950
a243b558
JF
11951variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11952if test "$GCC" = yes; then
11953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11954fi
9c60689e 11955
a243b558
JF
11956if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11957 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11958fi
11959if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11960 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11961fi
9c60689e
DWT
11962
11963
11964
11965
11966
11967
11968
11969
9c60689e
DWT
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
9c60689e 11982
9c60689e 11983
9c60689e 11984
9c60689e 11985
9c60689e
DWT
11986
11987
11988
11989
9c60689e 11990
9c60689e
DWT
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
53ba6704
JF
12004
12005
9c60689e
DWT
12006
12007
12008
12009
9c60689e
DWT
12010
12011
3fd51f51 12012
66170b30
JF
12013
12014
12015
3fd51f51 12016
12833ad8
JF
12017
12018
12019
12020
3fd51f51 12021
3fd51f51
DWT
12022
12023
3fd51f51 12024
3fd51f51 12025
3fd51f51 12026
66170b30 12027
632b71ea 12028
632b71ea
DWT
12029
12030
790e5246 12031
66170b30 12032
9c60689e 12033
9c60689e
DWT
12034
12035
9c60689e 12036
9c60689e
DWT
12037
12038
66170b30 12039
66170b30 12040
9c60689e 12041
e9c9a47c
DWT
12042
12043
12044
66170b30
JF
12045
12046
66170b30 12047
e9c9a47c 12048
a243b558
JF
12049
12050
12051
12052
12053
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12055$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12056hardcode_action=
12057if test -n "$hardcode_libdir_flag_spec" ||
12058 test -n "$runpath_var" ||
12059 test "X$hardcode_automatic" = "Xyes" ; then
12060
12061 # We can hardcode non-existent directories.
12062 if test "$hardcode_direct" != no &&
12063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12064 # have to relink, otherwise we might link with an installed library
12065 # when we should be linking with a yet-to-be-installed one
12066 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12067 test "$hardcode_minus_L" != no; then
12068 # Linking always hardcodes the temporary library directory.
12069 hardcode_action=relink
12070 else
12071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12072 hardcode_action=immediate
9c60689e 12073 fi
e9c9a47c 12074else
a243b558
JF
12075 # We cannot hardcode anything, or else we can only hardcode existing
12076 # directories.
12077 hardcode_action=unsupported
12078fi
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12080$as_echo "$hardcode_action" >&6; }
12081
12082if test "$hardcode_action" = relink ||
12083 test "$inherit_rpath" = yes; then
12084 # Fast installation is not supported
12085 enable_fast_install=no
12086elif test "$shlibpath_overrides_runpath" = yes ||
12087 test "$enable_shared" = no; then
12088 # Fast installation is not necessary
12089 enable_fast_install=needless
9c60689e 12090fi
9c60689e 12091
9c60689e 12092
66170b30 12093
66170b30 12094
9c60689e 12095
a243b558
JF
12096
12097 if test "x$enable_dlopen" != xyes; then
12098 enable_dlopen=unknown
12099 enable_dlopen_self=unknown
12100 enable_dlopen_self_static=unknown
66170b30 12101else
a243b558
JF
12102 lt_cv_dlopen=no
12103 lt_cv_dlopen_libs=
66170b30 12104
a243b558
JF
12105 case $host_os in
12106 beos*)
12107 lt_cv_dlopen="load_add_on"
12108 lt_cv_dlopen_libs=
12109 lt_cv_dlopen_self=yes
12110 ;;
66170b30 12111
a243b558
JF
12112 mingw* | pw32* | cegcc*)
12113 lt_cv_dlopen="LoadLibrary"
12114 lt_cv_dlopen_libs=
12115 ;;
66170b30 12116
a243b558
JF
12117 cygwin*)
12118 lt_cv_dlopen="dlopen"
12119 lt_cv_dlopen_libs=
12120 ;;
66170b30 12121
a243b558
JF
12122 darwin*)
12123 # if libdl is installed we need to link against it
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12125$as_echo_n "checking for dlopen in -ldl... " >&6; }
12126if ${ac_cv_lib_dl_dlopen+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128else
12129 ac_check_lib_save_LIBS=$LIBS
12130LIBS="-ldl $LIBS"
12131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132/* end confdefs.h. */
66170b30 12133
a243b558
JF
12134/* Override any GCC internal prototype to avoid an error.
12135 Use char because int might match the return type of a GCC
12136 builtin and then its argument prototype would still apply. */
12137#ifdef __cplusplus
12138extern "C"
12139#endif
12140char dlopen ();
12141int
12142main ()
12143{
12144return dlopen ();
12145 ;
12146 return 0;
12147}
12148_ACEOF
12149if ac_fn_c_try_link "$LINENO"; then :
12150 ac_cv_lib_dl_dlopen=yes
12151else
12152 ac_cv_lib_dl_dlopen=no
66170b30 12153fi
a243b558
JF
12154rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156LIBS=$ac_check_lib_save_LIBS
66170b30 12157fi
a243b558
JF
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12159$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12160if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12162else
66170b30 12163
a243b558
JF
12164 lt_cv_dlopen="dyld"
12165 lt_cv_dlopen_libs=
12166 lt_cv_dlopen_self=yes
66170b30 12167
a243b558 12168fi
9c60689e 12169
a243b558 12170 ;;
9c60689e 12171
a243b558
JF
12172 *)
12173 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12174if test "x$ac_cv_func_shl_load" = xyes; then :
12175 lt_cv_dlopen="shl_load"
12176else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12178$as_echo_n "checking for shl_load in -ldld... " >&6; }
12179if ${ac_cv_lib_dld_shl_load+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181else
12182 ac_check_lib_save_LIBS=$LIBS
12183LIBS="-ldld $LIBS"
12184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185/* end confdefs.h. */
66170b30 12186
a243b558
JF
12187/* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190#ifdef __cplusplus
12191extern "C"
12192#endif
12193char shl_load ();
12194int
12195main ()
12196{
12197return shl_load ();
12198 ;
12199 return 0;
12200}
12201_ACEOF
12202if ac_fn_c_try_link "$LINENO"; then :
12203 ac_cv_lib_dld_shl_load=yes
66170b30 12204else
a243b558
JF
12205 ac_cv_lib_dld_shl_load=no
12206fi
12207rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209LIBS=$ac_check_lib_save_LIBS
66170b30 12210fi
a243b558
JF
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12212$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12213if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12214 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12215else
12216 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12217if test "x$ac_cv_func_dlopen" = xyes; then :
12218 lt_cv_dlopen="dlopen"
12219else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12221$as_echo_n "checking for dlopen in -ldl... " >&6; }
12222if ${ac_cv_lib_dl_dlopen+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224else
12225 ac_check_lib_save_LIBS=$LIBS
12226LIBS="-ldl $LIBS"
12227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228/* end confdefs.h. */
e9c9a47c 12229
a243b558
JF
12230/* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12233#ifdef __cplusplus
12234extern "C"
12235#endif
12236char dlopen ();
12237int
12238main ()
12239{
12240return dlopen ();
12241 ;
12242 return 0;
12243}
12244_ACEOF
12245if ac_fn_c_try_link "$LINENO"; then :
12246 ac_cv_lib_dl_dlopen=yes
12247else
12248 ac_cv_lib_dl_dlopen=no
12249fi
12250rm -f core conftest.err conftest.$ac_objext \
12251 conftest$ac_exeext conftest.$ac_ext
12252LIBS=$ac_check_lib_save_LIBS
12253fi
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12255$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12256if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12258else
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12260$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12261if ${ac_cv_lib_svld_dlopen+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263else
12264 ac_check_lib_save_LIBS=$LIBS
12265LIBS="-lsvld $LIBS"
12266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267/* end confdefs.h. */
12268
12269/* Override any GCC internal prototype to avoid an error.
12270 Use char because int might match the return type of a GCC
12271 builtin and then its argument prototype would still apply. */
12272#ifdef __cplusplus
12273extern "C"
12274#endif
12275char dlopen ();
12276int
12277main ()
12278{
12279return dlopen ();
12280 ;
12281 return 0;
12282}
12283_ACEOF
12284if ac_fn_c_try_link "$LINENO"; then :
12285 ac_cv_lib_svld_dlopen=yes
12286else
12287 ac_cv_lib_svld_dlopen=no
12288fi
12289rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291LIBS=$ac_check_lib_save_LIBS
12292fi
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12294$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12295if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12297else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12299$as_echo_n "checking for dld_link in -ldld... " >&6; }
12300if ${ac_cv_lib_dld_dld_link+:} false; then :
12301 $as_echo_n "(cached) " >&6
12302else
12303 ac_check_lib_save_LIBS=$LIBS
12304LIBS="-ldld $LIBS"
12305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306/* end confdefs.h. */
12307
12308/* Override any GCC internal prototype to avoid an error.
12309 Use char because int might match the return type of a GCC
12310 builtin and then its argument prototype would still apply. */
12311#ifdef __cplusplus
12312extern "C"
12313#endif
12314char dld_link ();
12315int
12316main ()
12317{
12318return dld_link ();
12319 ;
12320 return 0;
12321}
12322_ACEOF
12323if ac_fn_c_try_link "$LINENO"; then :
12324 ac_cv_lib_dld_dld_link=yes
9c60689e 12325else
a243b558
JF
12326 ac_cv_lib_dld_dld_link=no
12327fi
12328rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330LIBS=$ac_check_lib_save_LIBS
12331fi
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12333$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12334if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12335 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9c60689e
DWT
12336fi
12337
12338
a243b558 12339fi
66170b30 12340
66170b30 12341
a243b558 12342fi
66170b30 12343
66170b30
JF
12344
12345fi
e9c9a47c 12346
66170b30 12347
a243b558 12348fi
66170b30 12349
66170b30 12350
66170b30 12351fi
e9c9a47c 12352
a243b558
JF
12353 ;;
12354 esac
9c60689e 12355
a243b558
JF
12356 if test "x$lt_cv_dlopen" != xno; then
12357 enable_dlopen=yes
12358 else
12359 enable_dlopen=no
12360 fi
9c60689e 12361
a243b558
JF
12362 case $lt_cv_dlopen in
12363 dlopen)
12364 save_CPPFLAGS="$CPPFLAGS"
12365 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12366
a243b558
JF
12367 save_LDFLAGS="$LDFLAGS"
12368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12369
a243b558
JF
12370 save_LIBS="$LIBS"
12371 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12372
a243b558
JF
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12374$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12375if ${lt_cv_dlopen_self+:} false; then :
12376 $as_echo_n "(cached) " >&6
e9c9a47c 12377else
a243b558
JF
12378 if test "$cross_compiling" = yes; then :
12379 lt_cv_dlopen_self=cross
12380else
12381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12382 lt_status=$lt_dlunknown
12383 cat > conftest.$ac_ext <<_LT_EOF
12384#line $LINENO "configure"
12385#include "confdefs.h"
e9c9a47c 12386
a243b558
JF
12387#if HAVE_DLFCN_H
12388#include <dlfcn.h>
12389#endif
e9c9a47c 12390
a243b558 12391#include <stdio.h>
66170b30 12392
a243b558
JF
12393#ifdef RTLD_GLOBAL
12394# define LT_DLGLOBAL RTLD_GLOBAL
12395#else
12396# ifdef DL_GLOBAL
12397# define LT_DLGLOBAL DL_GLOBAL
12398# else
12399# define LT_DLGLOBAL 0
12400# endif
12401#endif
66170b30 12402
a243b558
JF
12403/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12404 find out it does not work in some platform. */
12405#ifndef LT_DLLAZY_OR_NOW
12406# ifdef RTLD_LAZY
12407# define LT_DLLAZY_OR_NOW RTLD_LAZY
12408# else
12409# ifdef DL_LAZY
12410# define LT_DLLAZY_OR_NOW DL_LAZY
12411# else
12412# ifdef RTLD_NOW
12413# define LT_DLLAZY_OR_NOW RTLD_NOW
12414# else
12415# ifdef DL_NOW
12416# define LT_DLLAZY_OR_NOW DL_NOW
12417# else
12418# define LT_DLLAZY_OR_NOW 0
12419# endif
12420# endif
12421# endif
12422# endif
12423#endif
e9c9a47c 12424
a243b558
JF
12425/* When -fvisbility=hidden is used, assume the code has been annotated
12426 correspondingly for the symbols needed. */
12427#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12428int fnord () __attribute__((visibility("default")));
12429#endif
e9c9a47c 12430
a243b558
JF
12431int fnord () { return 42; }
12432int main ()
12433{
12434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12435 int status = $lt_dlunknown;
e9c9a47c 12436
a243b558
JF
12437 if (self)
12438 {
12439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12440 else
12441 {
12442 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12443 else puts (dlerror ());
12444 }
12445 /* dlclose (self); */
12446 }
12447 else
12448 puts (dlerror ());
e9c9a47c 12449
a243b558
JF
12450 return status;
12451}
12452_LT_EOF
12453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12454 (eval $ac_link) 2>&5
12455 ac_status=$?
12456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12457 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12458 (./conftest; exit; ) >&5 2>/dev/null
12459 lt_status=$?
12460 case x$lt_status in
12461 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12462 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12463 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12464 esac
12465 else :
12466 # compilation failed
12467 lt_cv_dlopen_self=no
12468 fi
12469fi
12470rm -fr conftest*
e9c9a47c 12471
e9c9a47c 12472
e9c9a47c 12473fi
a243b558
JF
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12475$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12476
a243b558
JF
12477 if test "x$lt_cv_dlopen_self" = xyes; then
12478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12480$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12481if ${lt_cv_dlopen_self_static+:} false; then :
12482 $as_echo_n "(cached) " >&6
e9c9a47c 12483else
a243b558
JF
12484 if test "$cross_compiling" = yes; then :
12485 lt_cv_dlopen_self_static=cross
12486else
12487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12488 lt_status=$lt_dlunknown
12489 cat > conftest.$ac_ext <<_LT_EOF
12490#line $LINENO "configure"
12491#include "confdefs.h"
12492
12493#if HAVE_DLFCN_H
12494#include <dlfcn.h>
12495#endif
12496
12497#include <stdio.h>
e9c9a47c 12498
a243b558
JF
12499#ifdef RTLD_GLOBAL
12500# define LT_DLGLOBAL RTLD_GLOBAL
12501#else
12502# ifdef DL_GLOBAL
12503# define LT_DLGLOBAL DL_GLOBAL
12504# else
12505# define LT_DLGLOBAL 0
12506# endif
12507#endif
e9c9a47c 12508
a243b558
JF
12509/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12510 find out it does not work in some platform. */
12511#ifndef LT_DLLAZY_OR_NOW
12512# ifdef RTLD_LAZY
12513# define LT_DLLAZY_OR_NOW RTLD_LAZY
12514# else
12515# ifdef DL_LAZY
12516# define LT_DLLAZY_OR_NOW DL_LAZY
12517# else
12518# ifdef RTLD_NOW
12519# define LT_DLLAZY_OR_NOW RTLD_NOW
12520# else
12521# ifdef DL_NOW
12522# define LT_DLLAZY_OR_NOW DL_NOW
12523# else
12524# define LT_DLLAZY_OR_NOW 0
12525# endif
12526# endif
12527# endif
12528# endif
12529#endif
66170b30 12530
a243b558
JF
12531/* When -fvisbility=hidden is used, assume the code has been annotated
12532 correspondingly for the symbols needed. */
12533#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12534int fnord () __attribute__((visibility("default")));
12535#endif
e9c9a47c 12536
a243b558
JF
12537int fnord () { return 42; }
12538int main ()
12539{
12540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12541 int status = $lt_dlunknown;
e9c9a47c 12542
a243b558
JF
12543 if (self)
12544 {
12545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12546 else
12547 {
12548 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12549 else puts (dlerror ());
12550 }
12551 /* dlclose (self); */
12552 }
12553 else
12554 puts (dlerror ());
e9c9a47c 12555
a243b558
JF
12556 return status;
12557}
12558_LT_EOF
12559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12560 (eval $ac_link) 2>&5
12561 ac_status=$?
12562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12563 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12564 (./conftest; exit; ) >&5 2>/dev/null
12565 lt_status=$?
12566 case x$lt_status in
12567 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12568 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12569 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12570 esac
12571 else :
12572 # compilation failed
12573 lt_cv_dlopen_self_static=no
12574 fi
12575fi
12576rm -fr conftest*
e9c9a47c 12577
b65019fe 12578
a243b558
JF
12579fi
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12581$as_echo "$lt_cv_dlopen_self_static" >&6; }
12582 fi
66170b30 12583
a243b558
JF
12584 CPPFLAGS="$save_CPPFLAGS"
12585 LDFLAGS="$save_LDFLAGS"
12586 LIBS="$save_LIBS"
12587 ;;
12588 esac
66170b30 12589
a243b558
JF
12590 case $lt_cv_dlopen_self in
12591 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12592 *) enable_dlopen_self=unknown ;;
12593 esac
12594
12595 case $lt_cv_dlopen_self_static in
12596 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12597 *) enable_dlopen_self_static=unknown ;;
12598 esac
b65019fe
DWT
12599fi
12600
12601
66170b30 12602
b65019fe 12603
e9c9a47c 12604
e9c9a47c
DWT
12605
12606
e9c9a47c 12607
e9c9a47c
DWT
12608
12609
e9c9a47c 12610
e9c9a47c 12611
3530897b 12612
47aaa820 12613
47aaa820 12614
a243b558
JF
12615
12616
12617striplib=
12618old_striplib=
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12620$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12621if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12623 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12625$as_echo "yes" >&6; }
47aaa820 12626else
a243b558
JF
12627# FIXME - insert some real tests, host_os isn't really good enough
12628 case $host_os in
12629 darwin*)
12630 if test -n "$STRIP" ; then
12631 striplib="$STRIP -x"
12632 old_striplib="$STRIP -S"
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12634$as_echo "yes" >&6; }
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637$as_echo "no" >&6; }
12638 fi
12639 ;;
12640 *)
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642$as_echo "no" >&6; }
12643 ;;
12644 esac
3530897b 12645fi
47aaa820 12646
3530897b
DWT
12647
12648
9c60689e 12649
9c60689e 12650
9c60689e 12651
9c60689e 12652
9c60689e 12653
66170b30 12654
66170b30 12655
66170b30 12656
66170b30 12657
a243b558
JF
12658 # Report which library types will actually be built
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12660$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12662$as_echo "$can_build_shared" >&6; }
66170b30 12663
a243b558
JF
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12665$as_echo_n "checking whether to build shared libraries... " >&6; }
12666 test "$can_build_shared" = "no" && enable_shared=no
66170b30 12667
a243b558
JF
12668 # On AIX, shared libraries and static libraries use the same namespace, and
12669 # are all built from PIC.
12670 case $host_os in
12671 aix3*)
12672 test "$enable_shared" = yes && enable_static=no
12673 if test -n "$RANLIB"; then
12674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12675 postinstall_cmds='$RANLIB $lib'
12676 fi
12677 ;;
66170b30 12678
a243b558
JF
12679 aix[4-9]*)
12680 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12681 test "$enable_shared" = yes && enable_static=no
12682 fi
12683 ;;
12684 esac
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12686$as_echo "$enable_shared" >&6; }
66170b30 12687
a243b558
JF
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12689$as_echo_n "checking whether to build static libraries... " >&6; }
12690 # Make sure either enable_shared or enable_static is yes.
12691 test "$enable_shared" = yes || enable_static=yes
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12693$as_echo "$enable_static" >&6; }
66170b30 12694
9c60689e 12695
e9c9a47c 12696
9c60689e 12697
a243b558
JF
12698fi
12699ac_ext=c
12700ac_cpp='$CPP $CPPFLAGS'
12701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12703ac_compiler_gnu=$ac_cv_c_compiler_gnu
12704
12705CC="$lt_save_CC"
e9c9a47c 12706
ee134472 12707 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
12708 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12709 (test "X$CXX" != "Xg++"))) ; then
12710 ac_ext=cpp
12711ac_cpp='$CXXCPP $CPPFLAGS'
12712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12716$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12717if test -z "$CXXCPP"; then
ee134472 12718 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
12719 $as_echo_n "(cached) " >&6
12720else
12721 # Double quotes because CXXCPP needs to be expanded
12722 for CXXCPP in "$CXX -E" "/lib/cpp"
12723 do
12724 ac_preproc_ok=false
12725for ac_cxx_preproc_warn_flag in '' yes
12726do
12727 # Use a header file that comes with gcc, so configuring glibc
12728 # with a fresh cross-compiler works.
12729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12730 # <limits.h> exists even on freestanding compilers.
12731 # On the NeXT, cc -E runs the code through the compiler's parser,
12732 # not just through cpp. "Syntax error" is here to catch this case.
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734/* end confdefs.h. */
12735#ifdef __STDC__
12736# include <limits.h>
12737#else
12738# include <assert.h>
12739#endif
12740 Syntax error
12741_ACEOF
12742if ac_fn_cxx_try_cpp "$LINENO"; then :
12743
12744else
12745 # Broken: fails on valid input.
12746continue
12747fi
12833ad8 12748rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12749
12750 # OK, works on sane cases. Now check whether nonexistent headers
12751 # can be detected and how.
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753/* end confdefs.h. */
12754#include <ac_nonexistent.h>
12755_ACEOF
12756if ac_fn_cxx_try_cpp "$LINENO"; then :
12757 # Broken: success on invalid input.
12758continue
12759else
12760 # Passes both tests.
12761ac_preproc_ok=:
12762break
12763fi
12833ad8 12764rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12765
12766done
12767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12768rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12769if $ac_preproc_ok; then :
12770 break
12771fi
12772
12773 done
12774 ac_cv_prog_CXXCPP=$CXXCPP
12775
12776fi
12777 CXXCPP=$ac_cv_prog_CXXCPP
12778else
12779 ac_cv_prog_CXXCPP=$CXXCPP
12780fi
12781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12782$as_echo "$CXXCPP" >&6; }
12783ac_preproc_ok=false
12784for ac_cxx_preproc_warn_flag in '' yes
12785do
12786 # Use a header file that comes with gcc, so configuring glibc
12787 # with a fresh cross-compiler works.
12788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12789 # <limits.h> exists even on freestanding compilers.
12790 # On the NeXT, cc -E runs the code through the compiler's parser,
12791 # not just through cpp. "Syntax error" is here to catch this case.
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793/* end confdefs.h. */
12794#ifdef __STDC__
12795# include <limits.h>
12796#else
12797# include <assert.h>
12798#endif
12799 Syntax error
12800_ACEOF
12801if ac_fn_cxx_try_cpp "$LINENO"; then :
12802
12803else
12804 # Broken: fails on valid input.
12805continue
12806fi
12833ad8 12807rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12808
12809 # OK, works on sane cases. Now check whether nonexistent headers
12810 # can be detected and how.
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812/* end confdefs.h. */
12813#include <ac_nonexistent.h>
12814_ACEOF
12815if ac_fn_cxx_try_cpp "$LINENO"; then :
12816 # Broken: success on invalid input.
12817continue
12818else
12819 # Passes both tests.
12820ac_preproc_ok=:
12821break
12822fi
12833ad8 12823rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12824
12825done
12826# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12827rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12828if $ac_preproc_ok; then :
12829
12830else
12831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
12833as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12834See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
12835fi
12836
a243b558
JF
12837ac_ext=c
12838ac_cpp='$CPP $CPPFLAGS'
12839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12841ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
12842
12843else
e9c9a47c
DWT
12844 _lt_caught_CXX_error=yes
12845fi
12846
9c60689e
DWT
12847ac_ext=cpp
12848ac_cpp='$CXXCPP $CPPFLAGS'
12849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 12852
47aaa820
DWT
12853archive_cmds_need_lc_CXX=no
12854allow_undefined_flag_CXX=
12855always_export_symbols_CXX=no
12856archive_expsym_cmds_CXX=
12857compiler_needs_object_CXX=no
12858export_dynamic_flag_spec_CXX=
12859hardcode_direct_CXX=no
12860hardcode_direct_absolute_CXX=no
12861hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
12862hardcode_libdir_separator_CXX=
12863hardcode_minus_L_CXX=no
12864hardcode_shlibpath_var_CXX=unsupported
12865hardcode_automatic_CXX=no
12866inherit_rpath_CXX=no
12867module_cmds_CXX=
12868module_expsym_cmds_CXX=
12869link_all_deplibs_CXX=unknown
12870old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
12871reload_flag_CXX=$reload_flag
12872reload_cmds_CXX=$reload_cmds
47aaa820
DWT
12873no_undefined_flag_CXX=
12874whole_archive_flag_spec_CXX=
12875enable_shared_with_static_runtimes_CXX=no
9c60689e 12876
47aaa820
DWT
12877# Source file extension for C++ test sources.
12878ac_ext=cpp
9c60689e 12879
47aaa820
DWT
12880# Object file extension for compiled C++ test sources.
12881objext=o
12882objext_CXX=$objext
9c60689e 12883
47aaa820
DWT
12884# No sense in running all these tests if we already determined that
12885# the CXX compiler isn't working. Some variables (like enable_shared)
12886# are currently assumed to apply to all compilers on this platform,
12887# and will be corrupted by setting them based on a non-working compiler.
12888if test "$_lt_caught_CXX_error" != yes; then
12889 # Code to be used in simple compile tests
12890 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 12891
47aaa820
DWT
12892 # Code to be used in simple link tests
12893 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 12894
47aaa820 12895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 12896
9c60689e 12897
9c60689e 12898
9c60689e 12899
9c60689e 12900
9c60689e 12901
47aaa820
DWT
12902# If no C compiler was specified, use CC.
12903LTCC=${LTCC-"$CC"}
9c60689e 12904
47aaa820
DWT
12905# If no C compiler flags were specified, use CFLAGS.
12906LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 12907
47aaa820
DWT
12908# Allow CC to be a program name with arguments.
12909compiler=$CC
9c60689e 12910
9c60689e 12911
47aaa820
DWT
12912 # save warnings/boilerplate of simple test code
12913 ac_outfile=conftest.$ac_objext
12914echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12915eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12916_lt_compiler_boilerplate=`cat conftest.err`
a93f15c0 12917$RM conftest*
9c60689e 12918
47aaa820
DWT
12919 ac_outfile=conftest.$ac_objext
12920echo "$lt_simple_link_test_code" >conftest.$ac_ext
12921eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12922_lt_linker_boilerplate=`cat conftest.err`
12923$RM -r conftest*
9c60689e 12924
9c60689e 12925
47aaa820
DWT
12926 # Allow CC to be a program name with arguments.
12927 lt_save_CC=$CC
ee134472 12928 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
12929 lt_save_LD=$LD
12930 lt_save_GCC=$GCC
12931 GCC=$GXX
12932 lt_save_with_gnu_ld=$with_gnu_ld
12933 lt_save_path_LD=$lt_cv_path_LD
12934 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12935 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 12936 else
47aaa820 12937 $as_unset lt_cv_prog_gnu_ld
9c60689e 12938 fi
47aaa820
DWT
12939 if test -n "${lt_cv_path_LDCXX+set}"; then
12940 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 12941 else
47aaa820 12942 $as_unset lt_cv_path_LD
9c60689e 12943 fi
47aaa820
DWT
12944 test -z "${LDCXX+set}" || LD=$LDCXX
12945 CC=${CXX-"c++"}
ee134472 12946 CFLAGS=$CXXFLAGS
47aaa820
DWT
12947 compiler=$CC
12948 compiler_CXX=$CC
12949 for cc_temp in $compiler""; do
12950 case $cc_temp in
12951 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12952 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12953 \-*) ;;
12954 *) break;;
12955 esac
12956done
ee134472 12957cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
12958
12959
47aaa820
DWT
12960 if test -n "$compiler"; then
12961 # We don't want -fno-exception when compiling C++ code, so set the
12962 # no_builtin_flag separately
12963 if test "$GXX" = yes; then
12964 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12965 else
12966 lt_prog_compiler_no_builtin_flag_CXX=
12967 fi
9c60689e 12968
47aaa820
DWT
12969 if test "$GXX" = yes; then
12970 # Set up default GNU C++ configuration
12971
12972
12973
12974# Check whether --with-gnu-ld was given.
12975if test "${with_gnu_ld+set}" = set; then :
12976 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12977else
47aaa820 12978 with_gnu_ld=no
9c60689e
DWT
12979fi
12980
47aaa820
DWT
12981ac_prog=ld
12982if test "$GCC" = yes; then
12983 # Check if gcc -print-prog-name=ld gives a path.
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12985$as_echo_n "checking for ld used by $CC... " >&6; }
12986 case $host in
12987 *-*-mingw*)
12988 # gcc leaves a trailing carriage return which upsets mingw
12989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12990 *)
12991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12992 esac
12993 case $ac_prog in
12994 # Accept absolute paths.
12995 [\\/]* | ?:[\\/]*)
12996 re_direlt='/[^/][^/]*/\.\./'
12997 # Canonicalize the pathname of ld
12998 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12999 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13000 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13001 done
13002 test -z "$LD" && LD="$ac_prog"
13003 ;;
13004 "")
13005 # If it fails, then pretend we aren't using GCC.
13006 ac_prog=ld
13007 ;;
13008 *)
13009 # If it is relative, then search for the first ld in PATH.
13010 with_gnu_ld=unknown
13011 ;;
13012 esac
13013elif test "$with_gnu_ld" = yes; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13015$as_echo_n "checking for GNU ld... " >&6; }
13016else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13018$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 13019fi
ee134472 13020if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
13021 $as_echo_n "(cached) " >&6
13022else
47aaa820
DWT
13023 if test -z "$LD"; then
13024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13025 for ac_dir in $PATH; do
13026 IFS="$lt_save_ifs"
13027 test -z "$ac_dir" && ac_dir=.
13028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13029 lt_cv_path_LD="$ac_dir/$ac_prog"
13030 # Check to see if the program is GNU ld. I'd rather use --version,
13031 # but apparently some variants of GNU ld only accept -v.
13032 # Break only if it was the GNU/non-GNU ld that we prefer.
13033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13034 *GNU* | *'with BFD'*)
13035 test "$with_gnu_ld" != no && break
13036 ;;
13037 *)
13038 test "$with_gnu_ld" != yes && break
13039 ;;
13040 esac
13041 fi
9c60689e 13042 done
47aaa820
DWT
13043 IFS="$lt_save_ifs"
13044else
13045 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
13046fi
13047fi
47aaa820
DWT
13048
13049LD="$lt_cv_path_LD"
13050if test -n "$LD"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13052$as_echo "$LD" >&6; }
9c60689e
DWT
13053else
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055$as_echo "no" >&6; }
13056fi
12833ad8 13057test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
13058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13059$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 13060if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
13061 $as_echo_n "(cached) " >&6
13062else
13063 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13064case `$LD -v 2>&1 </dev/null` in
13065*GNU* | *'with BFD'*)
13066 lt_cv_prog_gnu_ld=yes
13067 ;;
13068*)
13069 lt_cv_prog_gnu_ld=no
13070 ;;
13071esac
13072fi
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13074$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13075with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
13076
13077
9c60689e 13078
9c60689e 13079
9c60689e 13080
9c60689e 13081
9c60689e 13082
47aaa820
DWT
13083 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13084 # archiving commands below assume that GNU ld is being used.
13085 if test "$with_gnu_ld" = yes; then
ee134472
JF
13086 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13087 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 13088
47aaa820
DWT
13089 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13091
47aaa820
DWT
13092 # If archive_cmds runs LD, not CC, wlarc should be empty
13093 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13094 # investigate it a little bit more. (MM)
13095 wlarc='${wl}'
9c60689e 13096
47aaa820
DWT
13097 # ancient GNU ld didn't support --whole-archive et. al.
13098 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13099 $GREP 'no-whole-archive' > /dev/null; then
13100 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13101 else
13102 whole_archive_flag_spec_CXX=
13103 fi
13104 else
13105 with_gnu_ld=no
13106 wlarc=
13107
13108 # A generic and very simple default shared library creation
13109 # command for GNU C++ for the case where it uses the native
13110 # linker, instead of GNU ld. If possible, this setting should
13111 # overridden to take advantage of the native linker features on
13112 # the platform it is being used on.
13113 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13114 fi
13115
13116 # Commands to make compiler produce verbose output that lists
13117 # what "hidden" libraries, object files and flags are used when
13118 # linking a shared library.
ee134472 13119 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13120
13121 else
13122 GXX=no
13123 with_gnu_ld=no
13124 wlarc=
13125 fi
13126
13127 # PORTME: fill in a description of your system's C++ link characteristics
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13129$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13130 ld_shlibs_CXX=yes
13131 case $host_os in
13132 aix3*)
13133 # FIXME: insert proper C++ library support
13134 ld_shlibs_CXX=no
13135 ;;
13136 aix[4-9]*)
13137 if test "$host_cpu" = ia64; then
13138 # On IA64, the linker does run time linking by default, so we don't
13139 # have to do anything special.
13140 aix_use_runtimelinking=no
13141 exp_sym_flag='-Bexport'
13142 no_entry_flag=""
13143 else
13144 aix_use_runtimelinking=no
13145
13146 # Test if we are trying to use run time linking or normal
13147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13148 # need to do runtime linking.
13149 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13150 for ld_flag in $LDFLAGS; do
13151 case $ld_flag in
13152 *-brtl*)
13153 aix_use_runtimelinking=yes
13154 break
13155 ;;
13156 esac
13157 done
13158 ;;
13159 esac
13160
13161 exp_sym_flag='-bexport'
13162 no_entry_flag='-bnoentry'
13163 fi
13164
13165 # When large executables or shared objects are built, AIX ld can
13166 # have problems creating the table of contents. If linking a library
13167 # or program results in "error TOC overflow" add -mminimal-toc to
13168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13170
13171 archive_cmds_CXX=''
13172 hardcode_direct_CXX=yes
13173 hardcode_direct_absolute_CXX=yes
13174 hardcode_libdir_separator_CXX=':'
13175 link_all_deplibs_CXX=yes
13176 file_list_spec_CXX='${wl}-f,'
13177
13178 if test "$GXX" = yes; then
13179 case $host_os in aix4.[012]|aix4.[012].*)
13180 # We only want to do this on AIX 4.2 and lower, the check
13181 # below for broken collect2 doesn't work under 4.3+
13182 collect2name=`${CC} -print-prog-name=collect2`
13183 if test -f "$collect2name" &&
13184 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13185 then
13186 # We have reworked collect2
13187 :
13188 else
13189 # We have old collect2
13190 hardcode_direct_CXX=unsupported
13191 # It fails to find uninstalled libraries when the uninstalled
13192 # path is not listed in the libpath. Setting hardcode_minus_L
13193 # to unsupported forces relinking
13194 hardcode_minus_L_CXX=yes
13195 hardcode_libdir_flag_spec_CXX='-L$libdir'
13196 hardcode_libdir_separator_CXX=
13197 fi
13198 esac
13199 shared_flag='-shared'
13200 if test "$aix_use_runtimelinking" = yes; then
13201 shared_flag="$shared_flag "'${wl}-G'
13202 fi
13203 else
13204 # not using gcc
13205 if test "$host_cpu" = ia64; then
13206 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13207 # chokes on -Wl,-G. The following line is correct:
13208 shared_flag='-G'
13209 else
13210 if test "$aix_use_runtimelinking" = yes; then
13211 shared_flag='${wl}-G'
13212 else
13213 shared_flag='${wl}-bM:SRE'
13214 fi
13215 fi
13216 fi
13217
13218 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13219 # It seems that -bexpall does not export symbols beginning with
13220 # underscore (_), so it is better to generate a list of symbols to
13221 # export.
13222 always_export_symbols_CXX=yes
13223 if test "$aix_use_runtimelinking" = yes; then
13224 # Warning - without using the other runtime loading flags (-brtl),
13225 # -berok will link without error, but may produce a broken library.
13226 allow_undefined_flag_CXX='-berok'
13227 # Determine the default libpath from the value encoded in an empty
13228 # executable.
ee134472
JF
13229 if test "${lt_cv_aix_libpath+set}" = set; then
13230 aix_libpath=$lt_cv_aix_libpath
13231else
13232 if ${lt_cv_aix_libpath__CXX+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234else
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13236/* end confdefs.h. */
13237
13238int
13239main ()
13240{
13241
13242 ;
13243 return 0;
13244}
13245_ACEOF
47aaa820 13246if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13247
ee134472
JF
13248 lt_aix_libpath_sed='
13249 /Import File Strings/,/^$/ {
13250 /^0/ {
13251 s/^0 *\([^ ]*\) *$/\1/
13252 p
13253 }
13254 }'
13255 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13256 # Check for a 64-bit object if we didn't find anything.
13257 if test -z "$lt_cv_aix_libpath__CXX"; then
13258 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13259 fi
47aaa820
DWT
13260fi
13261rm -f core conftest.err conftest.$ac_objext \
13262 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13263 if test -z "$lt_cv_aix_libpath__CXX"; then
13264 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13265 fi
13266
13267fi
13268
13269 aix_libpath=$lt_cv_aix_libpath__CXX
13270fi
47aaa820
DWT
13271
13272 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13273
ee134472 13274 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
13275 else
13276 if test "$host_cpu" = ia64; then
13277 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13278 allow_undefined_flag_CXX="-z nodefs"
13279 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"
13280 else
13281 # Determine the default libpath from the value encoded in an
13282 # empty executable.
ee134472
JF
13283 if test "${lt_cv_aix_libpath+set}" = set; then
13284 aix_libpath=$lt_cv_aix_libpath
13285else
13286 if ${lt_cv_aix_libpath__CXX+:} false; then :
13287 $as_echo_n "(cached) " >&6
13288else
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13290/* end confdefs.h. */
13291
13292int
13293main ()
13294{
13295
13296 ;
13297 return 0;
13298}
13299_ACEOF
47aaa820 13300if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13301
ee134472
JF
13302 lt_aix_libpath_sed='
13303 /Import File Strings/,/^$/ {
13304 /^0/ {
13305 s/^0 *\([^ ]*\) *$/\1/
13306 p
13307 }
13308 }'
13309 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13310 # Check for a 64-bit object if we didn't find anything.
13311 if test -z "$lt_cv_aix_libpath__CXX"; then
13312 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13313 fi
9c60689e 13314fi
47aaa820
DWT
13315rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13317 if test -z "$lt_cv_aix_libpath__CXX"; then
13318 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13319 fi
13320
13321fi
13322
13323 aix_libpath=$lt_cv_aix_libpath__CXX
13324fi
9c60689e 13325
47aaa820
DWT
13326 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13327 # Warning - without using the other run time loading flags,
13328 # -berok will link without error, but may produce a broken library.
13329 no_undefined_flag_CXX=' ${wl}-bernotok'
13330 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
13331 if test "$with_gnu_ld" = yes; then
13332 # We only use this code for GNU lds that support --whole-archive.
13333 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13334 else
13335 # Exported symbols can be pulled into shared objects from archives
13336 whole_archive_flag_spec_CXX='$convenience'
13337 fi
47aaa820
DWT
13338 archive_cmds_need_lc_CXX=yes
13339 # This is similar to how AIX traditionally builds its shared
13340 # libraries.
13341 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'
13342 fi
13343 fi
13344 ;;
9c60689e 13345
47aaa820
DWT
13346 beos*)
13347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13348 allow_undefined_flag_CXX=unsupported
13349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13350 # support --undefined. This deserves some investigation. FIXME
13351 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13352 else
13353 ld_shlibs_CXX=no
13354 fi
13355 ;;
9c60689e 13356
47aaa820
DWT
13357 chorus*)
13358 case $cc_basename in
13359 *)
13360 # FIXME: insert proper C++ library support
13361 ld_shlibs_CXX=no
13362 ;;
13363 esac
13364 ;;
9c60689e 13365
47aaa820 13366 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13367 case $GXX,$cc_basename in
13368 ,cl* | no,cl*)
13369 # Native MSVC
13370 # hardcode_libdir_flag_spec is actually meaningless, as there is
13371 # no search path for DLLs.
13372 hardcode_libdir_flag_spec_CXX=' '
13373 allow_undefined_flag_CXX=unsupported
13374 always_export_symbols_CXX=yes
13375 file_list_spec_CXX='@'
13376 # Tell ltmain to make .lib files, not .a files.
13377 libext=lib
13378 # Tell ltmain to make .dll files, not .so files.
13379 shrext_cmds=".dll"
13380 # FIXME: Setting linknames here is a bad hack.
13381 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13382 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13383 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13384 else
13385 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13386 fi~
13387 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13388 linknames='
13389 # The linker will not automatically build a static lib if we build a DLL.
13390 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13391 enable_shared_with_static_runtimes_CXX=yes
13392 # Don't use ranlib
13393 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13394 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13395 lt_tool_outputfile="@TOOL_OUTPUT@"~
13396 case $lt_outputfile in
13397 *.exe|*.EXE) ;;
13398 *)
13399 lt_outputfile="$lt_outputfile.exe"
13400 lt_tool_outputfile="$lt_tool_outputfile.exe"
13401 ;;
13402 esac~
13403 func_to_tool_file "$lt_outputfile"~
13404 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13405 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13406 $RM "$lt_outputfile.manifest";
13407 fi'
13408 ;;
13409 *)
13410 # g++
13411 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13412 # as there is no search path for DLLs.
13413 hardcode_libdir_flag_spec_CXX='-L$libdir'
13414 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13415 allow_undefined_flag_CXX=unsupported
13416 always_export_symbols_CXX=no
13417 enable_shared_with_static_runtimes_CXX=yes
13418
13419 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13420 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'
13421 # If the export-symbols file already is a .def file (1st line
13422 # is EXPORTS), use it as is; otherwise, prepend...
13423 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13424 cp $export_symbols $output_objdir/$soname.def;
13425 else
13426 echo EXPORTS > $output_objdir/$soname.def;
13427 cat $export_symbols >> $output_objdir/$soname.def;
13428 fi~
13429 $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'
13430 else
13431 ld_shlibs_CXX=no
13432 fi
13433 ;;
13434 esac
13435 ;;
47aaa820 13436 darwin* | rhapsody*)
9c60689e 13437
9c60689e 13438
47aaa820
DWT
13439 archive_cmds_need_lc_CXX=no
13440 hardcode_direct_CXX=no
13441 hardcode_automatic_CXX=yes
13442 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
13443 if test "$lt_cv_ld_force_load" = "yes"; then
13444 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 13445
ee134472
JF
13446 else
13447 whole_archive_flag_spec_CXX=''
13448 fi
47aaa820
DWT
13449 link_all_deplibs_CXX=yes
13450 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13451 case $cc_basename in
13452 ifort*) _lt_dar_can_shared=yes ;;
13453 *) _lt_dar_can_shared=$GCC ;;
13454 esac
13455 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 13456 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13457 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}"
13458 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13459 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}"
13460 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}"
13461 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13462 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}"
13463 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}"
13464 fi
9c60689e 13465
47aaa820
DWT
13466 else
13467 ld_shlibs_CXX=no
13468 fi
9c60689e 13469
47aaa820 13470 ;;
9c60689e 13471
47aaa820
DWT
13472 dgux*)
13473 case $cc_basename in
13474 ec++*)
13475 # FIXME: insert proper C++ library support
13476 ld_shlibs_CXX=no
13477 ;;
13478 ghcx*)
13479 # Green Hills C++ Compiler
13480 # FIXME: insert proper C++ library support
13481 ld_shlibs_CXX=no
13482 ;;
13483 *)
13484 # FIXME: insert proper C++ library support
13485 ld_shlibs_CXX=no
13486 ;;
13487 esac
13488 ;;
9c60689e 13489
53ba6704 13490 freebsd2.*)
47aaa820
DWT
13491 # C++ shared libraries reported to be fairly broken before
13492 # switch to ELF
13493 ld_shlibs_CXX=no
13494 ;;
9c60689e 13495
47aaa820
DWT
13496 freebsd-elf*)
13497 archive_cmds_need_lc_CXX=no
13498 ;;
9c60689e 13499
47aaa820
DWT
13500 freebsd* | dragonfly*)
13501 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13502 # conventions
13503 ld_shlibs_CXX=yes
13504 ;;
9c60689e 13505
47aaa820
DWT
13506 gnu*)
13507 ;;
9c60689e 13508
ee134472
JF
13509 haiku*)
13510 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511 link_all_deplibs_CXX=yes
13512 ;;
13513
47aaa820
DWT
13514 hpux9*)
13515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13516 hardcode_libdir_separator_CXX=:
13517 export_dynamic_flag_spec_CXX='${wl}-E'
13518 hardcode_direct_CXX=yes
13519 hardcode_minus_L_CXX=yes # Not in the search PATH,
13520 # but as the default
13521 # location of the library.
9c60689e 13522
47aaa820
DWT
13523 case $cc_basename in
13524 CC*)
13525 # FIXME: insert proper C++ library support
13526 ld_shlibs_CXX=no
13527 ;;
13528 aCC*)
13529 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'
13530 # Commands to make compiler produce verbose output that lists
13531 # what "hidden" libraries, object files and flags are used when
13532 # linking a shared library.
13533 #
13534 # There doesn't appear to be a way to prevent this compiler from
13535 # explicitly linking system object files so we need to strip them
13536 # from the output so that they don't get included in the library
13537 # dependencies.
ee134472 13538 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
13539 ;;
13540 *)
13541 if test "$GXX" = yes; then
ee134472 13542 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
13543 else
13544 # FIXME: insert proper C++ library support
13545 ld_shlibs_CXX=no
13546 fi
13547 ;;
13548 esac
13549 ;;
9c60689e 13550
47aaa820
DWT
13551 hpux10*|hpux11*)
13552 if test $with_gnu_ld = no; then
13553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13554 hardcode_libdir_separator_CXX=:
9c60689e 13555
47aaa820
DWT
13556 case $host_cpu in
13557 hppa*64*|ia64*)
13558 ;;
13559 *)
13560 export_dynamic_flag_spec_CXX='${wl}-E'
13561 ;;
13562 esac
13563 fi
13564 case $host_cpu in
13565 hppa*64*|ia64*)
13566 hardcode_direct_CXX=no
13567 hardcode_shlibpath_var_CXX=no
13568 ;;
13569 *)
13570 hardcode_direct_CXX=yes
13571 hardcode_direct_absolute_CXX=yes
13572 hardcode_minus_L_CXX=yes # Not in the search PATH,
13573 # but as the default
13574 # location of the library.
13575 ;;
13576 esac
9c60689e 13577
47aaa820
DWT
13578 case $cc_basename in
13579 CC*)
13580 # FIXME: insert proper C++ library support
13581 ld_shlibs_CXX=no
13582 ;;
13583 aCC*)
13584 case $host_cpu in
13585 hppa*64*)
13586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13587 ;;
13588 ia64*)
13589 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13590 ;;
13591 *)
13592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13593 ;;
13594 esac
13595 # Commands to make compiler produce verbose output that lists
13596 # what "hidden" libraries, object files and flags are used when
13597 # linking a shared library.
13598 #
13599 # There doesn't appear to be a way to prevent this compiler from
13600 # explicitly linking system object files so we need to strip them
13601 # from the output so that they don't get included in the library
13602 # dependencies.
ee134472 13603 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
13604 ;;
13605 *)
13606 if test "$GXX" = yes; then
13607 if test $with_gnu_ld = no; then
13608 case $host_cpu in
13609 hppa*64*)
13610 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13611 ;;
13612 ia64*)
ee134472 13613 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
13614 ;;
13615 *)
ee134472 13616 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
13617 ;;
13618 esac
13619 fi
13620 else
13621 # FIXME: insert proper C++ library support
13622 ld_shlibs_CXX=no
13623 fi
13624 ;;
13625 esac
13626 ;;
9c60689e 13627
47aaa820
DWT
13628 interix[3-9]*)
13629 hardcode_direct_CXX=no
13630 hardcode_shlibpath_var_CXX=no
13631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13632 export_dynamic_flag_spec_CXX='${wl}-E'
13633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13634 # Instead, shared libraries are loaded at an image base (0x10000000 by
13635 # default) and relocated if they conflict, which is a slow very memory
13636 # consuming and fragmenting process. To avoid this, we pick a random,
13637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13638 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13639 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'
13640 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'
13641 ;;
13642 irix5* | irix6*)
13643 case $cc_basename in
13644 CC*)
13645 # SGI C++
ee134472 13646 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 13647
47aaa820
DWT
13648 # Archives containing C++ object files must be created using
13649 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13650 # necessary to make sure instantiated templates are included
13651 # in the archive.
13652 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13653 ;;
13654 *)
13655 if test "$GXX" = yes; then
13656 if test "$with_gnu_ld" = no; then
ee134472 13657 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 13658 else
ee134472 13659 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
13660 fi
13661 fi
13662 link_all_deplibs_CXX=yes
13663 ;;
13664 esac
13665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13666 hardcode_libdir_separator_CXX=:
13667 inherit_rpath_CXX=yes
13668 ;;
9c60689e 13669
1504c9b8 13670 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13671 case $cc_basename in
13672 KCC*)
13673 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13674
47aaa820
DWT
13675 # KCC will only create a shared library if the output file
13676 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13677 # to its proper name (with version) after linking.
13678 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'
13679 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'
13680 # Commands to make compiler produce verbose output that lists
13681 # what "hidden" libraries, object files and flags are used when
13682 # linking a shared library.
13683 #
13684 # There doesn't appear to be a way to prevent this compiler from
13685 # explicitly linking system object files so we need to strip them
13686 # from the output so that they don't get included in the library
13687 # dependencies.
ee134472 13688 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 13689
47aaa820
DWT
13690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13692
47aaa820
DWT
13693 # Archives containing C++ object files must be created using
13694 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13695 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13696 ;;
13697 icpc* | ecpc* )
13698 # Intel C++
13699 with_gnu_ld=yes
13700 # version 8.0 and above of icpc choke on multiply defined symbols
13701 # if we add $predep_objects and $postdep_objects, however 7.1 and
13702 # earlier do not add the objects themselves.
13703 case `$CC -V 2>&1` in
13704 *"Version 7."*)
13705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13706 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'
13707 ;;
13708 *) # Version 8.0 or newer
13709 tmp_idyn=
13710 case $host_cpu in
13711 ia64*) tmp_idyn=' -i_dynamic';;
13712 esac
13713 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13714 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'
13715 ;;
13716 esac
13717 archive_cmds_need_lc_CXX=no
13718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13720 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13721 ;;
13722 pgCC* | pgcpp*)
13723 # Portland Group C++ compiler
13724 case `$CC -V` in
ee134472 13725 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
13726 prelink_cmds_CXX='tpldir=Template.dir~
13727 rm -rf $tpldir~
13728 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 13729 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
13730 old_archive_cmds_CXX='tpldir=Template.dir~
13731 rm -rf $tpldir~
13732 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 13733 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
13734 $RANLIB $oldlib'
13735 archive_cmds_CXX='tpldir=Template.dir~
13736 rm -rf $tpldir~
13737 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13738 $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
13739 archive_expsym_cmds_CXX='tpldir=Template.dir~
13740 rm -rf $tpldir~
13741 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13742 $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 13743 ;;
ee134472 13744 *) # Version 6 and above use weak symbols
47aaa820
DWT
13745 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13746 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'
13747 ;;
13748 esac
9c60689e 13749
47aaa820
DWT
13750 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 13752 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
13753 ;;
13754 cxx*)
13755 # Compaq C++
13756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13757 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 13758
47aaa820
DWT
13759 runpath_var=LD_RUN_PATH
13760 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13761 hardcode_libdir_separator_CXX=:
9c60689e 13762
47aaa820
DWT
13763 # Commands to make compiler produce verbose output that lists
13764 # what "hidden" libraries, object files and flags are used when
13765 # linking a shared library.
13766 #
13767 # There doesn't appear to be a way to prevent this compiler from
13768 # explicitly linking system object files so we need to strip them
13769 # from the output so that they don't get included in the library
13770 # dependencies.
ee134472 13771 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 13772 ;;
ee134472 13773 xl* | mpixl* | bgxl*)
47aaa820
DWT
13774 # IBM XL 8.0 on PPC, with GNU ld
13775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13777 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13778 if test "x$supports_anon_versioning" = xyes; then
13779 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13781 echo "local: *; };" >> $output_objdir/$libname.ver~
13782 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13783 fi
13784 ;;
13785 *)
13786 case `$CC -V 2>&1 | sed 5q` in
13787 *Sun\ C*)
13788 # Sun C++ 5.9
13789 no_undefined_flag_CXX=' -zdefs'
13790 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13791 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'
13792 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 13793 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 13794 compiler_needs_object_CXX=yes
9c60689e 13795
47aaa820
DWT
13796 # Not sure whether something based on
13797 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13798 # would be better.
ee134472 13799 output_verbose_link_cmd='func_echo_all'
9c60689e 13800
47aaa820
DWT
13801 # Archives containing C++ object files must be created using
13802 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13803 # necessary to make sure instantiated templates are included
13804 # in the archive.
13805 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13806 ;;
13807 esac
13808 ;;
13809 esac
13810 ;;
9c60689e 13811
47aaa820
DWT
13812 lynxos*)
13813 # FIXME: insert proper C++ library support
13814 ld_shlibs_CXX=no
13815 ;;
9c60689e 13816
47aaa820
DWT
13817 m88k*)
13818 # FIXME: insert proper C++ library support
13819 ld_shlibs_CXX=no
13820 ;;
9c60689e 13821
47aaa820
DWT
13822 mvs*)
13823 case $cc_basename in
13824 cxx*)
13825 # FIXME: insert proper C++ library support
13826 ld_shlibs_CXX=no
13827 ;;
13828 *)
13829 # FIXME: insert proper C++ library support
13830 ld_shlibs_CXX=no
13831 ;;
13832 esac
13833 ;;
9c60689e 13834
47aaa820
DWT
13835 netbsd*)
13836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13837 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13838 wlarc=
13839 hardcode_libdir_flag_spec_CXX='-R$libdir'
13840 hardcode_direct_CXX=yes
13841 hardcode_shlibpath_var_CXX=no
13842 fi
13843 # Workaround some broken pre-1.5 toolchains
13844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 13845 ;;
47aaa820
DWT
13846
13847 *nto* | *qnx*)
13848 ld_shlibs_CXX=yes
9c60689e 13849 ;;
9c60689e 13850
47aaa820
DWT
13851 openbsd2*)
13852 # C++ shared libraries are fairly broken
13853 ld_shlibs_CXX=no
13854 ;;
9c60689e 13855
47aaa820
DWT
13856 openbsd*)
13857 if test -f /usr/libexec/ld.so; then
13858 hardcode_direct_CXX=yes
13859 hardcode_shlibpath_var_CXX=no
13860 hardcode_direct_absolute_CXX=yes
13861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13864 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13865 export_dynamic_flag_spec_CXX='${wl}-E'
13866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13867 fi
ee134472 13868 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13869 else
13870 ld_shlibs_CXX=no
13871 fi
13872 ;;
9c60689e 13873
47aaa820
DWT
13874 osf3* | osf4* | osf5*)
13875 case $cc_basename in
13876 KCC*)
13877 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13878
47aaa820
DWT
13879 # KCC will only create a shared library if the output file
13880 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13881 # to its proper name (with version) after linking.
13882 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 13883
47aaa820
DWT
13884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13885 hardcode_libdir_separator_CXX=:
9c60689e 13886
47aaa820
DWT
13887 # Archives containing C++ object files must be created using
13888 # the KAI C++ compiler.
13889 case $host in
13890 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13891 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13892 esac
13893 ;;
13894 RCC*)
13895 # Rational C++ 2.4.1
13896 # FIXME: insert proper C++ library support
13897 ld_shlibs_CXX=no
13898 ;;
13899 cxx*)
13900 case $host in
13901 osf3*)
13902 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 13903 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
13904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13905 ;;
13906 *)
13907 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 13908 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
13909 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13910 echo "-hidden">> $lib.exp~
ee134472 13911 $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
13912 $RM $lib.exp'
13913 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13914 ;;
13915 esac
9c60689e 13916
47aaa820 13917 hardcode_libdir_separator_CXX=:
9c60689e 13918
47aaa820
DWT
13919 # Commands to make compiler produce verbose output that lists
13920 # what "hidden" libraries, object files and flags are used when
13921 # linking a shared library.
13922 #
13923 # There doesn't appear to be a way to prevent this compiler from
13924 # explicitly linking system object files so we need to strip them
13925 # from the output so that they don't get included in the library
13926 # dependencies.
ee134472 13927 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
13928 ;;
13929 *)
13930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13932 case $host in
13933 osf3*)
ee134472 13934 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
13935 ;;
13936 *)
ee134472 13937 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
13938 ;;
13939 esac
9c60689e 13940
47aaa820
DWT
13941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13942 hardcode_libdir_separator_CXX=:
9c60689e 13943
47aaa820
DWT
13944 # Commands to make compiler produce verbose output that lists
13945 # what "hidden" libraries, object files and flags are used when
13946 # linking a shared library.
ee134472 13947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 13948
47aaa820
DWT
13949 else
13950 # FIXME: insert proper C++ library support
13951 ld_shlibs_CXX=no
13952 fi
13953 ;;
13954 esac
13955 ;;
9c60689e 13956
47aaa820 13957 psos*)
9c60689e
DWT
13958 # FIXME: insert proper C++ library support
13959 ld_shlibs_CXX=no
13960 ;;
9c60689e 13961
47aaa820
DWT
13962 sunos4*)
13963 case $cc_basename in
13964 CC*)
13965 # Sun C++ 4.x
13966 # FIXME: insert proper C++ library support
13967 ld_shlibs_CXX=no
9c60689e 13968 ;;
47aaa820
DWT
13969 lcc*)
13970 # Lucid
13971 # FIXME: insert proper C++ library support
13972 ld_shlibs_CXX=no
13973 ;;
13974 *)
13975 # FIXME: insert proper C++ library support
13976 ld_shlibs_CXX=no
13977 ;;
13978 esac
13979 ;;
9c60689e 13980
47aaa820
DWT
13981 solaris*)
13982 case $cc_basename in
ee134472 13983 CC* | sunCC*)
47aaa820
DWT
13984 # Sun C++ 4.2, 5.x and Centerline C++
13985 archive_cmds_need_lc_CXX=yes
13986 no_undefined_flag_CXX=' -zdefs'
13987 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13988 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13989 $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 13990
47aaa820
DWT
13991 hardcode_libdir_flag_spec_CXX='-R$libdir'
13992 hardcode_shlibpath_var_CXX=no
13993 case $host_os in
13994 solaris2.[0-5] | solaris2.[0-5].*) ;;
13995 *)
13996 # The compiler driver will combine and reorder linker options,
13997 # but understands `-z linker_flag'.
13998 # Supported since Solaris 2.6 (maybe 2.5.1?)
13999 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14000 ;;
14001 esac
14002 link_all_deplibs_CXX=yes
9c60689e 14003
ee134472 14004 output_verbose_link_cmd='func_echo_all'
9c60689e 14005
47aaa820
DWT
14006 # Archives containing C++ object files must be created using
14007 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14008 # necessary to make sure instantiated templates are included
14009 # in the archive.
14010 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14011 ;;
14012 gcx*)
14013 # Green Hills C++ Compiler
14014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 14015
47aaa820
DWT
14016 # The C++ compiler must be used to create the archive.
14017 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14018 ;;
14019 *)
14020 # GNU C++ compiler with Solaris linker
14021 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14022 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14023 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 14024 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 14025 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 14026 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14027
47aaa820
DWT
14028 # Commands to make compiler produce verbose output that lists
14029 # what "hidden" libraries, object files and flags are used when
14030 # linking a shared library.
ee134472 14031 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
14032 else
14033 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14034 # platform.
14035 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14036 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14037 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 14038
47aaa820
DWT
14039 # Commands to make compiler produce verbose output that lists
14040 # what "hidden" libraries, object files and flags are used when
14041 # linking a shared library.
ee134472 14042 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14043 fi
9c60689e 14044
47aaa820
DWT
14045 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14046 case $host_os in
14047 solaris2.[0-5] | solaris2.[0-5].*) ;;
14048 *)
14049 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14050 ;;
14051 esac
14052 fi
14053 ;;
14054 esac
14055 ;;
9c60689e 14056
47aaa820
DWT
14057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14058 no_undefined_flag_CXX='${wl}-z,text'
14059 archive_cmds_need_lc_CXX=no
14060 hardcode_shlibpath_var_CXX=no
14061 runpath_var='LD_RUN_PATH'
9c60689e 14062
47aaa820
DWT
14063 case $cc_basename in
14064 CC*)
14065 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14066 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14067 ;;
14068 *)
14069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14071 ;;
14072 esac
14073 ;;
9c60689e 14074
47aaa820
DWT
14075 sysv5* | sco3.2v5* | sco5v6*)
14076 # Note: We can NOT use -z defs as we might desire, because we do not
14077 # link with -lc, and that would cause any symbols used from libc to
14078 # always be unresolved, which means just about no library would
14079 # ever link correctly. If we're not using GNU ld we use -z text
14080 # though, which does catch some bad symbols but isn't as heavy-handed
14081 # as -z defs.
14082 no_undefined_flag_CXX='${wl}-z,text'
14083 allow_undefined_flag_CXX='${wl}-z,nodefs'
14084 archive_cmds_need_lc_CXX=no
14085 hardcode_shlibpath_var_CXX=no
14086 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14087 hardcode_libdir_separator_CXX=':'
14088 link_all_deplibs_CXX=yes
14089 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14090 runpath_var='LD_RUN_PATH'
9c60689e 14091
47aaa820
DWT
14092 case $cc_basename in
14093 CC*)
14094 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14095 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
14096 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14097 '"$old_archive_cmds_CXX"
14098 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14099 '"$reload_cmds_CXX"
47aaa820
DWT
14100 ;;
14101 *)
14102 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14103 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104 ;;
14105 esac
14106 ;;
9c60689e 14107
47aaa820 14108 tandem*)
9c60689e 14109 case $cc_basename in
47aaa820
DWT
14110 NCC*)
14111 # NonStop-UX NCC 3.20
14112 # FIXME: insert proper C++ library support
14113 ld_shlibs_CXX=no
14114 ;;
9c60689e 14115 *)
47aaa820
DWT
14116 # FIXME: insert proper C++ library support
14117 ld_shlibs_CXX=no
14118 ;;
9c60689e
DWT
14119 esac
14120 ;;
14121
47aaa820
DWT
14122 vxworks*)
14123 # FIXME: insert proper C++ library support
14124 ld_shlibs_CXX=no
14125 ;;
9c60689e 14126
47aaa820
DWT
14127 *)
14128 # FIXME: insert proper C++ library support
14129 ld_shlibs_CXX=no
9c60689e 14130 ;;
47aaa820 14131 esac
9c60689e 14132
47aaa820
DWT
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14134$as_echo "$ld_shlibs_CXX" >&6; }
14135 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 14136
47aaa820
DWT
14137 GCC_CXX="$GXX"
14138 LD_CXX="$LD"
9c60689e 14139
47aaa820
DWT
14140 ## CAVEAT EMPTOR:
14141 ## There is no encapsulation within the following macros, do not change
14142 ## the running order or otherwise move them around unless you know exactly
14143 ## what you are doing...
14144 # Dependencies to place before and after the object being linked:
14145predep_objects_CXX=
14146postdep_objects_CXX=
14147predeps_CXX=
14148postdeps_CXX=
14149compiler_lib_search_path_CXX=
9c60689e 14150
47aaa820
DWT
14151cat > conftest.$ac_ext <<_LT_EOF
14152class Foo
14153{
14154public:
14155 Foo (void) { a = 0; }
14156private:
14157 int a;
14158};
14159_LT_EOF
9c60689e 14160
ee134472
JF
14161
14162_lt_libdeps_save_CFLAGS=$CFLAGS
14163case "$CC $CFLAGS " in #(
14164*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14165*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14166*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14167esac
14168
47aaa820
DWT
14169if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14170 (eval $ac_compile) 2>&5
14171 ac_status=$?
14172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14173 test $ac_status = 0; }; then
14174 # Parse the compiler output and extract the necessary
14175 # objects, libraries and library flags.
9c60689e 14176
47aaa820
DWT
14177 # Sentinel used to keep track of whether or not we are before
14178 # the conftest object file.
14179 pre_test_object_deps_done=no
9c60689e 14180
47aaa820 14181 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 14182 case ${prev}${p} in
9c60689e 14183
47aaa820
DWT
14184 -L* | -R* | -l*)
14185 # Some compilers place space between "-{L,R}" and the path.
14186 # Remove the space.
14187 if test $p = "-L" ||
14188 test $p = "-R"; then
14189 prev=$p
14190 continue
47aaa820 14191 fi
9c60689e 14192
ee134472
JF
14193 # Expand the sysroot to ease extracting the directories later.
14194 if test -z "$prev"; then
14195 case $p in
14196 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14197 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14198 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14199 esac
14200 fi
14201 case $p in
14202 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14203 esac
47aaa820 14204 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
14205 case ${prev} in
14206 -L | -R)
47aaa820
DWT
14207 # Internal compiler library paths should come after those
14208 # provided the user. The postdeps already come after the
14209 # user supplied libs so there is no need to process them.
14210 if test -z "$compiler_lib_search_path_CXX"; then
14211 compiler_lib_search_path_CXX="${prev}${p}"
14212 else
14213 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14214 fi
14215 ;;
14216 # The "-l" case would never come before the object being
14217 # linked, so don't bother handling this case.
14218 esac
14219 else
14220 if test -z "$postdeps_CXX"; then
14221 postdeps_CXX="${prev}${p}"
14222 else
14223 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14224 fi
14225 fi
ee134472 14226 prev=
47aaa820 14227 ;;
9c60689e 14228
ee134472 14229 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14230 *.$objext)
14231 # This assumes that the test object file only shows up
14232 # once in the compiler output.
14233 if test "$p" = "conftest.$objext"; then
14234 pre_test_object_deps_done=yes
14235 continue
14236 fi
9c60689e 14237
47aaa820
DWT
14238 if test "$pre_test_object_deps_done" = no; then
14239 if test -z "$predep_objects_CXX"; then
14240 predep_objects_CXX="$p"
14241 else
14242 predep_objects_CXX="$predep_objects_CXX $p"
14243 fi
14244 else
14245 if test -z "$postdep_objects_CXX"; then
14246 postdep_objects_CXX="$p"
14247 else
14248 postdep_objects_CXX="$postdep_objects_CXX $p"
14249 fi
14250 fi
14251 ;;
9c60689e 14252
47aaa820 14253 *) ;; # Ignore the rest.
9c60689e 14254
47aaa820
DWT
14255 esac
14256 done
9c60689e 14257
47aaa820
DWT
14258 # Clean up.
14259 rm -f a.out a.exe
14260else
14261 echo "libtool.m4: error: problem compiling CXX test program"
14262fi
9c60689e 14263
47aaa820 14264$RM -f confest.$objext
ee134472 14265CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14266
47aaa820
DWT
14267# PORTME: override above test on systems where it is broken
14268case $host_os in
14269interix[3-9]*)
14270 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14271 # hack all around it, let's just trust "g++" to DTRT.
14272 predep_objects_CXX=
14273 postdep_objects_CXX=
14274 postdeps_CXX=
14275 ;;
9c60689e 14276
47aaa820
DWT
14277linux*)
14278 case `$CC -V 2>&1 | sed 5q` in
14279 *Sun\ C*)
14280 # Sun C++ 5.9
9c60689e 14281
47aaa820
DWT
14282 # The more standards-conforming stlport4 library is
14283 # incompatible with the Cstd library. Avoid specifying
14284 # it if it's in CXXFLAGS. Ignore libCrun as
14285 # -library=stlport4 depends on it.
14286 case " $CXX $CXXFLAGS " in
14287 *" -library=stlport4 "*)
14288 solaris_use_stlport4=yes
14289 ;;
14290 esac
9c60689e 14291
47aaa820
DWT
14292 if test "$solaris_use_stlport4" != yes; then
14293 postdeps_CXX='-library=Cstd -library=Crun'
14294 fi
14295 ;;
14296 esac
14297 ;;
9c60689e 14298
47aaa820
DWT
14299solaris*)
14300 case $cc_basename in
ee134472 14301 CC* | sunCC*)
47aaa820
DWT
14302 # The more standards-conforming stlport4 library is
14303 # incompatible with the Cstd library. Avoid specifying
14304 # it if it's in CXXFLAGS. Ignore libCrun as
14305 # -library=stlport4 depends on it.
14306 case " $CXX $CXXFLAGS " in
14307 *" -library=stlport4 "*)
14308 solaris_use_stlport4=yes
14309 ;;
14310 esac
9c60689e 14311
47aaa820
DWT
14312 # Adding this requires a known-good setup of shared libraries for
14313 # Sun compiler versions before 5.6, else PIC objects from an old
14314 # archive will be linked into the output, leading to subtle bugs.
14315 if test "$solaris_use_stlport4" != yes; then
14316 postdeps_CXX='-library=Cstd -library=Crun'
14317 fi
14318 ;;
14319 esac
14320 ;;
14321esac
9c60689e 14322
9c60689e 14323
47aaa820
DWT
14324case " $postdeps_CXX " in
14325*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14326esac
14327 compiler_lib_search_dirs_CXX=
14328if test -n "${compiler_lib_search_path_CXX}"; then
14329 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14330fi
9c60689e 14331
9c60689e 14332
9c60689e 14333
9c60689e 14334
9c60689e 14335
9c60689e 14336
9c60689e 14337
9c60689e 14338
9c60689e 14339
9c60689e 14340
9c60689e 14341
9c60689e 14342
9c60689e 14343
9c60689e 14344
9c60689e 14345
9c60689e 14346
9c60689e 14347
9c60689e 14348
9c60689e 14349
9c60689e 14350
9c60689e 14351
9c60689e 14352
9c60689e 14353
9c60689e 14354
9c60689e 14355
9c60689e 14356
9c60689e 14357
9c60689e 14358
9c60689e 14359
9c60689e 14360
9c60689e 14361
47aaa820
DWT
14362 lt_prog_compiler_wl_CXX=
14363lt_prog_compiler_pic_CXX=
14364lt_prog_compiler_static_CXX=
9c60689e 14365
9c60689e
DWT
14366
14367 # C++ specific cases for pic, static, wl, etc.
14368 if test "$GXX" = yes; then
14369 lt_prog_compiler_wl_CXX='-Wl,'
14370 lt_prog_compiler_static_CXX='-static'
14371
14372 case $host_os in
14373 aix*)
14374 # All AIX code is PIC.
14375 if test "$host_cpu" = ia64; then
14376 # AIX 5 now supports IA64 processor
14377 lt_prog_compiler_static_CXX='-Bstatic'
14378 fi
14379 ;;
14380
14381 amigaos*)
14382 case $host_cpu in
14383 powerpc)
14384 # see comment about AmigaOS4 .so support
14385 lt_prog_compiler_pic_CXX='-fPIC'
14386 ;;
14387 m68k)
14388 # FIXME: we need at least 68020 code to build shared libraries, but
14389 # adding the `-m68020' flag to GCC prevents building anything better,
14390 # like `-m68040'.
14391 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14392 ;;
14393 esac
14394 ;;
14395
14396 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14397 # PIC is the default for these OSes.
14398 ;;
14399 mingw* | cygwin* | os2* | pw32* | cegcc*)
14400 # This hack is so that the source file can tell whether it is being
14401 # built for inclusion in a dll (and should export symbols for example).
14402 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14403 # (--disable-auto-import) libraries
14404 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14405 ;;
14406 darwin* | rhapsody*)
14407 # PIC is the default on this platform
14408 # Common symbols not allowed in MH_DYLIB files
14409 lt_prog_compiler_pic_CXX='-fno-common'
14410 ;;
14411 *djgpp*)
14412 # DJGPP does not support shared libraries at all
14413 lt_prog_compiler_pic_CXX=
14414 ;;
ee134472
JF
14415 haiku*)
14416 # PIC is the default for Haiku.
14417 # The "-static" flag exists, but is broken.
14418 lt_prog_compiler_static_CXX=
14419 ;;
9c60689e
DWT
14420 interix[3-9]*)
14421 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14422 # Instead, we relocate shared libraries at runtime.
14423 ;;
14424 sysv4*MP*)
14425 if test -d /usr/nec; then
14426 lt_prog_compiler_pic_CXX=-Kconform_pic
14427 fi
14428 ;;
14429 hpux*)
14430 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14431 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14432 # sets the default TLS model and affects inlining.
14433 case $host_cpu in
14434 hppa*64*)
14435 ;;
14436 *)
14437 lt_prog_compiler_pic_CXX='-fPIC'
14438 ;;
14439 esac
14440 ;;
14441 *qnx* | *nto*)
14442 # QNX uses GNU C++, but need to define -shared option too, otherwise
14443 # it will coredump.
14444 lt_prog_compiler_pic_CXX='-fPIC -shared'
14445 ;;
14446 *)
14447 lt_prog_compiler_pic_CXX='-fPIC'
14448 ;;
14449 esac
14450 else
14451 case $host_os in
14452 aix[4-9]*)
14453 # All AIX code is PIC.
14454 if test "$host_cpu" = ia64; then
14455 # AIX 5 now supports IA64 processor
14456 lt_prog_compiler_static_CXX='-Bstatic'
14457 else
14458 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14459 fi
14460 ;;
14461 chorus*)
14462 case $cc_basename in
14463 cxch68*)
14464 # Green Hills C++ Compiler
14465 # _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"
14466 ;;
14467 esac
14468 ;;
ee134472
JF
14469 mingw* | cygwin* | os2* | pw32* | cegcc*)
14470 # This hack is so that the source file can tell whether it is being
14471 # built for inclusion in a dll (and should export symbols for example).
14472 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14473 ;;
9c60689e
DWT
14474 dgux*)
14475 case $cc_basename in
14476 ec++*)
14477 lt_prog_compiler_pic_CXX='-KPIC'
14478 ;;
14479 ghcx*)
14480 # Green Hills C++ Compiler
14481 lt_prog_compiler_pic_CXX='-pic'
14482 ;;
14483 *)
14484 ;;
14485 esac
14486 ;;
14487 freebsd* | dragonfly*)
14488 # FreeBSD uses GNU C++
14489 ;;
14490 hpux9* | hpux10* | hpux11*)
14491 case $cc_basename in
14492 CC*)
14493 lt_prog_compiler_wl_CXX='-Wl,'
14494 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14495 if test "$host_cpu" != ia64; then
14496 lt_prog_compiler_pic_CXX='+Z'
14497 fi
14498 ;;
14499 aCC*)
14500 lt_prog_compiler_wl_CXX='-Wl,'
14501 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14502 case $host_cpu in
14503 hppa*64*|ia64*)
14504 # +Z the default
14505 ;;
14506 *)
14507 lt_prog_compiler_pic_CXX='+Z'
14508 ;;
14509 esac
14510 ;;
14511 *)
14512 ;;
14513 esac
14514 ;;
14515 interix*)
14516 # This is c89, which is MS Visual C++ (no shared libs)
14517 # Anyone wants to do a port?
14518 ;;
14519 irix5* | irix6* | nonstopux*)
14520 case $cc_basename in
14521 CC*)
14522 lt_prog_compiler_wl_CXX='-Wl,'
14523 lt_prog_compiler_static_CXX='-non_shared'
14524 # CC pic flag -KPIC is the default.
14525 ;;
14526 *)
14527 ;;
14528 esac
14529 ;;
1504c9b8 14530 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
14531 case $cc_basename in
14532 KCC*)
14533 # KAI C++ Compiler
14534 lt_prog_compiler_wl_CXX='--backend -Wl,'
14535 lt_prog_compiler_pic_CXX='-fPIC'
14536 ;;
14537 ecpc* )
14538 # old Intel C++ for x86_64 which still supported -KPIC.
14539 lt_prog_compiler_wl_CXX='-Wl,'
14540 lt_prog_compiler_pic_CXX='-KPIC'
14541 lt_prog_compiler_static_CXX='-static'
14542 ;;
14543 icpc* )
14544 # Intel C++, used to be incompatible with GCC.
14545 # ICC 10 doesn't accept -KPIC any more.
14546 lt_prog_compiler_wl_CXX='-Wl,'
14547 lt_prog_compiler_pic_CXX='-fPIC'
14548 lt_prog_compiler_static_CXX='-static'
14549 ;;
14550 pgCC* | pgcpp*)
14551 # Portland Group C++ compiler
14552 lt_prog_compiler_wl_CXX='-Wl,'
14553 lt_prog_compiler_pic_CXX='-fpic'
14554 lt_prog_compiler_static_CXX='-Bstatic'
14555 ;;
14556 cxx*)
14557 # Compaq C++
14558 # Make sure the PIC flag is empty. It appears that all Alpha
14559 # Linux and Compaq Tru64 Unix objects are PIC.
14560 lt_prog_compiler_pic_CXX=
14561 lt_prog_compiler_static_CXX='-non_shared'
14562 ;;
ee134472
JF
14563 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14564 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
14565 lt_prog_compiler_wl_CXX='-Wl,'
14566 lt_prog_compiler_pic_CXX='-qpic'
14567 lt_prog_compiler_static_CXX='-qstaticlink'
14568 ;;
14569 *)
14570 case `$CC -V 2>&1 | sed 5q` in
14571 *Sun\ C*)
14572 # Sun C++ 5.9
14573 lt_prog_compiler_pic_CXX='-KPIC'
14574 lt_prog_compiler_static_CXX='-Bstatic'
14575 lt_prog_compiler_wl_CXX='-Qoption ld '
14576 ;;
14577 esac
14578 ;;
14579 esac
14580 ;;
14581 lynxos*)
14582 ;;
14583 m88k*)
14584 ;;
14585 mvs*)
14586 case $cc_basename in
14587 cxx*)
14588 lt_prog_compiler_pic_CXX='-W c,exportall'
14589 ;;
14590 *)
14591 ;;
14592 esac
14593 ;;
53ba6704 14594 netbsd*)
9c60689e
DWT
14595 ;;
14596 *qnx* | *nto*)
14597 # QNX uses GNU C++, but need to define -shared option too, otherwise
14598 # it will coredump.
14599 lt_prog_compiler_pic_CXX='-fPIC -shared'
14600 ;;
14601 osf3* | osf4* | osf5*)
14602 case $cc_basename in
14603 KCC*)
14604 lt_prog_compiler_wl_CXX='--backend -Wl,'
14605 ;;
14606 RCC*)
14607 # Rational C++ 2.4.1
14608 lt_prog_compiler_pic_CXX='-pic'
14609 ;;
14610 cxx*)
14611 # Digital/Compaq C++
14612 lt_prog_compiler_wl_CXX='-Wl,'
14613 # Make sure the PIC flag is empty. It appears that all Alpha
14614 # Linux and Compaq Tru64 Unix objects are PIC.
14615 lt_prog_compiler_pic_CXX=
14616 lt_prog_compiler_static_CXX='-non_shared'
14617 ;;
14618 *)
14619 ;;
14620 esac
14621 ;;
14622 psos*)
14623 ;;
14624 solaris*)
14625 case $cc_basename in
ee134472 14626 CC* | sunCC*)
9c60689e
DWT
14627 # Sun C++ 4.2, 5.x and Centerline C++
14628 lt_prog_compiler_pic_CXX='-KPIC'
14629 lt_prog_compiler_static_CXX='-Bstatic'
14630 lt_prog_compiler_wl_CXX='-Qoption ld '
14631 ;;
14632 gcx*)
14633 # Green Hills C++ Compiler
14634 lt_prog_compiler_pic_CXX='-PIC'
14635 ;;
14636 *)
14637 ;;
14638 esac
14639 ;;
14640 sunos4*)
14641 case $cc_basename in
14642 CC*)
14643 # Sun C++ 4.x
14644 lt_prog_compiler_pic_CXX='-pic'
14645 lt_prog_compiler_static_CXX='-Bstatic'
14646 ;;
14647 lcc*)
14648 # Lucid
14649 lt_prog_compiler_pic_CXX='-pic'
14650 ;;
14651 *)
14652 ;;
14653 esac
14654 ;;
14655 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14656 case $cc_basename in
14657 CC*)
14658 lt_prog_compiler_wl_CXX='-Wl,'
14659 lt_prog_compiler_pic_CXX='-KPIC'
14660 lt_prog_compiler_static_CXX='-Bstatic'
14661 ;;
14662 esac
14663 ;;
14664 tandem*)
14665 case $cc_basename in
14666 NCC*)
14667 # NonStop-UX NCC 3.20
14668 lt_prog_compiler_pic_CXX='-KPIC'
14669 ;;
14670 *)
14671 ;;
14672 esac
14673 ;;
14674 vxworks*)
14675 ;;
14676 *)
14677 lt_prog_compiler_can_build_shared_CXX=no
14678 ;;
14679 esac
14680 fi
14681
14682case $host_os in
14683 # For platforms which do not support PIC, -DPIC is meaningless:
14684 *djgpp*)
14685 lt_prog_compiler_pic_CXX=
14686 ;;
14687 *)
14688 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14689 ;;
14690esac
9c60689e 14691
ee134472
JF
14692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14693$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14694if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14695 $as_echo_n "(cached) " >&6
14696else
14697 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14698fi
14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14700$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14701lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
14702
14703#
14704# Check to make sure the PIC flag actually works.
14705#
14706if test -n "$lt_prog_compiler_pic_CXX"; then
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14708$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 14709if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
14710 $as_echo_n "(cached) " >&6
14711else
14712 lt_cv_prog_compiler_pic_works_CXX=no
14713 ac_outfile=conftest.$ac_objext
14714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14715 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14716 # Insert the option either (1) after the last *FLAGS variable, or
14717 # (2) before a word containing "conftest.", or (3) at the end.
14718 # Note that $ac_compile itself does not contain backslashes and begins
14719 # with a dollar sign (not a hyphen), so the echo should work correctly.
14720 # The option is referenced via a variable to avoid confusing sed.
14721 lt_compile=`echo "$ac_compile" | $SED \
14722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14724 -e 's:$: $lt_compiler_flag:'`
ee134472 14725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
14726 (eval "$lt_compile" 2>conftest.err)
14727 ac_status=$?
14728 cat conftest.err >&5
ee134472 14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
14730 if (exit $ac_status) && test -s "$ac_outfile"; then
14731 # The compiler can only warn and ignore the option if not recognized
14732 # So say no if there are warnings other than the usual output.
ee134472 14733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
14734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14736 lt_cv_prog_compiler_pic_works_CXX=yes
14737 fi
14738 fi
a93f15c0 14739 $RM conftest*
9c60689e
DWT
14740
14741fi
14742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14743$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14744
14745if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14746 case $lt_prog_compiler_pic_CXX in
14747 "" | " "*) ;;
14748 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14749 esac
14750else
14751 lt_prog_compiler_pic_CXX=
14752 lt_prog_compiler_can_build_shared_CXX=no
14753fi
14754
14755fi
14756
14757
14758
ee134472
JF
14759
14760
47aaa820
DWT
14761#
14762# Check to make sure the static flag actually works.
14763#
14764wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14766$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 14767if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
14768 $as_echo_n "(cached) " >&6
14769else
14770 lt_cv_prog_compiler_static_works_CXX=no
14771 save_LDFLAGS="$LDFLAGS"
14772 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14773 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14775 # The linker can only warn and ignore the option if not recognized
14776 # So say no if there are warnings
14777 if test -s conftest.err; then
14778 # Append any errors to the config.log.
14779 cat conftest.err 1>&5
ee134472 14780 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
14781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14782 if diff conftest.exp conftest.er2 >/dev/null; then
14783 lt_cv_prog_compiler_static_works_CXX=yes
14784 fi
14785 else
14786 lt_cv_prog_compiler_static_works_CXX=yes
14787 fi
14788 fi
14789 $RM -r conftest*
14790 LDFLAGS="$save_LDFLAGS"
14791
14792fi
14793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14794$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14795
14796if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14797 :
14798else
14799 lt_prog_compiler_static_CXX=
14800fi
14801
14802
14803
14804
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14806$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14807if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14808 $as_echo_n "(cached) " >&6
14809else
14810 lt_cv_prog_compiler_c_o_CXX=no
14811 $RM -r conftest 2>/dev/null
14812 mkdir conftest
14813 cd conftest
14814 mkdir out
14815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14816
14817 lt_compiler_flag="-o out/conftest2.$ac_objext"
14818 # Insert the option either (1) after the last *FLAGS variable, or
14819 # (2) before a word containing "conftest.", or (3) at the end.
14820 # Note that $ac_compile itself does not contain backslashes and begins
14821 # with a dollar sign (not a hyphen), so the echo should work correctly.
14822 lt_compile=`echo "$ac_compile" | $SED \
14823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14825 -e 's:$: $lt_compiler_flag:'`
ee134472 14826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14827 (eval "$lt_compile" 2>out/conftest.err)
14828 ac_status=$?
14829 cat out/conftest.err >&5
ee134472 14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14832 then
14833 # The compiler can only warn and ignore the option if not recognized
14834 # So say no if there are warnings
ee134472 14835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14838 lt_cv_prog_compiler_c_o_CXX=yes
14839 fi
14840 fi
14841 chmod u+w . 2>&5
a93f15c0 14842 $RM conftest*
47aaa820
DWT
14843 # SGI C++ compiler will create directory out/ii_files/ for
14844 # template instantiation
14845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14846 $RM out/* && rmdir out
14847 cd ..
14848 $RM -r conftest
a93f15c0 14849 $RM conftest*
47aaa820
DWT
14850
14851fi
14852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14853$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14854
14855
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14858$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14859if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14860 $as_echo_n "(cached) " >&6
14861else
14862 lt_cv_prog_compiler_c_o_CXX=no
14863 $RM -r conftest 2>/dev/null
14864 mkdir conftest
14865 cd conftest
14866 mkdir out
14867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14868
14869 lt_compiler_flag="-o out/conftest2.$ac_objext"
14870 # Insert the option either (1) after the last *FLAGS variable, or
14871 # (2) before a word containing "conftest.", or (3) at the end.
14872 # Note that $ac_compile itself does not contain backslashes and begins
14873 # with a dollar sign (not a hyphen), so the echo should work correctly.
14874 lt_compile=`echo "$ac_compile" | $SED \
14875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14877 -e 's:$: $lt_compiler_flag:'`
ee134472 14878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14879 (eval "$lt_compile" 2>out/conftest.err)
14880 ac_status=$?
14881 cat out/conftest.err >&5
ee134472 14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14884 then
14885 # The compiler can only warn and ignore the option if not recognized
14886 # So say no if there are warnings
ee134472 14887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14890 lt_cv_prog_compiler_c_o_CXX=yes
14891 fi
14892 fi
14893 chmod u+w . 2>&5
a93f15c0 14894 $RM conftest*
47aaa820
DWT
14895 # SGI C++ compiler will create directory out/ii_files/ for
14896 # template instantiation
14897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14898 $RM out/* && rmdir out
14899 cd ..
14900 $RM -r conftest
a93f15c0 14901 $RM conftest*
47aaa820
DWT
14902
14903fi
14904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14905$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14906
14907
14908
14909
14910hard_links="nottested"
14911if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14912 # do not overwrite the value of need_locks provided by the user
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14914$as_echo_n "checking if we can lock with hard links... " >&6; }
14915 hard_links=yes
a93f15c0 14916 $RM conftest*
47aaa820
DWT
14917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14918 touch conftest.a
14919 ln conftest.a conftest.b 2>&5 || hard_links=no
14920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14922$as_echo "$hard_links" >&6; }
14923 if test "$hard_links" = no; then
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14925$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14926 need_locks=warn
14927 fi
14928else
14929 need_locks=no
14930fi
14931
14932
14933
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14935$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14936
14937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14938 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
14939 case $host_os in
14940 aix[4-9]*)
14941 # If we're using GNU nm, then we don't want the "-C" option.
14942 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
14943 # Also, AIX nm treats weak defined symbols like other global defined
14944 # symbols, whereas GNU nm marks them as "W".
47aaa820 14945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 14946 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
14947 else
14948 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'
14949 fi
14950 ;;
14951 pw32*)
14952 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 14953 ;;
47aaa820 14954 cygwin* | mingw* | cegcc*)
ee134472 14955 case $cc_basename in
53ba6704
JF
14956 cl*)
14957 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14958 ;;
ee134472
JF
14959 *)
14960 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'
14961 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14962 ;;
14963 esac
14964 ;;
47aaa820
DWT
14965 *)
14966 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14967 ;;
47aaa820 14968 esac
47aaa820
DWT
14969
14970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14971$as_echo "$ld_shlibs_CXX" >&6; }
14972test "$ld_shlibs_CXX" = no && can_build_shared=no
14973
14974with_gnu_ld_CXX=$with_gnu_ld
14975
14976
14977
14978
14979
14980
14981#
14982# Do we need to explicitly link libc?
14983#
14984case "x$archive_cmds_need_lc_CXX" in
14985x|xyes)
14986 # Assume -lc should be added
14987 archive_cmds_need_lc_CXX=yes
14988
14989 if test "$enable_shared" = yes && test "$GCC" = yes; then
14990 case $archive_cmds_CXX in
14991 *'~'*)
14992 # FIXME: we may have to deal with multi-command sequences.
14993 ;;
14994 '$CC '*)
14995 # Test whether the compiler implicitly links with -lc since on some
14996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14997 # to ld, don't add -lc before -lgcc.
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14999$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
15000if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15001 $as_echo_n "(cached) " >&6
15002else
a93f15c0 15003 $RM conftest*
ee134472 15004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 15005
ee134472 15006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
15007 (eval $ac_compile) 2>&5
15008 ac_status=$?
15009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15010 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
15011 soname=conftest
15012 lib=conftest
15013 libobjs=conftest.$ac_objext
15014 deplibs=
15015 wl=$lt_prog_compiler_wl_CXX
15016 pic_flag=$lt_prog_compiler_pic_CXX
15017 compiler_flags=-v
15018 linker_flags=-v
15019 verstring=
15020 output_objdir=.
15021 libname=conftest
15022 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15023 allow_undefined_flag_CXX=
15024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
15025 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15026 ac_status=$?
15027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15028 test $ac_status = 0; }
ee134472
JF
15029 then
15030 lt_cv_archive_cmds_need_lc_CXX=no
15031 else
15032 lt_cv_archive_cmds_need_lc_CXX=yes
15033 fi
15034 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15035 else
15036 cat conftest.err 1>&5
15037 fi
a93f15c0 15038 $RM conftest*
ee134472
JF
15039
15040fi
15041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15042$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15043 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
15044 ;;
15045 esac
15046 fi
15047 ;;
15048esac
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
47aaa820
DWT
15108
15109
15110
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15112$as_echo_n "checking dynamic linker characteristics... " >&6; }
15113
15114library_names_spec=
15115libname_spec='lib$name'
15116soname_spec=
15117shrext_cmds=".so"
15118postinstall_cmds=
15119postuninstall_cmds=
15120finish_cmds=
15121finish_eval=
15122shlibpath_var=
15123shlibpath_overrides_runpath=unknown
15124version_type=none
15125dynamic_linker="$host_os ld.so"
15126sys_lib_dlsearch_path_spec="/lib /usr/lib"
15127need_lib_prefix=unknown
15128hardcode_into_libs=no
15129
15130# when you set need_version to no, make sure it does not cause -set_version
15131# flags to be left without arguments
15132need_version=unknown
15133
15134case $host_os in
15135aix3*)
53ba6704 15136 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15138 shlibpath_var=LIBPATH
15139
15140 # AIX 3 has no versioning support, so we append a major version to the name.
15141 soname_spec='${libname}${release}${shared_ext}$major'
15142 ;;
15143
15144aix[4-9]*)
53ba6704 15145 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15146 need_lib_prefix=no
15147 need_version=no
15148 hardcode_into_libs=yes
15149 if test "$host_cpu" = ia64; then
15150 # AIX 5 supports IA64
15151 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 else
15154 # With GCC up to 2.95.x, collect2 would create an import file
15155 # for dependence libraries. The import file would start with
15156 # the line `#! .'. This would cause the generated library to
15157 # depend on `.', always an invalid library. This was fixed in
15158 # development snapshots of GCC prior to 3.0.
15159 case $host_os in
15160 aix4 | aix4.[01] | aix4.[01].*)
15161 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15162 echo ' yes '
15163 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15164 :
15165 else
15166 can_build_shared=no
15167 fi
15168 ;;
15169 esac
15170 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15171 # soname into executable. Probably we can add versioning support to
15172 # collect2, so additional links can be useful in future.
15173 if test "$aix_use_runtimelinking" = yes; then
15174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15175 # instead of lib<name>.a to let people know that these are not
15176 # typical AIX shared libraries.
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 else
15179 # We preserve .a as extension for shared libraries through AIX4.2
15180 # and later when we are not doing run time linking.
15181 library_names_spec='${libname}${release}.a $libname.a'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 fi
15184 shlibpath_var=LIBPATH
15185 fi
15186 ;;
15187
15188amigaos*)
15189 case $host_cpu in
15190 powerpc)
15191 # Since July 2007 AmigaOS4 officially supports .so libraries.
15192 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 ;;
15195 m68k)
15196 library_names_spec='$libname.ixlibrary $libname.a'
15197 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 15198 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
15199 ;;
15200 esac
15201 ;;
15202
15203beos*)
15204 library_names_spec='${libname}${shared_ext}'
15205 dynamic_linker="$host_os ld.so"
15206 shlibpath_var=LIBRARY_PATH
15207 ;;
15208
15209bsdi[45]*)
53ba6704 15210 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15211 need_version=no
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15217 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15218 # the default ld.so.conf also contains /usr/contrib/lib and
15219 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15220 # libtool to hard-code these into programs
15221 ;;
9c60689e 15222
47aaa820
DWT
15223cygwin* | mingw* | pw32* | cegcc*)
15224 version_type=windows
15225 shrext_cmds=".dll"
15226 need_version=no
15227 need_lib_prefix=no
9c60689e 15228
ee134472
JF
15229 case $GCC,$cc_basename in
15230 yes,*)
15231 # gcc
47aaa820
DWT
15232 library_names_spec='$libname.dll.a'
15233 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15234 postinstall_cmds='base_file=`basename \${file}`~
15235 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15236 dldir=$destdir/`dirname \$dlpath`~
15237 test -d \$dldir || mkdir -p \$dldir~
15238 $install_prog $dir/$dlname \$dldir/$dlname~
15239 chmod a+x \$dldir/$dlname~
15240 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15241 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15242 fi'
15243 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15244 dlpath=$dir/\$dldll~
15245 $RM \$dlpath'
15246 shlibpath_overrides_runpath=yes
9c60689e 15247
47aaa820
DWT
15248 case $host_os in
15249 cygwin*)
15250 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15251 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 15252
47aaa820
DWT
15253 ;;
15254 mingw* | cegcc*)
15255 # MinGW DLLs use traditional 'lib' prefix
15256 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
15257 ;;
15258 pw32*)
15259 # pw32 DLLs use 'pw' prefix rather than 'lib'
15260 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15261 ;;
15262 esac
ee134472
JF
15263 dynamic_linker='Win32 ld.exe'
15264 ;;
15265
15266 *,cl*)
15267 # Native MSVC
15268 libname_spec='$name'
15269 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270 library_names_spec='${libname}.dll.lib'
15271
15272 case $build_os in
15273 mingw*)
15274 sys_lib_search_path_spec=
15275 lt_save_ifs=$IFS
15276 IFS=';'
15277 for lt_path in $LIB
15278 do
15279 IFS=$lt_save_ifs
15280 # Let DOS variable expansion print the short 8.3 style file name.
15281 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15282 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15283 done
15284 IFS=$lt_save_ifs
15285 # Convert to MSYS style.
15286 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15287 ;;
15288 cygwin*)
15289 # Convert to unix form, then to dos form, then back to unix form
15290 # but this time dos style (no spaces!) so that the unix form looks
15291 # like /cygdrive/c/PROGRA~1:/cygdr...
15292 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15293 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15294 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15295 ;;
15296 *)
15297 sys_lib_search_path_spec="$LIB"
15298 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15299 # It is most probably a Windows format PATH.
15300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15301 else
15302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15303 fi
15304 # FIXME: find the short name or the path components, as spaces are
15305 # common. (e.g. "Program Files" -> "PROGRA~1")
15306 ;;
15307 esac
15308
15309 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15310 postinstall_cmds='base_file=`basename \${file}`~
15311 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15312 dldir=$destdir/`dirname \$dlpath`~
15313 test -d \$dldir || mkdir -p \$dldir~
15314 $install_prog $dir/$dlname \$dldir/$dlname'
15315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15316 dlpath=$dir/\$dldll~
15317 $RM \$dlpath'
15318 shlibpath_overrides_runpath=yes
15319 dynamic_linker='Win32 link.exe'
47aaa820 15320 ;;
9c60689e 15321
47aaa820 15322 *)
ee134472 15323 # Assume MSVC wrapper
47aaa820 15324 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 15325 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15326 ;;
15327 esac
47aaa820
DWT
15328 # FIXME: first we should search . and the directory the executable is in
15329 shlibpath_var=PATH
15330 ;;
9c60689e 15331
47aaa820
DWT
15332darwin* | rhapsody*)
15333 dynamic_linker="$host_os dyld"
15334 version_type=darwin
15335 need_lib_prefix=no
15336 need_version=no
15337 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15338 soname_spec='${libname}${release}${major}$shared_ext'
15339 shlibpath_overrides_runpath=yes
15340 shlibpath_var=DYLD_LIBRARY_PATH
15341 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15342
47aaa820
DWT
15343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15344 ;;
9c60689e 15345
47aaa820 15346dgux*)
53ba6704 15347 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15348 need_lib_prefix=no
15349 need_version=no
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 shlibpath_var=LD_LIBRARY_PATH
15353 ;;
9c60689e 15354
47aaa820
DWT
15355freebsd* | dragonfly*)
15356 # DragonFly does not have aout. When/if they implement a new
15357 # versioning mechanism, adjust this.
15358 if test -x /usr/bin/objformat; then
15359 objformat=`/usr/bin/objformat`
15360 else
15361 case $host_os in
53ba6704 15362 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15363 *) objformat=elf ;;
15364 esac
15365 fi
15366 version_type=freebsd-$objformat
15367 case $version_type in
15368 freebsd-elf*)
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15370 need_version=no
15371 need_lib_prefix=no
15372 ;;
15373 freebsd-*)
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15375 need_version=yes
15376 ;;
15377 esac
15378 shlibpath_var=LD_LIBRARY_PATH
15379 case $host_os in
53ba6704 15380 freebsd2.*)
47aaa820
DWT
15381 shlibpath_overrides_runpath=yes
15382 ;;
15383 freebsd3.[01]* | freebsdelf3.[01]*)
15384 shlibpath_overrides_runpath=yes
15385 hardcode_into_libs=yes
15386 ;;
15387 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15388 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15389 shlibpath_overrides_runpath=no
15390 hardcode_into_libs=yes
15391 ;;
15392 *) # from 4.6 on, and DragonFly
15393 shlibpath_overrides_runpath=yes
15394 hardcode_into_libs=yes
15395 ;;
15396 esac
15397 ;;
9c60689e 15398
47aaa820 15399gnu*)
53ba6704 15400 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15401 need_lib_prefix=no
15402 need_version=no
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15404 soname_spec='${libname}${release}${shared_ext}$major'
15405 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
15406 shlibpath_overrides_runpath=no
15407 hardcode_into_libs=yes
15408 ;;
15409
15410haiku*)
53ba6704 15411 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15412 need_lib_prefix=no
15413 need_version=no
15414 dynamic_linker="$host_os runtime_loader"
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 shlibpath_var=LIBRARY_PATH
15418 shlibpath_overrides_runpath=yes
15419 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15420 hardcode_into_libs=yes
15421 ;;
9c60689e 15422
47aaa820
DWT
15423hpux9* | hpux10* | hpux11*)
15424 # Give a soname corresponding to the major version so that dld.sl refuses to
15425 # link against other versions.
15426 version_type=sunos
15427 need_lib_prefix=no
15428 need_version=no
15429 case $host_cpu in
15430 ia64*)
15431 shrext_cmds='.so'
15432 hardcode_into_libs=yes
15433 dynamic_linker="$host_os dld.so"
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 if test "X$HPUX_IA64_MODE" = X32; then
15439 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15440 else
15441 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15442 fi
15443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15444 ;;
15445 hppa*64*)
15446 shrext_cmds='.sl'
15447 hardcode_into_libs=yes
15448 dynamic_linker="$host_os dld.sl"
15449 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452 soname_spec='${libname}${release}${shared_ext}$major'
15453 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15455 ;;
15456 *)
15457 shrext_cmds='.sl'
15458 dynamic_linker="$host_os dld.sl"
15459 shlibpath_var=SHLIB_PATH
15460 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 ;;
15464 esac
ee134472 15465 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 15466 postinstall_cmds='chmod 555 $lib'
ee134472
JF
15467 # or fails outright, so override atomically:
15468 install_override_mode=555
47aaa820 15469 ;;
9c60689e 15470
47aaa820 15471interix[3-9]*)
53ba6704 15472 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15473 need_lib_prefix=no
15474 need_version=no
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15481 ;;
9c60689e 15482
47aaa820
DWT
15483irix5* | irix6* | nonstopux*)
15484 case $host_os in
15485 nonstopux*) version_type=nonstopux ;;
15486 *)
15487 if test "$lt_cv_prog_gnu_ld" = yes; then
53ba6704 15488 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15489 else
15490 version_type=irix
15491 fi ;;
15492 esac
15493 need_lib_prefix=no
15494 need_version=no
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15497 case $host_os in
15498 irix5* | nonstopux*)
15499 libsuff= shlibsuff=
15500 ;;
15501 *)
15502 case $LD in # libtool.m4 will add one of these switches to LD
15503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15504 libsuff= shlibsuff= libmagic=32-bit;;
15505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15506 libsuff=32 shlibsuff=N32 libmagic=N32;;
15507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15509 *) libsuff= shlibsuff= libmagic=never-match;;
15510 esac
15511 ;;
15512 esac
15513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15514 shlibpath_overrides_runpath=no
15515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15517 hardcode_into_libs=yes
15518 ;;
9c60689e 15519
47aaa820
DWT
15520# No shared lib support for Linux oldld, aout, or coff.
15521linux*oldld* | linux*aout* | linux*coff*)
15522 dynamic_linker=no
15523 ;;
9c60689e 15524
53ba6704 15525# This must be glibc/ELF.
1504c9b8 15526linux* | k*bsd*-gnu | kopensolaris*-gnu)
53ba6704 15527 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15528 need_lib_prefix=no
15529 need_version=no
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=no
ee134472 15535
47aaa820 15536 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
15537 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15538 $as_echo_n "(cached) " >&6
15539else
15540 lt_cv_shlibpath_overrides_runpath=no
15541 save_LDFLAGS=$LDFLAGS
15542 save_libdir=$libdir
15543 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15544 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 15546/* end confdefs.h. */
9c60689e 15547
47aaa820
DWT
15548int
15549main ()
15550{
9c60689e 15551
47aaa820
DWT
15552 ;
15553 return 0;
15554}
15555_ACEOF
15556if ac_fn_cxx_try_link "$LINENO"; then :
15557 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 15558 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 15559fi
47aaa820
DWT
15560fi
15561rm -f core conftest.err conftest.$ac_objext \
15562 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
15563 LDFLAGS=$save_LDFLAGS
15564 libdir=$save_libdir
15565
15566fi
15567
15568 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 15569
47aaa820
DWT
15570 # This implies no fast_install, which is unacceptable.
15571 # Some rework will be needed to allow for fast_install
15572 # before this can be enabled.
15573 hardcode_into_libs=yes
9c60689e 15574
47aaa820
DWT
15575 # Append ld.so.conf contents to the search path
15576 if test -f /etc/ld.so.conf; then
ee134472 15577 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
15578 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15579 fi
9c60689e 15580
47aaa820
DWT
15581 # We used to test for /lib/ld.so.1 and disable shared libraries on
15582 # powerpc, because MkLinux only supported shared libraries with the
15583 # GNU dynamic linker. Since this was broken with cross compilers,
15584 # most powerpc-linux boxes support dynamic linking these days and
15585 # people can always --disable-shared, the test was removed, and we
15586 # assume the GNU/Linux dynamic linker is in use.
15587 dynamic_linker='GNU/Linux ld.so'
9c60689e 15588 ;;
47aaa820 15589
47aaa820
DWT
15590netbsd*)
15591 version_type=sunos
15592 need_lib_prefix=no
15593 need_version=no
15594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15597 dynamic_linker='NetBSD (a.out) ld.so'
15598 else
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 dynamic_linker='NetBSD ld.elf_so'
15602 fi
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes
15605 hardcode_into_libs=yes
9c60689e 15606 ;;
9c60689e 15607
47aaa820 15608newsos6)
53ba6704 15609 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611 shlibpath_var=LD_LIBRARY_PATH
15612 shlibpath_overrides_runpath=yes
15613 ;;
9c60689e 15614
47aaa820
DWT
15615*nto* | *qnx*)
15616 version_type=qnx
15617 need_lib_prefix=no
15618 need_version=no
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 shlibpath_overrides_runpath=no
15623 hardcode_into_libs=yes
15624 dynamic_linker='ldqnx.so'
15625 ;;
9c60689e 15626
47aaa820
DWT
15627openbsd*)
15628 version_type=sunos
15629 sys_lib_dlsearch_path_spec="/usr/lib"
15630 need_lib_prefix=no
15631 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15632 case $host_os in
15633 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15634 *) need_version=no ;;
15635 esac
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15640 case $host_os in
15641 openbsd2.[89] | openbsd2.[89].*)
15642 shlibpath_overrides_runpath=no
15643 ;;
15644 *)
15645 shlibpath_overrides_runpath=yes
15646 ;;
15647 esac
15648 else
15649 shlibpath_overrides_runpath=yes
15650 fi
15651 ;;
9c60689e 15652
47aaa820
DWT
15653os2*)
15654 libname_spec='$name'
15655 shrext_cmds=".dll"
15656 need_lib_prefix=no
15657 library_names_spec='$libname${shared_ext} $libname.a'
15658 dynamic_linker='OS/2 ld.exe'
15659 shlibpath_var=LIBPATH
15660 ;;
9c60689e 15661
47aaa820
DWT
15662osf3* | osf4* | osf5*)
15663 version_type=osf
15664 need_lib_prefix=no
15665 need_version=no
15666 soname_spec='${libname}${release}${shared_ext}$major'
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 shlibpath_var=LD_LIBRARY_PATH
15669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15670 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15671 ;;
9c60689e 15672
47aaa820
DWT
15673rdos*)
15674 dynamic_linker=no
15675 ;;
9c60689e 15676
47aaa820 15677solaris*)
53ba6704 15678 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15679 need_lib_prefix=no
15680 need_version=no
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682 soname_spec='${libname}${release}${shared_ext}$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 shlibpath_overrides_runpath=yes
15685 hardcode_into_libs=yes
15686 # ldd complains unless libraries are executable
15687 postinstall_cmds='chmod +x $lib'
15688 ;;
9c60689e 15689
47aaa820
DWT
15690sunos4*)
15691 version_type=sunos
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15694 shlibpath_var=LD_LIBRARY_PATH
15695 shlibpath_overrides_runpath=yes
15696 if test "$with_gnu_ld" = yes; then
15697 need_lib_prefix=no
15698 fi
15699 need_version=yes
15700 ;;
9c60689e 15701
47aaa820 15702sysv4 | sysv4.3*)
53ba6704 15703 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 case $host_vendor in
15708 sni)
15709 shlibpath_overrides_runpath=no
15710 need_lib_prefix=no
15711 runpath_var=LD_RUN_PATH
9c60689e 15712 ;;
47aaa820
DWT
15713 siemens)
15714 need_lib_prefix=no
9c60689e 15715 ;;
47aaa820
DWT
15716 motorola)
15717 need_lib_prefix=no
15718 need_version=no
15719 shlibpath_overrides_runpath=no
15720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15721 ;;
15722 esac
9c60689e 15723 ;;
9c60689e 15724
47aaa820
DWT
15725sysv4*MP*)
15726 if test -d /usr/nec ;then
53ba6704 15727 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15729 soname_spec='$libname${shared_ext}.$major'
15730 shlibpath_var=LD_LIBRARY_PATH
15731 fi
15732 ;;
9c60689e 15733
47aaa820
DWT
15734sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15735 version_type=freebsd-elf
15736 need_lib_prefix=no
15737 need_version=no
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 shlibpath_overrides_runpath=yes
15742 hardcode_into_libs=yes
15743 if test "$with_gnu_ld" = yes; then
15744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15745 else
15746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15747 case $host_os in
15748 sco3.2v5*)
15749 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15750 ;;
15751 esac
15752 fi
15753 sys_lib_dlsearch_path_spec='/usr/lib'
15754 ;;
9c60689e 15755
47aaa820
DWT
15756tpf*)
15757 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 15758 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15759 need_lib_prefix=no
15760 need_version=no
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=no
15764 hardcode_into_libs=yes
15765 ;;
9c60689e 15766
47aaa820 15767uts4*)
53ba6704 15768 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770 soname_spec='${libname}${release}${shared_ext}$major'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 ;;
9c60689e 15773
47aaa820
DWT
15774*)
15775 dynamic_linker=no
e9c9a47c
DWT
15776 ;;
15777esac
15778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15779$as_echo "$dynamic_linker" >&6; }
15780test "$dynamic_linker" = no && can_build_shared=no
15781
15782variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15783if test "$GCC" = yes; then
15784 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 15785fi
9c60689e 15786
e9c9a47c
DWT
15787if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15788 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 15789fi
e9c9a47c
DWT
15790if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15791 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 15792fi
9c60689e 15793
9c60689e 15794
9c60689e 15795
9c60689e 15796
47aaa820 15797
47aaa820 15798
47aaa820 15799
9c60689e 15800
9c60689e 15801
47aaa820 15802
47aaa820 15803
47aaa820 15804
47aaa820 15805
47aaa820 15806
47aaa820 15807
47aaa820 15808
47aaa820 15809
9c60689e 15810
9c60689e 15811
9c60689e 15812
9c60689e 15813
9c60689e 15814
e9c9a47c
DWT
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
ee134472
JF
15826
15827
e9c9a47c
DWT
15828
15829
15830
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15832$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15833hardcode_action_CXX=
15834if test -n "$hardcode_libdir_flag_spec_CXX" ||
15835 test -n "$runpath_var_CXX" ||
15836 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15837
15838 # We can hardcode non-existent directories.
15839 if test "$hardcode_direct_CXX" != no &&
15840 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15841 # have to relink, otherwise we might link with an installed library
15842 # when we should be linking with a yet-to-be-installed one
15843 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15844 test "$hardcode_minus_L_CXX" != no; then
15845 # Linking always hardcodes the temporary library directory.
15846 hardcode_action_CXX=relink
15847 else
15848 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15849 hardcode_action_CXX=immediate
15850 fi
15851else
15852 # We cannot hardcode anything, or else we can only hardcode existing
15853 # directories.
15854 hardcode_action_CXX=unsupported
15855fi
15856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15857$as_echo "$hardcode_action_CXX" >&6; }
15858
15859if test "$hardcode_action_CXX" = relink ||
15860 test "$inherit_rpath_CXX" = yes; then
15861 # Fast installation is not supported
15862 enable_fast_install=no
15863elif test "$shlibpath_overrides_runpath" = yes ||
15864 test "$enable_shared" = no; then
15865 # Fast installation is not necessary
15866 enable_fast_install=needless
47aaa820 15867fi
9c60689e 15868
47aaa820 15869
47aaa820 15870
e9c9a47c
DWT
15871
15872
15873
15874
a243b558
JF
15875 fi # test -n "$compiler"
15876
15877 CC=$lt_save_CC
15878 CFLAGS=$lt_save_CFLAGS
15879 LDCXX=$LD
15880 LD=$lt_save_LD
15881 GCC=$lt_save_GCC
15882 with_gnu_ld=$lt_save_with_gnu_ld
15883 lt_cv_path_LDCXX=$lt_cv_path_LD
15884 lt_cv_path_LD=$lt_save_path_LD
15885 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15886 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15887fi # test "$_lt_caught_CXX_error" != yes
15888
15889ac_ext=c
15890ac_cpp='$CPP $CPPFLAGS'
15891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15893ac_compiler_gnu=$ac_cv_c_compiler_gnu
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909 ac_config_commands="$ac_config_commands libtool"
15910
15911
15912
15913
15914# Only expand once:
15915
15916
15917
15918ac_ext=cpp
15919ac_cpp='$CXXCPP $CPPFLAGS'
15920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15923
15924
15925
15926
15927
15928
15929
15930
a93f15c0 15931
a243b558
JF
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
abc804fa
JF
18334for cy_arch in ppc ppc64 i386 x86_64 armv6; do
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=
18433
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18435$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18436if ${ac_cv_framework_JavaScriptCore+:} false; then :
18437 $as_echo_n "(cached) " >&6
18438else
18439
18440 ac_check_framework_save_LIBS=$LIBS
18441 LIBS="-framework JavaScriptCore $LIBS"
18442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443/* end confdefs.h. */
18444
18445 #include <JavaScriptCore/JSBase.h>
18446
18447int
18448main ()
18449{
18450
18451 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18452
18453 ;
18454 return 0;
18455}
18456_ACEOF
18457if ac_fn_cxx_try_link "$LINENO"; then :
18458
18459 ac_cv_framework_JavaScriptCore=yes
18460
18461else
18462 ac_cv_framework_JavaScriptCore=no
18463fi
18464rm -f core conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_framework_save_LIBS
18467
18468fi
18469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18470$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18471 if test $ac_cv_framework_JavaScriptCore = yes; then :
18472
18473
18474 for element in "-framework JavaScriptCore"; do
18475 haveit=
18476 for x in $LIBS; do
18477
18478 acl_save_prefix="$prefix"
18479 prefix="$acl_final_prefix"
18480 acl_save_exec_prefix="$exec_prefix"
18481 exec_prefix="$acl_final_exec_prefix"
18482 eval x=\"$x\"
18483 exec_prefix="$acl_save_exec_prefix"
18484 prefix="$acl_save_prefix"
18485
18486 if test "X$x" = "X$element"; then
18487 haveit=yes
18488 break
18489 fi
18490 done
18491 if test -z "$haveit"; then
18492 LIBS="${LIBS}${LIBS:+ }$element"
18493 fi
18494 done
18495
18496
18497 CY_EXECUTE=1
18498
18499
18500
18501else
18502
18503 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18504
18505pkg_failed=no
18506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 18507$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 18508
7eda51e0
JF
18509if test -n "$WEBKIT_CFLAGS"; then
18510 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18511 elif test -n "$PKG_CONFIG"; then
18512 if test -n "$PKG_CONFIG" && \
18513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18514 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18515 ac_status=$?
18516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18517 test $ac_status = 0; }; then
18518 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
a93f15c0 18519 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
18520else
18521 pkg_failed=yes
18522fi
18523 else
18524 pkg_failed=untried
18525fi
18526if test -n "$WEBKIT_LIBS"; then
18527 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18528 elif test -n "$PKG_CONFIG"; then
18529 if test -n "$PKG_CONFIG" && \
18530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18531 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18532 ac_status=$?
18533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18534 test $ac_status = 0; }; then
18535 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
a93f15c0 18536 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
18537else
18538 pkg_failed=yes
18539fi
18540 else
18541 pkg_failed=untried
18542fi
632b71ea 18543
7eda51e0
JF
18544
18545
18546if test $pkg_failed = yes; then
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18548$as_echo "no" >&6; }
18549
18550if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18551 _pkg_short_errors_supported=yes
18552else
18553 _pkg_short_errors_supported=no
18554fi
18555 if test $_pkg_short_errors_supported = yes; then
a93f15c0 18556 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 18557 else
a93f15c0 18558 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
18559 fi
18560 # Put the nasty error message in config.log where it belongs
18561 echo "$WEBKIT_PKG_ERRORS" >&5
18562
18563 :
18564elif test $pkg_failed = untried; then
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18566$as_echo "no" >&6; }
18567 :
18568else
18569 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18570 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18572$as_echo "yes" >&6; }
18573
18574 CY_EXECUTE=1
18575
18576
7eda51e0
JF
18577 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18578 haveit=
d70419f1 18579 for x in $CPPFLAGS; do
5053a6d1 18580
7eda51e0
JF
18581 acl_save_prefix="$prefix"
18582 prefix="$acl_final_prefix"
18583 acl_save_exec_prefix="$exec_prefix"
18584 exec_prefix="$acl_final_exec_prefix"
18585 eval x=\"$x\"
18586 exec_prefix="$acl_save_exec_prefix"
18587 prefix="$acl_save_prefix"
5053a6d1 18588
7eda51e0
JF
18589 if test "X$x" = "X$element"; then
18590 haveit=yes
18591 break
18592 fi
18593 done
18594 if test -z "$haveit"; then
d70419f1 18595 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
18596 fi
18597 done
5053a6d1 18598
5053a6d1 18599
7eda51e0 18600 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 18601 haveit=
5053a6d1 18602 for x in $LIBS; do
9c60689e 18603
632b71ea
DWT
18604 acl_save_prefix="$prefix"
18605 prefix="$acl_final_prefix"
18606 acl_save_exec_prefix="$exec_prefix"
18607 exec_prefix="$acl_final_exec_prefix"
18608 eval x=\"$x\"
18609 exec_prefix="$acl_save_exec_prefix"
18610 prefix="$acl_save_prefix"
18611
18612 if test "X$x" = "X$element"; then
18613 haveit=yes
18614 break
18615 fi
18616 done
18617 if test -z "$haveit"; then
5053a6d1 18618 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
18619 fi
18620 done
b128dfee 18621
66170b30 18622
7eda51e0
JF
18623fi; if test "x$CY_EXECUTE" = x1; then break; fi
18624 done
5053a6d1
DWT
18625
18626fi
babf7fe8
JF
18627 LTJAVASCRIPTCORE=$LIBS
18628 LIBS=$cy_save
18629
18630
7eda51e0 18631 ;; #(
babf7fe8 18632 no) :
7eda51e0 18633
babf7fe8
JF
18634 CY_EXECUTE=0
18635 ;; #(
18636 JavaScriptCore) :
c823f118 18637
5053a6d1
DWT
18638
18639
babf7fe8
JF
18640 cy_save=$LIBS
18641 LIBS=
18642
5053a6d1
DWT
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18644$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18645if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
18646 $as_echo_n "(cached) " >&6
18647else
18648
5053a6d1
DWT
18649 ac_check_framework_save_LIBS=$LIBS
18650 LIBS="-framework JavaScriptCore $LIBS"
18651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 18652/* end confdefs.h. */
5053a6d1 18653
7eda51e0 18654 #include <JavaScriptCore/JSBase.h>
5053a6d1 18655
632b71ea
DWT
18656int
18657main ()
18658{
66170b30 18659
7eda51e0 18660 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 18661
632b71ea
DWT
18662 ;
18663 return 0;
18664}
18665_ACEOF
5053a6d1
DWT
18666if ac_fn_cxx_try_link "$LINENO"; then :
18667
18668 ac_cv_framework_JavaScriptCore=yes
18669
18670else
18671 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
18672fi
18673rm -f core conftest.err conftest.$ac_objext \
18674 conftest$ac_exeext conftest.$ac_ext
5053a6d1 18675 LIBS=$ac_check_framework_save_LIBS
b128dfee 18676
c823f118 18677fi
5053a6d1
DWT
18678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18679$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18680 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
18681
18682
7eda51e0 18683 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
18684 haveit=
18685 for x in $LIBS; do
18686
18687 acl_save_prefix="$prefix"
18688 prefix="$acl_final_prefix"
18689 acl_save_exec_prefix="$exec_prefix"
18690 exec_prefix="$acl_final_exec_prefix"
18691 eval x=\"$x\"
18692 exec_prefix="$acl_save_exec_prefix"
18693 prefix="$acl_save_prefix"
18694
18695 if test "X$x" = "X$element"; then
18696 haveit=yes
18697 break
18698 fi
18699 done
18700 if test -z "$haveit"; then
18701 LIBS="${LIBS}${LIBS:+ }$element"
18702 fi
18703 done
c823f118 18704
66170b30 18705
7eda51e0
JF
18706 CY_EXECUTE=1
18707
18708
18709
18710else
18711
18712 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18713
18714pkg_failed=no
18715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18716$as_echo_n "checking for WEBKIT... " >&6; }
18717
18718if test -n "$WEBKIT_CFLAGS"; then
18719 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18720 elif test -n "$PKG_CONFIG"; then
18721 if test -n "$PKG_CONFIG" && \
18722 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18723 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18724 ac_status=$?
18725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18726 test $ac_status = 0; }; then
18727 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
a93f15c0 18728 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
18729else
18730 pkg_failed=yes
18731fi
18732 else
18733 pkg_failed=untried
18734fi
18735if test -n "$WEBKIT_LIBS"; then
18736 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18737 elif test -n "$PKG_CONFIG"; then
18738 if test -n "$PKG_CONFIG" && \
18739 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18740 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18741 ac_status=$?
18742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743 test $ac_status = 0; }; then
18744 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
a93f15c0 18745 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
18746else
18747 pkg_failed=yes
18748fi
18749 else
18750 pkg_failed=untried
18751fi
18752
66170b30
JF
18753
18754
7eda51e0
JF
18755if test $pkg_failed = yes; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18757$as_echo "no" >&6; }
b128dfee 18758
7eda51e0
JF
18759if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18760 _pkg_short_errors_supported=yes
18761else
18762 _pkg_short_errors_supported=no
632b71ea 18763fi
7eda51e0 18764 if test $_pkg_short_errors_supported = yes; then
a93f15c0 18765 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 18766 else
a93f15c0 18767 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
18768 fi
18769 # Put the nasty error message in config.log where it belongs
18770 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 18771
7eda51e0
JF
18772 :
18773elif test $pkg_failed = untried; then
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18775$as_echo "no" >&6; }
18776 :
5053a6d1
DWT
18777else
18778 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18779 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18781$as_echo "yes" >&6; }
c823f118 18782
7eda51e0
JF
18783 CY_EXECUTE=1
18784
66170b30 18785
7eda51e0 18786 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 18787 haveit=
d70419f1 18788 for x in $CPPFLAGS; do
c823f118 18789
5053a6d1
DWT
18790 acl_save_prefix="$prefix"
18791 prefix="$acl_final_prefix"
18792 acl_save_exec_prefix="$exec_prefix"
18793 exec_prefix="$acl_final_exec_prefix"
18794 eval x=\"$x\"
18795 exec_prefix="$acl_save_exec_prefix"
18796 prefix="$acl_save_prefix"
c823f118 18797
5053a6d1
DWT
18798 if test "X$x" = "X$element"; then
18799 haveit=yes
18800 break
18801 fi
18802 done
18803 if test -z "$haveit"; then
d70419f1 18804 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
18805 fi
18806 done
c823f118 18807
b66977f1 18808
7eda51e0 18809 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
18810 haveit=
18811 for x in $LIBS; do
18812
18813 acl_save_prefix="$prefix"
18814 prefix="$acl_final_prefix"
18815 acl_save_exec_prefix="$exec_prefix"
18816 exec_prefix="$acl_final_exec_prefix"
18817 eval x=\"$x\"
18818 exec_prefix="$acl_save_exec_prefix"
18819 prefix="$acl_save_prefix"
18820
18821 if test "X$x" = "X$element"; then
18822 haveit=yes
18823 break
18824 fi
18825 done
18826 if test -z "$haveit"; then
18827 LIBS="${LIBS}${LIBS:+ }$element"
18828 fi
18829 done
18830
18831
7eda51e0
JF
18832fi; if test "x$CY_EXECUTE" = x1; then break; fi
18833 done
18834
5053a6d1 18835fi
babf7fe8
JF
18836 LTJAVASCRIPTCORE=$LIBS
18837 LIBS=$cy_save
5053a6d1 18838
b66977f1 18839
babf7fe8
JF
18840 ;; #(
18841 *) :
18842 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18843esac
b66977f1 18844
babf7fe8 18845else
b66977f1 18846
7eda51e0 18847
7eda51e0 18848
babf7fe8
JF
18849 cy_save=$LIBS
18850 LIBS=
7eda51e0 18851
babf7fe8
JF
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18853$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18854if ${ac_cv_framework_JavaScriptCore+:} false; then :
18855 $as_echo_n "(cached) " >&6
18856else
7eda51e0 18857
babf7fe8
JF
18858 ac_check_framework_save_LIBS=$LIBS
18859 LIBS="-framework JavaScriptCore $LIBS"
18860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861/* end confdefs.h. */
7eda51e0 18862
babf7fe8 18863 #include <JavaScriptCore/JSBase.h>
7eda51e0 18864
babf7fe8
JF
18865int
18866main ()
18867{
7eda51e0 18868
babf7fe8 18869 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 18870
babf7fe8
JF
18871 ;
18872 return 0;
18873}
18874_ACEOF
18875if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 18876
babf7fe8 18877 ac_cv_framework_JavaScriptCore=yes
b66977f1 18878
b66977f1 18879else
babf7fe8
JF
18880 ac_cv_framework_JavaScriptCore=no
18881fi
18882rm -f core conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_framework_save_LIBS
7eda51e0 18885
babf7fe8
JF
18886fi
18887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18888$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18889 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 18890
7eda51e0 18891
babf7fe8
JF
18892 for element in "-framework JavaScriptCore"; do
18893 haveit=
18894 for x in $LIBS; do
18895
18896 acl_save_prefix="$prefix"
18897 prefix="$acl_final_prefix"
18898 acl_save_exec_prefix="$exec_prefix"
18899 exec_prefix="$acl_final_exec_prefix"
18900 eval x=\"$x\"
18901 exec_prefix="$acl_save_exec_prefix"
18902 prefix="$acl_save_prefix"
18903
18904 if test "X$x" = "X$element"; then
18905 haveit=yes
18906 break
18907 fi
18908 done
18909 if test -z "$haveit"; then
18910 LIBS="${LIBS}${LIBS:+ }$element"
18911 fi
18912 done
18913
18914
18915 CY_EXECUTE=1
18916
18917
18918
18919else
18920
18921 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18922
18923pkg_failed=no
18924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18925$as_echo_n "checking for WEBKIT... " >&6; }
18926
18927if test -n "$WEBKIT_CFLAGS"; then
18928 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18929 elif test -n "$PKG_CONFIG"; then
18930 if test -n "$PKG_CONFIG" && \
18931 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18932 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18933 ac_status=$?
18934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18935 test $ac_status = 0; }; then
18936 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
a93f15c0 18937 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
18938else
18939 pkg_failed=yes
18940fi
18941 else
18942 pkg_failed=untried
18943fi
18944if test -n "$WEBKIT_LIBS"; then
18945 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18946 elif test -n "$PKG_CONFIG"; then
18947 if test -n "$PKG_CONFIG" && \
18948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18949 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18950 ac_status=$?
18951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18952 test $ac_status = 0; }; then
18953 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
a93f15c0 18954 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
18955else
18956 pkg_failed=yes
18957fi
18958 else
18959 pkg_failed=untried
18960fi
18961
18962
18963
18964if test $pkg_failed = yes; then
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18966$as_echo "no" >&6; }
18967
18968if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18969 _pkg_short_errors_supported=yes
18970else
18971 _pkg_short_errors_supported=no
18972fi
18973 if test $_pkg_short_errors_supported = yes; then
a93f15c0 18974 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8 18975 else
a93f15c0 18976 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
18977 fi
18978 # Put the nasty error message in config.log where it belongs
18979 echo "$WEBKIT_PKG_ERRORS" >&5
18980
18981 :
18982elif test $pkg_failed = untried; then
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18984$as_echo "no" >&6; }
18985 :
18986else
18987 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18988 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18990$as_echo "yes" >&6; }
18991
18992 CY_EXECUTE=1
18993
18994
18995 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18996 haveit=
18997 for x in $CPPFLAGS; do
18998
18999 acl_save_prefix="$prefix"
19000 prefix="$acl_final_prefix"
19001 acl_save_exec_prefix="$exec_prefix"
19002 exec_prefix="$acl_final_exec_prefix"
19003 eval x=\"$x\"
19004 exec_prefix="$acl_save_exec_prefix"
19005 prefix="$acl_save_prefix"
19006
19007 if test "X$x" = "X$element"; then
19008 haveit=yes
19009 break
19010 fi
19011 done
19012 if test -z "$haveit"; then
19013 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19014 fi
19015 done
19016
19017
19018 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19019 haveit=
19020 for x in $LIBS; do
19021
19022 acl_save_prefix="$prefix"
19023 prefix="$acl_final_prefix"
19024 acl_save_exec_prefix="$exec_prefix"
19025 exec_prefix="$acl_final_exec_prefix"
19026 eval x=\"$x\"
19027 exec_prefix="$acl_save_exec_prefix"
19028 prefix="$acl_save_prefix"
19029
19030 if test "X$x" = "X$element"; then
19031 haveit=yes
19032 break
19033 fi
19034 done
19035 if test -z "$haveit"; then
19036 LIBS="${LIBS}${LIBS:+ }$element"
19037 fi
19038 done
19039
19040
19041fi; if test "x$CY_EXECUTE" = x1; then break; fi
19042 done
19043
19044fi
19045 LTJAVASCRIPTCORE=$LIBS
19046 LIBS=$cy_save
19047
19048
19049
19050fi
19051
19052
a93f15c0
JF
19053# Check whether --enable-console was given.
19054if test "${enable_console+set}" = set; then :
19055 enableval=$enable_console;
19056fi
19057
19058 if test "x$enable_console" != "xno"; then
19059 CY_CONSOLE_TRUE=
19060 CY_CONSOLE_FALSE='#'
19061else
19062 CY_CONSOLE_TRUE='#'
19063 CY_CONSOLE_FALSE=
19064fi
19065
19066
19067if test -z "$CY_CONSOLE_TRUE"; then :
19068
19069if test "x$LTLIBAPR" != x; then :
19070
19071
19072
19073else
19074
babf7fe8
JF
19075
19076 apr_found="no"
19077
19078 if test "$target_os" = "os2-emx"; then
19079 # Scripts don't pass test -x on OS/2
19080 TEST_X="test -f"
19081 else
19082 TEST_X="test -x"
19083 fi
19084
19085 acceptable_majors="1"
19086
19087 apr_temp_acceptable_apr_config=""
19088 for apr_temp_major in $acceptable_majors
19089 do
19090 case $apr_temp_major in
19091 0)
19092 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19093 ;;
19094 *)
19095 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19096 ;;
19097 esac
19098 done
19099
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19101$as_echo_n "checking for APR... " >&6; }
19102
19103# Check whether --with-apr was given.
19104if test "${with_apr+set}" = set; then :
19105 withval=$with_apr;
19106 if test "$withval" = "no" || test "$withval" = "yes"; then
19107 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19108 fi
19109
19110 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19111 do
19112 for lookdir in "$withval/bin" "$withval"
19113 do
19114 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19115 apr_config="$lookdir/$apr_temp_apr_config_file"
19116
19117 apr_found="yes"
19118 break 2
19119 fi
19120 done
19121 done
19122
19123 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19124 apr_config="$withval"
19125 apr_found="yes"
19126 fi
19127
19128 if test "$apr_found" != "yes"; then
19129 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
19130 fi
19131
19132else
19133
19134 if test -n "1" && test "1" = "1"; then
19135 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19136 do
19137 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19138 apr_config="$apr_temp_apr_config_file"
19139
19140 apr_found="yes"
19141 break
19142 else
19143 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19144 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19145 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19146
19147 apr_found="yes"
19148 break 2
19149 fi
19150 done
19151 fi
19152 done
19153 fi
19154 if test "$apr_found" = "no" && test -d ""; then
19155 apr_temp_abs_srcdir="`cd && pwd`"
19156 apr_found="reconfig"
19157 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19158 case $apr_bundled_major in
19159 "")
19160 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19161 ;;
19162 0)
7eda51e0
JF
19163 apr_temp_apr_config_file="apr-config"
19164 ;;
19165 *)
19166 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19167 ;;
19168 esac
19169 if test -n ""; then
19170 apr_config="/$apr_temp_apr_config_file"
19171 else
19172 apr_config="/$apr_temp_apr_config_file"
19173 fi
19174 fi
19175
b66977f1 19176fi
7eda51e0
JF
19177
19178
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19180$as_echo "$apr_found" >&6; }
19181
19182case $apr_found in #(
19183 yes) :
19184
19185
19186 for element in `$apr_config --includes`; do
19187 haveit=
19188 for x in $CPPFLAGS; do
19189
19190 acl_save_prefix="$prefix"
19191 prefix="$acl_final_prefix"
19192 acl_save_exec_prefix="$exec_prefix"
19193 exec_prefix="$acl_final_exec_prefix"
19194 eval x=\"$x\"
19195 exec_prefix="$acl_save_exec_prefix"
19196 prefix="$acl_save_prefix"
19197
19198 if test "X$x" = "X$element"; then
19199 haveit=yes
19200 break
19201 fi
19202 done
19203 if test -z "$haveit"; then
19204 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19205 fi
19206 done
19207
19208
19209 for element in `$apr_config --link-libtool`; do
19210 haveit=
19211 for x in $LTLIBAPR; do
19212
19213 acl_save_prefix="$prefix"
19214 prefix="$acl_final_prefix"
19215 acl_save_exec_prefix="$exec_prefix"
19216 exec_prefix="$acl_final_exec_prefix"
19217 eval x=\"$x\"
19218 exec_prefix="$acl_save_exec_prefix"
19219 prefix="$acl_save_prefix"
19220
19221 if test "X$x" = "X$element"; then
19222 haveit=yes
19223 break
19224 fi
19225 done
19226 if test -z "$haveit"; then
19227 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
19228 fi
19229 done
19230
19231
19232 ;; #(
19233 *) :
a93f15c0
JF
19234
19235 as_fn_error $? "missing \"libapr\"" "$LINENO" 5
19236 ;;
7eda51e0 19237esac
a93f15c0
JF
19238fi
19239
19240fi
7eda51e0
JF
19241
19242
19243
19244 if test "x$CY_EXECUTE" = x1; then
19245 CY_EXECUTE_TRUE=
19246 CY_EXECUTE_FALSE='#'
b66977f1 19247else
7eda51e0
JF
19248 CY_EXECUTE_TRUE='#'
19249 CY_EXECUTE_FALSE=
b66977f1
DWT
19250fi
19251
19252
19253
7eda51e0
JF
19254case $CY_EXECUTE in #(
19255 1) :
19256
19257 for ac_header in ffi.h ffi/ffi.h
19258do :
19259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19260ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19261if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19262 cat >>confdefs.h <<_ACEOF
19263#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19264_ACEOF
19265 break
b66977f1 19266fi
7eda51e0
JF
19267
19268done
19269
296ee9a6
JF
19270
19271
19272 cy_save=$LIBS
19273 LIBS=
7eda51e0 19274 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 19275
b66977f1 19276
296ee9a6
JF
19277 LIBFFI_CFLAGS
19278 C compiler flags for LIBFFI, overriding pkg-config
19279 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
19280
19281pkg_failed=no
7eda51e0
JF
19282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19283$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 19284
7eda51e0
JF
19285if test -n "$LIBFFI_CFLAGS"; then
19286 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
19287 elif test -n "$PKG_CONFIG"; then
19288 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19290 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19291 ac_status=$?
19292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19293 test $ac_status = 0; }; then
7eda51e0 19294 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
a93f15c0 19295 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
19296else
19297 pkg_failed=yes
19298fi
12833ad8
JF
19299 else
19300 pkg_failed=untried
b66977f1 19301fi
7eda51e0
JF
19302if test -n "$LIBFFI_LIBS"; then
19303 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19304 elif test -n "$PKG_CONFIG"; then
19305 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19307 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19308 ac_status=$?
19309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19310 test $ac_status = 0; }; then
7eda51e0 19311 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
a93f15c0 19312 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
19313else
19314 pkg_failed=yes
19315fi
12833ad8
JF
19316 else
19317 pkg_failed=untried
b66977f1
DWT
19318fi
19319
19320
19321
19322if test $pkg_failed = yes; then
12833ad8
JF
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324$as_echo "no" >&6; }
b66977f1
DWT
19325
19326if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19327 _pkg_short_errors_supported=yes
19328else
19329 _pkg_short_errors_supported=no
19330fi
19331 if test $_pkg_short_errors_supported = yes; then
a93f15c0 19332 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 19333 else
a93f15c0 19334 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
19335 fi
19336 # Put the nasty error message in config.log where it belongs
7eda51e0 19337 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19338
7eda51e0
JF
19339 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19340elif test $pkg_failed = untried; then
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19342$as_echo "no" >&6; }
19343 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19344else
19345 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19346 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19348$as_echo "yes" >&6; }
b66977f1
DWT
19349
19350
7eda51e0 19351 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19352 haveit=
d70419f1 19353 for x in $CPPFLAGS; do
b66977f1
DWT
19354
19355 acl_save_prefix="$prefix"
19356 prefix="$acl_final_prefix"
19357 acl_save_exec_prefix="$exec_prefix"
19358 exec_prefix="$acl_final_exec_prefix"
19359 eval x=\"$x\"
19360 exec_prefix="$acl_save_exec_prefix"
19361 prefix="$acl_save_prefix"
19362
19363 if test "X$x" = "X$element"; then
19364 haveit=yes
19365 break
19366 fi
19367 done
19368 if test -z "$haveit"; then
d70419f1 19369 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
19370 fi
19371 done
19372
19373
7eda51e0 19374 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
19375 haveit=
19376 for x in $LIBS; do
19377
19378 acl_save_prefix="$prefix"
19379 prefix="$acl_final_prefix"
19380 acl_save_exec_prefix="$exec_prefix"
19381 exec_prefix="$acl_final_exec_prefix"
19382 eval x=\"$x\"
19383 exec_prefix="$acl_save_exec_prefix"
19384 prefix="$acl_save_prefix"
19385
19386 if test "X$x" = "X$element"; then
19387 haveit=yes
19388 break
19389 fi
19390 done
19391 if test -z "$haveit"; then
19392 LIBS="${LIBS}${LIBS:+ }$element"
19393 fi
19394 done
19395
19396
19397fi
19398
7eda51e0
JF
19399else
19400
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19402$as_echo_n "checking for library containing ffi_call... " >&6; }
19403if ${ac_cv_search_ffi_call+:} false; then :
19404 $as_echo_n "(cached) " >&6
19405else
19406 ac_func_search_save_LIBS=$LIBS
19407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408/* end confdefs.h. */
19409
19410/* Override any GCC internal prototype to avoid an error.
19411 Use char because int might match the return type of a GCC
19412 builtin and then its argument prototype would still apply. */
19413#ifdef __cplusplus
19414extern "C"
19415#endif
19416char ffi_call ();
19417int
19418main ()
19419{
19420return ffi_call ();
19421 ;
19422 return 0;
19423}
19424_ACEOF
19425for ac_lib in '' ffi; do
19426 if test -z "$ac_lib"; then
19427 ac_res="none required"
19428 else
19429 ac_res=-l$ac_lib
19430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19431 fi
19432 if ac_fn_cxx_try_link "$LINENO"; then :
19433 ac_cv_search_ffi_call=$ac_res
19434fi
19435rm -f core conftest.err conftest.$ac_objext \
19436 conftest$ac_exeext
19437 if ${ac_cv_search_ffi_call+:} false; then :
19438 break
19439fi
19440done
19441if ${ac_cv_search_ffi_call+:} false; then :
19442
19443else
19444 ac_cv_search_ffi_call=no
19445fi
19446rm conftest.$ac_ext
19447LIBS=$ac_func_search_save_LIBS
19448fi
19449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19450$as_echo "$ac_cv_search_ffi_call" >&6; }
19451ac_res=$ac_cv_search_ffi_call
19452if test "$ac_res" != no; then :
19453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19454
19455fi
19456
19457 case $ac_cv_search_ffi_call in #(
19458 no) :
b66977f1
DWT
19459
19460
19461pkg_failed=no
7eda51e0
JF
19462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19463$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 19464
7eda51e0
JF
19465if test -n "$LIBFFI_CFLAGS"; then
19466 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
19467 elif test -n "$PKG_CONFIG"; then
19468 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19470 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19471 ac_status=$?
19472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19473 test $ac_status = 0; }; then
7eda51e0 19474 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
a93f15c0 19475 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
19476else
19477 pkg_failed=yes
19478fi
12833ad8
JF
19479 else
19480 pkg_failed=untried
b66977f1 19481fi
7eda51e0
JF
19482if test -n "$LIBFFI_LIBS"; then
19483 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
19484 elif test -n "$PKG_CONFIG"; then
19485 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
19486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19487 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
19488 ac_status=$?
19489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19490 test $ac_status = 0; }; then
7eda51e0 19491 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
a93f15c0 19492 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
19493else
19494 pkg_failed=yes
19495fi
12833ad8
JF
19496 else
19497 pkg_failed=untried
b66977f1
DWT
19498fi
19499
19500
19501
19502if test $pkg_failed = yes; then
12833ad8
JF
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19504$as_echo "no" >&6; }
b66977f1
DWT
19505
19506if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19507 _pkg_short_errors_supported=yes
19508else
19509 _pkg_short_errors_supported=no
19510fi
19511 if test $_pkg_short_errors_supported = yes; then
a93f15c0 19512 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 19513 else
a93f15c0 19514 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
19515 fi
19516 # Put the nasty error message in config.log where it belongs
7eda51e0 19517 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 19518
7eda51e0
JF
19519 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19520elif test $pkg_failed = untried; then
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19522$as_echo "no" >&6; }
19523 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 19524else
7eda51e0
JF
19525 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19526 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19528$as_echo "yes" >&6; }
b66977f1 19529
b66977f1 19530
7eda51e0 19531 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19532 haveit=
d70419f1 19533 for x in $CPPFLAGS; do
7eda51e0
JF
19534
19535 acl_save_prefix="$prefix"
19536 prefix="$acl_final_prefix"
19537 acl_save_exec_prefix="$exec_prefix"
19538 exec_prefix="$acl_final_exec_prefix"
19539 eval x=\"$x\"
19540 exec_prefix="$acl_save_exec_prefix"
19541 prefix="$acl_save_prefix"
19542
19543 if test "X$x" = "X$element"; then
19544 haveit=yes
19545 break
19546 fi
19547 done
19548 if test -z "$haveit"; then
d70419f1 19549 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
19550 fi
19551 done
19552
19553
7eda51e0
JF
19554 for element in `$PKG_CONFIG --libs libffi`; do
19555 haveit=
19556 for x in $LIBS; do
19557
19558 acl_save_prefix="$prefix"
19559 prefix="$acl_final_prefix"
19560 acl_save_exec_prefix="$exec_prefix"
19561 exec_prefix="$acl_final_exec_prefix"
19562 eval x=\"$x\"
19563 exec_prefix="$acl_save_exec_prefix"
19564 prefix="$acl_save_prefix"
19565
19566 if test "X$x" = "X$element"; then
19567 haveit=yes
19568 break
19569 fi
19570 done
19571 if test -z "$haveit"; then
19572 LIBS="${LIBS}${LIBS:+ }$element"
19573 fi
19574 done
19575
19576
19577fi ;; #(
19578 *) :
19579 ;;
19580esac
19581
19582fi
296ee9a6
JF
19583 LTLIBFFI=$LIBS
19584 LIBS=$cy_save
19585
19586
7eda51e0
JF
19587
19588 ac_ext=mm
19589ac_cpp='$OBJCXXCPP $CPPFLAGS'
19590ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19593
19594
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19596$as_echo_n "checking if we really have Objective C++... " >&6; }
19597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19598/* end confdefs.h. */
19599
19600_ACEOF
19601if ac_fn_objcxx_try_compile "$LINENO"; then :
19602
19603 CY_OBJECTIVEC=1
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19605$as_echo "yes" >&6; }
19606
19607else
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19609$as_echo "no" >&6; }
7eda51e0
JF
19610fi
19611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 19612
7eda51e0 19613 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 19614
7eda51e0 19615
babf7fe8
JF
19616 cy_save=$LIBS
19617 LIBS=
19618
7eda51e0
JF
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19620$as_echo_n "checking for framework CoreFoundation... " >&6; }
19621if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
19622 $as_echo_n "(cached) " >&6
19623else
19624
19625 ac_check_framework_save_LIBS=$LIBS
7eda51e0 19626 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
19627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628/* end confdefs.h. */
19629
7eda51e0 19630 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
19631
19632int
19633main ()
19634{
7eda51e0 19635CFAllocatorGetDefault();
b66977f1
DWT
19636 ;
19637 return 0;
19638}
19639_ACEOF
7eda51e0 19640if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19641
7eda51e0 19642 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
19643
19644else
7eda51e0 19645 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
19646fi
19647rm -f core conftest.err conftest.$ac_objext \
19648 conftest$ac_exeext conftest.$ac_ext
19649 LIBS=$ac_check_framework_save_LIBS
19650
19651fi
7eda51e0
JF
19652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19653$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19654 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
19655
19656
7eda51e0 19657 for element in "-framework CoreFoundation"; do
b66977f1
DWT
19658 haveit=
19659 for x in $LIBS; do
19660
19661 acl_save_prefix="$prefix"
19662 prefix="$acl_final_prefix"
19663 acl_save_exec_prefix="$exec_prefix"
19664 exec_prefix="$acl_final_exec_prefix"
19665 eval x=\"$x\"
19666 exec_prefix="$acl_save_exec_prefix"
19667 prefix="$acl_save_prefix"
19668
19669 if test "X$x" = "X$element"; then
19670 haveit=yes
19671 break
19672 fi
19673 done
19674 if test -z "$haveit"; then
19675 LIBS="${LIBS}${LIBS:+ }$element"
19676 fi
19677 done
19678
66170b30 19679
66170b30
JF
19680
19681
b66977f1 19682
b66977f1 19683
7eda51e0
JF
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19685$as_echo_n "checking for framework Foundation... " >&6; }
19686if ${ac_cv_framework_Foundation+:} false; then :
19687 $as_echo_n "(cached) " >&6
b66977f1 19688else
b66977f1 19689
7eda51e0
JF
19690 ac_check_framework_save_LIBS=$LIBS
19691 LIBS="-framework Foundation $LIBS"
19692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693/* end confdefs.h. */
66170b30 19694
7eda51e0 19695 #include <Foundation/NSObject.h>
b66977f1 19696
7eda51e0
JF
19697int
19698main ()
19699{
19700[[NSObject alloc] init];
19701 ;
19702 return 0;
19703}
19704_ACEOF
19705if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19706
7eda51e0 19707 ac_cv_framework_Foundation=yes
b66977f1 19708
7eda51e0
JF
19709else
19710 ac_cv_framework_Foundation=no
19711fi
19712rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_framework_save_LIBS
19715
19716fi
19717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19718$as_echo "$ac_cv_framework_Foundation" >&6; }
19719 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
19720
19721
7eda51e0 19722 for element in "-framework Foundation"; do
b66977f1
DWT
19723 haveit=
19724 for x in $LIBS; do
19725
19726 acl_save_prefix="$prefix"
19727 prefix="$acl_final_prefix"
19728 acl_save_exec_prefix="$exec_prefix"
19729 exec_prefix="$acl_final_exec_prefix"
19730 eval x=\"$x\"
19731 exec_prefix="$acl_save_exec_prefix"
19732 prefix="$acl_save_prefix"
19733
19734 if test "X$x" = "X$element"; then
19735 haveit=yes
19736 break
19737 fi
19738 done
19739 if test -z "$haveit"; then
19740 LIBS="${LIBS}${LIBS:+ }$element"
19741 fi
19742 done
19743
7eda51e0
JF
19744 cat >>confdefs.h <<_ACEOF
19745#define HAVE_FRAMEWORK_FOUNDATION 1
19746_ACEOF
19747
b66977f1 19748
7eda51e0 19749fi
b66977f1
DWT
19750
19751
7eda51e0 19752else
b66977f1 19753
b66977f1 19754
7eda51e0
JF
19755 for ac_prog in gnustep-config
19756do
19757 # Extract the first word of "$ac_prog", so it can be a program name with args.
19758set dummy $ac_prog; ac_word=$2
19759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19760$as_echo_n "checking for $ac_word... " >&6; }
19761if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19762 $as_echo_n "(cached) " >&6
b66977f1 19763else
7eda51e0
JF
19764 if test -n "$GNUSTEP_CONFIG"; then
19765 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 19766else
7eda51e0
JF
19767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19768for as_dir in $PATH
19769do
19770 IFS=$as_save_IFS
19771 test -z "$as_dir" && as_dir=.
19772 for ac_exec_ext in '' $ac_executable_extensions; do
19773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19774 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19776 break 2
19777 fi
19778done
19779 done
19780IFS=$as_save_IFS
b66977f1 19781
b66977f1 19782fi
b66977f1 19783fi
7eda51e0
JF
19784GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19785if test -n "$GNUSTEP_CONFIG"; then
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19787$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 19788else
7eda51e0 19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19790$as_echo "no" >&6; }
b66977f1 19791fi
66170b30 19792
66170b30 19793
7eda51e0
JF
19794 test -n "$GNUSTEP_CONFIG" && break
19795done
b66977f1 19796
b66977f1 19797
7eda51e0 19798 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 19799
b66977f1
DWT
19800
19801
7eda51e0 19802 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 19803 haveit=
7eda51e0 19804 for x in $OBJCXXFLAGS; do
b66977f1
DWT
19805
19806 acl_save_prefix="$prefix"
19807 prefix="$acl_final_prefix"
19808 acl_save_exec_prefix="$exec_prefix"
19809 exec_prefix="$acl_final_exec_prefix"
19810 eval x=\"$x\"
19811 exec_prefix="$acl_save_exec_prefix"
19812 prefix="$acl_save_prefix"
19813
19814 if test "X$x" = "X$element"; then
19815 haveit=yes
19816 break
19817 fi
19818 done
babf7fe8
JF
19819 if test -z "$haveit"; then
19820 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19821 fi
19822 done
a667869d 19823
a667869d 19824
babf7fe8 19825 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 19826 haveit=
babf7fe8 19827 for x in $LIBS; do
a667869d 19828
632b71ea
DWT
19829 acl_save_prefix="$prefix"
19830 prefix="$acl_final_prefix"
19831 acl_save_exec_prefix="$exec_prefix"
19832 exec_prefix="$acl_final_exec_prefix"
19833 eval x=\"$x\"
19834 exec_prefix="$acl_save_exec_prefix"
19835 prefix="$acl_save_prefix"
19836
19837 if test "X$x" = "X$element"; then
19838 haveit=yes
19839 break
19840 fi
19841 done
19842 if test -z "$haveit"; then
babf7fe8 19843 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
19844 fi
19845 done
19846
5053a6d1 19847
babf7fe8
JF
19848else
19849 CY_OBJECTIVEC=0
19850
19851fi
19852
19853fi
19854 LTOBJECTIVEC=$LIBS
19855 LIBS=$cy_save
19856
19857
19858
19859fi
19860
19861 ac_ext=cpp
19862ac_cpp='$CXXCPP $CPPFLAGS'
19863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19866
19867 ;; #(
19868 *) :
19869 ;;
19870esac
19871
19872 if test "x$CY_OBJECTIVEC" = x1; then
19873 CY_OBJECTIVEC_TRUE=
19874 CY_OBJECTIVEC_FALSE='#'
19875else
19876 CY_OBJECTIVEC_TRUE='#'
19877 CY_OBJECTIVEC_FALSE=
19878fi
19879
19880
19881
19882 cy_save=$LIBS
19883 LIBS=
19884
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19886$as_echo_n "checking for a readline compatible library... " >&6; }
19887if ${ax_cv_lib_readline+:} false; then :
5053a6d1 19888 $as_echo_n "(cached) " >&6
a667869d 19889else
632b71ea 19890
babf7fe8
JF
19891 ORIG_LIBS="$LIBS"
19892 for readline_lib in readline edit editline; do
19893 for termcap_lib in "" termcap curses ncurses; do
19894 if test -z "$termcap_lib"; then
19895 TRY_LIB="-l$readline_lib"
19896 else
19897 TRY_LIB="-l$readline_lib -l$termcap_lib"
19898 fi
19899 LIBS="$ORIG_LIBS $TRY_LIB"
19900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 19901/* end confdefs.h. */
632b71ea 19902
babf7fe8
JF
19903/* Override any GCC internal prototype to avoid an error.
19904 Use char because int might match the return type of a GCC
19905 builtin and then its argument prototype would still apply. */
19906#ifdef __cplusplus
19907extern "C"
19908#endif
19909char readline ();
5053a6d1
DWT
19910int
19911main ()
19912{
babf7fe8 19913return readline ();
5053a6d1
DWT
19914 ;
19915 return 0;
19916}
19917_ACEOF
babf7fe8
JF
19918if ac_fn_cxx_try_link "$LINENO"; then :
19919 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
19920fi
19921rm -f core conftest.err conftest.$ac_objext \
19922 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
19923 if test -n "$ax_cv_lib_readline"; then
19924 break
19925 fi
19926 done
19927 if test -n "$ax_cv_lib_readline"; then
19928 break
19929 fi
19930 done
19931 if test -z "$ax_cv_lib_readline"; then
19932 ax_cv_lib_readline="no"
19933 fi
19934 LIBS="$ORIG_LIBS"
19935
19936fi
19937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19938$as_echo "$ax_cv_lib_readline" >&6; }
19939
19940 if test "$ax_cv_lib_readline" != "no"; then
19941 LIBS="$LIBS $ax_cv_lib_readline"
19942
19943$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19944
19945 for ac_header in readline.h readline/readline.h
19946do :
19947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19948ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19949if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19950 cat >>confdefs.h <<_ACEOF
19951#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19952_ACEOF
19953
19954fi
19955
19956done
19957
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19959$as_echo_n "checking whether readline supports history... " >&6; }
19960if ${ax_cv_lib_readline_history+:} false; then :
19961 $as_echo_n "(cached) " >&6
19962else
19963
19964 ax_cv_lib_readline_history="no"
7eda51e0
JF
19965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19966/* end confdefs.h. */
5053a6d1 19967
babf7fe8
JF
19968/* Override any GCC internal prototype to avoid an error.
19969 Use char because int might match the return type of a GCC
19970 builtin and then its argument prototype would still apply. */
19971#ifdef __cplusplus
19972extern "C"
19973#endif
19974char add_history ();
058f1bc8
DWT
19975int
19976main ()
19977{
babf7fe8 19978return add_history ();
058f1bc8
DWT
19979 ;
19980 return 0;
19981}
19982_ACEOF
babf7fe8
JF
19983if ac_fn_cxx_try_link "$LINENO"; then :
19984 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
19985fi
19986rm -f core conftest.err conftest.$ac_objext \
19987 conftest$ac_exeext conftest.$ac_ext
a667869d 19988
a667869d 19989fi
babf7fe8
JF
19990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19991$as_echo "$ax_cv_lib_readline_history" >&6; }
19992 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 19993
babf7fe8 19994$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 19995
babf7fe8
JF
19996 for ac_header in history.h readline/history.h
19997do :
19998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19999ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20000if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20001 cat >>confdefs.h <<_ACEOF
20002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 20003_ACEOF
babf7fe8 20004
7eda51e0 20005fi
058f1bc8 20006
babf7fe8 20007done
058f1bc8 20008
babf7fe8 20009 fi
7eda51e0 20010 fi
058f1bc8 20011
babf7fe8
JF
20012 LTLIBREADLINE=$LIBS
20013 LIBS=$cy_save
058f1bc8 20014
058f1bc8 20015
babf7fe8
JF
20016case $ax_cv_lib_readline in #(
20017 no) :
20018 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20019 *) :
20020 ;;
20021esac
058f1bc8
DWT
20022
20023
babf7fe8
JF
20024 cy_save=$LIBS
20025 LIBS=
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20027$as_echo_n "checking for library containing cur_term... " >&6; }
20028if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
20029 $as_echo_n "(cached) " >&6
20030else
babf7fe8
JF
20031 ac_func_search_save_LIBS=$LIBS
20032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
20033/* end confdefs.h. */
20034
babf7fe8
JF
20035/* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
7eda51e0 20038#ifdef __cplusplus
babf7fe8 20039extern "C"
7eda51e0 20040#endif
babf7fe8 20041char cur_term ();
7eda51e0
JF
20042int
20043main ()
20044{
babf7fe8 20045return cur_term ();
7eda51e0
JF
20046 ;
20047 return 0;
20048}
20049_ACEOF
a93f15c0 20050for ac_lib in '' termcap ncurses; do
babf7fe8
JF
20051 if test -z "$ac_lib"; then
20052 ac_res="none required"
20053 else
20054 ac_res=-l$ac_lib
20055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20056 fi
20057 if ac_fn_cxx_try_link "$LINENO"; then :
20058 ac_cv_search_cur_term=$ac_res
7eda51e0 20059fi
babf7fe8
JF
20060rm -f core conftest.err conftest.$ac_objext \
20061 conftest$ac_exeext
20062 if ${ac_cv_search_cur_term+:} false; then :
20063 break
7eda51e0 20064fi
babf7fe8
JF
20065done
20066if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 20067
babf7fe8
JF
20068else
20069 ac_cv_search_cur_term=no
20070fi
20071rm conftest.$ac_ext
20072LIBS=$ac_func_search_save_LIBS
20073fi
20074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20075$as_echo "$ac_cv_search_cur_term" >&6; }
20076ac_res=$ac_cv_search_cur_term
20077if test "$ac_res" != no; then :
20078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 20079
babf7fe8 20080fi
058f1bc8 20081
babf7fe8
JF
20082 LTLIBTERMCAP=$LIBS
20083 LIBS=$cy_save
058f1bc8 20084
058f1bc8 20085
66170b30
JF
20086
20087
9777bd50
JF
20088SO=$acl_shlibext
20089
e1cce270 20090
7eda51e0
JF
20091if test "x$CY_EXECUTE" = x1; then :
20092
20093 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 20094if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 20095
7eda51e0 20096 if test -n "$ac_tool_prefix"; then
a243b558 20097 for ac_prog in lipo
794e88e7
DWT
20098 do
20099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20100set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20102$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20103if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
20104 $as_echo_n "(cached) " >&6
20105else
a243b558
JF
20106 if test -n "$_LIPO"; then
20107 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
20108else
20109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20110for as_dir in $PATH
20111do
20112 IFS=$as_save_IFS
20113 test -z "$as_dir" && as_dir=.
20114 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20116 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20118 break 2
20119 fi
20120done
20121 done
20122IFS=$as_save_IFS
20123
20124fi
20125fi
a243b558
JF
20126_LIPO=$ac_cv_prog__LIPO
20127if test -n "$_LIPO"; then
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20129$as_echo "$_LIPO" >&6; }
794e88e7
DWT
20130else
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20132$as_echo "no" >&6; }
20133fi
20134
20135
a243b558 20136 test -n "$_LIPO" && break
794e88e7
DWT
20137 done
20138fi
a243b558
JF
20139if test -z "$_LIPO"; then
20140 ac_ct__LIPO=$_LIPO
20141 for ac_prog in lipo
794e88e7
DWT
20142do
20143 # Extract the first word of "$ac_prog", so it can be a program name with args.
20144set dummy $ac_prog; ac_word=$2
20145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20146$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20147if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
20148 $as_echo_n "(cached) " >&6
20149else
a243b558
JF
20150 if test -n "$ac_ct__LIPO"; then
20151 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
20152else
20153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20154for as_dir in $PATH
20155do
20156 IFS=$as_save_IFS
20157 test -z "$as_dir" && as_dir=.
20158 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20160 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
20161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20162 break 2
20163 fi
20164done
20165 done
20166IFS=$as_save_IFS
20167
20168fi
20169fi
a243b558
JF
20170ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20171if test -n "$ac_ct__LIPO"; then
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20173$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
20174else
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20176$as_echo "no" >&6; }
20177fi
20178
20179
a243b558 20180 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
20181done
20182
a243b558
JF
20183 if test "x$ac_ct__LIPO" = x; then
20184 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
20185 else
20186 case $cross_compiling:$ac_tool_warned in
20187yes:)
20188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20190ac_tool_warned=yes ;;
e1cce270 20191esac
a243b558 20192 _LIPO=$ac_ct__LIPO
794e88e7
DWT
20193 fi
20194fi
20195
7eda51e0 20196 if test -n "$ac_tool_prefix"; then
a243b558 20197 for ac_prog in nm
794e88e7
DWT
20198 do
20199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20202$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20203if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
20204 $as_echo_n "(cached) " >&6
20205else
a243b558
JF
20206 if test -n "$_NM"; then
20207 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
20208else
20209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20210for as_dir in $PATH
20211do
20212 IFS=$as_save_IFS
20213 test -z "$as_dir" && as_dir=.
20214 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20216 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20218 break 2
20219 fi
20220done
20221 done
20222IFS=$as_save_IFS
20223
20224fi
20225fi
a243b558
JF
20226_NM=$ac_cv_prog__NM
20227if test -n "$_NM"; then
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20229$as_echo "$_NM" >&6; }
794e88e7
DWT
20230else
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20232$as_echo "no" >&6; }
20233fi
20234
20235
a243b558 20236 test -n "$_NM" && break
794e88e7
DWT
20237 done
20238fi
a243b558
JF
20239if test -z "$_NM"; then
20240 ac_ct__NM=$_NM
20241 for ac_prog in nm
794e88e7
DWT
20242do
20243 # Extract the first word of "$ac_prog", so it can be a program name with args.
20244set dummy $ac_prog; ac_word=$2
20245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20246$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20247if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
20248 $as_echo_n "(cached) " >&6
20249else
a243b558
JF
20250 if test -n "$ac_ct__NM"; then
20251 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
20252else
20253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20254for as_dir in $PATH
20255do
20256 IFS=$as_save_IFS
20257 test -z "$as_dir" && as_dir=.
20258 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20260 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
20261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20262 break 2
20263 fi
20264done
20265 done
20266IFS=$as_save_IFS
20267
20268fi
20269fi
a243b558
JF
20270ac_ct__NM=$ac_cv_prog_ac_ct__NM
20271if test -n "$ac_ct__NM"; then
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20273$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
20274else
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20276$as_echo "no" >&6; }
20277fi
20278
20279
a243b558 20280 test -n "$ac_ct__NM" && break
794e88e7
DWT
20281done
20282
a243b558
JF
20283 if test "x$ac_ct__NM" = x; then
20284 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
20285 else
20286 case $cross_compiling:$ac_tool_warned in
20287yes:)
20288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20290ac_tool_warned=yes ;;
20291esac
a243b558 20292 _NM=$ac_ct__NM
794e88e7
DWT
20293 fi
20294fi
20295
7eda51e0 20296 if test -n "$ac_tool_prefix"; then
a243b558 20297 for ac_prog in otool
794e88e7
DWT
20298 do
20299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20300set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20302$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20303if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
20304 $as_echo_n "(cached) " >&6
20305else
a243b558
JF
20306 if test -n "$_OTOOL"; then
20307 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
20308else
20309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20310for as_dir in $PATH
20311do
20312 IFS=$as_save_IFS
20313 test -z "$as_dir" && as_dir=.
20314 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20316 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20318 break 2
20319 fi
20320done
20321 done
20322IFS=$as_save_IFS
20323
20324fi
20325fi
a243b558
JF
20326_OTOOL=$ac_cv_prog__OTOOL
20327if test -n "$_OTOOL"; then
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20329$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
20330else
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20332$as_echo "no" >&6; }
20333fi
20334
20335
a243b558 20336 test -n "$_OTOOL" && break
794e88e7
DWT
20337 done
20338fi
a243b558
JF
20339if test -z "$_OTOOL"; then
20340 ac_ct__OTOOL=$_OTOOL
20341 for ac_prog in otool
794e88e7
DWT
20342do
20343 # Extract the first word of "$ac_prog", so it can be a program name with args.
20344set dummy $ac_prog; ac_word=$2
20345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20346$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20347if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
20348 $as_echo_n "(cached) " >&6
20349else
a243b558
JF
20350 if test -n "$ac_ct__OTOOL"; then
20351 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
20352else
20353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20354for as_dir in $PATH
20355do
20356 IFS=$as_save_IFS
20357 test -z "$as_dir" && as_dir=.
20358 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20360 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
20361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20362 break 2
20363 fi
20364done
20365 done
20366IFS=$as_save_IFS
20367
20368fi
20369fi
a243b558
JF
20370ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20371if test -n "$ac_ct__OTOOL"; then
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20373$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
20374else
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20376$as_echo "no" >&6; }
20377fi
20378
20379
a243b558 20380 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
20381done
20382
a243b558
JF
20383 if test "x$ac_ct__OTOOL" = x; then
20384 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
20385 else
20386 case $cross_compiling:$ac_tool_warned in
20387yes:)
20388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20390ac_tool_warned=yes ;;
20391esac
a243b558 20392 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
20393 fi
20394fi
20395
7eda51e0 20396 CY_ATTACH_GROUP=procmod
794e88e7 20397
7eda51e0 20398 CY_MACH=1
e1cce270
DWT
20399
20400fi
20401
20402
7eda51e0 20403fi
a243b558
JF
20404 if test "x$CY_MACH" = x1; then
20405 CY_MACH_TRUE=
20406 CY_MACH_FALSE='#'
20407else
20408 CY_MACH_TRUE='#'
20409 CY_MACH_FALSE=
47aaa820 20410fi
9c60689e 20411
66170b30 20412
a243b558
JF
20413ac_config_files="$ac_config_files Makefile"
20414
9c60689e
DWT
20415cat >confcache <<\_ACEOF
20416# This file is a shell script that caches the results of configure
20417# tests run on this system so they can be shared between configure
20418# scripts and configure runs, see configure's option --config-cache.
20419# It is not useful on other systems. If it contains results you don't
20420# want to keep, you may remove or edit it.
20421#
20422# config.status only pays attention to the cache file if you give it
20423# the --recheck option to rerun configure.
20424#
20425# `ac_cv_env_foo' variables (set or unset) will be overridden when
20426# loading this file, other *unset* `ac_cv_foo' will be assigned the
20427# following values.
20428
20429_ACEOF
20430
20431# The following way of writing the cache mishandles newlines in values,
20432# but we know of no workaround that is simple, portable, and efficient.
20433# So, we kill variables containing newlines.
20434# Ultrix sh set writes to stderr and can't be redirected directly,
20435# and sets the high bit in the cache file unless we assign to the vars.
20436(
20437 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20438 eval ac_val=\$$ac_var
20439 case $ac_val in #(
20440 *${as_nl}*)
20441 case $ac_var in #(
20442 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20443$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20444 esac
20445 case $ac_var in #(
20446 _ | IFS | as_nl) ;; #(
20447 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20448 *) { eval $ac_var=; unset $ac_var;} ;;
20449 esac ;;
20450 esac
20451 done
20452
20453 (set) 2>&1 |
20454 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20455 *${as_nl}ac_space=\ *)
20456 # `set' does not quote correctly, so add quotes: double-quote
20457 # substitution turns \\\\ into \\, and sed turns \\ into \.
20458 sed -n \
20459 "s/'/'\\\\''/g;
20460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20461 ;; #(
20462 *)
20463 # `set' quotes correctly as required by POSIX, so do not add quotes.
20464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20465 ;;
20466 esac |
20467 sort
20468) |
20469 sed '
20470 /^ac_cv_env_/b end
20471 t clear
20472 :clear
20473 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20474 t end
20475 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20476 :end' >>confcache
20477if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20478 if test -w "$cache_file"; then
ee134472 20479 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20481$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
20482 if test ! -f "$cache_file" || test -h "$cache_file"; then
20483 cat confcache >"$cache_file"
20484 else
20485 case $cache_file in #(
20486 */* | ?:*)
20487 mv -f confcache "$cache_file"$$ &&
20488 mv -f "$cache_file"$$ "$cache_file" ;; #(
20489 *)
20490 mv -f confcache "$cache_file" ;;
20491 esac
20492 fi
20493 fi
9c60689e
DWT
20494 else
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20496$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20497 fi
20498fi
20499rm -f confcache
20500
20501test "x$prefix" = xNONE && prefix=$ac_default_prefix
20502# Let make expand exec_prefix.
20503test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20504
296ee9a6 20505DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
20506
20507ac_libobjs=
20508ac_ltlibobjs=
12833ad8 20509U=
9c60689e
DWT
20510for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20511 # 1. Remove the extension, and $U if already installed.
20512 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20513 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20515 # will be set to the directory where LIBOBJS objects are built.
20516 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20517 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20518done
20519LIBOBJS=$ac_libobjs
20520
20521LTLIBOBJS=$ac_ltlibobjs
20522
20523
66170b30
JF
20524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20525$as_echo_n "checking that generated files are newer than configure... " >&6; }
20526 if test -n "$am_sleep_pid"; then
20527 # Hide warnings about reused PIDs.
20528 wait $am_sleep_pid 2>/dev/null
20529 fi
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20531$as_echo "done" >&6; }
20532 if test -n "$EXEEXT"; then
20533 am__EXEEXT_TRUE=
20534 am__EXEEXT_FALSE='#'
20535else
20536 am__EXEEXT_TRUE='#'
20537 am__EXEEXT_FALSE=
20538fi
20539
babf7fe8
JF
20540if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20541 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20542Usually this means the macro was only invoked conditionally." "$LINENO" 5
20543fi
66170b30
JF
20544if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20545 as_fn_error $? "conditional \"AMDEP\" was never defined.
20546Usually this means the macro was only invoked conditionally." "$LINENO" 5
20547fi
a93f15c0
JF
20548if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20549 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20550Usually this means the macro was only invoked conditionally." "$LINENO" 5
20551fi
66170b30
JF
20552if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20553 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20554Usually this means the macro was only invoked conditionally." "$LINENO" 5
20555fi
20556if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20557 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20558Usually this means the macro was only invoked conditionally." "$LINENO" 5
20559fi
a93f15c0
JF
20560if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
20561 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
20562Usually this means the macro was only invoked conditionally." "$LINENO" 5
20563fi
a243b558
JF
20564if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20565 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20566Usually this means the macro was only invoked conditionally." "$LINENO" 5
20567fi
20568if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20569 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20570Usually this means the macro was only invoked conditionally." "$LINENO" 5
20571fi
20572if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20573 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20574Usually this means the macro was only invoked conditionally." "$LINENO" 5
20575fi
9c60689e 20576
ee134472 20577: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
20578ac_write_fail=0
20579ac_clean_files_save=$ac_clean_files
20580ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20581{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20582$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20583as_write_fail=0
20584cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20585#! $SHELL
20586# Generated by $as_me.
20587# Run this file to recreate the current configuration.
20588# Compiler output produced by configure, useful for debugging
20589# configure, is in config.log if it exists.
20590
20591debug=false
20592ac_cs_recheck=false
20593ac_cs_silent=false
20594
20595SHELL=\${CONFIG_SHELL-$SHELL}
20596export SHELL
20597_ASEOF
20598cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20599## -------------------- ##
20600## M4sh Initialization. ##
20601## -------------------- ##
20602
20603# Be more Bourne compatible
20604DUALCASE=1; export DUALCASE # for MKS sh
20605if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20606 emulate sh
20607 NULLCMD=:
20608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20609 # is contrary to our usage. Disable this feature.
20610 alias -g '${1+"$@"}'='"$@"'
20611 setopt NO_GLOB_SUBST
20612else
20613 case `(set -o) 2>/dev/null` in #(
20614 *posix*) :
20615 set -o posix ;; #(
20616 *) :
20617 ;;
20618esac
20619fi
20620
20621
20622as_nl='
20623'
20624export as_nl
20625# Printing a long string crashes Solaris 7 /usr/bin/printf.
20626as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20627as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20628as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20629# Prefer a ksh shell builtin over an external printf program on Solaris,
20630# but without wasting forks for bash or zsh.
20631if test -z "$BASH_VERSION$ZSH_VERSION" \
20632 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20633 as_echo='print -r --'
20634 as_echo_n='print -rn --'
20635elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20636 as_echo='printf %s\n'
20637 as_echo_n='printf %s'
20638else
20639 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20640 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20641 as_echo_n='/usr/ucb/echo -n'
20642 else
20643 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20644 as_echo_n_body='eval
20645 arg=$1;
20646 case $arg in #(
20647 *"$as_nl"*)
20648 expr "X$arg" : "X\\(.*\\)$as_nl";
20649 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20650 esac;
20651 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20652 '
20653 export as_echo_n_body
20654 as_echo_n='sh -c $as_echo_n_body as_echo'
20655 fi
20656 export as_echo_body
20657 as_echo='sh -c $as_echo_body as_echo'
20658fi
20659
20660# The user is always right.
20661if test "${PATH_SEPARATOR+set}" != set; then
20662 PATH_SEPARATOR=:
20663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20665 PATH_SEPARATOR=';'
20666 }
20667fi
20668
20669
20670# IFS
20671# We need space, tab and new line, in precisely that order. Quoting is
20672# there to prevent editors from complaining about space-tab.
20673# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20674# splitting by setting IFS to empty value.)
20675IFS=" "" $as_nl"
20676
20677# Find who we are. Look in the path if we contain no directory separator.
ee134472 20678as_myself=
9c60689e
DWT
20679case $0 in #((
20680 *[\\/]* ) as_myself=$0 ;;
20681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20682for as_dir in $PATH
20683do
20684 IFS=$as_save_IFS
20685 test -z "$as_dir" && as_dir=.
20686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20687 done
20688IFS=$as_save_IFS
20689
20690 ;;
20691esac
20692# We did not find ourselves, most probably we were run as `sh COMMAND'
20693# in which case we are not to be found in the path.
20694if test "x$as_myself" = x; then
20695 as_myself=$0
20696fi
20697if test ! -f "$as_myself"; then
20698 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20699 exit 1
20700fi
20701
20702# Unset variables that we do not need and which cause bugs (e.g. in
20703# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20704# suppresses any "Segmentation fault" message there. '((' could
20705# trigger a bug in pdksh 5.2.14.
20706for as_var in BASH_ENV ENV MAIL MAILPATH
20707do eval test x\${$as_var+set} = xset \
20708 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20709done
20710PS1='$ '
20711PS2='> '
20712PS4='+ '
20713
20714# NLS nuisances.
20715LC_ALL=C
20716export LC_ALL
20717LANGUAGE=C
20718export LANGUAGE
20719
20720# CDPATH.
20721(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20722
20723
12833ad8
JF
20724# as_fn_error STATUS ERROR [LINENO LOG_FD]
20725# ----------------------------------------
9c60689e
DWT
20726# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20727# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 20728# script with STATUS, using 1 if that was 0.
9c60689e
DWT
20729as_fn_error ()
20730{
12833ad8
JF
20731 as_status=$1; test $as_status -eq 0 && as_status=1
20732 if test "$4"; then
20733 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20734 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 20735 fi
12833ad8 20736 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
20737 as_fn_exit $as_status
20738} # as_fn_error
20739
20740
20741# as_fn_set_status STATUS
20742# -----------------------
20743# Set $? to STATUS, without forking.
20744as_fn_set_status ()
20745{
20746 return $1
20747} # as_fn_set_status
20748
20749# as_fn_exit STATUS
20750# -----------------
20751# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20752as_fn_exit ()
20753{
20754 set +e
20755 as_fn_set_status $1
20756 exit $1
20757} # as_fn_exit
20758
20759# as_fn_unset VAR
20760# ---------------
20761# Portably unset VAR.
20762as_fn_unset ()
20763{
20764 { eval $1=; unset $1;}
20765}
20766as_unset=as_fn_unset
20767# as_fn_append VAR VALUE
20768# ----------------------
20769# Append the text in VALUE to the end of the definition contained in VAR. Take
20770# advantage of any shell optimizations that allow amortized linear growth over
20771# repeated appends, instead of the typical quadratic growth present in naive
20772# implementations.
20773if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20774 eval 'as_fn_append ()
20775 {
20776 eval $1+=\$2
20777 }'
20778else
20779 as_fn_append ()
20780 {
20781 eval $1=\$$1\$2
20782 }
20783fi # as_fn_append
20784
20785# as_fn_arith ARG...
20786# ------------------
20787# Perform arithmetic evaluation on the ARGs, and store the result in the
20788# global $as_val. Take advantage of shells that can avoid forks. The arguments
20789# must be portable across $(()) and expr.
20790if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20791 eval 'as_fn_arith ()
20792 {
20793 as_val=$(( $* ))
20794 }'
20795else
20796 as_fn_arith ()
20797 {
20798 as_val=`expr "$@" || test $? -eq 1`
20799 }
20800fi # as_fn_arith
20801
20802
20803if expr a : '\(a\)' >/dev/null 2>&1 &&
20804 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20805 as_expr=expr
20806else
20807 as_expr=false
20808fi
20809
20810if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20811 as_basename=basename
20812else
20813 as_basename=false
20814fi
20815
20816if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20817 as_dirname=dirname
20818else
20819 as_dirname=false
20820fi
20821
20822as_me=`$as_basename -- "$0" ||
20823$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20824 X"$0" : 'X\(//\)$' \| \
20825 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20826$as_echo X/"$0" |
20827 sed '/^.*\/\([^/][^/]*\)\/*$/{
20828 s//\1/
20829 q
20830 }
20831 /^X\/\(\/\/\)$/{
20832 s//\1/
20833 q
20834 }
20835 /^X\/\(\/\).*/{
20836 s//\1/
20837 q
20838 }
20839 s/.*/./; q'`
20840
20841# Avoid depending upon Character Ranges.
20842as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20843as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20844as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20845as_cr_digits='0123456789'
20846as_cr_alnum=$as_cr_Letters$as_cr_digits
20847
20848ECHO_C= ECHO_N= ECHO_T=
20849case `echo -n x` in #(((((
20850-n*)
20851 case `echo 'xy\c'` in
20852 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20853 xy) ECHO_C='\c';;
20854 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20855 ECHO_T=' ';;
20856 esac;;
20857*)
20858 ECHO_N='-n';;
20859esac
20860
20861rm -f conf$$ conf$$.exe conf$$.file
20862if test -d conf$$.dir; then
20863 rm -f conf$$.dir/conf$$.file
20864else
20865 rm -f conf$$.dir
20866 mkdir conf$$.dir 2>/dev/null
20867fi
20868if (echo >conf$$.file) 2>/dev/null; then
20869 if ln -s conf$$.file conf$$ 2>/dev/null; then
20870 as_ln_s='ln -s'
20871 # ... but there are two gotchas:
20872 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20873 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 20874 # In both cases, we have to default to `cp -pR'.
9c60689e 20875 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 20876 as_ln_s='cp -pR'
9c60689e
DWT
20877 elif ln conf$$.file conf$$ 2>/dev/null; then
20878 as_ln_s=ln
20879 else
53ba6704 20880 as_ln_s='cp -pR'
9c60689e
DWT
20881 fi
20882else
53ba6704 20883 as_ln_s='cp -pR'
9c60689e
DWT
20884fi
20885rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20886rmdir conf$$.dir 2>/dev/null
20887
20888
20889# as_fn_mkdir_p
20890# -------------
20891# Create "$as_dir" as a directory, including parents if necessary.
20892as_fn_mkdir_p ()
20893{
20894
20895 case $as_dir in #(
20896 -*) as_dir=./$as_dir;;
20897 esac
20898 test -d "$as_dir" || eval $as_mkdir_p || {
20899 as_dirs=
20900 while :; do
20901 case $as_dir in #(
20902 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20903 *) as_qdir=$as_dir;;
20904 esac
20905 as_dirs="'$as_qdir' $as_dirs"
20906 as_dir=`$as_dirname -- "$as_dir" ||
20907$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20908 X"$as_dir" : 'X\(//\)[^/]' \| \
20909 X"$as_dir" : 'X\(//\)$' \| \
20910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20911$as_echo X"$as_dir" |
20912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20913 s//\1/
20914 q
20915 }
20916 /^X\(\/\/\)[^/].*/{
20917 s//\1/
20918 q
20919 }
20920 /^X\(\/\/\)$/{
20921 s//\1/
20922 q
20923 }
20924 /^X\(\/\).*/{
20925 s//\1/
20926 q
20927 }
20928 s/.*/./; q'`
20929 test -d "$as_dir" && break
20930 done
20931 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 20932 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
20933
20934
20935} # as_fn_mkdir_p
20936if mkdir -p . 2>/dev/null; then
20937 as_mkdir_p='mkdir -p "$as_dir"'
20938else
20939 test -d ./-p && rmdir ./-p
20940 as_mkdir_p=false
20941fi
20942
53ba6704
JF
20943
20944# as_fn_executable_p FILE
20945# -----------------------
20946# Test if FILE is an executable regular file.
20947as_fn_executable_p ()
20948{
20949 test -f "$1" && test -x "$1"
20950} # as_fn_executable_p
20951as_test_x='test -x'
20952as_executable_p=as_fn_executable_p
9c60689e
DWT
20953
20954# Sed expression to map a string onto a valid CPP name.
20955as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20956
20957# Sed expression to map a string onto a valid variable name.
20958as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20959
20960
20961exec 6>&1
20962## ----------------------------------- ##
20963## Main body of $CONFIG_STATUS script. ##
20964## ----------------------------------- ##
20965_ASEOF
20966test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20967
20968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20969# Save the log message, to keep $0 and so on meaningful, and to
20970# report actual input values of CONFIG_FILES etc. instead of their
20971# values after options handling.
20972ac_log="
20973This file was extended by Cycript $as_me 0.9, which was
53ba6704 20974generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
20975
20976 CONFIG_FILES = $CONFIG_FILES
20977 CONFIG_HEADERS = $CONFIG_HEADERS
20978 CONFIG_LINKS = $CONFIG_LINKS
20979 CONFIG_COMMANDS = $CONFIG_COMMANDS
20980 $ $0 $@
20981
20982on `(hostname || uname -n) 2>/dev/null | sed 1q`
20983"
20984
20985_ACEOF
20986
20987case $ac_config_files in *"
20988"*) set x $ac_config_files; shift; ac_config_files=$*;;
20989esac
20990
296ee9a6
JF
20991case $ac_config_headers in *"
20992"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20993esac
9c60689e
DWT
20994
20995
20996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20997# Files that config.status was made for.
20998config_files="$ac_config_files"
296ee9a6 20999config_headers="$ac_config_headers"
9c60689e
DWT
21000config_commands="$ac_config_commands"
21001
21002_ACEOF
21003
21004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21005ac_cs_usage="\
21006\`$as_me' instantiates files and other configuration actions
21007from templates according to the current configuration. Unless the files
21008and actions are specified as TAGs, all are instantiated by default.
21009
21010Usage: $0 [OPTION]... [TAG]...
21011
21012 -h, --help print this help, then exit
21013 -V, --version print version number and configuration settings, then exit
21014 --config print configuration, then exit
21015 -q, --quiet, --silent
21016 do not print progress messages
21017 -d, --debug don't remove temporary files
21018 --recheck update $as_me by reconfiguring in the same conditions
21019 --file=FILE[:TEMPLATE]
21020 instantiate the configuration file FILE
296ee9a6
JF
21021 --header=FILE[:TEMPLATE]
21022 instantiate the configuration header FILE
9c60689e
DWT
21023
21024Configuration files:
21025$config_files
21026
296ee9a6
JF
21027Configuration headers:
21028$config_headers
21029
9c60689e
DWT
21030Configuration commands:
21031$config_commands
21032
21033Report bugs to <saurik@saurik.com>.
21034Cycript home page: <http://www.cycript.org/>."
21035
21036_ACEOF
21037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21038ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21039ac_cs_version="\\
21040Cycript config.status 0.9
53ba6704 21041configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
21042 with options \\"\$ac_cs_config\\"
21043
53ba6704 21044Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
21045This config.status script is free software; the Free Software Foundation
21046gives unlimited permission to copy, distribute and modify it."
21047
21048ac_pwd='$ac_pwd'
21049srcdir='$srcdir'
21050INSTALL='$INSTALL'
66170b30
JF
21051MKDIR_P='$MKDIR_P'
21052AWK='$AWK'
9c60689e
DWT
21053test -n "\$AWK" || AWK=awk
21054_ACEOF
21055
21056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21057# The default lists apply if the user does not specify any file.
21058ac_need_defaults=:
21059while test $# != 0
21060do
21061 case $1 in
12833ad8 21062 --*=?*)
9c60689e
DWT
21063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21064 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21065 ac_shift=:
21066 ;;
12833ad8
JF
21067 --*=)
21068 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21069 ac_optarg=
21070 ac_shift=:
21071 ;;
9c60689e
DWT
21072 *)
21073 ac_option=$1
21074 ac_optarg=$2
21075 ac_shift=shift
21076 ;;
21077 esac
21078
21079 case $ac_option in
21080 # Handling of the options.
21081 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21082 ac_cs_recheck=: ;;
21083 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21084 $as_echo "$ac_cs_version"; exit ;;
21085 --config | --confi | --conf | --con | --co | --c )
21086 $as_echo "$ac_cs_config"; exit ;;
21087 --debug | --debu | --deb | --de | --d | -d )
21088 debug=: ;;
21089 --file | --fil | --fi | --f )
21090 $ac_shift
21091 case $ac_optarg in
21092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 21093 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
21094 esac
21095 as_fn_append CONFIG_FILES " '$ac_optarg'"
21096 ac_need_defaults=false;;
296ee9a6
JF
21097 --header | --heade | --head | --hea )
21098 $ac_shift
21099 case $ac_optarg in
21100 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21101 esac
21102 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21103 ac_need_defaults=false;;
21104 --he | --h)
21105 # Conflict between --help and --header
21106 as_fn_error $? "ambiguous option: \`$1'
21107Try \`$0 --help' for more information.";;
21108 --help | --hel | -h )
9c60689e
DWT
21109 $as_echo "$ac_cs_usage"; exit ;;
21110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21111 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21112 ac_cs_silent=: ;;
21113
21114 # This is an error.
12833ad8 21115 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
21116Try \`$0 --help' for more information." ;;
21117
21118 *) as_fn_append ac_config_targets " $1"
21119 ac_need_defaults=false ;;
21120
21121 esac
21122 shift
21123done
21124
21125ac_configure_extra_args=
21126
21127if $ac_cs_silent; then
21128 exec 6>/dev/null
21129 ac_configure_extra_args="$ac_configure_extra_args --silent"
21130fi
21131
21132_ACEOF
21133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21134if \$ac_cs_recheck; then
53ba6704 21135 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
21136 shift
21137 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21138 CONFIG_SHELL='$SHELL'
21139 export CONFIG_SHELL
21140 exec "\$@"
21141fi
21142
21143_ACEOF
21144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21145exec 5>>config.log
21146{
21147 echo
21148 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21149## Running $as_me. ##
21150_ASBOX
21151 $as_echo "$ac_log"
21152} >&5
21153
21154_ACEOF
21155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21156#
21157# INIT-COMMANDS
21158#
66170b30 21159AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
21160
21161
21162# The HP-UX ksh and POSIX shell print the target directory to stdout
21163# if CDPATH is set.
21164(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21165
21166sed_quote_subst='$sed_quote_subst'
21167double_quote_subst='$double_quote_subst'
21168delay_variable_subst='$delay_variable_subst'
ee134472
JF
21169macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21170macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21171enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21172enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21173pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21174enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21175SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21176ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 21177PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21178host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21179host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21180host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21181build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21182build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21183build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21184SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21185Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21186GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21187EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21188FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21189LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21190NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21191LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21192max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21193ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21194exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21195lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21196lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21197lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21198lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21199lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21200reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21201reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21202OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21203deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21204file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21205file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21206want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21207DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21208sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21209AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21210AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21211archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21212STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21213RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21214old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21215old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21216old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21217lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21218CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21219CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21220compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21221GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21222lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21223lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21224lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21225lt_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"`'
21226nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21227lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21228objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21229MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21230lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21231lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21232lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21233lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21234lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21235need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21236MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21237DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21238NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21239LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21240OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21241OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21242libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21243shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21244extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21245archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21246enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21247export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21248whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21249compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21250old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21251old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21252archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21253archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21254module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21255module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21256with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21257allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21258no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21259hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21260hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21261hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21262hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21263hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21264hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21265hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21266inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21267link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21268always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21269export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21270exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21271include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21272prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21273postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21274file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21275variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21276need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21277need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21278version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21279runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21280shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21281shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21282libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21283library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21284soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21285install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21286postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21287postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21288finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21289finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21290hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21291sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21292sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21293hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21294enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21295enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21296enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21297old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21298striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21299compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21300predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21301postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21302predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21303postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21304compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21305LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21306reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21307reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21308old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21309compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21310GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21311lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21312lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21313lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21314lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21315lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21316archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21317enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21318export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21319whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21320compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21321old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21322old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21323archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21324archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21325module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21326module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21327with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21328allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21329no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21330hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21331hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21332hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21333hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21334hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21335hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21336hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21337inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21338link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21339always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21340export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21341exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21342include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21343prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21344postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21345file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21346hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21347compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21348predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21349postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21350predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21351postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21352compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
21353
21354LTCC='$LTCC'
21355LTCFLAGS='$LTCFLAGS'
21356compiler='$compiler_DEFAULT'
21357
ee134472
JF
21358# A function that is used when there is no print builtin or printf.
21359func_fallback_echo ()
21360{
21361 eval 'cat <<_LTECHO_EOF
21362\$1
21363_LTECHO_EOF'
21364}
21365
9c60689e 21366# Quote evaled strings.
ee134472
JF
21367for var in SHELL \
21368ECHO \
53ba6704 21369PATH_SEPARATOR \
ee134472 21370SED \
9c60689e
DWT
21371GREP \
21372EGREP \
21373FGREP \
21374LD \
21375NM \
21376LN_S \
21377lt_SP2NL \
21378lt_NL2SP \
21379reload_flag \
21380OBJDUMP \
21381deplibs_check_method \
21382file_magic_cmd \
ee134472
JF
21383file_magic_glob \
21384want_nocaseglob \
21385DLLTOOL \
21386sharedlib_from_linklib_cmd \
9c60689e
DWT
21387AR \
21388AR_FLAGS \
ee134472 21389archiver_list_spec \
9c60689e
DWT
21390STRIP \
21391RANLIB \
21392CC \
21393CFLAGS \
21394compiler \
21395lt_cv_sys_global_symbol_pipe \
21396lt_cv_sys_global_symbol_to_cdecl \
21397lt_cv_sys_global_symbol_to_c_name_address \
21398lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 21399nm_file_list_spec \
9c60689e 21400lt_prog_compiler_no_builtin_flag \
9c60689e 21401lt_prog_compiler_pic \
ee134472 21402lt_prog_compiler_wl \
9c60689e
DWT
21403lt_prog_compiler_static \
21404lt_cv_prog_compiler_c_o \
21405need_locks \
ee134472 21406MANIFEST_TOOL \
9c60689e
DWT
21407DSYMUTIL \
21408NMEDIT \
21409LIPO \
21410OTOOL \
21411OTOOL64 \
21412shrext_cmds \
21413export_dynamic_flag_spec \
21414whole_archive_flag_spec \
21415compiler_needs_object \
21416with_gnu_ld \
21417allow_undefined_flag \
21418no_undefined_flag \
21419hardcode_libdir_flag_spec \
9c60689e 21420hardcode_libdir_separator \
9c60689e
DWT
21421exclude_expsyms \
21422include_expsyms \
21423file_list_spec \
21424variables_saved_for_relink \
21425libname_spec \
21426library_names_spec \
21427soname_spec \
ee134472 21428install_override_mode \
9c60689e
DWT
21429finish_eval \
21430old_striplib \
21431striplib \
21432compiler_lib_search_dirs \
21433predep_objects \
21434postdep_objects \
21435predeps \
21436postdeps \
21437compiler_lib_search_path \
21438LD_CXX \
ee134472 21439reload_flag_CXX \
9c60689e
DWT
21440compiler_CXX \
21441lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 21442lt_prog_compiler_pic_CXX \
ee134472 21443lt_prog_compiler_wl_CXX \
9c60689e
DWT
21444lt_prog_compiler_static_CXX \
21445lt_cv_prog_compiler_c_o_CXX \
21446export_dynamic_flag_spec_CXX \
21447whole_archive_flag_spec_CXX \
21448compiler_needs_object_CXX \
21449with_gnu_ld_CXX \
21450allow_undefined_flag_CXX \
21451no_undefined_flag_CXX \
21452hardcode_libdir_flag_spec_CXX \
9c60689e 21453hardcode_libdir_separator_CXX \
9c60689e
DWT
21454exclude_expsyms_CXX \
21455include_expsyms_CXX \
21456file_list_spec_CXX \
21457compiler_lib_search_dirs_CXX \
21458predep_objects_CXX \
21459postdep_objects_CXX \
21460predeps_CXX \
21461postdeps_CXX \
21462compiler_lib_search_path_CXX; do
ee134472 21463 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21464 *[\\\\\\\`\\"\\\$]*)
ee134472 21465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
21466 ;;
21467 *)
21468 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21469 ;;
21470 esac
21471done
21472
21473# Double-quote double-evaled strings.
21474for var in reload_cmds \
21475old_postinstall_cmds \
21476old_postuninstall_cmds \
21477old_archive_cmds \
21478extract_expsyms_cmds \
21479old_archive_from_new_cmds \
21480old_archive_from_expsyms_cmds \
21481archive_cmds \
21482archive_expsym_cmds \
21483module_cmds \
21484module_expsym_cmds \
21485export_symbols_cmds \
21486prelink_cmds \
ee134472 21487postlink_cmds \
9c60689e
DWT
21488postinstall_cmds \
21489postuninstall_cmds \
21490finish_cmds \
21491sys_lib_search_path_spec \
21492sys_lib_dlsearch_path_spec \
ee134472 21493reload_cmds_CXX \
9c60689e
DWT
21494old_archive_cmds_CXX \
21495old_archive_from_new_cmds_CXX \
21496old_archive_from_expsyms_cmds_CXX \
21497archive_cmds_CXX \
21498archive_expsym_cmds_CXX \
21499module_cmds_CXX \
21500module_expsym_cmds_CXX \
21501export_symbols_cmds_CXX \
ee134472
JF
21502prelink_cmds_CXX \
21503postlink_cmds_CXX; do
21504 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21505 *[\\\\\\\`\\"\\\$]*)
ee134472 21506 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
21507 ;;
21508 *)
21509 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21510 ;;
21511 esac
21512done
21513
9c60689e
DWT
21514ac_aux_dir='$ac_aux_dir'
21515xsi_shell='$xsi_shell'
21516lt_shell_append='$lt_shell_append'
21517
21518# See if we are running on zsh, and set the options which allow our
21519# commands through without removal of \ escapes INIT.
21520if test -n "\${ZSH_VERSION+set}" ; then
21521 setopt NO_GLOB_SUBST
21522fi
21523
21524
21525 PACKAGE='$PACKAGE'
21526 VERSION='$VERSION'
21527 TIMESTAMP='$TIMESTAMP'
21528 RM='$RM'
21529 ofile='$ofile'
21530
21531
21532
21533
21534
21535
21536_ACEOF
21537
21538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21539
21540# Handling of arguments.
21541for ac_config_target in $ac_config_targets
21542do
21543 case $ac_config_target in
296ee9a6 21544 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 21545 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 21546 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 21547 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 21548
ee134472 21549 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
21550 esac
21551done
21552
21553
21554# If the user did not use the arguments to specify the items to instantiate,
21555# then the envvar interface is used. Set only those that are not.
21556# We use the long form for the default assignment because of an extremely
21557# bizarre bug on SunOS 4.1.3.
21558if $ac_need_defaults; then
21559 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 21560 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
21561 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21562fi
21563
21564# Have a temporary directory for convenience. Make it in the build tree
21565# simply because there is no reason against having it here, and in addition,
21566# creating and moving files from /tmp can sometimes cause problems.
21567# Hook for its removal unless debugging.
21568# Note that there is a small window in which the directory will not be cleaned:
21569# after its creation but before its name has been assigned to `$tmp'.
21570$debug ||
21571{
ee134472 21572 tmp= ac_tmp=
9c60689e 21573 trap 'exit_status=$?
ee134472
JF
21574 : "${ac_tmp:=$tmp}"
21575 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
21576' 0
21577 trap 'as_fn_exit 1' 1 2 13 15
21578}
21579# Create a (secure) tmp directory for tmp files.
21580
21581{
21582 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 21583 test -d "$tmp"
9c60689e
DWT
21584} ||
21585{
21586 tmp=./conf$$-$RANDOM
21587 (umask 077 && mkdir "$tmp")
12833ad8 21588} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 21589ac_tmp=$tmp
9c60689e
DWT
21590
21591# Set up the scripts for CONFIG_FILES section.
21592# No need to generate them if there are no CONFIG_FILES.
21593# This happens for instance with `./config.status config.h'.
21594if test -n "$CONFIG_FILES"; then
21595
21596
21597ac_cr=`echo X | tr X '\015'`
21598# On cygwin, bash can eat \r inside `` if the user requested igncr.
21599# But we know of no other shell where ac_cr would be empty at this
21600# point, so we can use a bashism as a fallback.
21601if test "x$ac_cr" = x; then
21602 eval ac_cr=\$\'\\r\'
21603fi
21604ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21605if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 21606 ac_cs_awk_cr='\\r'
9c60689e
DWT
21607else
21608 ac_cs_awk_cr=$ac_cr
21609fi
21610
ee134472 21611echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
21612_ACEOF
21613
21614
21615{
21616 echo "cat >conf$$subs.awk <<_ACEOF" &&
21617 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21618 echo "_ACEOF"
21619} >conf$$subs.sh ||
12833ad8
JF
21620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21621ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
21622ac_delim='%!_!# '
21623for ac_last_try in false false false false false :; do
21624 . ./conf$$subs.sh ||
12833ad8 21625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21626
21627 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21628 if test $ac_delim_n = $ac_delim_num; then
21629 break
21630 elif $ac_last_try; then
12833ad8 21631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21632 else
21633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21634 fi
21635done
21636rm -f conf$$subs.sh
21637
21638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 21639cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
21640_ACEOF
21641sed -n '
21642h
21643s/^/S["/; s/!.*/"]=/
21644p
21645g
21646s/^[^!]*!//
21647:repl
21648t repl
21649s/'"$ac_delim"'$//
21650t delim
21651:nl
21652h
21653s/\(.\{148\}\)..*/\1/
21654t more1
21655s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21656p
21657n
21658b repl
21659:more1
21660s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21661p
21662g
21663s/.\{148\}//
21664t nl
21665:delim
21666h
21667s/\(.\{148\}\)..*/\1/
21668t more2
21669s/["\\]/\\&/g; s/^/"/; s/$/"/
21670p
21671b
21672:more2
21673s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21674p
21675g
21676s/.\{148\}//
21677t delim
21678' <conf$$subs.awk | sed '
21679/^[^""]/{
21680 N
21681 s/\n//
21682}
21683' >>$CONFIG_STATUS || ac_write_fail=1
21684rm -f conf$$subs.awk
21685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21686_ACAWK
ee134472 21687cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
21688 for (key in S) S_is_set[key] = 1
21689 FS = "\a"
21690
21691}
21692{
21693 line = $ 0
21694 nfields = split(line, field, "@")
21695 substed = 0
21696 len = length(field[1])
21697 for (i = 2; i < nfields; i++) {
21698 key = field[i]
21699 keylen = length(key)
21700 if (S_is_set[key]) {
21701 value = S[key]
21702 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21703 len += length(value) + length(field[++i])
21704 substed = 1
21705 } else
21706 len += 1 + keylen
21707 }
21708
21709 print line
21710}
21711
21712_ACAWK
21713_ACEOF
21714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21715if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21717else
21718 cat
ee134472 21719fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 21720 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
21721_ACEOF
21722
12833ad8
JF
21723# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21724# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
21725# trailing colons and then remove the whole line if VPATH becomes empty
21726# (actually we leave an empty line to preserve line numbers).
21727if test "x$srcdir" = x.; then
12833ad8
JF
21728 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21729h
21730s///
21731s/^/:/
21732s/[ ]*$/:/
21733s/:\$(srcdir):/:/g
21734s/:\${srcdir}:/:/g
21735s/:@srcdir@:/:/g
21736s/^:*//
9c60689e 21737s/:*$//
12833ad8
JF
21738x
21739s/\(=[ ]*\).*/\1/
21740G
21741s/\n//
9c60689e
DWT
21742s/^[^=]*=[ ]*$//
21743}'
21744fi
21745
21746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21747fi # test -n "$CONFIG_FILES"
21748
296ee9a6
JF
21749# Set up the scripts for CONFIG_HEADERS section.
21750# No need to generate them if there are no CONFIG_HEADERS.
21751# This happens for instance with `./config.status Makefile'.
21752if test -n "$CONFIG_HEADERS"; then
21753cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21754BEGIN {
21755_ACEOF
21756
21757# Transform confdefs.h into an awk script `defines.awk', embedded as
21758# here-document in config.status, that substitutes the proper values into
21759# config.h.in to produce config.h.
21760
21761# Create a delimiter string that does not exist in confdefs.h, to ease
21762# handling of long lines.
21763ac_delim='%!_!# '
21764for ac_last_try in false false :; do
21765 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21766 if test -z "$ac_tt"; then
21767 break
21768 elif $ac_last_try; then
21769 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21770 else
21771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21772 fi
21773done
21774
21775# For the awk script, D is an array of macro values keyed by name,
21776# likewise P contains macro parameters if any. Preserve backslash
21777# newline sequences.
21778
21779ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21780sed -n '
21781s/.\{148\}/&'"$ac_delim"'/g
21782t rset
21783:rset
21784s/^[ ]*#[ ]*define[ ][ ]*/ /
21785t def
21786d
21787:def
21788s/\\$//
21789t bsnl
21790s/["\\]/\\&/g
21791s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21792D["\1"]=" \3"/p
21793s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21794d
21795:bsnl
21796s/["\\]/\\&/g
21797s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21798D["\1"]=" \3\\\\\\n"\\/p
21799t cont
21800s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21801t cont
21802d
21803:cont
21804n
21805s/.\{148\}/&'"$ac_delim"'/g
21806t clear
21807:clear
21808s/\\$//
21809t bsnlc
21810s/["\\]/\\&/g; s/^/"/; s/$/"/p
21811d
21812:bsnlc
21813s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21814b cont
21815' <confdefs.h | sed '
21816s/'"$ac_delim"'/"\\\
21817"/g' >>$CONFIG_STATUS || ac_write_fail=1
21818
21819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21820 for (key in D) D_is_set[key] = 1
21821 FS = "\a"
21822}
21823/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21824 line = \$ 0
21825 split(line, arg, " ")
21826 if (arg[1] == "#") {
21827 defundef = arg[2]
21828 mac1 = arg[3]
21829 } else {
21830 defundef = substr(arg[1], 2)
21831 mac1 = arg[2]
21832 }
21833 split(mac1, mac2, "(") #)
21834 macro = mac2[1]
21835 prefix = substr(line, 1, index(line, defundef) - 1)
21836 if (D_is_set[macro]) {
21837 # Preserve the white space surrounding the "#".
21838 print prefix "define", macro P[macro] D[macro]
21839 next
21840 } else {
21841 # Replace #undef with comments. This is necessary, for example,
21842 # in the case of _POSIX_SOURCE, which is predefined and required
21843 # on some systems where configure will not decide to define it.
21844 if (defundef == "undef") {
21845 print "/*", prefix defundef, macro, "*/"
21846 next
21847 }
21848 }
21849}
21850{ print }
21851_ACAWK
21852_ACEOF
21853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21854 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21855fi # test -n "$CONFIG_HEADERS"
21856
9c60689e 21857
296ee9a6 21858eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
21859shift
21860for ac_tag
21861do
21862 case $ac_tag in
21863 :[FHLC]) ac_mode=$ac_tag; continue;;
21864 esac
21865 case $ac_mode$ac_tag in
21866 :[FHL]*:*);;
ee134472 21867 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
21868 :[FH]-) ac_tag=-:-;;
21869 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21870 esac
21871 ac_save_IFS=$IFS
21872 IFS=:
21873 set x $ac_tag
21874 IFS=$ac_save_IFS
21875 shift
21876 ac_file=$1
21877 shift
21878
21879 case $ac_mode in
21880 :L) ac_source=$1;;
21881 :[FH])
21882 ac_file_inputs=
21883 for ac_f
21884 do
21885 case $ac_f in
ee134472 21886 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
21887 *) # Look for the file first in the build tree, then in the source tree
21888 # (if the path is not absolute). The absolute path cannot be DOS-style,
21889 # because $ac_f cannot contain `:'.
21890 test -f "$ac_f" ||
21891 case $ac_f in
21892 [\\/$]*) false;;
21893 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21894 esac ||
ee134472 21895 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
21896 esac
21897 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21898 as_fn_append ac_file_inputs " '$ac_f'"
21899 done
21900
21901 # Let's still pretend it is `configure' which instantiates (i.e., don't
21902 # use $as_me), people would be surprised to read:
21903 # /* config.h. Generated by config.status. */
21904 configure_input='Generated from '`
21905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21906 `' by configure.'
21907 if test x"$ac_file" != x-; then
21908 configure_input="$ac_file. $configure_input"
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21910$as_echo "$as_me: creating $ac_file" >&6;}
21911 fi
21912 # Neutralize special characters interpreted by sed in replacement strings.
21913 case $configure_input in #(
21914 *\&* | *\|* | *\\* )
21915 ac_sed_conf_input=`$as_echo "$configure_input" |
21916 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21917 *) ac_sed_conf_input=$configure_input;;
21918 esac
21919
21920 case $ac_tag in
ee134472
JF
21921 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
21923 esac
21924 ;;
21925 esac
21926
21927 ac_dir=`$as_dirname -- "$ac_file" ||
21928$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21929 X"$ac_file" : 'X\(//\)[^/]' \| \
21930 X"$ac_file" : 'X\(//\)$' \| \
21931 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21932$as_echo X"$ac_file" |
21933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21934 s//\1/
21935 q
21936 }
21937 /^X\(\/\/\)[^/].*/{
21938 s//\1/
21939 q
21940 }
21941 /^X\(\/\/\)$/{
21942 s//\1/
21943 q
21944 }
21945 /^X\(\/\).*/{
21946 s//\1/
21947 q
21948 }
21949 s/.*/./; q'`
21950 as_dir="$ac_dir"; as_fn_mkdir_p
21951 ac_builddir=.
21952
21953case "$ac_dir" in
21954.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21955*)
21956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21957 # A ".." for each directory in $ac_dir_suffix.
21958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21959 case $ac_top_builddir_sub in
21960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21962 esac ;;
21963esac
21964ac_abs_top_builddir=$ac_pwd
21965ac_abs_builddir=$ac_pwd$ac_dir_suffix
21966# for backward compatibility:
21967ac_top_builddir=$ac_top_build_prefix
35fa52c0 21968
9c60689e
DWT
21969case $srcdir in
21970 .) # We are building in place.
21971 ac_srcdir=.
21972 ac_top_srcdir=$ac_top_builddir_sub
21973 ac_abs_top_srcdir=$ac_pwd ;;
21974 [\\/]* | ?:[\\/]* ) # Absolute name.
21975 ac_srcdir=$srcdir$ac_dir_suffix;
21976 ac_top_srcdir=$srcdir
21977 ac_abs_top_srcdir=$srcdir ;;
21978 *) # Relative name.
21979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21980 ac_top_srcdir=$ac_top_build_prefix$srcdir
21981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21982esac
21983ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
21984
21985
9c60689e
DWT
21986 case $ac_mode in
21987 :F)
21988 #
21989 # CONFIG_FILE
21990 #
35fa52c0 21991
9c60689e
DWT
21992 case $INSTALL in
21993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21994 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21995 esac
66170b30
JF
21996 ac_MKDIR_P=$MKDIR_P
21997 case $MKDIR_P in
21998 [\\/$]* | ?:[\\/]* ) ;;
21999 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22000 esac
9c60689e 22001_ACEOF
35fa52c0 22002
9c60689e
DWT
22003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22004# If the template does not know about datarootdir, expand it.
22005# FIXME: This hack should be removed a few years after 2.60.
22006ac_datarootdir_hack=; ac_datarootdir_seen=
22007ac_sed_dataroot='
22008/datarootdir/ {
22009 p
22010 q
22011}
22012/@datadir@/p
22013/@docdir@/p
22014/@infodir@/p
22015/@localedir@/p
22016/@mandir@/p'
22017case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22018*datarootdir*) ac_datarootdir_seen=yes;;
22019*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22021$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22022_ACEOF
22023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22024 ac_datarootdir_hack='
22025 s&@datadir@&$datadir&g
22026 s&@docdir@&$docdir&g
22027 s&@infodir@&$infodir&g
22028 s&@localedir@&$localedir&g
22029 s&@mandir@&$mandir&g
22030 s&\\\${datarootdir}&$datarootdir&g' ;;
22031esac
22032_ACEOF
35fa52c0 22033
9c60689e
DWT
22034# Neutralize VPATH when `$srcdir' = `.'.
22035# Shell code in configure.ac might set extrasub.
22036# FIXME: do we really want to maintain this feature?
22037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22038ac_sed_extra="$ac_vpsub
22039$extrasub
22040_ACEOF
22041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22042:t
22043/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22044s|@configure_input@|$ac_sed_conf_input|;t t
22045s&@top_builddir@&$ac_top_builddir_sub&;t t
22046s&@top_build_prefix@&$ac_top_build_prefix&;t t
22047s&@srcdir@&$ac_srcdir&;t t
22048s&@abs_srcdir@&$ac_abs_srcdir&;t t
22049s&@top_srcdir@&$ac_top_srcdir&;t t
22050s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22051s&@builddir@&$ac_builddir&;t t
22052s&@abs_builddir@&$ac_abs_builddir&;t t
22053s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22054s&@INSTALL@&$ac_INSTALL&;t t
66170b30 22055s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
22056$ac_datarootdir_hack
22057"
ee134472
JF
22058eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22059 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
22060
22061test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
22062 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22063 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22064 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 22065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22066which seems to be undefined. Please make sure it is defined" >&5
9c60689e 22067$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22068which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 22069
ee134472 22070 rm -f "$ac_tmp/stdin"
9c60689e 22071 case $ac_file in
ee134472
JF
22072 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22073 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 22074 esac \
12833ad8 22075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 22076 ;;
296ee9a6
JF
22077 :H)
22078 #
22079 # CONFIG_HEADER
22080 #
22081 if test x"$ac_file" != x-; then
22082 {
22083 $as_echo "/* $configure_input */" \
22084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22085 } >"$ac_tmp/config.h" \
22086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22087 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22089$as_echo "$as_me: $ac_file is unchanged" >&6;}
22090 else
22091 rm -f "$ac_file"
22092 mv "$ac_tmp/config.h" "$ac_file" \
22093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22094 fi
22095 else
22096 $as_echo "/* $configure_input */" \
22097 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22098 || as_fn_error $? "could not create -" "$LINENO" 5
22099 fi
22100# Compute "$ac_file"'s index in $config_headers.
22101_am_arg="$ac_file"
22102_am_stamp_count=1
22103for _am_header in $config_headers :; do
22104 case $_am_header in
22105 $_am_arg | $_am_arg:* )
22106 break ;;
22107 * )
22108 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22109 esac
22110done
22111echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22112$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22113 X"$_am_arg" : 'X\(//\)[^/]' \| \
22114 X"$_am_arg" : 'X\(//\)$' \| \
22115 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22116$as_echo X"$_am_arg" |
22117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22118 s//\1/
22119 q
22120 }
22121 /^X\(\/\/\)[^/].*/{
22122 s//\1/
22123 q
22124 }
22125 /^X\(\/\/\)$/{
22126 s//\1/
22127 q
22128 }
22129 /^X\(\/\).*/{
22130 s//\1/
22131 q
22132 }
22133 s/.*/./; q'`/stamp-h$_am_stamp_count
22134 ;;
35fa52c0 22135
9c60689e
DWT
22136 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22137$as_echo "$as_me: executing $ac_file commands" >&6;}
22138 ;;
22139 esac
35fa52c0 22140
35fa52c0 22141
9c60689e 22142 case $ac_file$ac_mode in
66170b30
JF
22143 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22144 # Older Autoconf quotes --file arguments for eval, but not when files
22145 # are listed without --file. Let's play safe and only enable the eval
22146 # if we detect the quoting.
22147 case $CONFIG_FILES in
22148 *\'*) eval set x "$CONFIG_FILES" ;;
22149 *) set x $CONFIG_FILES ;;
22150 esac
22151 shift
22152 for mf
22153 do
22154 # Strip MF so we end up with the name of the file.
22155 mf=`echo "$mf" | sed -e 's/:.*$//'`
22156 # Check whether this is an Automake generated Makefile or not.
22157 # We used to match only the files named 'Makefile.in', but
22158 # some people rename them; so instead we look at the file content.
22159 # Grep'ing the first line is not enough: some people post-process
22160 # each Makefile.in and add a new line on top of each file to say so.
22161 # Grep'ing the whole file is not good either: AIX grep has a line
22162 # limit of 2048, but all sed's we know have understand at least 4000.
22163 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22164 dirpart=`$as_dirname -- "$mf" ||
22165$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22166 X"$mf" : 'X\(//\)[^/]' \| \
22167 X"$mf" : 'X\(//\)$' \| \
22168 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22169$as_echo X"$mf" |
22170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22171 s//\1/
22172 q
22173 }
22174 /^X\(\/\/\)[^/].*/{
22175 s//\1/
22176 q
22177 }
22178 /^X\(\/\/\)$/{
22179 s//\1/
22180 q
22181 }
22182 /^X\(\/\).*/{
22183 s//\1/
22184 q
22185 }
22186 s/.*/./; q'`
22187 else
22188 continue
22189 fi
22190 # Extract the definition of DEPDIR, am__include, and am__quote
22191 # from the Makefile without running 'make'.
22192 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22193 test -z "$DEPDIR" && continue
22194 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 22195 test -z "$am__include" && continue
66170b30
JF
22196 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22197 # Find all dependency output files, they are included files with
22198 # $(DEPDIR) in their names. We invoke sed twice because it is the
22199 # simplest approach to changing $(DEPDIR) to its actual value in the
22200 # expansion.
22201 for file in `sed -n "
22202 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22203 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22204 # Make sure the directory exists.
22205 test -f "$dirpart/$file" && continue
22206 fdir=`$as_dirname -- "$file" ||
22207$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22208 X"$file" : 'X\(//\)[^/]' \| \
22209 X"$file" : 'X\(//\)$' \| \
22210 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22211$as_echo X"$file" |
22212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22213 s//\1/
22214 q
22215 }
22216 /^X\(\/\/\)[^/].*/{
22217 s//\1/
22218 q
22219 }
22220 /^X\(\/\/\)$/{
22221 s//\1/
22222 q
22223 }
22224 /^X\(\/\).*/{
22225 s//\1/
22226 q
22227 }
22228 s/.*/./; q'`
22229 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22230 # echo "creating $dirpart/$file"
22231 echo '# dummy' > "$dirpart/$file"
22232 done
22233 done
22234}
22235 ;;
9c60689e
DWT
22236 "libtool":C)
22237
22238 # See if we are running on zsh, and set the options which allow our
22239 # commands through without removal of \ escapes.
22240 if test -n "${ZSH_VERSION+set}" ; then
22241 setopt NO_GLOB_SUBST
35fa52c0 22242 fi
35fa52c0 22243
9c60689e
DWT
22244 cfgfile="${ofile}T"
22245 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22246 $RM "$cfgfile"
35fa52c0 22247
9c60689e
DWT
22248 cat <<_LT_EOF >> "$cfgfile"
22249#! $SHELL
35fa52c0 22250
9c60689e
DWT
22251# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22252# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22253# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22254# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22255#
22256# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
53ba6704
JF
22257# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22258# Foundation, Inc.
9c60689e
DWT
22259# Written by Gordon Matzigkeit, 1996
22260#
22261# This file is part of GNU Libtool.
22262#
22263# GNU Libtool is free software; you can redistribute it and/or
22264# modify it under the terms of the GNU General Public License as
22265# published by the Free Software Foundation; either version 2 of
22266# the License, or (at your option) any later version.
22267#
22268# As a special exception to the GNU General Public License,
22269# if you distribute this file as part of a program or library that
22270# is built using GNU Libtool, you may include this file under the
22271# same distribution terms that you use for the rest of that program.
22272#
22273# GNU Libtool is distributed in the hope that it will be useful,
22274# but WITHOUT ANY WARRANTY; without even the implied warranty of
22275# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22276# GNU General Public License for more details.
22277#
22278# You should have received a copy of the GNU General Public License
22279# along with GNU Libtool; see the file COPYING. If not, a copy
22280# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22281# obtained by writing to the Free Software Foundation, Inc.,
22282# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 22283
35fa52c0 22284
9c60689e
DWT
22285# The names of the tagged configurations supported by this script.
22286available_tags="CXX "
35fa52c0 22287
9c60689e 22288# ### BEGIN LIBTOOL CONFIG
35fa52c0 22289
9c60689e
DWT
22290# Which release of libtool.m4 was used?
22291macro_version=$macro_version
22292macro_revision=$macro_revision
35fa52c0 22293
9c60689e
DWT
22294# Whether or not to build static libraries.
22295build_old_libs=$enable_static
35fa52c0 22296
549f29b5
DWT
22297# Whether or not to build shared libraries.
22298build_libtool_libs=$enable_shared
22299
9c60689e
DWT
22300# What type of objects to build.
22301pic_mode=$pic_mode
35fa52c0 22302
9c60689e
DWT
22303# Whether or not to optimize for fast installation.
22304fast_install=$enable_fast_install
35fa52c0 22305
ee134472
JF
22306# Shell to use when invoking shell scripts.
22307SHELL=$lt_SHELL
22308
22309# An echo program that protects backslashes.
22310ECHO=$lt_ECHO
22311
53ba6704
JF
22312# The PATH separator for the build system.
22313PATH_SEPARATOR=$lt_PATH_SEPARATOR
22314
9c60689e
DWT
22315# The host system.
22316host_alias=$host_alias
22317host=$host
22318host_os=$host_os
35fa52c0 22319
9c60689e
DWT
22320# The build system.
22321build_alias=$build_alias
22322build=$build
22323build_os=$build_os
22324
22325# A sed program that does not truncate output.
22326SED=$lt_SED
22327
22328# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22329Xsed="\$SED -e 1s/^X//"
22330
22331# A grep program that handles long lines.
22332GREP=$lt_GREP
22333
22334# An ERE matcher.
22335EGREP=$lt_EGREP
22336
22337# A literal string matcher.
22338FGREP=$lt_FGREP
22339
22340# A BSD- or MS-compatible name lister.
22341NM=$lt_NM
22342
22343# Whether we need soft or hard links.
22344LN_S=$lt_LN_S
22345
22346# What is the maximum length of a command?
22347max_cmd_len=$max_cmd_len
22348
22349# Object file suffix (normally "o").
22350objext=$ac_objext
22351
22352# Executable file suffix (normally "").
22353exeext=$exeext
22354
22355# whether the shell understands "unset".
22356lt_unset=$lt_unset
22357
22358# turn spaces into newlines.
22359SP2NL=$lt_lt_SP2NL
22360
22361# turn newlines into spaces.
22362NL2SP=$lt_lt_NL2SP
22363
ee134472
JF
22364# convert \$build file names to \$host format.
22365to_host_file_cmd=$lt_cv_to_host_file_cmd
22366
22367# convert \$build files to toolchain format.
22368to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
22369
22370# An object symbol dumper.
22371OBJDUMP=$lt_OBJDUMP
22372
22373# Method to check whether dependent libraries are shared objects.
22374deplibs_check_method=$lt_deplibs_check_method
22375
ee134472 22376# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
22377file_magic_cmd=$lt_file_magic_cmd
22378
ee134472
JF
22379# How to find potential files when deplibs_check_method = "file_magic".
22380file_magic_glob=$lt_file_magic_glob
22381
22382# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22383want_nocaseglob=$lt_want_nocaseglob
22384
22385# DLL creation program.
22386DLLTOOL=$lt_DLLTOOL
22387
22388# Command to associate shared and link libraries.
22389sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22390
9c60689e
DWT
22391# The archiver.
22392AR=$lt_AR
ee134472
JF
22393
22394# Flags to create an archive.
9c60689e
DWT
22395AR_FLAGS=$lt_AR_FLAGS
22396
ee134472
JF
22397# How to feed a file listing to the archiver.
22398archiver_list_spec=$lt_archiver_list_spec
22399
9c60689e
DWT
22400# A symbol stripping program.
22401STRIP=$lt_STRIP
22402
22403# Commands used to install an old-style archive.
22404RANLIB=$lt_RANLIB
22405old_postinstall_cmds=$lt_old_postinstall_cmds
22406old_postuninstall_cmds=$lt_old_postuninstall_cmds
22407
ee134472
JF
22408# Whether to use a lock for old archive extraction.
22409lock_old_archive_extraction=$lock_old_archive_extraction
22410
9c60689e
DWT
22411# A C compiler.
22412LTCC=$lt_CC
22413
22414# LTCC compiler flags.
22415LTCFLAGS=$lt_CFLAGS
22416
22417# Take the output of nm and produce a listing of raw symbols and C names.
22418global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22419
22420# Transform the output of nm in a proper C declaration.
22421global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22422
22423# Transform the output of nm in a C name address pair.
22424global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22425
22426# Transform the output of nm in a C name address pair when lib prefix is needed.
22427global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22428
ee134472
JF
22429# Specify filename containing input files for \$NM.
22430nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 22431
ee134472
JF
22432# The root where to search for dependent libraries,and in which our libraries should be installed.
22433lt_sysroot=$lt_sysroot
9c60689e 22434
ee134472
JF
22435# The name of the directory that contains temporary libtool files.
22436objdir=$objdir
9c60689e
DWT
22437
22438# Used to examine libraries when file_magic_cmd begins with "file".
22439MAGIC_CMD=$MAGIC_CMD
22440
22441# Must we lock files when doing compilation?
22442need_locks=$lt_need_locks
22443
ee134472
JF
22444# Manifest tool.
22445MANIFEST_TOOL=$lt_MANIFEST_TOOL
22446
9c60689e
DWT
22447# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22448DSYMUTIL=$lt_DSYMUTIL
22449
22450# Tool to change global to local symbols on Mac OS X.
22451NMEDIT=$lt_NMEDIT
22452
22453# Tool to manipulate fat objects and archives on Mac OS X.
22454LIPO=$lt_LIPO
22455
22456# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22457OTOOL=$lt_OTOOL
22458
22459# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22460OTOOL64=$lt_OTOOL64
22461
22462# Old archive suffix (normally "a").
22463libext=$libext
22464
22465# Shared library suffix (normally ".so").
22466shrext_cmds=$lt_shrext_cmds
35fa52c0 22467
9c60689e
DWT
22468# The commands to extract the exported symbol list from a shared archive.
22469extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 22470
9c60689e
DWT
22471# Variables whose values should be saved in libtool wrapper scripts and
22472# restored at link time.
22473variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 22474
9c60689e
DWT
22475# Do we need the "lib" prefix for modules?
22476need_lib_prefix=$need_lib_prefix
35fa52c0 22477
9c60689e
DWT
22478# Do we need a version for libraries?
22479need_version=$need_version
35fa52c0 22480
9c60689e
DWT
22481# Library versioning type.
22482version_type=$version_type
35fa52c0 22483
9c60689e
DWT
22484# Shared library runtime path variable.
22485runpath_var=$runpath_var
35fa52c0 22486
9c60689e
DWT
22487# Shared library path variable.
22488shlibpath_var=$shlibpath_var
35fa52c0 22489
9c60689e
DWT
22490# Is shlibpath searched before the hard-coded library search path?
22491shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 22492
9c60689e
DWT
22493# Format of library name prefix.
22494libname_spec=$lt_libname_spec
35fa52c0 22495
9c60689e
DWT
22496# List of archive names. First name is the real one, the rest are links.
22497# The last name is the one that the linker finds with -lNAME
22498library_names_spec=$lt_library_names_spec
dbadc56a 22499
9c60689e
DWT
22500# The coded name of the library, if different from the real name.
22501soname_spec=$lt_soname_spec
dbadc56a 22502
ee134472
JF
22503# Permission mode override for installation of shared libraries.
22504install_override_mode=$lt_install_override_mode
22505
9c60689e
DWT
22506# Command to use after installation of a shared archive.
22507postinstall_cmds=$lt_postinstall_cmds
35fa52c0 22508
9c60689e
DWT
22509# Command to use after uninstallation of a shared archive.
22510postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 22511
9c60689e
DWT
22512# Commands used to finish a libtool library installation in a directory.
22513finish_cmds=$lt_finish_cmds
35fa52c0 22514
9c60689e
DWT
22515# As "finish_cmds", except a single script fragment to be evaled but
22516# not shown.
22517finish_eval=$lt_finish_eval
35fa52c0 22518
9c60689e
DWT
22519# Whether we should hardcode library paths into libraries.
22520hardcode_into_libs=$hardcode_into_libs
dbadc56a 22521
9c60689e
DWT
22522# Compile-time system search path for libraries.
22523sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 22524
9c60689e
DWT
22525# Run-time system search path for libraries.
22526sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 22527
9c60689e
DWT
22528# Whether dlopen is supported.
22529dlopen_support=$enable_dlopen
dbadc56a 22530
9c60689e
DWT
22531# Whether dlopen of programs is supported.
22532dlopen_self=$enable_dlopen_self
35fa52c0 22533
9c60689e
DWT
22534# Whether dlopen of statically linked programs is supported.
22535dlopen_self_static=$enable_dlopen_self_static
35fa52c0 22536
9c60689e
DWT
22537# Commands to strip libraries.
22538old_striplib=$lt_old_striplib
22539striplib=$lt_striplib
35fa52c0 22540
35fa52c0 22541
9c60689e
DWT
22542# The linker used to build libraries.
22543LD=$lt_LD
dbadc56a 22544
ee134472
JF
22545# How to create reloadable object files.
22546reload_flag=$lt_reload_flag
22547reload_cmds=$lt_reload_cmds
22548
9c60689e
DWT
22549# Commands used to build an old-style archive.
22550old_archive_cmds=$lt_old_archive_cmds
dbadc56a 22551
9c60689e
DWT
22552# A language specific compiler.
22553CC=$lt_compiler
35fa52c0 22554
9c60689e
DWT
22555# Is the compiler the GNU compiler?
22556with_gcc=$GCC
dbadc56a 22557
9c60689e
DWT
22558# Compiler flag to turn off builtin functions.
22559no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 22560
9c60689e
DWT
22561# Additional compiler flags for building library objects.
22562pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 22563
ee134472
JF
22564# How to pass a linker flag through the compiler.
22565wl=$lt_lt_prog_compiler_wl
22566
9c60689e
DWT
22567# Compiler flag to prevent dynamic linking.
22568link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 22569
9c60689e
DWT
22570# Does compiler simultaneously support -c and -o options?
22571compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 22572
9c60689e
DWT
22573# Whether or not to add -lc for building shared libraries.
22574build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 22575
9c60689e
DWT
22576# Whether or not to disallow shared libs when runtime libs are static.
22577allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 22578
9c60689e
DWT
22579# Compiler flag to allow reflexive dlopens.
22580export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 22581
9c60689e
DWT
22582# Compiler flag to generate shared objects directly from archives.
22583whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 22584
9c60689e
DWT
22585# Whether the compiler copes with passing no objects directly.
22586compiler_needs_object=$lt_compiler_needs_object
dbadc56a 22587
9c60689e
DWT
22588# Create an old-style archive from a shared archive.
22589old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 22590
9c60689e
DWT
22591# Create a temporary old-style archive to link instead of a shared archive.
22592old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 22593
9c60689e
DWT
22594# Commands used to build a shared archive.
22595archive_cmds=$lt_archive_cmds
22596archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 22597
9c60689e
DWT
22598# Commands used to build a loadable module if different from building
22599# a shared archive.
22600module_cmds=$lt_module_cmds
22601module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 22602
9c60689e
DWT
22603# Whether we are building with GNU ld or not.
22604with_gnu_ld=$lt_with_gnu_ld
6b66678a 22605
9c60689e
DWT
22606# Flag that allows shared libraries with undefined symbols to be built.
22607allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 22608
9c60689e
DWT
22609# Flag that enforces no undefined symbols.
22610no_undefined_flag=$lt_no_undefined_flag
6b66678a 22611
9c60689e
DWT
22612# Flag to hardcode \$libdir into a binary during linking.
22613# This must work even if \$libdir does not exist
22614hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 22615
9c60689e
DWT
22616# Whether we need a single "-rpath" flag with a separated argument.
22617hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 22618
9c60689e
DWT
22619# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22620# DIR into the resulting binary.
22621hardcode_direct=$hardcode_direct
6b66678a 22622
9c60689e
DWT
22623# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22624# DIR into the resulting binary and the resulting library dependency is
22625# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22626# library is relocated.
22627hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 22628
9c60689e
DWT
22629# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22630# into the resulting binary.
22631hardcode_minus_L=$hardcode_minus_L
6b66678a 22632
9c60689e
DWT
22633# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22634# into the resulting binary.
22635hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 22636
9c60689e
DWT
22637# Set to "yes" if building a shared library automatically hardcodes DIR
22638# into the library and all subsequent libraries and executables linked
22639# against it.
22640hardcode_automatic=$hardcode_automatic
6b66678a 22641
9c60689e
DWT
22642# Set to yes if linker adds runtime paths of dependent libraries
22643# to runtime path list.
22644inherit_rpath=$inherit_rpath
6b66678a 22645
9c60689e
DWT
22646# Whether libtool must link a program against all its dependency libraries.
22647link_all_deplibs=$link_all_deplibs
22648
9c60689e
DWT
22649# Set to "yes" if exported symbols are required.
22650always_export_symbols=$always_export_symbols
6b66678a 22651
9c60689e
DWT
22652# The commands to list exported symbols.
22653export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 22654
9c60689e
DWT
22655# Symbols that should not be listed in the preloaded symbols.
22656exclude_expsyms=$lt_exclude_expsyms
6b66678a 22657
9c60689e
DWT
22658# Symbols that must always be exported.
22659include_expsyms=$lt_include_expsyms
6b66678a 22660
9c60689e
DWT
22661# Commands necessary for linking programs (against libraries) with templates.
22662prelink_cmds=$lt_prelink_cmds
6b66678a 22663
ee134472
JF
22664# Commands necessary for finishing linking programs.
22665postlink_cmds=$lt_postlink_cmds
22666
9c60689e
DWT
22667# Specify filename containing input files.
22668file_list_spec=$lt_file_list_spec
6b66678a 22669
9c60689e
DWT
22670# How to hardcode a shared library path into an executable.
22671hardcode_action=$hardcode_action
22672
22673# The directories searched by this compiler when creating a shared library.
22674compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22675
22676# Dependencies to place before and after the objects being linked to
22677# create a shared library.
22678predep_objects=$lt_predep_objects
22679postdep_objects=$lt_postdep_objects
22680predeps=$lt_predeps
22681postdeps=$lt_postdeps
22682
22683# The library search path used internally by the compiler when linking
22684# a shared library.
22685compiler_lib_search_path=$lt_compiler_lib_search_path
22686
22687# ### END LIBTOOL CONFIG
22688
22689_LT_EOF
22690
22691 case $host_os in
22692 aix3*)
22693 cat <<\_LT_EOF >> "$cfgfile"
22694# AIX sometimes has problems with the GCC collect2 program. For some
22695# reason, if we set the COLLECT_NAMES environment variable, the problems
22696# vanish in a puff of smoke.
22697if test "X${COLLECT_NAMES+set}" != Xset; then
22698 COLLECT_NAMES=
22699 export COLLECT_NAMES
6b66678a 22700fi
9c60689e
DWT
22701_LT_EOF
22702 ;;
22703 esac
6b66678a
DWT
22704
22705
9c60689e 22706ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 22707
9c60689e
DWT
22708
22709 # We use sed instead of cat because bash on DJGPP gets confused if
22710 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22711 # text mode, it properly converts lines to CR/LF. This bash problem
22712 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
22713 sed '$q' "$ltmain" >> "$cfgfile" \
22714 || (rm -f "$cfgfile"; exit 1)
22715
22716 if test x"$xsi_shell" = xyes; then
22717 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22718func_dirname ()\
22719{\
22720\ case ${1} in\
22721\ */*) func_dirname_result="${1%/*}${2}" ;;\
22722\ * ) func_dirname_result="${3}" ;;\
22723\ esac\
22724} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22725 && mv -f "$cfgfile.tmp" "$cfgfile" \
22726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22727test 0 -eq $? || _lt_function_replace_fail=:
22728
22729
22730 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22731func_basename ()\
22732{\
22733\ func_basename_result="${1##*/}"\
22734} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22735 && mv -f "$cfgfile.tmp" "$cfgfile" \
22736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22737test 0 -eq $? || _lt_function_replace_fail=:
22738
22739
22740 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22741func_dirname_and_basename ()\
22742{\
22743\ case ${1} in\
22744\ */*) func_dirname_result="${1%/*}${2}" ;;\
22745\ * ) func_dirname_result="${3}" ;;\
22746\ esac\
22747\ func_basename_result="${1##*/}"\
22748} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22749 && mv -f "$cfgfile.tmp" "$cfgfile" \
22750 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22751test 0 -eq $? || _lt_function_replace_fail=:
22752
22753
22754 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22755func_stripname ()\
22756{\
22757\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22758\ # positional parameters, so assign one to ordinary parameter first.\
22759\ func_stripname_result=${3}\
22760\ func_stripname_result=${func_stripname_result#"${1}"}\
22761\ func_stripname_result=${func_stripname_result%"${2}"}\
22762} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22763 && mv -f "$cfgfile.tmp" "$cfgfile" \
22764 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22765test 0 -eq $? || _lt_function_replace_fail=:
22766
22767
22768 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22769func_split_long_opt ()\
22770{\
22771\ func_split_long_opt_name=${1%%=*}\
22772\ func_split_long_opt_arg=${1#*=}\
22773} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22774 && mv -f "$cfgfile.tmp" "$cfgfile" \
22775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22776test 0 -eq $? || _lt_function_replace_fail=:
22777
22778
22779 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22780func_split_short_opt ()\
22781{\
22782\ func_split_short_opt_arg=${1#??}\
22783\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22784} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22785 && mv -f "$cfgfile.tmp" "$cfgfile" \
22786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22787test 0 -eq $? || _lt_function_replace_fail=:
22788
22789
22790 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22791func_lo2o ()\
22792{\
22793\ case ${1} in\
22794\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22795\ *) func_lo2o_result=${1} ;;\
22796\ esac\
22797} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22798 && mv -f "$cfgfile.tmp" "$cfgfile" \
22799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22800test 0 -eq $? || _lt_function_replace_fail=:
22801
22802
22803 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22804func_xform ()\
22805{\
22806 func_xform_result=${1%.*}.lo\
22807} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22808 && mv -f "$cfgfile.tmp" "$cfgfile" \
22809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22810test 0 -eq $? || _lt_function_replace_fail=:
22811
22812
22813 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22814func_arith ()\
22815{\
22816 func_arith_result=$(( $* ))\
22817} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22818 && mv -f "$cfgfile.tmp" "$cfgfile" \
22819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22820test 0 -eq $? || _lt_function_replace_fail=:
22821
22822
22823 sed -e '/^func_len ()$/,/^} # func_len /c\
22824func_len ()\
22825{\
22826 func_len_result=${#1}\
22827} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22828 && mv -f "$cfgfile.tmp" "$cfgfile" \
22829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22830test 0 -eq $? || _lt_function_replace_fail=:
22831
22832fi
22833
22834if test x"$lt_shell_append" = xyes; then
22835 sed -e '/^func_append ()$/,/^} # func_append /c\
22836func_append ()\
22837{\
22838 eval "${1}+=\\${2}"\
22839} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22840 && mv -f "$cfgfile.tmp" "$cfgfile" \
22841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22842test 0 -eq $? || _lt_function_replace_fail=:
22843
22844
22845 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22846func_append_quoted ()\
22847{\
22848\ func_quote_for_eval "${2}"\
22849\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22850} # Extended-shell func_append_quoted 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 # Save a `func_append' function call where possible by direct use of '+='
22857 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22858 && mv -f "$cfgfile.tmp" "$cfgfile" \
22859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22860 test 0 -eq $? || _lt_function_replace_fail=:
22861else
22862 # Save a `func_append' function call even when '+=' is not available
22863 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22864 && mv -f "$cfgfile.tmp" "$cfgfile" \
22865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22866 test 0 -eq $? || _lt_function_replace_fail=:
22867fi
22868
22869if test x"$_lt_function_replace_fail" = x":"; then
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22871$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22872fi
22873
22874
22875 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
22876 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22877 chmod +x "$ofile"
22878
22879
22880 cat <<_LT_EOF >> "$ofile"
22881
22882# ### BEGIN LIBTOOL TAG CONFIG: CXX
22883
22884# The linker used to build libraries.
22885LD=$lt_LD_CXX
22886
ee134472
JF
22887# How to create reloadable object files.
22888reload_flag=$lt_reload_flag_CXX
22889reload_cmds=$lt_reload_cmds_CXX
22890
9c60689e
DWT
22891# Commands used to build an old-style archive.
22892old_archive_cmds=$lt_old_archive_cmds_CXX
22893
22894# A language specific compiler.
22895CC=$lt_compiler_CXX
22896
22897# Is the compiler the GNU compiler?
22898with_gcc=$GCC_CXX
22899
22900# Compiler flag to turn off builtin functions.
22901no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 22902
9c60689e
DWT
22903# Additional compiler flags for building library objects.
22904pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 22905
ee134472
JF
22906# How to pass a linker flag through the compiler.
22907wl=$lt_lt_prog_compiler_wl_CXX
22908
9c60689e
DWT
22909# Compiler flag to prevent dynamic linking.
22910link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 22911
9c60689e
DWT
22912# Does compiler simultaneously support -c and -o options?
22913compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 22914
9c60689e
DWT
22915# Whether or not to add -lc for building shared libraries.
22916build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 22917
9c60689e
DWT
22918# Whether or not to disallow shared libs when runtime libs are static.
22919allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 22920
9c60689e
DWT
22921# Compiler flag to allow reflexive dlopens.
22922export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 22923
9c60689e
DWT
22924# Compiler flag to generate shared objects directly from archives.
22925whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 22926
9c60689e
DWT
22927# Whether the compiler copes with passing no objects directly.
22928compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 22929
9c60689e
DWT
22930# Create an old-style archive from a shared archive.
22931old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 22932
9c60689e
DWT
22933# Create a temporary old-style archive to link instead of a shared archive.
22934old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 22935
9c60689e
DWT
22936# Commands used to build a shared archive.
22937archive_cmds=$lt_archive_cmds_CXX
22938archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 22939
9c60689e
DWT
22940# Commands used to build a loadable module if different from building
22941# a shared archive.
22942module_cmds=$lt_module_cmds_CXX
22943module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 22944
9c60689e
DWT
22945# Whether we are building with GNU ld or not.
22946with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 22947
9c60689e
DWT
22948# Flag that allows shared libraries with undefined symbols to be built.
22949allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 22950
9c60689e
DWT
22951# Flag that enforces no undefined symbols.
22952no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 22953
9c60689e
DWT
22954# Flag to hardcode \$libdir into a binary during linking.
22955# This must work even if \$libdir does not exist
22956hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 22957
9c60689e
DWT
22958# Whether we need a single "-rpath" flag with a separated argument.
22959hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 22960
9c60689e
DWT
22961# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22962# DIR into the resulting binary.
22963hardcode_direct=$hardcode_direct_CXX
6b66678a 22964
9c60689e
DWT
22965# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22966# DIR into the resulting binary and the resulting library dependency is
22967# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22968# library is relocated.
22969hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 22970
9c60689e
DWT
22971# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22972# into the resulting binary.
22973hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 22974
9c60689e
DWT
22975# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22976# into the resulting binary.
22977hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 22978
9c60689e
DWT
22979# Set to "yes" if building a shared library automatically hardcodes DIR
22980# into the library and all subsequent libraries and executables linked
22981# against it.
22982hardcode_automatic=$hardcode_automatic_CXX
6b66678a 22983
9c60689e
DWT
22984# Set to yes if linker adds runtime paths of dependent libraries
22985# to runtime path list.
22986inherit_rpath=$inherit_rpath_CXX
6b66678a 22987
9c60689e
DWT
22988# Whether libtool must link a program against all its dependency libraries.
22989link_all_deplibs=$link_all_deplibs_CXX
6b66678a 22990
9c60689e
DWT
22991# Set to "yes" if exported symbols are required.
22992always_export_symbols=$always_export_symbols_CXX
6b66678a 22993
9c60689e
DWT
22994# The commands to list exported symbols.
22995export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 22996
9c60689e
DWT
22997# Symbols that should not be listed in the preloaded symbols.
22998exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 22999
9c60689e
DWT
23000# Symbols that must always be exported.
23001include_expsyms=$lt_include_expsyms_CXX
6b66678a 23002
9c60689e
DWT
23003# Commands necessary for linking programs (against libraries) with templates.
23004prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 23005
ee134472
JF
23006# Commands necessary for finishing linking programs.
23007postlink_cmds=$lt_postlink_cmds_CXX
23008
9c60689e
DWT
23009# Specify filename containing input files.
23010file_list_spec=$lt_file_list_spec_CXX
dbadc56a 23011
9c60689e
DWT
23012# How to hardcode a shared library path into an executable.
23013hardcode_action=$hardcode_action_CXX
309b0535 23014
9c60689e
DWT
23015# The directories searched by this compiler when creating a shared library.
23016compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 23017
9c60689e
DWT
23018# Dependencies to place before and after the objects being linked to
23019# create a shared library.
23020predep_objects=$lt_predep_objects_CXX
23021postdep_objects=$lt_postdep_objects_CXX
23022predeps=$lt_predeps_CXX
23023postdeps=$lt_postdeps_CXX
309b0535 23024
9c60689e
DWT
23025# The library search path used internally by the compiler when linking
23026# a shared library.
23027compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23028
23029# ### END LIBTOOL TAG CONFIG: CXX
23030_LT_EOF
23031
23032 ;;
23033
23034 esac
23035done # for ac_tag
23036
23037
23038as_fn_exit 0
23039_ACEOF
23040ac_clean_files=$ac_clean_files_save
23041
23042test $ac_write_fail = 0 ||
12833ad8 23043 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23044
23045
23046# configure is writing to config.log, and then calls config.status.
23047# config.status does its own redirection, appending to config.log.
23048# Unfortunately, on DOS this fails, as config.log is still kept open
23049# by configure, so config.status won't be able to write to it; its
23050# output is simply discarded. So we exec the FD to /dev/null,
23051# effectively closing config.log, so it can be properly (re)opened and
23052# appended to by config.status. When coming back to configure, we
23053# need to make the FD available again.
23054if test "$no_create" != yes; then
23055 ac_cs_success=:
23056 ac_config_status_args=
23057 test "$silent" = yes &&
23058 ac_config_status_args="$ac_config_status_args --quiet"
23059 exec 5>/dev/null
23060 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23061 exec 5>>config.log
23062 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23063 # would make configure fail if this is the last instruction.
12833ad8 23064 $ac_cs_success || as_fn_exit 1
309b0535 23065fi
9c60689e
DWT
23066if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23068$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23069fi
23070