]> git.saurik.com Git - cycript.git/blame - configure
Use variadic templates to better organize Classes.
[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 13#
c1d3e52e 14# Copyright (C) 2009-2015 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
9777bd50 641SO
66170b30 642LTFLAGS
3615a2f7 643LTLIBGCC
6f9aea2b
JF
644LTLIBTERMCAP
645LTLIBREADLINE
8d20f0f1
JF
646CY_PRELINK_FALSE
647CY_PRELINK_TRUE
648CY_LIBCLANG
a243b558
JF
649CY_OBJECTIVEC_FALSE
650CY_OBJECTIVEC_TRUE
5f29ae16
JF
651CY_RUBY_FALSE
652CY_RUBY_TRUE
39ed1631
JF
653CY_JAVA_FALSE
654CY_JAVA_TRUE
babf7fe8 655LTOBJECTIVEC
47aaa820 656GNUSTEP_CONFIG
c823f118 657CY_OBJECTIVEC
5f29ae16
JF
658LTRUBY
659CY_RUBY
3b531dd5
JF
660LIBRUBY21_LIBS
661LIBRUBY21_CFLAGS
39ed1631
JF
662LTJAVA
663CY_JAVA
296ee9a6 664LTLIBFFI
309b0535 665LIBFFI_LIBS
35fa52c0 666LIBFFI_CFLAGS
8d20f0f1 667LTLIBSQLITE3
ae1b611e 668LTLIBUV
8d20f0f1 669CY_SYSTEM
a243b558
JF
670CY_EXECUTE_FALSE
671CY_EXECUTE_TRUE
a4287117
JF
672CY_ATTACH_FALSE
673CY_ATTACH_TRUE
a93f15c0
JF
674CY_CONSOLE_FALSE
675CY_CONSOLE_TRUE
babf7fe8 676LTJAVASCRIPTCORE
35fa52c0
DWT
677WEBKIT_LIBS
678WEBKIT_CFLAGS
7eda51e0 679CY_EXECUTE
be2fde87
JF
680PTHREAD_CFLAGS
681PTHREAD_LIBS
682PTHREAD_CC
683ax_pthread_config
77578fdd 684LFLAGS
e9c9a47c 685GNUTAR
e9c9a47c
DWT
686GPERF
687FLEX
688BISON
689TIME
66170b30 690GIT
12833ad8
JF
691PKG_CONFIG_LIBDIR
692PKG_CONFIG_PATH
3fd51f51 693PKG_CONFIG
1771224f 694HAVE_CXX11
9d54db95 695LT_SYS_LIBRARY_PATH
9c60689e
DWT
696OTOOL64
697OTOOL
698LIPO
699NMEDIT
700DSYMUTIL
ee134472 701MANIFEST_TOOL
9c60689e 702RANLIB
ee134472 703DLLTOOL
9c60689e
DWT
704OBJDUMP
705LN_S
706NM
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711EGREP
712GREP
713SED
8d20f0f1
JF
714LIBTOOL
715ac_ct_AR
716AR
717CXXCPPFLAGS_FOR_BUILD
718CXXFLAGS_FOR_BUILD
719CXXCPP_FOR_BUILD
720ac_ct_CXX_FOR_BUILD
721CXX_FOR_BUILD
722CXXCPP
723LDFLAGS_FOR_BUILD
724CPPFLAGS_FOR_BUILD
725CFLAGS_FOR_BUILD
726BUILD_OBJEXT
727BUILD_EXEEXT
728CPP_FOR_BUILD
729ac_ct_CC_FOR_BUILD
730CC_FOR_BUILD
a243b558
JF
731host_os
732host_vendor
733host_cpu
734host
735build_os
736build_vendor
737build_cpu
738build
8d20f0f1 739CPP
a243b558
JF
740am__fastdepOBJCXX_FALSE
741am__fastdepOBJCXX_TRUE
742OBJCXXDEPMODE
743ac_ct_OBJCXX
744OBJCXXFLAGS
745OBJCXX
746am__fastdepCXX_FALSE
747am__fastdepCXX_TRUE
748CXXDEPMODE
a93f15c0
JF
749ac_ct_CXX
750CXXFLAGS
751CXX
752am__fastdepCC_FALSE
753am__fastdepCC_TRUE
754CCDEPMODE
66170b30
JF
755am__nodep
756AMDEPBACKSLASH
757AMDEP_FALSE
758AMDEP_TRUE
759am__quote
760am__include
761DEPDIR
35fa52c0
DWT
762OBJEXT
763EXEEXT
a93f15c0 764ac_ct_CC
35fa52c0
DWT
765CPPFLAGS
766LDFLAGS
a93f15c0
JF
767CFLAGS
768CC
babf7fe8
JF
769MAINT
770MAINTAINER_MODE_FALSE
771MAINTAINER_MODE_TRUE
66170b30
JF
772AM_BACKSLASH
773AM_DEFAULT_VERBOSITY
774AM_DEFAULT_V
775AM_V
776am__untar
777am__tar
778AMTAR
779am__leading_dot
780SET_MAKE
781AWK
782mkdir_p
783MKDIR_P
784INSTALL_STRIP_PROGRAM
785STRIP
786install_sh
787MAKEINFO
788AUTOHEADER
789AUTOMAKE
790AUTOCONF
791ACLOCAL
792VERSION
793PACKAGE
794CYGPATH_W
795am__isrc
796INSTALL_DATA
797INSTALL_SCRIPT
798INSTALL_PROGRAM
dbadc56a 799target_alias
c7aa54aa
DWT
800host_alias
801build_alias
802LIBS
803ECHO_T
804ECHO_N
805ECHO_C
806DEFS
807mandir
808localedir
809libdir
810psdir
811pdfdir
812dvidir
813htmldir
814infodir
815docdir
816oldincludedir
817includedir
818localstatedir
819sharedstatedir
820sysconfdir
821datadir
822datarootdir
823libexecdir
824sbindir
825bindir
826program_transform_name
827prefix
828exec_prefix
829PACKAGE_URL
830PACKAGE_BUGREPORT
831PACKAGE_STRING
832PACKAGE_VERSION
833PACKAGE_TARNAME
834PACKAGE_NAME
835PATH_SEPARATOR
836SHELL'
837ac_subst_files=''
838ac_user_opts='
839enable_option_checking
66170b30 840enable_silent_rules
babf7fe8 841enable_maintainer_mode
a243b558 842enable_dependency_tracking
9c60689e 843enable_static
549f29b5 844enable_shared
9c60689e
DWT
845with_pic
846enable_fast_install
9d54db95 847with_aix_soname
35fa52c0 848with_gnu_ld
ee134472 849with_sysroot
9c60689e 850enable_libtool_lock
5053a6d1 851enable_javascript
a93f15c0 852enable_console
a4287117 853enable_attach
8d20f0f1 854with_libclang
c7aa54aa
DWT
855'
856 ac_precious_vars='build_alias
857host_alias
dbadc56a 858target_alias
a93f15c0
JF
859CC
860CFLAGS
dbadc56a
DWT
861LDFLAGS
862LIBS
863CPPFLAGS
a93f15c0
JF
864CXX
865CXXFLAGS
a243b558
JF
866CCC
867OBJCXX
868OBJCXXFLAGS
9c60689e 869CPP
a243b558 870CXXCPP
8d20f0f1 871LT_SYS_LIBRARY_PATH
3fd51f51 872PKG_CONFIG
12833ad8
JF
873PKG_CONFIG_PATH
874PKG_CONFIG_LIBDIR
e9c9a47c
DWT
875BISON
876FLEX
877GPERF
66170b30 878GNUTAR
77578fdd 879LFLAGS
35fa52c0
DWT
880WEBKIT_CFLAGS
881WEBKIT_LIBS
a667869d 882LIBFFI_CFLAGS
790e5246 883LIBFFI_LIBS
3b531dd5
JF
884LIBRUBY21_CFLAGS
885LIBRUBY21_LIBS
790e5246 886GNUSTEP_CONFIG'
c7aa54aa
DWT
887
888
889# Initialize some variables set by options.
890ac_init_help=
891ac_init_version=false
892ac_unrecognized_opts=
893ac_unrecognized_sep=
894# The variables have the same names as the options, with
895# dashes changed to underlines.
896cache_file=/dev/null
897exec_prefix=NONE
898no_create=
899no_recursion=
900prefix=NONE
901program_prefix=NONE
902program_suffix=NONE
903program_transform_name=s,x,x,
904silent=
905site=
906srcdir=
907verbose=
908x_includes=NONE
909x_libraries=NONE
910
911# Installation directory options.
912# These are left unexpanded so users can "make install exec_prefix=/foo"
913# and all the variables that are supposed to be based on exec_prefix
914# by default will actually change.
915# Use braces instead of parens because sh, perl, etc. also accept them.
916# (The list follows the same order as the GNU Coding Standards.)
917bindir='${exec_prefix}/bin'
918sbindir='${exec_prefix}/sbin'
919libexecdir='${exec_prefix}/libexec'
920datarootdir='${prefix}/share'
921datadir='${datarootdir}'
922sysconfdir='${prefix}/etc'
923sharedstatedir='${prefix}/com'
924localstatedir='${prefix}/var'
925includedir='${prefix}/include'
926oldincludedir='/usr/include'
927docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928infodir='${datarootdir}/info'
929htmldir='${docdir}'
930dvidir='${docdir}'
931pdfdir='${docdir}'
932psdir='${docdir}'
933libdir='${exec_prefix}/lib'
934localedir='${datarootdir}/locale'
935mandir='${datarootdir}/man'
936
937ac_prev=
938ac_dashdash=
939for ac_option
940do
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
946 fi
947
948 case $ac_option in
12833ad8
JF
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
c7aa54aa
DWT
952 esac
953
954 # Accept the important Cygnus configure options, so we can diagnose typos.
955
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
964
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
979
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
984
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 996 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001"enable_$ac_useropt"
1002"*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1017
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1022 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027"enable_$ac_useropt"
1028"*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1226 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231"with_$ac_useropt"
1232"*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1237
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1242 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247"with_$ac_useropt"
1248"*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1253
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1257
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1264
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1271
12833ad8
JF
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273Try \`$0 --help' for more information"
c7aa54aa
DWT
1274 ;;
1275
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1282 esac
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1285
1286 *)
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1292 ;;
1293
1294 esac
1295done
1296
1297if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1299 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1300fi
1301
1302if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
12833ad8 1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1308fi
1309
1310# Check all directory arguments for consistency.
1311for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
1315do
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
12833ad8 1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1329done
1330
1331# There might be people who depend on the old broken behavior: `$host'
1332# used to hold the argument of --host etc.
1333# FIXME: To remove some day.
1334build=$build_alias
1335host=$host_alias
1336target=$target_alias
1337
1338# FIXME: To remove some day.
1339if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
c7aa54aa
DWT
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1344 fi
1345fi
1346
1347ac_tool_prefix=
1348test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350test "$silent" = yes && exec 6>/dev/null
1351
1352
1353ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354ac_ls_di=`ls -di .` &&
1355ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1356 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1358 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1359
1360
1361# Find the source files, if location was not specified.
1362if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370$as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1391 fi
1392else
1393 ac_srcdir_defaulted=no
1394fi
1395if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1398fi
1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400ac_abs_confdir=`(
12833ad8 1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1402 pwd)`
1403# When building in place, set srcdir=.
1404if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406fi
1407# Remove unnecessary trailing slashes from srcdir.
1408# Double slashes in file names in object file debugging info
1409# mess up M-x gdb in Emacs.
1410case $srcdir in
1411*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412esac
1413for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418done
1419
1420#
1421# Report the --help message.
1422#
1423if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1428
1429Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434Defaults for the options are specified in brackets.
1435
1436Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
12833ad8 1441 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
1447Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1452
1453By default, \`make install' will install all the files in
1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456for instance \`--prefix=\$HOME'.
1457
1458For better control, use the options below.
1459
1460Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1480_ACEOF
1481
1482 cat <<\_ACEOF
35fa52c0 1483
66170b30
JF
1484Program names:
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488
35fa52c0
DWT
1489System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1492_ACEOF
1493fi
1494
1495if test -n "$ac_init_help"; then
1496 case $ac_init_help in
1497 short | recursive ) echo "Configuration of Cycript 0.9:";;
1498 esac
1499 cat <<\_ACEOF
1500
35fa52c0
DWT
1501Optional Features:
1502 --disable-option-checking ignore unrecognized --enable/--with options
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1505 --enable-silent-rules less verbose build output (undo: "make V=1")
1506 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1507 --enable-maintainer-mode
1508 enable make rules and dependencies not useful (and
1509 sometimes confusing) to the casual installer
66170b30
JF
1510 --enable-dependency-tracking
1511 do not reject slow dependency extractors
1512 --disable-dependency-tracking
1513 speeds up one-time build
a243b558
JF
1514 --enable-static[=PKGS] build static libraries [default=no]
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-fast-install[=PKGS]
1517 optimize for fast installation [default=yes]
9c60689e 1518 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1519 --enable-javascript[=ENGINE]
790e5246 1520 use a JavaScript runtime (currently the only
b66977f1
DWT
1521 available option for ENGINE is JavaScriptCore)
1522 [default=yes]
a93f15c0 1523 --disable-console disable console
a4287117 1524 --disable-attach disable attach
35fa52c0
DWT
1525
1526Optional Packages:
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1529 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e 1530 both]
9d54db95
JF
1531 --with-aix-soname=aix|svr4|both
1532 shared library versioning (aka "SONAME") variant to
1533 provide on AIX, [default=aix].
9c60689e 1534 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9d54db95
JF
1535 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1536 compiler's sysroot if not specified).
8d20f0f1 1537 --with-libclang build bridge definitions using this libclang
35fa52c0 1538
dbadc56a 1539Some influential environment variables:
a93f15c0
JF
1540 CC C compiler command
1541 CFLAGS C compiler flags
dbadc56a
DWT
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1546 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1547 CXX C++ compiler command
1548 CXXFLAGS C++ compiler flags
a243b558
JF
1549 OBJCXX Objective C++ compiler command
1550 OBJCXXFLAGS Objective C++ compiler flags
9c60689e 1551 CPP C preprocessor
a243b558 1552 CXXCPP C++ preprocessor
8d20f0f1
JF
1553 LT_SYS_LIBRARY_PATH
1554 User-defined run-time library search path.
3fd51f51 1555 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1556 PKG_CONFIG_PATH
1557 directories to add to pkg-config's search path
1558 PKG_CONFIG_LIBDIR
1559 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1560 BISON GNU Project parser generator (yacc replacement)
1561 FLEX the fast lexical analyser generator
1562 GPERF perfect hash function generator
66170b30 1563 GNUTAR a very sticky lump of files
77578fdd 1564 LFLAGS flex flags
35fa52c0
DWT
1565 WEBKIT_CFLAGS
1566 C compiler flags for WEBKIT, overriding pkg-config
1567 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
574d4720
JF
1568 LIBFFI_CFLAGS
1569 C compiler flags for LIBFFI, overriding pkg-config
1570 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
3b531dd5
JF
1571 LIBRUBY21_CFLAGS
1572 C compiler flags for LIBRUBY21, overriding pkg-config
1573 LIBRUBY21_LIBS
1574 linker flags for LIBRUBY21, overriding pkg-config
790e5246
DWT
1575 GNUSTEP_CONFIG
1576 prints information about the current gnustep installation
dbadc56a
DWT
1577
1578Use these variables to override the choices made by `configure' or to help
1579it to find libraries and programs with nonstandard names/locations.
1580
c7aa54aa
DWT
1581Report bugs to <saurik@saurik.com>.
1582Cycript home page: <http://www.cycript.org/>.
1583_ACEOF
1584ac_status=$?
1585fi
1586
1587if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590 test -d "$ac_dir" ||
1591 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592 continue
1593 ac_builddir=.
1594
1595case "$ac_dir" in
1596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597*)
1598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1599 # A ".." for each directory in $ac_dir_suffix.
1600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1601 case $ac_top_builddir_sub in
1602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604 esac ;;
1605esac
1606ac_abs_top_builddir=$ac_pwd
1607ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608# for backward compatibility:
1609ac_top_builddir=$ac_top_build_prefix
1610
1611case $srcdir in
1612 .) # We are building in place.
1613 ac_srcdir=.
1614 ac_top_srcdir=$ac_top_builddir_sub
1615 ac_abs_top_srcdir=$ac_pwd ;;
1616 [\\/]* | ?:[\\/]* ) # Absolute name.
1617 ac_srcdir=$srcdir$ac_dir_suffix;
1618 ac_top_srcdir=$srcdir
1619 ac_abs_top_srcdir=$srcdir ;;
1620 *) # Relative name.
1621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622 ac_top_srcdir=$ac_top_build_prefix$srcdir
1623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1624esac
1625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1626
1627 cd "$ac_dir" || { ac_status=$?; continue; }
1628 # Check for guested configure.
1629 if test -f "$ac_srcdir/configure.gnu"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632 elif test -f "$ac_srcdir/configure"; then
1633 echo &&
1634 $SHELL "$ac_srcdir/configure" --help=recursive
1635 else
1636 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1637 fi || ac_status=$?
1638 cd "$ac_pwd" || { ac_status=$?; break; }
1639 done
1640fi
1641
1642test -n "$ac_init_help" && exit $ac_status
1643if $ac_init_version; then
1644 cat <<\_ACEOF
1645Cycript configure 0.9
53ba6704 1646generated by GNU Autoconf 2.69
c7aa54aa 1647
53ba6704 1648Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1649This configure script is free software; the Free Software Foundation
1650gives unlimited permission to copy, distribute and modify it.
66170b30 1651
c1d3e52e 1652Copyright (C) 2009-2015 Jay Freeman (saurik)
c7aa54aa
DWT
1653_ACEOF
1654 exit
1655fi
1656
1657## ------------------------ ##
1658## Autoconf initialization. ##
1659## ------------------------ ##
dbadc56a 1660
a93f15c0
JF
1661# ac_fn_c_try_compile LINENO
1662# --------------------------
a243b558 1663# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1664ac_fn_c_try_compile ()
a243b558
JF
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
a93f15c0 1684 test -z "$ac_c_werror_flag" ||
a243b558
JF
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693fi
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
a93f15c0 1697} # ac_fn_c_try_compile
a243b558 1698
a93f15c0
JF
1699# ac_fn_cxx_try_compile LINENO
1700# ----------------------------
a243b558 1701# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1702ac_fn_cxx_try_compile ()
a243b558
JF
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
a93f15c0 1722 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1725 ac_retval=0
1726else
1727 $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
a93f15c0 1735} # ac_fn_cxx_try_compile
a243b558 1736
a93f15c0
JF
1737# ac_fn_objcxx_try_compile LINENO
1738# -------------------------------
35fa52c0 1739# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1740ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext
1744 if { { ac_try="$ac_compile"
1745case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_compile") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
a93f15c0 1760 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1761 test ! -s conftest.err
1762 } && test -s conftest.$ac_objext; then :
1763 ac_retval=0
1764else
1765 $as_echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769fi
ee134472 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1771 as_fn_set_status $ac_retval
35fa52c0 1772
a93f15c0 1773} # ac_fn_objcxx_try_compile
35fa52c0 1774
8d20f0f1
JF
1775# ac_fn_c_try_cpp LINENO
1776# ----------------------
1777# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_cpp ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_cpp conftest.$ac_ext"
1782case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } > conftest.i && {
1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 }; then :
1800 ac_retval=0
1801else
1802 $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806fi
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_cpp
1811
1812# ac_fn_cxx_try_cpp LINENO
1813# ------------------------
1814# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815ac_fn_cxx_try_cpp ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1819case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } > conftest.i && {
1834 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 }; then :
1837 ac_retval=0
1838else
1839 $as_echo "$as_me: failed program was:" >&5
1840sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843fi
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 as_fn_set_status $ac_retval
1846
1847} # ac_fn_cxx_try_cpp
1848
35fa52c0
DWT
1849# ac_fn_c_try_link LINENO
1850# -----------------------
1851# Try to link conftest.$ac_ext, and return whether this succeeded.
1852ac_fn_c_try_link ()
1853{
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext conftest$ac_exeext
1856 if { { ac_try="$ac_link"
1857case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860esac
1861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862$as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1869 fi
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest$ac_exeext && {
1875 test "$cross_compiling" = yes ||
53ba6704 1876 test -x conftest$ac_exeext
35fa52c0
DWT
1877 }; then :
1878 ac_retval=0
1879else
1880 $as_echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 ac_retval=1
1884fi
1885 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1886 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1887 # interfere with the next link command; also delete a directory that is
1888 # left behind by Apple's compiler. We do this before executing the actions.
1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1891 as_fn_set_status $ac_retval
35fa52c0
DWT
1892
1893} # ac_fn_c_try_link
1894
9c60689e
DWT
1895# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1896# -------------------------------------------------------
1897# Tests whether HEADER exists and can be compiled using the include files in
1898# INCLUDES, setting the cache variable VAR accordingly.
1899ac_fn_c_check_header_compile ()
dbadc56a
DWT
1900{
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
ee134472 1904if eval \${$3+:} false; then :
9c60689e
DWT
1905 $as_echo_n "(cached) " >&6
1906else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h. */
1909$4
1910#include <$2>
1911_ACEOF
1912if ac_fn_c_try_compile "$LINENO"; then :
1913 eval "$3=yes"
1914else
1915 eval "$3=no"
1916fi
1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918fi
1919eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
ee134472 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1923
1924} # ac_fn_c_check_header_compile
1925
35fa52c0
DWT
1926# ac_fn_c_try_run LINENO
1927# ----------------------
1928# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1929# that executables *can* be run.
1930ac_fn_c_try_run ()
1931{
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { { ac_try="$ac_link"
1934case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1937esac
1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939$as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_link") 2>&5
1941 ac_status=$?
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1944 { { case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947esac
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949$as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_try") 2>&5
1951 ac_status=$?
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; }; }; then :
1954 ac_retval=0
1955else
1956 $as_echo "$as_me: program exited with status $ac_status" >&5
1957 $as_echo "$as_me: failed program was:" >&5
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
1960 ac_retval=$ac_status
1961fi
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1964 as_fn_set_status $ac_retval
35fa52c0
DWT
1965
1966} # ac_fn_c_try_run
6b66678a 1967
9c60689e
DWT
1968# ac_fn_c_check_func LINENO FUNC VAR
1969# ----------------------------------
1970# Tests whether FUNC exists, setting the cache variable VAR accordingly
1971ac_fn_c_check_func ()
6b66678a
DWT
1972{
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
ee134472 1976if eval \${$3+:} false; then :
9c60689e 1977 $as_echo_n "(cached) " >&6
6b66678a 1978else
9c60689e
DWT
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h. */
1981/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1983#define $2 innocuous_$2
6b66678a 1984
9c60689e
DWT
1985/* System header to define __stub macros and hopefully few prototypes,
1986 which can conflict with char $2 (); below.
1987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1988 <limits.h> exists even on freestanding compilers. */
1989
1990#ifdef __STDC__
1991# include <limits.h>
1992#else
1993# include <assert.h>
1994#endif
1995
1996#undef $2
1997
1998/* Override any GCC internal prototype to avoid an error.
1999 Use char because int might match the return type of a GCC
2000 builtin and then its argument prototype would still apply. */
2001#ifdef __cplusplus
2002extern "C"
2003#endif
2004char $2 ();
2005/* The GNU C library defines this for functions which it implements
2006 to always fail with ENOSYS. Some functions are actually named
2007 something starting with __ and the normal name is an alias. */
2008#if defined __stub_$2 || defined __stub___$2
2009choke me
2010#endif
2011
2012int
2013main ()
2014{
2015return $2 ();
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_link "$LINENO"; then :
2021 eval "$3=yes"
2022else
2023 eval "$3=no"
2024fi
2025rm -f core conftest.err conftest.$ac_objext \
2026 conftest$ac_exeext conftest.$ac_ext
6b66678a 2027fi
9c60689e
DWT
2028eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030$as_echo "$ac_res" >&6; }
ee134472 2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 2032
9c60689e 2033} # ac_fn_c_check_func
6b66678a 2034
9c60689e
DWT
2035# ac_fn_cxx_try_link LINENO
2036# -------------------------
2037# Try to link conftest.$ac_ext, and return whether this succeeded.
2038ac_fn_cxx_try_link ()
2039{
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 rm -f conftest.$ac_objext conftest$ac_exeext
2042 if { { ac_try="$ac_link"
2043case "(($ac_try" in
2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2045 *) ac_try_echo=$ac_try;;
2046esac
2047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2048$as_echo "$ac_try_echo"; } >&5
2049 (eval "$ac_link") 2>conftest.err
2050 ac_status=$?
2051 if test -s conftest.err; then
2052 grep -v '^ *+' conftest.err >conftest.er1
2053 cat conftest.er1 >&5
2054 mv -f conftest.er1 conftest.err
2055 fi
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && {
2058 test -z "$ac_cxx_werror_flag" ||
2059 test ! -s conftest.err
2060 } && test -s conftest$ac_exeext && {
2061 test "$cross_compiling" = yes ||
53ba6704 2062 test -x conftest$ac_exeext
9c60689e
DWT
2063 }; then :
2064 ac_retval=0
2065else
2066 $as_echo "$as_me: failed program was:" >&5
2067sed 's/^/| /' conftest.$ac_ext >&5
2068
2069 ac_retval=1
2070fi
2071 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2072 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2073 # interfere with the next link command; also delete a directory that is
2074 # left behind by Apple's compiler. We do this before executing the actions.
2075 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2077 as_fn_set_status $ac_retval
2078
2079} # ac_fn_cxx_try_link
2080
47aaa820
DWT
2081# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2082# ---------------------------------------------------------
2083# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2084# the include files in INCLUDES and setting the cache variable VAR
2085# accordingly.
2086ac_fn_cxx_check_header_mongrel ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2089 if eval \${$3+:} false; then :
47aaa820
DWT
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091$as_echo_n "checking for $2... " >&6; }
ee134472 2092if eval \${$3+:} false; then :
47aaa820
DWT
2093 $as_echo_n "(cached) " >&6
2094fi
2095eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098else
2099 # Is the header compilable?
2100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2101$as_echo_n "checking $2 usability... " >&6; }
2102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105#include <$2>
2106_ACEOF
2107if ac_fn_cxx_try_compile "$LINENO"; then :
2108 ac_header_compiler=yes
2109else
2110 ac_header_compiler=no
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2114$as_echo "$ac_header_compiler" >&6; }
2115
2116# Is the header present?
2117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2118$as_echo_n "checking $2 presence... " >&6; }
2119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121#include <$2>
2122_ACEOF
2123if ac_fn_cxx_try_cpp "$LINENO"; then :
2124 ac_header_preproc=yes
2125else
2126 ac_header_preproc=no
2127fi
12833ad8 2128rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2130$as_echo "$ac_header_preproc" >&6; }
2131
2132# So? What about this header?
2133case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2134 yes:no: )
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2136$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2138$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2139 ;;
2140 no:yes:* )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2142$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2144$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2146$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2148$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2151( $as_echo "## -------------------------------- ##
47aaa820 2152## Report this to saurik@saurik.com ##
12833ad8 2153## -------------------------------- ##"
47aaa820
DWT
2154 ) | sed "s/^/$as_me: WARNING: /" >&2
2155 ;;
2156esac
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2158$as_echo_n "checking for $2... " >&6; }
ee134472 2159if eval \${$3+:} false; then :
47aaa820
DWT
2160 $as_echo_n "(cached) " >&6
2161else
2162 eval "$3=\$ac_header_compiler"
2163fi
2164eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166$as_echo "$ac_res" >&6; }
2167fi
ee134472 2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2169
2170} # ac_fn_cxx_check_header_mongrel
2171
574d4720
JF
2172# ac_fn_cxx_check_func LINENO FUNC VAR
2173# ------------------------------------
2174# Tests whether FUNC exists, setting the cache variable VAR accordingly
2175ac_fn_cxx_check_func ()
2176{
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2179$as_echo_n "checking for $2... " >&6; }
2180if eval \${$3+:} false; then :
2181 $as_echo_n "(cached) " >&6
2182else
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h. */
2185/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2187#define $2 innocuous_$2
2188
2189/* System header to define __stub macros and hopefully few prototypes,
2190 which can conflict with char $2 (); below.
2191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2192 <limits.h> exists even on freestanding compilers. */
2193
2194#ifdef __STDC__
2195# include <limits.h>
2196#else
2197# include <assert.h>
2198#endif
2199
2200#undef $2
2201
2202/* Override any GCC internal prototype to avoid an error.
2203 Use char because int might match the return type of a GCC
2204 builtin and then its argument prototype would still apply. */
2205#ifdef __cplusplus
2206extern "C"
2207#endif
2208char $2 ();
2209/* The GNU C library defines this for functions which it implements
2210 to always fail with ENOSYS. Some functions are actually named
2211 something starting with __ and the normal name is an alias. */
2212#if defined __stub_$2 || defined __stub___$2
2213choke me
2214#endif
2215
2216int
2217main ()
2218{
2219return $2 ();
2220 ;
2221 return 0;
2222}
2223_ACEOF
2224if ac_fn_cxx_try_link "$LINENO"; then :
2225 eval "$3=yes"
2226else
2227 eval "$3=no"
2228fi
2229rm -f core conftest.err conftest.$ac_objext \
2230 conftest$ac_exeext conftest.$ac_ext
2231fi
2232eval ac_res=\$$3
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234$as_echo "$ac_res" >&6; }
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236
2237} # ac_fn_cxx_check_func
2238
c823f118
DWT
2239# ac_fn_objcxx_try_link LINENO
2240# ----------------------------
2241# Try to link conftest.$ac_ext, and return whether this succeeded.
2242ac_fn_objcxx_try_link ()
2243{
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 rm -f conftest.$ac_objext conftest$ac_exeext
2246 if { { ac_try="$ac_link"
2247case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250esac
2251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252$as_echo "$ac_try_echo"; } >&5
2253 (eval "$ac_link") 2>conftest.err
2254 ac_status=$?
2255 if test -s conftest.err; then
2256 grep -v '^ *+' conftest.err >conftest.er1
2257 cat conftest.er1 >&5
2258 mv -f conftest.er1 conftest.err
2259 fi
2260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261 test $ac_status = 0; } && {
2262 test -z "$ac_objcxx_werror_flag" ||
2263 test ! -s conftest.err
2264 } && test -s conftest$ac_exeext && {
2265 test "$cross_compiling" = yes ||
53ba6704 2266 test -x conftest$ac_exeext
c823f118
DWT
2267 }; then :
2268 ac_retval=0
2269else
2270 $as_echo "$as_me: failed program was:" >&5
2271sed 's/^/| /' conftest.$ac_ext >&5
2272
2273 ac_retval=1
2274fi
2275 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2276 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2277 # interfere with the next link command; also delete a directory that is
2278 # left behind by Apple's compiler. We do this before executing the actions.
2279 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2281 as_fn_set_status $ac_retval
2282
2283} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2284cat >config.log <<_ACEOF
2285This file contains any messages produced by compilers while
2286running configure, to aid debugging if configure makes a mistake.
2287
2288It was created by Cycript $as_me 0.9, which was
53ba6704 2289generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2290
2291 $ $0 $@
2292
2293_ACEOF
2294exec 5>>config.log
2295{
2296cat <<_ASUNAME
2297## --------- ##
2298## Platform. ##
2299## --------- ##
2300
2301hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2302uname -m = `(uname -m) 2>/dev/null || echo unknown`
2303uname -r = `(uname -r) 2>/dev/null || echo unknown`
2304uname -s = `(uname -s) 2>/dev/null || echo unknown`
2305uname -v = `(uname -v) 2>/dev/null || echo unknown`
2306
2307/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2308/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2309
2310/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2311/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2312/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2313/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2314/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2315/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2316/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2317
2318_ASUNAME
2319
2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321for as_dir in $PATH
2322do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 $as_echo "PATH: $as_dir"
2326 done
2327IFS=$as_save_IFS
2328
2329} >&5
2330
2331cat >&5 <<_ACEOF
2332
2333
2334## ----------- ##
2335## Core tests. ##
2336## ----------- ##
2337
2338_ACEOF
2339
2340
2341# Keep a trace of the command line.
2342# Strip out --no-create and --no-recursion so they do not pile up.
2343# Strip out --silent because we don't want to record it for future runs.
2344# Also quote any args containing shell meta-characters.
2345# Make two passes to allow for proper duplicate-argument suppression.
2346ac_configure_args=
2347ac_configure_args0=
2348ac_configure_args1=
2349ac_must_keep_next=false
2350for ac_pass in 1 2
2351do
2352 for ac_arg
2353 do
2354 case $ac_arg in
2355 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2357 | -silent | --silent | --silen | --sile | --sil)
2358 continue ;;
2359 *\'*)
2360 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2361 esac
2362 case $ac_pass in
2363 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2364 2)
2365 as_fn_append ac_configure_args1 " '$ac_arg'"
2366 if test $ac_must_keep_next = true; then
2367 ac_must_keep_next=false # Got value, back to normal.
2368 else
2369 case $ac_arg in
2370 *=* | --config-cache | -C | -disable-* | --disable-* \
2371 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2372 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2373 | -with-* | --with-* | -without-* | --without-* | --x)
2374 case "$ac_configure_args0 " in
2375 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2376 esac
2377 ;;
2378 -* ) ac_must_keep_next=true ;;
2379 esac
2380 fi
2381 as_fn_append ac_configure_args " '$ac_arg'"
2382 ;;
2383 esac
2384 done
2385done
2386{ ac_configure_args0=; unset ac_configure_args0;}
2387{ ac_configure_args1=; unset ac_configure_args1;}
2388
2389# When interrupted or exit'd, cleanup temporary files, and complete
2390# config.log. We remove comments because anyway the quotes in there
2391# would cause problems or look ugly.
2392# WARNING: Use '\'' to represent an apostrophe within the trap.
2393# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2394trap 'exit_status=$?
2395 # Save into config.log some information that might help in debugging.
2396 {
2397 echo
2398
12833ad8 2399 $as_echo "## ---------------- ##
c7aa54aa 2400## Cache variables. ##
12833ad8 2401## ---------------- ##"
c7aa54aa
DWT
2402 echo
2403 # The following way of writing the cache mishandles newlines in values,
2404(
2405 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2406 eval ac_val=\$$ac_var
2407 case $ac_val in #(
2408 *${as_nl}*)
2409 case $ac_var in #(
2410 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2411$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2412 esac
2413 case $ac_var in #(
2414 _ | IFS | as_nl) ;; #(
2415 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2416 *) { eval $ac_var=; unset $ac_var;} ;;
2417 esac ;;
2418 esac
2419 done
2420 (set) 2>&1 |
2421 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2422 *${as_nl}ac_space=\ *)
2423 sed -n \
2424 "s/'\''/'\''\\\\'\'''\''/g;
2425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2426 ;; #(
2427 *)
2428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2429 ;;
2430 esac |
2431 sort
2432)
2433 echo
2434
12833ad8 2435 $as_echo "## ----------------- ##
c7aa54aa 2436## Output variables. ##
12833ad8 2437## ----------------- ##"
c7aa54aa
DWT
2438 echo
2439 for ac_var in $ac_subst_vars
2440 do
2441 eval ac_val=\$$ac_var
2442 case $ac_val in
2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444 esac
2445 $as_echo "$ac_var='\''$ac_val'\''"
2446 done | sort
2447 echo
2448
2449 if test -n "$ac_subst_files"; then
12833ad8 2450 $as_echo "## ------------------- ##
c7aa54aa 2451## File substitutions. ##
12833ad8 2452## ------------------- ##"
c7aa54aa
DWT
2453 echo
2454 for ac_var in $ac_subst_files
2455 do
2456 eval ac_val=\$$ac_var
2457 case $ac_val in
2458 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459 esac
2460 $as_echo "$ac_var='\''$ac_val'\''"
2461 done | sort
2462 echo
2463 fi
2464
2465 if test -s confdefs.h; then
12833ad8 2466 $as_echo "## ----------- ##
c7aa54aa 2467## confdefs.h. ##
12833ad8 2468## ----------- ##"
c7aa54aa
DWT
2469 echo
2470 cat confdefs.h
2471 echo
2472 fi
2473 test "$ac_signal" != 0 &&
2474 $as_echo "$as_me: caught signal $ac_signal"
2475 $as_echo "$as_me: exit $exit_status"
2476 } >&5
2477 rm -f core *.core core.conftest.* &&
2478 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479 exit $exit_status
2480' 0
2481for ac_signal in 1 2 13 15; do
2482 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483done
2484ac_signal=0
2485
2486# confdefs.h avoids OS command line length limits that DEFS can exceed.
2487rm -f -r conftest* confdefs.h
2488
2489$as_echo "/* confdefs.h */" > confdefs.h
2490
2491# Predefined preprocessor variables.
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_NAME "$PACKAGE_NAME"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_VERSION "$PACKAGE_VERSION"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_STRING "$PACKAGE_STRING"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511_ACEOF
2512
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_URL "$PACKAGE_URL"
2515_ACEOF
2516
2517
2518# Let the site file select an alternate cache file if it wants to.
2519# Prefer an explicitly selected file to automatically selected ones.
2520ac_site_file1=NONE
2521ac_site_file2=NONE
2522if test -n "$CONFIG_SITE"; then
12833ad8
JF
2523 # We do not want a PATH search for config.site.
2524 case $CONFIG_SITE in #((
2525 -*) ac_site_file1=./$CONFIG_SITE;;
2526 */*) ac_site_file1=$CONFIG_SITE;;
2527 *) ac_site_file1=./$CONFIG_SITE;;
2528 esac
c7aa54aa
DWT
2529elif test "x$prefix" != xNONE; then
2530 ac_site_file1=$prefix/share/config.site
2531 ac_site_file2=$prefix/etc/config.site
2532else
2533 ac_site_file1=$ac_default_prefix/share/config.site
2534 ac_site_file2=$ac_default_prefix/etc/config.site
2535fi
2536for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2537do
2538 test "x$ac_site_file" = xNONE && continue
9c60689e 2539 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2541$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2542 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2543 . "$ac_site_file" \
2544 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2546as_fn_error $? "failed to load site script $ac_site_file
ee134472 2547See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2548 fi
2549done
2550
2551if test -r "$cache_file"; then
9c60689e
DWT
2552 # Some versions of bash will fail to source /dev/null (special files
2553 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2554 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2556$as_echo "$as_me: loading cache $cache_file" >&6;}
2557 case $cache_file in
2558 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2559 *) . "./$cache_file";;
2560 esac
2561 fi
2562else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2564$as_echo "$as_me: creating cache $cache_file" >&6;}
2565 >$cache_file
2566fi
2567
2568# Check that the precious variables saved in the cache have kept the same
2569# value.
2570ac_cache_corrupted=false
2571for ac_var in $ac_precious_vars; do
2572 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2573 eval ac_new_set=\$ac_env_${ac_var}_set
2574 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2575 eval ac_new_val=\$ac_env_${ac_var}_value
2576 case $ac_old_set,$ac_new_set in
2577 set,)
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2579$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2580 ac_cache_corrupted=: ;;
2581 ,set)
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2583$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2584 ac_cache_corrupted=: ;;
2585 ,);;
2586 *)
2587 if test "x$ac_old_val" != "x$ac_new_val"; then
2588 # differences in whitespace do not lead to failure.
2589 ac_old_val_w=`echo x $ac_old_val`
2590 ac_new_val_w=`echo x $ac_new_val`
2591 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2593$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2594 ac_cache_corrupted=:
2595 else
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2597$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2598 eval $ac_var=\$ac_old_val
2599 fi
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2601$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2603$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2604 fi;;
2605 esac
2606 # Pass precious variables to config.status.
2607 if test "$ac_new_set" = set; then
2608 case $ac_new_val in
2609 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2610 *) ac_arg=$ac_var=$ac_new_val ;;
2611 esac
2612 case " $ac_configure_args " in
2613 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2614 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2615 esac
2616 fi
2617done
2618if $ac_cache_corrupted; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2622$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2623 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2624fi
2625## -------------------- ##
2626## Main body of script. ##
2627## -------------------- ##
2628
2629ac_ext=c
2630ac_cpp='$CPP $CPPFLAGS'
2631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634
2635
66170b30
JF
2636
2637
35fa52c0 2638
6b66678a
DWT
2639ac_aux_dir=
2640for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2641 if test -f "$ac_dir/install-sh"; then
2642 ac_aux_dir=$ac_dir
2643 ac_install_sh="$ac_aux_dir/install-sh -c"
2644 break
2645 elif test -f "$ac_dir/install.sh"; then
2646 ac_aux_dir=$ac_dir
2647 ac_install_sh="$ac_aux_dir/install.sh -c"
2648 break
2649 elif test -f "$ac_dir/shtool"; then
2650 ac_aux_dir=$ac_dir
2651 ac_install_sh="$ac_aux_dir/shtool install -c"
2652 break
2653 fi
6b66678a
DWT
2654done
2655if test -z "$ac_aux_dir"; then
12833ad8 2656 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2657fi
2658
2659# These three variables are undocumented and unsupported,
2660# and are intended to be withdrawn in a future Autoconf release.
2661# They can cause serious problems if a builder's source tree is in a directory
2662# whose full name contains unusual characters.
2663ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2664ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2665ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2666
2667
9c60689e 2668
296ee9a6
JF
2669ac_config_headers="$ac_config_headers config.h"
2670
9c60689e 2671
795230e5 2672am__api_version='1.15'
9c60689e 2673
66170b30
JF
2674# Find a good install program. We prefer a C program (faster),
2675# so one script is as good as another. But avoid the broken or
2676# incompatible versions:
2677# SysV /etc/install, /usr/sbin/install
2678# SunOS /usr/etc/install
2679# IRIX /sbin/install
2680# AIX /bin/install
2681# AmigaOS /C/install, which installs bootblocks on floppy discs
2682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2685# OS/2's system install, which has a completely different semantic
2686# ./install, which can be erroneously created by make from ./install.sh.
2687# Reject install programs that cannot install multiple files.
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2689$as_echo_n "checking for a BSD-compatible install... " >&6; }
2690if test -z "$INSTALL"; then
2691if ${ac_cv_path_install+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 # Account for people who put trailing slashes in PATH elements.
2700case $as_dir/ in #((
2701 ./ | .// | /[cC]/* | \
2702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2704 /usr/ucb/* ) ;;
2705 *)
2706 # OSF1 and SCO ODT 3.0 have their own names for install.
2707 # Don't use installbsd from OSF since it installs stuff as root
2708 # by default.
2709 for ac_prog in ginstall scoinst install; do
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2712 if test $ac_prog = install &&
2713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # AIX install. It has an incompatible calling convention.
2715 :
2716 elif test $ac_prog = install &&
2717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # program-specific install script used by HP pwplus--don't use.
2719 :
2720 else
2721 rm -rf conftest.one conftest.two conftest.dir
2722 echo one > conftest.one
2723 echo two > conftest.two
2724 mkdir conftest.dir
2725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2726 test -s conftest.one && test -s conftest.two &&
2727 test -s conftest.dir/conftest.one &&
2728 test -s conftest.dir/conftest.two
2729 then
2730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2731 break 3
2732 fi
2733 fi
2734 fi
2735 done
2736 done
2737 ;;
2738esac
9c60689e 2739
66170b30
JF
2740 done
2741IFS=$as_save_IFS
9c60689e 2742
66170b30 2743rm -rf conftest.one conftest.two conftest.dir
9c60689e 2744
66170b30
JF
2745fi
2746 if test "${ac_cv_path_install+set}" = set; then
2747 INSTALL=$ac_cv_path_install
2748 else
2749 # As a last resort, use the slow shell script. Don't cache a
2750 # value for INSTALL within a source directory, because that will
2751 # break other packages using the cache if that directory is
2752 # removed, or if the value is a relative name.
2753 INSTALL=$ac_install_sh
2754 fi
2755fi
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2757$as_echo "$INSTALL" >&6; }
9c60689e 2758
66170b30
JF
2759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2760# It thinks the first close brace ends the variable substitution.
2761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2762
66170b30 2763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2764
66170b30 2765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2766
66170b30
JF
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2768$as_echo_n "checking whether build environment is sane... " >&6; }
2769# Reject unsafe characters in $srcdir or the absolute working directory
2770# name. Accept space and tab only in the latter.
2771am_lf='
2772'
2773case `pwd` in
2774 *[\\\"\#\$\&\'\`$am_lf]*)
2775 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2776esac
2777case $srcdir in
2778 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2779 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2780esac
9c60689e 2781
66170b30
JF
2782# Do 'set' in a subshell so we don't clobber the current shell's
2783# arguments. Must try -L first in case configure is actually a
2784# symlink; some systems play weird games with the mod time of symlinks
2785# (eg FreeBSD returns the mod time of the symlink's containing
2786# directory).
2787if (
2788 am_has_slept=no
2789 for am_try in 1 2; do
2790 echo "timestamp, slept: $am_has_slept" > conftest.file
2791 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2792 if test "$*" = "X"; then
2793 # -L didn't work.
2794 set X `ls -t "$srcdir/configure" conftest.file`
2795 fi
2796 if test "$*" != "X $srcdir/configure conftest.file" \
2797 && test "$*" != "X conftest.file $srcdir/configure"; then
2798
2799 # If neither matched, then we have a broken ls. This can happen
2800 # if, for instance, CONFIG_SHELL is bash and it inherits a
2801 # broken ls alias from the environment. This has actually
2802 # happened. Such a system could not be considered "sane".
2803 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2804 alias in your environment" "$LINENO" 5
2805 fi
2806 if test "$2" = conftest.file || test $am_try -eq 2; then
2807 break
2808 fi
2809 # Just in case.
2810 sleep 1
2811 am_has_slept=yes
2812 done
2813 test "$2" = conftest.file
2814 )
2815then
2816 # Ok.
2817 :
2818else
2819 as_fn_error $? "newly created file is older than distributed files!
2820Check your system clock" "$LINENO" 5
2821fi
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823$as_echo "yes" >&6; }
2824# If we didn't sleep, we still need to ensure time stamps of config.status and
2825# generated files are strictly newer.
2826am_sleep_pid=
2827if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2828 ( sleep 1 ) &
2829 am_sleep_pid=$!
2830fi
2831
2832rm -f conftest.file
2833
2834test "$program_prefix" != NONE &&
2835 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2836# Use a double $ so make ignores it.
2837test "$program_suffix" != NONE &&
2838 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2839# Double any \ or $.
2840# By default was `s,x,x', remove it if useless.
2841ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2842program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2843
795230e5
JF
2844# Expand $ac_aux_dir to an absolute path.
2845am_aux_dir=`cd "$ac_aux_dir" && pwd`
66170b30
JF
2846
2847if test x"${MISSING+set}" != xset; then
2848 case $am_aux_dir in
2849 *\ * | *\ *)
2850 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2851 *)
2852 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2853 esac
2854fi
2855# Use eval to expand $SHELL
2856if eval "$MISSING --is-lightweight"; then
2857 am_missing_run="$MISSING "
2858else
2859 am_missing_run=
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2861$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2862fi
9c60689e 2863
795230e5 2864if test x"${install_sh+set}" != xset; then
66170b30
JF
2865 case $am_aux_dir in
2866 *\ * | *\ *)
2867 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2868 *)
2869 install_sh="\${SHELL} $am_aux_dir/install-sh"
2870 esac
2871fi
9c60689e 2872
66170b30
JF
2873# Installed binaries are usually stripped using 'strip' when the user
2874# run "make install-strip". However 'strip' might not be the right
2875# tool to use in cross-compilation environments, therefore Automake
2876# will honor the 'STRIP' environment variable to overrule this program.
2877if test "$cross_compiling" != no; then
2878 if test -n "$ac_tool_prefix"; then
2879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2880set dummy ${ac_tool_prefix}strip; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_STRIP+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885else
2886 if test -n "$STRIP"; then
2887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900done
2901 done
2902IFS=$as_save_IFS
9c60689e 2903
66170b30
JF
2904fi
2905fi
2906STRIP=$ac_cv_prog_STRIP
2907if test -n "$STRIP"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2909$as_echo "$STRIP" >&6; }
2910else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
9c60689e 2914
9c60689e 2915
66170b30
JF
2916fi
2917if test -z "$ac_cv_prog_STRIP"; then
2918 ac_ct_STRIP=$STRIP
2919 # Extract the first word of "strip", so it can be a program name with args.
2920set dummy strip; ac_word=$2
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922$as_echo_n "checking for $ac_word... " >&6; }
2923if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2924 $as_echo_n "(cached) " >&6
2925else
66170b30
JF
2926 if test -n "$ac_ct_STRIP"; then
2927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936 ac_cv_prog_ac_ct_STRIP="strip"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940done
2941 done
2942IFS=$as_save_IFS
9c60689e
DWT
2943
2944fi
66170b30
JF
2945fi
2946ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2947if test -n "$ac_ct_STRIP"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2949$as_echo "$ac_ct_STRIP" >&6; }
2950else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952$as_echo "no" >&6; }
2953fi
2954
2955 if test "x$ac_ct_STRIP" = x; then
2956 STRIP=":"
2957 else
2958 case $cross_compiling:$ac_tool_warned in
2959yes:)
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962ac_tool_warned=yes ;;
9c60689e 2963esac
66170b30
JF
2964 STRIP=$ac_ct_STRIP
2965 fi
2966else
2967 STRIP="$ac_cv_prog_STRIP"
2968fi
9c60689e 2969
66170b30
JF
2970fi
2971INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2972
66170b30
JF
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2974$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2975if test -z "$MKDIR_P"; then
2976 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2977 $as_echo_n "(cached) " >&6
2978else
66170b30
JF
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_prog in mkdir gmkdir; do
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2987 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2988 'mkdir (GNU coreutils) '* | \
2989 'mkdir (coreutils) '* | \
2990 'mkdir (fileutils) '4.1*)
2991 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2992 break 3;;
2993 esac
2994 done
2995 done
2996 done
2997IFS=$as_save_IFS
2998
2999fi
3000
3001 test -d ./--version && rmdir ./--version
3002 if test "${ac_cv_path_mkdir+set}" = set; then
3003 MKDIR_P="$ac_cv_path_mkdir -p"
3004 else
3005 # As a last resort, use the slow shell script. Don't cache a
3006 # value for MKDIR_P within a source directory, because that will
3007 # break other packages using the cache if that directory is
3008 # removed, or if the value is a relative name.
3009 MKDIR_P="$ac_install_sh -d"
3010 fi
3011fi
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3013$as_echo "$MKDIR_P" >&6; }
3014
3015for ac_prog in gawk mawk nawk awk
3016do
3017 # Extract the first word of "$ac_prog", so it can be a program name with args.
3018set dummy $ac_prog; ac_word=$2
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020$as_echo_n "checking for $ac_word... " >&6; }
3021if ${ac_cv_prog_AWK+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023else
3024 if test -n "$AWK"; then
3025 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_AWK="$ac_prog"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038done
3039 done
3040IFS=$as_save_IFS
3041
3042fi
3043fi
3044AWK=$ac_cv_prog_AWK
3045if test -n "$AWK"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3047$as_echo "$AWK" >&6; }
3048else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050$as_echo "no" >&6; }
3051fi
3052
3053
3054 test -n "$AWK" && break
3055done
3056
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3058$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3059set x ${MAKE-make}
3060ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3061if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063else
3064 cat >conftest.make <<\_ACEOF
3065SHELL = /bin/sh
3066all:
3067 @echo '@@@%%%=$(MAKE)=@@@%%%'
3068_ACEOF
3069# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3070case `${MAKE-make} -f conftest.make 2>/dev/null` in
3071 *@@@%%%=?*=@@@%%%*)
3072 eval ac_cv_prog_make_${ac_make}_set=yes;;
3073 *)
3074 eval ac_cv_prog_make_${ac_make}_set=no;;
3075esac
3076rm -f conftest.make
3077fi
3078if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3080$as_echo "yes" >&6; }
3081 SET_MAKE=
3082else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084$as_echo "no" >&6; }
3085 SET_MAKE="MAKE=${MAKE-make}"
3086fi
3087
3088rm -rf .tst 2>/dev/null
3089mkdir .tst 2>/dev/null
3090if test -d .tst; then
3091 am__leading_dot=.
3092else
3093 am__leading_dot=_
3094fi
3095rmdir .tst 2>/dev/null
3096
3097# Check whether --enable-silent-rules was given.
3098if test "${enable_silent_rules+set}" = set; then :
3099 enableval=$enable_silent_rules;
3100fi
3101
3102case $enable_silent_rules in # (((
3103 yes) AM_DEFAULT_VERBOSITY=0;;
3104 no) AM_DEFAULT_VERBOSITY=1;;
3105 *) AM_DEFAULT_VERBOSITY=1;;
3106esac
3107am_make=${MAKE-make}
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3109$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3110if ${am_cv_make_support_nested_variables+:} false; then :
3111 $as_echo_n "(cached) " >&6
3112else
3113 if $as_echo 'TRUE=$(BAR$(V))
3114BAR0=false
3115BAR1=true
3116V=1
3117am__doit:
3118 @$(TRUE)
3119.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3120 am_cv_make_support_nested_variables=yes
3121else
3122 am_cv_make_support_nested_variables=no
3123fi
3124fi
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3126$as_echo "$am_cv_make_support_nested_variables" >&6; }
3127if test $am_cv_make_support_nested_variables = yes; then
3128 AM_V='$(V)'
3129 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3130else
3131 AM_V=$AM_DEFAULT_VERBOSITY
3132 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3133fi
3134AM_BACKSLASH='\'
3135
3136if test "`cd $srcdir && pwd`" != "`pwd`"; then
3137 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3138 # is not polluted with repeated "-I."
3139 am__isrc=' -I$(srcdir)'
3140 # test to see if srcdir already configured
3141 if test -f $srcdir/config.status; then
3142 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3143 fi
3144fi
3145
3146# test whether we have cygpath
3147if test -z "$CYGPATH_W"; then
3148 if (cygpath --version) >/dev/null 2>/dev/null; then
3149 CYGPATH_W='cygpath -w'
3150 else
3151 CYGPATH_W=echo
3152 fi
3153fi
3154
3155
3156# Define the identity of the package.
3157 PACKAGE='cycript'
3158 VERSION='0.9'
3159
3160
3161cat >>confdefs.h <<_ACEOF
3162#define PACKAGE "$PACKAGE"
3163_ACEOF
3164
3165
3166cat >>confdefs.h <<_ACEOF
3167#define VERSION "$VERSION"
3168_ACEOF
3169
3170# Some tools Automake needs.
3171
3172ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3173
3174
3175AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3176
3177
3178AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3179
3180
3181AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3182
3183
3184MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3185
3186# For better backward compatibility. To be removed once Automake 1.9.x
3187# dies out for good. For more background, see:
3188# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3189# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3190mkdir_p='$(MKDIR_P)'
3191
795230e5
JF
3192# We need awk for the "check" target (and possibly the TAP driver). The
3193# system "awk" is bad on some platforms.
66170b30
JF
3194# Always define AMTAR for backward compatibility. Yes, it's still used
3195# in the wild :-( We should find a proper way to deprecate it ...
3196AMTAR='$${TAR-tar}'
3197
a93f15c0
JF
3198
3199# We'll loop over all known methods to create a tar archive until one works.
3200_am_tools='gnutar pax cpio none'
3201
66170b30
JF
3202am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3203
3204
3205
3206
3207
66170b30 3208
a93f15c0
JF
3209# POSIX will say in a future version that running "rm -f" with no argument
3210# is OK; and we want to be able to make that assumption in our Makefile
3211# recipes. So use an aggressive probe to check that the usage we want is
3212# actually supported "in the wild" to an acceptable degree.
3213# See automake bug#10828.
3214# To make any issue more visible, cause the running configure to be aborted
3215# by default if the 'rm' program in use doesn't match our expectations; the
3216# user can still override this though.
3217if rm -f && rm -fr && rm -rf; then : OK; else
3218 cat >&2 <<'END'
3219Oops!
3220
3221Your 'rm' program seems unable to run without file operands specified
3222on the command line, even when the '-f' option is present. This is contrary
3223to the behaviour of most rm programs out there, and not conforming with
3224the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3225
3226Please tell bug-automake@gnu.org about your system, including the value
3227of your $PATH and any error possibly output before this message. This
3228can help us improve future automake versions.
3229
3230END
3231 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3232 echo 'Configuration will proceed anyway, since you have set the' >&2
3233 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3234 echo >&2
3235 else
3236 cat >&2 <<'END'
3237Aborting the configuration process, to ensure you take notice of the issue.
3238
3239You can download and install GNU coreutils to get an 'rm' implementation
3240that behaves properly: <http://www.gnu.org/software/coreutils/>.
3241
3242If you want to complete the configuration process using your problematic
3243'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3244to "yes", and re-run configure.
3245
3246END
3247 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3248 fi
3249fi
3250
795230e5 3251
babf7fe8
JF
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3253$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3254 # Check whether --enable-maintainer-mode was given.
3255if test "${enable_maintainer_mode+set}" = set; then :
3256 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3257else
3258 USE_MAINTAINER_MODE=no
3259fi
3260
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3262$as_echo "$USE_MAINTAINER_MODE" >&6; }
3263 if test $USE_MAINTAINER_MODE = yes; then
3264 MAINTAINER_MODE_TRUE=
3265 MAINTAINER_MODE_FALSE='#'
3266else
3267 MAINTAINER_MODE_TRUE='#'
3268 MAINTAINER_MODE_FALSE=
3269fi
3270
3271 MAINT=$MAINTAINER_MODE_TRUE
3272
3273
3274
a93f15c0
JF
3275ac_ext=c
3276ac_cpp='$CPP $CPPFLAGS'
3277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280if test -n "$ac_tool_prefix"; then
3281 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3282set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3285if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3286 $as_echo_n "(cached) " >&6
3287else
a93f15c0
JF
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3290else
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3298 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302done
3303 done
3304IFS=$as_save_IFS
3305
3306fi
3307fi
a93f15c0
JF
3308CC=$ac_cv_prog_CC
3309if test -n "$CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311$as_echo "$CC" >&6; }
35fa52c0
DWT
3312else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315fi
3316
3317
35fa52c0 3318fi
a93f15c0
JF
3319if test -z "$ac_cv_prog_CC"; then
3320 ac_ct_CC=$CC
3321 # Extract the first word of "gcc", so it can be a program name with args.
3322set dummy gcc; ac_word=$2
35fa52c0
DWT
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3325if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3326 $as_echo_n "(cached) " >&6
3327else
a93f15c0
JF
3328 if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3338 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3341 fi
3342done
3343 done
3344IFS=$as_save_IFS
3345
3346fi
3347fi
a93f15c0
JF
3348ac_ct_CC=$ac_cv_prog_ac_ct_CC
3349if test -n "$ac_ct_CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3351$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3352else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355fi
3356
a93f15c0
JF
3357 if test "x$ac_ct_CC" = x; then
3358 CC=""
35fa52c0
DWT
3359 else
3360 case $cross_compiling:$ac_tool_warned in
3361yes:)
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364ac_tool_warned=yes ;;
3365esac
a93f15c0 3366 CC=$ac_ct_CC
35fa52c0 3367 fi
a93f15c0
JF
3368else
3369 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3370fi
3371
a93f15c0
JF
3372if test -z "$CC"; then
3373 if test -n "$ac_tool_prefix"; then
3374 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3375set dummy ${ac_tool_prefix}cc; ac_word=$2
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377$as_echo_n "checking for $ac_word... " >&6; }
3378if ${ac_cv_prog_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380else
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC="$CC" # Let the user override the test.
3383else
3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385for as_dir in $PATH
3386do
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_CC="${ac_tool_prefix}cc"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
a243b558 3394 fi
35fa52c0 3395done
a93f15c0
JF
3396 done
3397IFS=$as_save_IFS
35fa52c0 3398
a93f15c0
JF
3399fi
3400fi
3401CC=$ac_cv_prog_CC
3402if test -n "$CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404$as_echo "$CC" >&6; }
3405else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407$as_echo "no" >&6; }
3408fi
35fa52c0 3409
35fa52c0 3410
a93f15c0
JF
3411 fi
3412fi
3413if test -z "$CC"; then
3414 # Extract the first word of "cc", so it can be a program name with args.
3415set dummy cc; ac_word=$2
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417$as_echo_n "checking for $ac_word... " >&6; }
3418if ${ac_cv_prog_CC+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420else
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3423else
3424 ac_prog_rejected=no
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
35fa52c0 3427do
a93f15c0
JF
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3433 ac_prog_rejected=yes
3434 continue
3435 fi
3436 ac_cv_prog_CC="cc"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440done
3441 done
3442IFS=$as_save_IFS
3443
3444if test $ac_prog_rejected = yes; then
3445 # We found a bogon in the path, so make sure we never use it.
3446 set dummy $ac_cv_prog_CC
3447 shift
3448 if test $# != 0; then
3449 # We chose a different compiler from the bogus one.
3450 # However, it has the same basename, so the bogon will be chosen
3451 # first if we set CC to just the basename; use the full file name.
3452 shift
3453 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3454 fi
3455fi
3456fi
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461$as_echo "$CC" >&6; }
3462else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464$as_echo "no" >&6; }
3465fi
3466
3467
3468fi
3469if test -z "$CC"; then
3470 if test -n "$ac_tool_prefix"; then
3471 for ac_prog in cl.exe
3472 do
3473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476$as_echo_n "checking for $ac_word... " >&6; }
3477if ${ac_cv_prog_CC+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494done
3495 done
3496IFS=$as_save_IFS
3497
3498fi
3499fi
3500CC=$ac_cv_prog_CC
3501if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503$as_echo "$CC" >&6; }
3504else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3507fi
3508
3509
3510 test -n "$CC" && break
3511 done
3512fi
3513if test -z "$CC"; then
3514 ac_ct_CC=$CC
3515 for ac_prog in cl.exe
3516do
3517 # Extract the first word of "$ac_prog", so it can be a program name with args.
3518set dummy $ac_prog; ac_word=$2
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520$as_echo_n "checking for $ac_word... " >&6; }
3521if ${ac_cv_prog_ac_ct_CC+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523else
3524 if test -n "$ac_ct_CC"; then
3525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3526else
3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_prog_ac_ct_CC="$ac_prog"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 break 2
3537 fi
3538done
3539 done
3540IFS=$as_save_IFS
3541
3542fi
3543fi
3544ac_ct_CC=$ac_cv_prog_ac_ct_CC
3545if test -n "$ac_ct_CC"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3547$as_echo "$ac_ct_CC" >&6; }
3548else
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550$as_echo "no" >&6; }
3551fi
3552
3553
3554 test -n "$ac_ct_CC" && break
3555done
3556
3557 if test "x$ac_ct_CC" = x; then
3558 CC=""
3559 else
3560 case $cross_compiling:$ac_tool_warned in
3561yes:)
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3564ac_tool_warned=yes ;;
3565esac
3566 CC=$ac_ct_CC
3567 fi
3568fi
3569
3570fi
3571
3572
3573test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575as_fn_error $? "no acceptable C compiler found in \$PATH
3576See \`config.log' for more details" "$LINENO" 5; }
3577
3578# Provide some information about the compiler.
3579$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3580set X $ac_compile
3581ac_compiler=$2
3582for ac_option in --version -v -V -qversion; do
3583 { { ac_try="$ac_compiler $ac_option >&5"
3584case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587esac
3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589$as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3591 ac_status=$?
3592 if test -s conftest.err; then
3593 sed '10a\
3594... rest of stderr output deleted ...
3595 10q' conftest.err >conftest.er1
3596 cat conftest.er1 >&5
3597 fi
3598 rm -f conftest.er1 conftest.err
3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }
3601done
3602
3603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h. */
3605
3606int
3607main ()
3608{
3609
3610 ;
3611 return 0;
3612}
3613_ACEOF
3614ac_clean_files_save=$ac_clean_files
3615ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3616# Try to create an executable without -o first, disregard a.out.
3617# It will help us diagnose broken compilers, and finding out an intuition
3618# of exeext.
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3620$as_echo_n "checking whether the C compiler works... " >&6; }
3621ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3622
3623# The possible output files:
3624ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3625
3626ac_rmfiles=
3627for ac_file in $ac_files
3628do
3629 case $ac_file in
3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3631 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3632 esac
3633done
35fa52c0
DWT
3634rm -f $ac_rmfiles
3635
3636if { { ac_try="$ac_link_default"
3637case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640esac
3641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642$as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_link_default") 2>&5
3644 ac_status=$?
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }; then :
3647 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3648# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3649# in a Makefile. We should not override ac_cv_exeext if it was cached,
3650# so that the user can short-circuit this test for compilers unknown to
3651# Autoconf.
3652for ac_file in $ac_files ''
3653do
3654 test -f "$ac_file" || continue
3655 case $ac_file in
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3657 ;;
3658 [ab].out )
3659 # We found the default executable, but exeext='' is most
3660 # certainly right.
3661 break;;
3662 *.* )
3663 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3664 then :; else
3665 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3666 fi
3667 # We set ac_cv_exeext here because the later test for it is not
3668 # safe: cross compilers may not add the suffix if given an `-o'
3669 # argument, so we may need to know it at that point already.
3670 # Even if this section looks crufty: it has the advantage of
3671 # actually working.
3672 break;;
3673 * )
3674 break;;
3675 esac
3676done
3677test "$ac_cv_exeext" = no && ac_cv_exeext=
3678
3679else
3680 ac_file=''
3681fi
35fa52c0 3682if test -z "$ac_file"; then :
9c60689e
DWT
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684$as_echo "no" >&6; }
3685$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3686sed 's/^/| /' conftest.$ac_ext >&5
3687
3688{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3690as_fn_error 77 "C compiler cannot create executables
ee134472 3691See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3692else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3694$as_echo "yes" >&6; }
35fa52c0 3695fi
a93f15c0
JF
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3697$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3699$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3700ac_exeext=$ac_cv_exeext
3701
9c60689e 3702rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3703ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3705$as_echo_n "checking for suffix of executables... " >&6; }
3706if { { ac_try="$ac_link"
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_link") 2>&5
3714 ac_status=$?
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }; then :
3717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3718# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3719# work properly (i.e., refer to `conftest.exe'), while it won't with
3720# `rm'.
3721for ac_file in conftest.exe conftest conftest.*; do
3722 test -f "$ac_file" || continue
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3726 break;;
3727 * ) break;;
3728 esac
3729done
3730else
3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3733as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3734See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3735fi
9c60689e 3736rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3738$as_echo "$ac_cv_exeext" >&6; }
3739
3740rm -f conftest.$ac_ext
3741EXEEXT=$ac_cv_exeext
3742ac_exeext=$EXEEXT
9c60689e
DWT
3743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h. */
3745#include <stdio.h>
3746int
3747main ()
3748{
3749FILE *f = fopen ("conftest.out", "w");
3750 return ferror (f) || fclose (f) != 0;
3751
3752 ;
3753 return 0;
3754}
3755_ACEOF
3756ac_clean_files="$ac_clean_files conftest.out"
3757# Check that the compiler produces executables we can run. If not, either
3758# the compiler is broken, or we cross compile.
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3760$as_echo_n "checking whether we are cross compiling... " >&6; }
3761if test "$cross_compiling" != yes; then
3762 { { ac_try="$ac_link"
3763case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
3767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768$as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_link") 2>&5
3770 ac_status=$?
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }
3773 if { ac_try='./conftest$ac_cv_exeext'
3774 { { case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777esac
3778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779$as_echo "$ac_try_echo"; } >&5
3780 (eval "$ac_try") 2>&5
3781 ac_status=$?
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }; }; then
3784 cross_compiling=no
3785 else
3786 if test "$cross_compiling" = maybe; then
3787 cross_compiling=yes
3788 else
3789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3791as_fn_error $? "cannot run C compiled programs.
9c60689e 3792If you meant to cross compile, use \`--host'.
ee134472 3793See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3794 fi
3795 fi
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3798$as_echo "$cross_compiling" >&6; }
3799
3800rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3801ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3803$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3804if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3805 $as_echo_n "(cached) " >&6
3806else
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808/* end confdefs.h. */
3809
3810int
3811main ()
3812{
3813
3814 ;
3815 return 0;
3816}
3817_ACEOF
3818rm -f conftest.o conftest.obj
3819if { { ac_try="$ac_compile"
3820case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823esac
3824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825$as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_compile") 2>&5
3827 ac_status=$?
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }; then :
3830 for ac_file in conftest.o conftest.obj conftest.*; do
3831 test -f "$ac_file" || continue;
3832 case $ac_file in
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3835 break;;
3836 esac
3837done
3838else
3839 $as_echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
3842{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3844as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3845See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3846fi
3847rm -f conftest.$ac_cv_objext conftest.$ac_ext
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3850$as_echo "$ac_cv_objext" >&6; }
3851OBJEXT=$ac_cv_objext
3852ac_objext=$OBJEXT
a93f15c0
JF
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3854$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3855if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3856 $as_echo_n "(cached) " >&6
3857else
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h. */
3860
3861int
3862main ()
3863{
3864#ifndef __GNUC__
3865 choke me
3866#endif
3867
3868 ;
3869 return 0;
3870}
3871_ACEOF
a93f15c0 3872if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3873 ac_compiler_gnu=yes
3874else
3875 ac_compiler_gnu=no
3876fi
3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3878ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3879
3880fi
a93f15c0
JF
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3882$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3883if test $ac_compiler_gnu = yes; then
a93f15c0 3884 GCC=yes
35fa52c0 3885else
a93f15c0 3886 GCC=
35fa52c0 3887fi
a93f15c0
JF
3888ac_test_CFLAGS=${CFLAGS+set}
3889ac_save_CFLAGS=$CFLAGS
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3891$as_echo_n "checking whether $CC accepts -g... " >&6; }
3892if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3893 $as_echo_n "(cached) " >&6
3894else
a93f15c0
JF
3895 ac_save_c_werror_flag=$ac_c_werror_flag
3896 ac_c_werror_flag=yes
3897 ac_cv_prog_cc_g=no
3898 CFLAGS="-g"
35fa52c0
DWT
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h. */
3901
3902int
3903main ()
3904{
3905
3906 ;
3907 return 0;
3908}
3909_ACEOF
a93f15c0
JF
3910if ac_fn_c_try_compile "$LINENO"; then :
3911 ac_cv_prog_cc_g=yes
35fa52c0 3912else
a93f15c0 3913 CFLAGS=""
35fa52c0
DWT
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h. */
3916
3917int
3918main ()
3919{
3920
3921 ;
3922 return 0;
3923}
3924_ACEOF
a93f15c0 3925if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3926
3927else
a93f15c0
JF
3928 ac_c_werror_flag=$ac_save_c_werror_flag
3929 CFLAGS="-g"
35fa52c0
DWT
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h. */
3932
3933int
3934main ()
3935{
3936
3937 ;
3938 return 0;
3939}
3940_ACEOF
a93f15c0
JF
3941if ac_fn_c_try_compile "$LINENO"; then :
3942 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945fi
3946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947fi
3948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3949 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3950fi
a93f15c0
JF
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3952$as_echo "$ac_cv_prog_cc_g" >&6; }
3953if test "$ac_test_CFLAGS" = set; then
3954 CFLAGS=$ac_save_CFLAGS
3955elif test $ac_cv_prog_cc_g = yes; then
3956 if test "$GCC" = yes; then
3957 CFLAGS="-g -O2"
35fa52c0 3958 else
a93f15c0 3959 CFLAGS="-g"
35fa52c0
DWT
3960 fi
3961else
a93f15c0
JF
3962 if test "$GCC" = yes; then
3963 CFLAGS="-O2"
35fa52c0 3964 else
a93f15c0 3965 CFLAGS=
35fa52c0
DWT
3966 fi
3967fi
a93f15c0
JF
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3969$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3970if ${ac_cv_prog_cc_c89+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972else
3973 ac_cv_prog_cc_c89=no
3974ac_save_CC=$CC
3975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976/* end confdefs.h. */
3977#include <stdarg.h>
3978#include <stdio.h>
3979struct stat;
3980/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3981struct buf { int x; };
3982FILE * (*rcsopen) (struct buf *, struct stat *, int);
3983static char *e (p, i)
3984 char **p;
3985 int i;
3986{
3987 return p[i];
3988}
3989static char *f (char * (*g) (char **, int), char **p, ...)
3990{
3991 char *s;
3992 va_list v;
3993 va_start (v,p);
3994 s = g (p, va_arg (v,int));
3995 va_end (v);
3996 return s;
3997}
3998
3999/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4000 function prototypes and stuff, but not '\xHH' hex character constants.
4001 These don't provoke an error unfortunately, instead are silently treated
4002 as 'x'. The following induces an error, until -std is added to get
4003 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4004 array size at least. It's necessary to write '\x00'==0 to get something
4005 that's true only with -std. */
4006int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4007
4008/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4009 inside strings and character constants. */
4010#define FOO(x) 'x'
4011int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4012
4013int test (int i, double x);
4014struct s1 {int (*f) (int a);};
4015struct s2 {int (*f) (double a);};
4016int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4017int argc;
4018char **argv;
4019int
4020main ()
4021{
4022return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4023 ;
4024 return 0;
4025}
4026_ACEOF
4027for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4028 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4029do
4030 CC="$ac_save_CC $ac_arg"
4031 if ac_fn_c_try_compile "$LINENO"; then :
4032 ac_cv_prog_cc_c89=$ac_arg
4033fi
4034rm -f core conftest.err conftest.$ac_objext
4035 test "x$ac_cv_prog_cc_c89" != "xno" && break
4036done
4037rm -f conftest.$ac_ext
4038CC=$ac_save_CC
4039
4040fi
4041# AC_CACHE_VAL
4042case "x$ac_cv_prog_cc_c89" in
4043 x)
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4045$as_echo "none needed" >&6; } ;;
4046 xno)
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4048$as_echo "unsupported" >&6; } ;;
4049 *)
4050 CC="$CC $ac_cv_prog_cc_c89"
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4052$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4053esac
4054if test "x$ac_cv_prog_cc_c89" != xno; then :
4055
4056fi
4057
4058ac_ext=c
4059ac_cpp='$CPP $CPPFLAGS'
4060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063
4064ac_ext=c
4065ac_cpp='$CPP $CPPFLAGS'
4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4070$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4071if ${am_cv_prog_cc_c_o+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073else
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h. */
4076
4077int
4078main ()
4079{
4080
4081 ;
4082 return 0;
4083}
4084_ACEOF
4085 # Make sure it works both with $CC and with simple cc.
4086 # Following AC_PROG_CC_C_O, we do the test twice because some
4087 # compilers refuse to overwrite an existing .o file with -o,
4088 # though they will create one.
4089 am_cv_prog_cc_c_o=yes
4090 for am_i in 1 2; do
4091 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4092 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } \
4096 && test -f conftest2.$ac_objext; then
4097 : OK
4098 else
4099 am_cv_prog_cc_c_o=no
4100 break
4101 fi
4102 done
4103 rm -f core conftest*
4104 unset am_i
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4107$as_echo "$am_cv_prog_cc_c_o" >&6; }
4108if test "$am_cv_prog_cc_c_o" != yes; then
4109 # Losing compiler, so override with the script.
4110 # FIXME: It is wrong to rewrite CC.
4111 # But if we don't then we get into trouble of one sort or another.
4112 # A longer-term fix would be to have automake use am__CC in this case,
4113 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4114 CC="$am_aux_dir/compile $CC"
4115fi
a243b558
JF
4116ac_ext=c
4117ac_cpp='$CPP $CPPFLAGS'
4118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4121
a243b558 4122DEPDIR="${am__leading_dot}deps"
35fa52c0 4123
a243b558 4124ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4125
35fa52c0 4126
a243b558
JF
4127am_make=${MAKE-make}
4128cat > confinc << 'END'
4129am__doit:
4130 @echo this is the am__doit target
4131.PHONY: am__doit
4132END
4133# If we don't find an include directive, just comment out the code.
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4135$as_echo_n "checking for style of include used by $am_make... " >&6; }
4136am__include="#"
4137am__quote=
4138_am_result=none
4139# First try GNU make style include.
4140echo "include confinc" > confmf
4141# Ignore all kinds of additional output from 'make'.
4142case `$am_make -s -f confmf 2> /dev/null` in #(
4143*the\ am__doit\ target*)
4144 am__include=include
4145 am__quote=
4146 _am_result=GNU
4147 ;;
4148esac
4149# Now try BSD make style include.
4150if test "$am__include" = "#"; then
4151 echo '.include "confinc"' > confmf
4152 case `$am_make -s -f confmf 2> /dev/null` in #(
4153 *the\ am__doit\ target*)
4154 am__include=.include
4155 am__quote="\""
4156 _am_result=BSD
4157 ;;
4158 esac
35fa52c0 4159fi
35fa52c0 4160
a243b558
JF
4161
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4163$as_echo "$_am_result" >&6; }
4164rm -f confinc confmf
4165
4166# Check whether --enable-dependency-tracking was given.
4167if test "${enable_dependency_tracking+set}" = set; then :
4168 enableval=$enable_dependency_tracking;
35fa52c0 4169fi
35fa52c0 4170
a243b558
JF
4171if test "x$enable_dependency_tracking" != xno; then
4172 am_depcomp="$ac_aux_dir/depcomp"
4173 AMDEPBACKSLASH='\'
4174 am__nodep='_no'
4175fi
4176 if test "x$enable_dependency_tracking" != xno; then
4177 AMDEP_TRUE=
4178 AMDEP_FALSE='#'
4179else
4180 AMDEP_TRUE='#'
4181 AMDEP_FALSE=
35fa52c0
DWT
4182fi
4183
35fa52c0 4184
a243b558 4185
a93f15c0 4186depcc="$CC" am_compiler_list=
66170b30
JF
4187
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4189$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4190if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4191 $as_echo_n "(cached) " >&6
4192else
4193 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4194 # We make a subdir and do the tests there. Otherwise we can end up
4195 # making bogus files that we don't know about and never remove. For
4196 # instance it was reported that on HP-UX the gcc test will end up
4197 # making a dummy file named 'D' -- because '-MD' means "put the output
4198 # in D".
4199 rm -rf conftest.dir
4200 mkdir conftest.dir
4201 # Copy depcomp to subdir because otherwise we won't find it if we're
4202 # using a relative directory.
4203 cp "$am_depcomp" conftest.dir
4204 cd conftest.dir
4205 # We will build objects and dependencies in a subdirectory because
4206 # it helps to detect inapplicable dependency modes. For instance
4207 # both Tru64's cc and ICC support -MD to output dependencies as a
4208 # side effect of compilation, but ICC will put the dependencies in
4209 # the current directory while Tru64 will put them in the object
4210 # directory.
4211 mkdir sub
4212
a93f15c0 4213 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4214 if test "$am_compiler_list" = ""; then
4215 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4216 fi
4217 am__universal=false
4218 case " $depcc " in #(
4219 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4220 esac
4221
4222 for depmode in $am_compiler_list; do
4223 # Setup a source with many dependencies, because some compilers
4224 # like to wrap large dependency lists on column 80 (with \), and
4225 # we should not choose a depcomp mode which is confused by this.
4226 #
4227 # We need to recreate these files for each test, as the compiler may
4228 # overwrite some of them when testing with obscure command lines.
4229 # This happens at least with the AIX C compiler.
4230 : > sub/conftest.c
4231 for i in 1 2 3 4 5 6; do
4232 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4233 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4234 # Solaris 10 /bin/sh.
4235 echo '/* dummy */' > sub/conftst$i.h
4236 done
4237 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4238
4239 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4240 # mode. It turns out that the SunPro C++ compiler does not properly
4241 # handle '-M -o', and we need to detect this. Also, some Intel
4242 # versions had trouble with output in subdirs.
4243 am__obj=sub/conftest.${OBJEXT-o}
4244 am__minus_obj="-o $am__obj"
4245 case $depmode in
4246 gcc)
4247 # This depmode causes a compiler race in universal mode.
4248 test "$am__universal" = false || continue
4249 ;;
4250 nosideeffect)
4251 # After this tag, mechanisms are not by side-effect, so they'll
4252 # only be used when explicitly requested.
4253 if test "x$enable_dependency_tracking" = xyes; then
4254 continue
4255 else
4256 break
4257 fi
4258 ;;
4259 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4260 # This compiler won't grok '-c -o', but also, the minuso test has
4261 # not run yet. These depmodes are late enough in the game, and
4262 # so weak that their functioning should not be impacted.
4263 am__obj=conftest.${OBJEXT-o}
4264 am__minus_obj=
4265 ;;
4266 none) break ;;
4267 esac
4268 if depmode=$depmode \
4269 source=sub/conftest.c object=$am__obj \
4270 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4271 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4272 >/dev/null 2>conftest.err &&
4273 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4274 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4275 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4276 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4277 # icc doesn't choke on unknown options, it will just issue warnings
4278 # or remarks (even with -Werror). So we grep stderr for any message
4279 # that says an option was ignored or not supported.
4280 # When given -MP, icc 7.0 and 7.1 complain thusly:
4281 # icc: Command line warning: ignoring option '-M'; no argument required
4282 # The diagnosis changed in icc 8.0:
4283 # icc: Command line remark: option '-MP' not supported
4284 if (grep 'ignoring option' conftest.err ||
4285 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4286 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4287 break
4288 fi
4289 fi
4290 done
4291
4292 cd ..
4293 rm -rf conftest.dir
4294else
a93f15c0 4295 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4296fi
4297
4298fi
a93f15c0
JF
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4300$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4301CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4302
4303 if
4304 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4305 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4306 am__fastdepCC_TRUE=
4307 am__fastdepCC_FALSE='#'
66170b30 4308else
a93f15c0
JF
4309 am__fastdepCC_TRUE='#'
4310 am__fastdepCC_FALSE=
66170b30
JF
4311fi
4312
4313
a93f15c0
JF
4314ac_ext=cpp
4315ac_cpp='$CXXCPP $CPPFLAGS'
4316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4319if test -z "$CXX"; then
4320 if test -n "$CCC"; then
4321 CXX=$CCC
4322 else
4323 if test -n "$ac_tool_prefix"; then
4324 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4325 do
4326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4327set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4330if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4331 $as_echo_n "(cached) " >&6
4332else
a93f15c0
JF
4333 if test -n "$CXX"; then
4334 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4335else
4336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337for as_dir in $PATH
4338do
35fa52c0
DWT
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4343 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 break 2
4346 fi
4347done
9c60689e
DWT
4348 done
4349IFS=$as_save_IFS
35fa52c0 4350
9c60689e 4351fi
a243b558 4352fi
a93f15c0
JF
4353CXX=$ac_cv_prog_CXX
4354if test -n "$CXX"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4356$as_echo "$CXX" >&6; }
a243b558
JF
4357else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359$as_echo "no" >&6; }
4360fi
35fa52c0 4361
35fa52c0 4362
a93f15c0 4363 test -n "$CXX" && break
a243b558
JF
4364 done
4365fi
a93f15c0
JF
4366if test -z "$CXX"; then
4367 ac_ct_CXX=$CXX
4368 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4369do
4370 # Extract the first word of "$ac_prog", so it can be a program name with args.
4371set dummy $ac_prog; ac_word=$2
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4374if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4375 $as_echo_n "(cached) " >&6
4376else
a93f15c0
JF
4377 if test -n "$ac_ct_CXX"; then
4378 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4379else
4380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381for as_dir in $PATH
9c60689e
DWT
4382do
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
9c60689e 4385 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4387 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4390 fi
4391done
9c60689e
DWT
4392 done
4393IFS=$as_save_IFS
a243b558
JF
4394
4395fi
4396fi
a93f15c0
JF
4397ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4398if test -n "$ac_ct_CXX"; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4400$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4401else
a243b558
JF
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403$as_echo "no" >&6; }
9c60689e 4404fi
6b66678a
DWT
4405
4406
a93f15c0 4407 test -n "$ac_ct_CXX" && break
a243b558 4408done
6b66678a 4409
a93f15c0
JF
4410 if test "x$ac_ct_CXX" = x; then
4411 CXX="g++"
a243b558
JF
4412 else
4413 case $cross_compiling:$ac_tool_warned in
4414yes:)
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4417ac_tool_warned=yes ;;
9c60689e 4418esac
a93f15c0 4419 CXX=$ac_ct_CXX
9c60689e 4420 fi
9c60689e 4421fi
6b66678a 4422
a93f15c0
JF
4423 fi
4424fi
a243b558 4425# Provide some information about the compiler.
a93f15c0 4426$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4427set X $ac_compile
4428ac_compiler=$2
4429for ac_option in --version -v -V -qversion; do
4430 { { ac_try="$ac_compiler $ac_option >&5"
4431case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434esac
4435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436$as_echo "$ac_try_echo"; } >&5
4437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4438 ac_status=$?
4439 if test -s conftest.err; then
4440 sed '10a\
4441... rest of stderr output deleted ...
4442 10q' conftest.err >conftest.er1
4443 cat conftest.er1 >&5
4444 fi
4445 rm -f conftest.er1 conftest.err
4446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447 test $ac_status = 0; }
4448done
6b66678a 4449
a93f15c0
JF
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4451$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4452if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4453 $as_echo_n "(cached) " >&6
6b66678a 4454else
a243b558
JF
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456/* end confdefs.h. */
6b66678a 4457
a243b558
JF
4458int
4459main ()
4460{
4461#ifndef __GNUC__
4462 choke me
4463#endif
4464
4465 ;
4466 return 0;
4467}
4468_ACEOF
a93f15c0 4469if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4470 ac_compiler_gnu=yes
9c60689e 4471else
a243b558 4472 ac_compiler_gnu=no
6b66678a 4473fi
a243b558 4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4475ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4476
4477fi
a93f15c0
JF
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4479$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4480if test $ac_compiler_gnu = yes; then
a93f15c0 4481 GXX=yes
a243b558 4482else
a93f15c0 4483 GXX=
a243b558 4484fi
a93f15c0
JF
4485ac_test_CXXFLAGS=${CXXFLAGS+set}
4486ac_save_CXXFLAGS=$CXXFLAGS
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4488$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4489if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4490 $as_echo_n "(cached) " >&6
4491else
a93f15c0
JF
4492 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4493 ac_cxx_werror_flag=yes
4494 ac_cv_prog_cxx_g=no
4495 CXXFLAGS="-g"
a243b558
JF
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497/* end confdefs.h. */
309b0535 4498
a243b558
JF
4499int
4500main ()
4501{
309b0535 4502
a243b558
JF
4503 ;
4504 return 0;
4505}
4506_ACEOF
a93f15c0
JF
4507if ac_fn_cxx_try_compile "$LINENO"; then :
4508 ac_cv_prog_cxx_g=yes
a243b558 4509else
a93f15c0 4510 CXXFLAGS=""
a243b558
JF
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512/* end confdefs.h. */
309b0535 4513
a243b558
JF
4514int
4515main ()
4516{
309b0535 4517
a243b558
JF
4518 ;
4519 return 0;
4520}
4521_ACEOF
a93f15c0 4522if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4523
a243b558 4524else
a93f15c0
JF
4525 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4526 CXXFLAGS="-g"
a243b558
JF
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528/* end confdefs.h. */
309b0535 4529
a243b558
JF
4530int
4531main ()
4532{
309b0535 4533
a243b558
JF
4534 ;
4535 return 0;
4536}
4537_ACEOF
a93f15c0
JF
4538if ac_fn_cxx_try_compile "$LINENO"; then :
4539 ac_cv_prog_cxx_g=yes
9c60689e 4540fi
a243b558 4541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4542fi
a243b558 4543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4544fi
a243b558 4545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4546 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4547fi
a93f15c0
JF
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4549$as_echo "$ac_cv_prog_cxx_g" >&6; }
4550if test "$ac_test_CXXFLAGS" = set; then
4551 CXXFLAGS=$ac_save_CXXFLAGS
4552elif test $ac_cv_prog_cxx_g = yes; then
4553 if test "$GXX" = yes; then
4554 CXXFLAGS="-g -O2"
a243b558 4555 else
a93f15c0 4556 CXXFLAGS="-g"
a243b558 4557 fi
9c60689e 4558else
a93f15c0
JF
4559 if test "$GXX" = yes; then
4560 CXXFLAGS="-O2"
a243b558 4561 else
a93f15c0 4562 CXXFLAGS=
a243b558 4563 fi
9c60689e 4564fi
a243b558
JF
4565ac_ext=c
4566ac_cpp='$CPP $CPPFLAGS'
4567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4570
a93f15c0 4571depcc="$CXX" am_compiler_list=
309b0535 4572
a243b558
JF
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4574$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4575if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4576 $as_echo_n "(cached) " >&6
4577else
4578 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4579 # We make a subdir and do the tests there. Otherwise we can end up
4580 # making bogus files that we don't know about and never remove. For
4581 # instance it was reported that on HP-UX the gcc test will end up
4582 # making a dummy file named 'D' -- because '-MD' means "put the output
4583 # in D".
4584 rm -rf conftest.dir
4585 mkdir conftest.dir
4586 # Copy depcomp to subdir because otherwise we won't find it if we're
4587 # using a relative directory.
4588 cp "$am_depcomp" conftest.dir
4589 cd conftest.dir
4590 # We will build objects and dependencies in a subdirectory because
4591 # it helps to detect inapplicable dependency modes. For instance
4592 # both Tru64's cc and ICC support -MD to output dependencies as a
4593 # side effect of compilation, but ICC will put the dependencies in
4594 # the current directory while Tru64 will put them in the object
4595 # directory.
4596 mkdir sub
309b0535 4597
a93f15c0 4598 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4599 if test "$am_compiler_list" = ""; then
4600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4601 fi
4602 am__universal=false
a93f15c0
JF
4603 case " $depcc " in #(
4604 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4605 esac
9c60689e 4606
a243b558
JF
4607 for depmode in $am_compiler_list; do
4608 # Setup a source with many dependencies, because some compilers
4609 # like to wrap large dependency lists on column 80 (with \), and
4610 # we should not choose a depcomp mode which is confused by this.
4611 #
4612 # We need to recreate these files for each test, as the compiler may
4613 # overwrite some of them when testing with obscure command lines.
4614 # This happens at least with the AIX C compiler.
4615 : > sub/conftest.c
4616 for i in 1 2 3 4 5 6; do
4617 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4618 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4619 # Solaris 10 /bin/sh.
4620 echo '/* dummy */' > sub/conftst$i.h
4621 done
4622 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4623
a243b558
JF
4624 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4625 # mode. It turns out that the SunPro C++ compiler does not properly
4626 # handle '-M -o', and we need to detect this. Also, some Intel
4627 # versions had trouble with output in subdirs.
4628 am__obj=sub/conftest.${OBJEXT-o}
4629 am__minus_obj="-o $am__obj"
4630 case $depmode in
4631 gcc)
4632 # This depmode causes a compiler race in universal mode.
4633 test "$am__universal" = false || continue
4634 ;;
4635 nosideeffect)
4636 # After this tag, mechanisms are not by side-effect, so they'll
4637 # only be used when explicitly requested.
4638 if test "x$enable_dependency_tracking" = xyes; then
4639 continue
4640 else
4641 break
309b0535 4642 fi
a243b558
JF
4643 ;;
4644 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4645 # This compiler won't grok '-c -o', but also, the minuso test has
4646 # not run yet. These depmodes are late enough in the game, and
4647 # so weak that their functioning should not be impacted.
4648 am__obj=conftest.${OBJEXT-o}
4649 am__minus_obj=
4650 ;;
4651 none) break ;;
4652 esac
4653 if depmode=$depmode \
4654 source=sub/conftest.c object=$am__obj \
4655 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4656 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4657 >/dev/null 2>conftest.err &&
4658 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4660 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4662 # icc doesn't choke on unknown options, it will just issue warnings
4663 # or remarks (even with -Werror). So we grep stderr for any message
4664 # that says an option was ignored or not supported.
4665 # When given -MP, icc 7.0 and 7.1 complain thusly:
4666 # icc: Command line warning: ignoring option '-M'; no argument required
4667 # The diagnosis changed in icc 8.0:
4668 # icc: Command line remark: option '-MP' not supported
4669 if (grep 'ignoring option' conftest.err ||
4670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4671 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4672 break
4673 fi
4674 fi
309b0535 4675 done
a243b558
JF
4676
4677 cd ..
4678 rm -rf conftest.dir
4679else
a93f15c0 4680 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4681fi
a243b558 4682
9c60689e 4683fi
a93f15c0
JF
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4685$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4686CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4687
4688 if
4689 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4690 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4691 am__fastdepCXX_TRUE=
4692 am__fastdepCXX_FALSE='#'
9c60689e 4693else
a93f15c0
JF
4694 am__fastdepCXX_TRUE='#'
4695 am__fastdepCXX_FALSE=
a243b558
JF
4696fi
4697
4698
a93f15c0
JF
4699ac_ext=mm
4700ac_cpp='$OBJCXXCPP $CPPFLAGS'
4701ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4704if test -n "$ac_tool_prefix"; then
a93f15c0 4705 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4706 do
4707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4711if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4712 $as_echo_n "(cached) " >&6
4713else
a93f15c0
JF
4714 if test -n "$OBJCXX"; then
4715 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4716else
4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4724 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
9c60689e 4727 fi
a243b558
JF
4728done
4729 done
4730IFS=$as_save_IFS
9c60689e 4731
a243b558
JF
4732fi
4733fi
a93f15c0
JF
4734OBJCXX=$ac_cv_prog_OBJCXX
4735if test -n "$OBJCXX"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4737$as_echo "$OBJCXX" >&6; }
35fa52c0 4738else
a243b558
JF
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740$as_echo "no" >&6; }
35fa52c0 4741fi
9c60689e 4742
a243b558 4743
a93f15c0 4744 test -n "$OBJCXX" && break
a243b558
JF
4745 done
4746fi
a93f15c0
JF
4747if test -z "$OBJCXX"; then
4748 ac_ct_OBJCXX=$OBJCXX
4749 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4750do
4751 # Extract the first word of "$ac_prog", so it can be a program name with args.
4752set dummy $ac_prog; ac_word=$2
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4755if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4756 $as_echo_n "(cached) " >&6
4757else
a93f15c0
JF
4758 if test -n "$ac_ct_OBJCXX"; then
4759 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4760else
4761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH
4763do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4768 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772done
4773 done
4774IFS=$as_save_IFS
9c60689e 4775
a243b558
JF
4776fi
4777fi
a93f15c0
JF
4778ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4779if test -n "$ac_ct_OBJCXX"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4781$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4782else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784$as_echo "no" >&6; }
4785fi
35fa52c0 4786
35fa52c0 4787
a93f15c0 4788 test -n "$ac_ct_OBJCXX" && break
a243b558 4789done
35fa52c0 4790
a93f15c0
JF
4791 if test "x$ac_ct_OBJCXX" = x; then
4792 OBJCXX="g++"
a243b558
JF
4793 else
4794 case $cross_compiling:$ac_tool_warned in
4795yes:)
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4798ac_tool_warned=yes ;;
4799esac
a93f15c0 4800 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4801 fi
4802fi
ee134472 4803
a243b558 4804# Provide some information about the compiler.
a93f15c0 4805$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4806set X $ac_compile
4807ac_compiler=$2
4808for ac_option in --version -v -V -qversion; do
4809 { { ac_try="$ac_compiler $ac_option >&5"
4810case "(($ac_try" in
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4813esac
4814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4815$as_echo "$ac_try_echo"; } >&5
4816 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4817 ac_status=$?
4818 if test -s conftest.err; then
4819 sed '10a\
4820... rest of stderr output deleted ...
4821 10q' conftest.err >conftest.er1
4822 cat conftest.er1 >&5
4823 fi
4824 rm -f conftest.er1 conftest.err
4825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4826 test $ac_status = 0; }
4827done
53ba6704 4828
a93f15c0
JF
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4830$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4831if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4832 $as_echo_n "(cached) " >&6
4833else
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h. */
35fa52c0 4836
a243b558
JF
4837int
4838main ()
4839{
4840#ifndef __GNUC__
4841 choke me
4842#endif
9c60689e 4843
a243b558
JF
4844 ;
4845 return 0;
4846}
4847_ACEOF
a93f15c0 4848if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4849 ac_compiler_gnu=yes
35fa52c0 4850else
a243b558 4851 ac_compiler_gnu=no
35fa52c0 4852fi
a243b558 4853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4854ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4855
a243b558 4856fi
a93f15c0
JF
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4858$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4859if test $ac_compiler_gnu = yes; then
a93f15c0 4860 GOBJCXX=yes
35fa52c0 4861else
a93f15c0 4862 GOBJCXX=
9c60689e 4863fi
a93f15c0
JF
4864ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4865ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4867$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4868if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4869 $as_echo_n "(cached) " >&6
4870else
a93f15c0
JF
4871 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4872 ac_objcxx_werror_flag=yes
4873 ac_cv_prog_objcxx_g=no
4874 OBJCXXFLAGS="-g"
a243b558
JF
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876/* end confdefs.h. */
9c60689e 4877
a243b558
JF
4878int
4879main ()
4880{
9c60689e 4881
a243b558
JF
4882 ;
4883 return 0;
4884}
4885_ACEOF
a93f15c0
JF
4886if ac_fn_objcxx_try_compile "$LINENO"; then :
4887 ac_cv_prog_objcxx_g=yes
a243b558 4888else
a93f15c0 4889 OBJCXXFLAGS=""
a243b558
JF
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891/* end confdefs.h. */
9c60689e 4892
a243b558
JF
4893int
4894main ()
4895{
9c60689e 4896
a243b558
JF
4897 ;
4898 return 0;
4899}
4900_ACEOF
a93f15c0 4901if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4902
a243b558 4903else
a93f15c0
JF
4904 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4905 OBJCXXFLAGS="-g"
a243b558 4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4907/* end confdefs.h. */
4908
a243b558
JF
4909int
4910main ()
4911{
a93f15c0 4912
a243b558
JF
4913 ;
4914 return 0;
4915}
4916_ACEOF
a93f15c0
JF
4917if ac_fn_objcxx_try_compile "$LINENO"; then :
4918 ac_cv_prog_objcxx_g=yes
a243b558 4919fi
a93f15c0 4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4921fi
a93f15c0
JF
4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923fi
4924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4928$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4929if test "$ac_test_OBJCXXFLAGS" = set; then
4930 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4931elif test $ac_cv_prog_objcxx_g = yes; then
4932 if test "$GOBJCXX" = yes; then
4933 OBJCXXFLAGS="-g -O2"
4934 else
4935 OBJCXXFLAGS="-g"
4936 fi
4937else
4938 if test "$GOBJCXX" = yes; then
4939 OBJCXXFLAGS="-O2"
4940 else
4941 OBJCXXFLAGS=
4942 fi
35fa52c0 4943fi
a243b558
JF
4944ac_ext=c
4945ac_cpp='$CPP $CPPFLAGS'
4946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949
a93f15c0 4950depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4951
a243b558
JF
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4953$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4954if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4955 $as_echo_n "(cached) " >&6
4956else
a243b558
JF
4957 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4958 # We make a subdir and do the tests there. Otherwise we can end up
4959 # making bogus files that we don't know about and never remove. For
4960 # instance it was reported that on HP-UX the gcc test will end up
4961 # making a dummy file named 'D' -- because '-MD' means "put the output
4962 # in D".
4963 rm -rf conftest.dir
4964 mkdir conftest.dir
4965 # Copy depcomp to subdir because otherwise we won't find it if we're
4966 # using a relative directory.
4967 cp "$am_depcomp" conftest.dir
4968 cd conftest.dir
4969 # We will build objects and dependencies in a subdirectory because
4970 # it helps to detect inapplicable dependency modes. For instance
4971 # both Tru64's cc and ICC support -MD to output dependencies as a
4972 # side effect of compilation, but ICC will put the dependencies in
4973 # the current directory while Tru64 will put them in the object
4974 # directory.
4975 mkdir sub
4976
a93f15c0 4977 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4978 if test "$am_compiler_list" = ""; then
4979 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4980 fi
4981 am__universal=false
a93f15c0 4982
a243b558
JF
4983
4984 for depmode in $am_compiler_list; do
4985 # Setup a source with many dependencies, because some compilers
4986 # like to wrap large dependency lists on column 80 (with \), and
4987 # we should not choose a depcomp mode which is confused by this.
4988 #
4989 # We need to recreate these files for each test, as the compiler may
4990 # overwrite some of them when testing with obscure command lines.
4991 # This happens at least with the AIX C compiler.
4992 : > sub/conftest.c
4993 for i in 1 2 3 4 5 6; do
4994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4995 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4996 # Solaris 10 /bin/sh.
4997 echo '/* dummy */' > sub/conftst$i.h
4998 done
4999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5000
5001 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5002 # mode. It turns out that the SunPro C++ compiler does not properly
5003 # handle '-M -o', and we need to detect this. Also, some Intel
5004 # versions had trouble with output in subdirs.
5005 am__obj=sub/conftest.${OBJEXT-o}
5006 am__minus_obj="-o $am__obj"
5007 case $depmode in
5008 gcc)
5009 # This depmode causes a compiler race in universal mode.
5010 test "$am__universal" = false || continue
5011 ;;
5012 nosideeffect)
5013 # After this tag, mechanisms are not by side-effect, so they'll
5014 # only be used when explicitly requested.
5015 if test "x$enable_dependency_tracking" = xyes; then
5016 continue
5017 else
5018 break
5019 fi
5020 ;;
5021 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5022 # This compiler won't grok '-c -o', but also, the minuso test has
5023 # not run yet. These depmodes are late enough in the game, and
5024 # so weak that their functioning should not be impacted.
5025 am__obj=conftest.${OBJEXT-o}
5026 am__minus_obj=
5027 ;;
5028 none) break ;;
5029 esac
5030 if depmode=$depmode \
5031 source=sub/conftest.c object=$am__obj \
5032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5033 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5034 >/dev/null 2>conftest.err &&
5035 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5037 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5039 # icc doesn't choke on unknown options, it will just issue warnings
5040 # or remarks (even with -Werror). So we grep stderr for any message
5041 # that says an option was ignored or not supported.
5042 # When given -MP, icc 7.0 and 7.1 complain thusly:
5043 # icc: Command line warning: ignoring option '-M'; no argument required
5044 # The diagnosis changed in icc 8.0:
5045 # icc: Command line remark: option '-MP' not supported
5046 if (grep 'ignoring option' conftest.err ||
5047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 5048 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
5049 break
5050 fi
5051 fi
5052 done
9c60689e 5053
a243b558
JF
5054 cd ..
5055 rm -rf conftest.dir
5056else
a93f15c0 5057 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 5058fi
a243b558 5059
35fa52c0 5060fi
a93f15c0
JF
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
5062$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
5063OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
5064
5065 if
5066 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
5067 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
5068 am__fastdepOBJCXX_TRUE=
5069 am__fastdepOBJCXX_FALSE='#'
a243b558 5070else
a93f15c0
JF
5071 am__fastdepOBJCXX_TRUE='#'
5072 am__fastdepOBJCXX_FALSE=
a243b558
JF
5073fi
5074
5075
5076
8d20f0f1
JF
5077ac_ext=c
5078ac_cpp='$CPP $CPPFLAGS'
5079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5083$as_echo_n "checking how to run the C preprocessor... " >&6; }
5084# On Suns, sometimes $CPP names a directory.
5085if test -n "$CPP" && test -d "$CPP"; then
5086 CPP=
5087fi
5088if test -z "$CPP"; then
5089 if ${ac_cv_prog_CPP+:} false; then :
a243b558
JF
5090 $as_echo_n "(cached) " >&6
5091else
8d20f0f1
JF
5092 # Double quotes because CPP needs to be expanded
5093 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5094 do
5095 ac_preproc_ok=false
5096for ac_c_preproc_warn_flag in '' yes
a243b558 5097do
8d20f0f1
JF
5098 # Use a header file that comes with gcc, so configuring glibc
5099 # with a fresh cross-compiler works.
5100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5101 # <limits.h> exists even on freestanding compilers.
5102 # On the NeXT, cc -E runs the code through the compiler's parser,
5103 # not just through cpp. "Syntax error" is here to catch this case.
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h. */
5106#ifdef __STDC__
5107# include <limits.h>
5108#else
5109# include <assert.h>
5110#endif
5111 Syntax error
5112_ACEOF
5113if ac_fn_c_try_cpp "$LINENO"; then :
a243b558 5114
35fa52c0 5115else
8d20f0f1
JF
5116 # Broken: fails on valid input.
5117continue
35fa52c0 5118fi
8d20f0f1 5119rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 5120
8d20f0f1
JF
5121 # OK, works on sane cases. Now check whether nonexistent headers
5122 # can be detected and how.
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124/* end confdefs.h. */
5125#include <ac_nonexistent.h>
5126_ACEOF
5127if ac_fn_c_try_cpp "$LINENO"; then :
5128 # Broken: success on invalid input.
5129continue
5130else
5131 # Passes both tests.
5132ac_preproc_ok=:
5133break
5134fi
5135rm -f conftest.err conftest.i conftest.$ac_ext
a243b558 5136
8d20f0f1
JF
5137done
5138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5139rm -f conftest.i conftest.err conftest.$ac_ext
5140if $ac_preproc_ok; then :
5141 break
5142fi
5143
5144 done
5145 ac_cv_prog_CPP=$CPP
5146
5147fi
5148 CPP=$ac_cv_prog_CPP
5149else
5150 ac_cv_prog_CPP=$CPP
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5153$as_echo "$CPP" >&6; }
5154ac_preproc_ok=false
5155for ac_c_preproc_warn_flag in '' yes
5156do
5157 # Use a header file that comes with gcc, so configuring glibc
5158 # with a fresh cross-compiler works.
5159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160 # <limits.h> exists even on freestanding compilers.
5161 # On the NeXT, cc -E runs the code through the compiler's parser,
5162 # not just through cpp. "Syntax error" is here to catch this case.
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164/* end confdefs.h. */
5165#ifdef __STDC__
5166# include <limits.h>
5167#else
5168# include <assert.h>
5169#endif
5170 Syntax error
5171_ACEOF
5172if ac_fn_c_try_cpp "$LINENO"; then :
5173
5174else
5175 # Broken: fails on valid input.
5176continue
5177fi
5178rm -f conftest.err conftest.i conftest.$ac_ext
5179
5180 # OK, works on sane cases. Now check whether nonexistent headers
5181 # can be detected and how.
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h. */
5184#include <ac_nonexistent.h>
5185_ACEOF
5186if ac_fn_c_try_cpp "$LINENO"; then :
5187 # Broken: success on invalid input.
5188continue
5189else
5190 # Passes both tests.
5191ac_preproc_ok=:
5192break
5193fi
5194rm -f conftest.err conftest.i conftest.$ac_ext
5195
5196done
5197# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5198rm -f conftest.i conftest.err conftest.$ac_ext
5199if $ac_preproc_ok; then :
5200
5201else
5202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5204as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5205See \`config.log' for more details" "$LINENO" 5; }
5206fi
5207
5208ac_ext=c
5209ac_cpp='$CPP $CPPFLAGS'
5210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213
5214
5215# Make sure we can run config.sub.
5216$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5217 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5218
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5220$as_echo_n "checking build system type... " >&6; }
5221if ${ac_cv_build+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223else
5224 ac_build_alias=$build_alias
5225test "x$ac_build_alias" = x &&
5226 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5227test "x$ac_build_alias" = x &&
5228 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5229ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5230 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5231
5232fi
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5234$as_echo "$ac_cv_build" >&6; }
5235case $ac_cv_build in
5236*-*-*) ;;
5237*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5238esac
5239build=$ac_cv_build
5240ac_save_IFS=$IFS; IFS='-'
5241set x $ac_cv_build
5242shift
5243build_cpu=$1
5244build_vendor=$2
5245shift; shift
5246# Remember, the first character of IFS is used to create $*,
5247# except with old shells:
5248build_os=$*
5249IFS=$ac_save_IFS
5250case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5251
5252
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5254$as_echo_n "checking host system type... " >&6; }
5255if ${ac_cv_host+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257else
5258 if test "x$host_alias" = x; then
5259 ac_cv_host=$ac_cv_build
5260else
5261 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5262 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5263fi
5264
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5267$as_echo "$ac_cv_host" >&6; }
5268case $ac_cv_host in
5269*-*-*) ;;
5270*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5271esac
5272host=$ac_cv_host
5273ac_save_IFS=$IFS; IFS='-'
5274set x $ac_cv_host
5275shift
5276host_cpu=$1
5277host_vendor=$2
5278shift; shift
5279# Remember, the first character of IFS is used to create $*,
5280# except with old shells:
5281host_os=$*
5282IFS=$ac_save_IFS
5283case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5284
5285
5286
5287
5288save_cross_compiling=$cross_compiling
5289save_ac_tool_prefix=$ac_tool_prefix
5290cross_compiling=no
5291ac_tool_prefix=
5292
5293ac_ext=c
5294ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5295ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5296ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5297ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298if test -n "$ac_tool_prefix"; then
5299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5300set dummy ${ac_tool_prefix}gcc; ac_word=$2
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302$as_echo_n "checking for $ac_word... " >&6; }
5303if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305else
5306 if test -n "$CC_FOR_BUILD"; then
5307 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320done
5321 done
5322IFS=$as_save_IFS
5323
5324fi
5325fi
5326CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5327if test -n "$CC_FOR_BUILD"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5329$as_echo "$CC_FOR_BUILD" >&6; }
5330else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332$as_echo "no" >&6; }
5333fi
5334
5335
5336fi
5337if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5338 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5339 # Extract the first word of "gcc", so it can be a program name with args.
5340set dummy gcc; ac_word=$2
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342$as_echo_n "checking for $ac_word... " >&6; }
5343if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345else
5346 if test -n "$ac_ct_CC_FOR_BUILD"; then
5347 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5348else
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5359 fi
5360done
5361 done
5362IFS=$as_save_IFS
5363
5364fi
5365fi
5366ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5367if test -n "$ac_ct_CC_FOR_BUILD"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5369$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5370else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372$as_echo "no" >&6; }
5373fi
5374
5375 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5376 CC_FOR_BUILD=""
5377 else
5378 case $cross_compiling:$ac_tool_warned in
5379yes:)
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5381$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5382ac_tool_warned=yes ;;
5383esac
5384 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5385 fi
5386else
5387 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5388fi
5389
5390if test -z "$CC_FOR_BUILD"; then
5391 if test -n "$ac_tool_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5393set dummy ${ac_tool_prefix}cc; ac_word=$2
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395$as_echo_n "checking for $ac_word... " >&6; }
5396if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398else
5399 if test -n "$CC_FOR_BUILD"; then
5400 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414 done
5415IFS=$as_save_IFS
5416
5417fi
5418fi
5419CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5420if test -n "$CC_FOR_BUILD"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5422$as_echo "$CC_FOR_BUILD" >&6; }
5423else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425$as_echo "no" >&6; }
5426fi
5427
5428
5429 fi
5430fi
5431if test -z "$CC_FOR_BUILD"; then
5432 # Extract the first word of "cc", so it can be a program name with args.
5433set dummy cc; ac_word=$2
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435$as_echo_n "checking for $ac_word... " >&6; }
5436if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438else
5439 if test -n "$CC_FOR_BUILD"; then
5440 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5441else
5442 ac_prog_rejected=no
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5451 ac_prog_rejected=yes
5452 continue
5453 fi
5454 ac_cv_prog_CC_FOR_BUILD="cc"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5457 fi
5458done
5459 done
5460IFS=$as_save_IFS
5461
5462if test $ac_prog_rejected = yes; then
5463 # We found a bogon in the path, so make sure we never use it.
5464 set dummy $ac_cv_prog_CC_FOR_BUILD
5465 shift
5466 if test $# != 0; then
5467 # We chose a different compiler from the bogus one.
5468 # However, it has the same basename, so the bogon will be chosen
5469 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5470 shift
5471 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5472 fi
5473fi
5474fi
5475fi
5476CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5477if test -n "$CC_FOR_BUILD"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5479$as_echo "$CC_FOR_BUILD" >&6; }
5480else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482$as_echo "no" >&6; }
5483fi
5484
5485
5486fi
5487if test -z "$CC_FOR_BUILD"; then
5488 if test -n "$ac_tool_prefix"; then
5489 for ac_prog in cl.exe
5490 do
5491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494$as_echo_n "checking for $ac_word... " >&6; }
5495if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497else
5498 if test -n "$CC_FOR_BUILD"; then
5499 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5500else
5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512done
5513 done
5514IFS=$as_save_IFS
5515
5516fi
5517fi
5518CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5519if test -n "$CC_FOR_BUILD"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5521$as_echo "$CC_FOR_BUILD" >&6; }
5522else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524$as_echo "no" >&6; }
5525fi
5526
5527
5528 test -n "$CC_FOR_BUILD" && break
5529 done
5530fi
5531if test -z "$CC_FOR_BUILD"; then
5532 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5533 for ac_prog in cl.exe
5534do
5535 # Extract the first word of "$ac_prog", so it can be a program name with args.
5536set dummy $ac_prog; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
5539if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541else
5542 if test -n "$ac_ct_CC_FOR_BUILD"; then
5543 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556done
5557 done
5558IFS=$as_save_IFS
5559
5560fi
5561fi
5562ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5563if test -n "$ac_ct_CC_FOR_BUILD"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5565$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5566else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568$as_echo "no" >&6; }
5569fi
5570
5571
5572 test -n "$ac_ct_CC_FOR_BUILD" && break
5573done
5574
5575 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5576 CC_FOR_BUILD=""
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579yes:)
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5581$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5582ac_tool_warned=yes ;;
5583esac
5584 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5585 fi
5586fi
5587
5588fi
5589
5590
5591test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5593as_fn_error $? "no acceptable C compiler found in \$PATH
5594See \`config.log' for more details" "$LINENO" 5; }
5595
5596# Provide some information about the compiler.
5597$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5598set X $ac_build_compile
5599ac_compiler=$2
5600for ac_option in --version -v -V -qversion; do
5601 { { ac_try="$ac_compiler $ac_option >&5"
5602case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605esac
5606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5607$as_echo "$ac_try_echo"; } >&5
5608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5609 ac_status=$?
5610 if test -s conftest.err; then
5611 sed '10a\
5612... rest of stderr output deleted ...
5613 10q' conftest.err >conftest.er1
5614 cat conftest.er1 >&5
5615 fi
5616 rm -f conftest.er1 conftest.err
5617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5618 test $ac_status = 0; }
5619done
5620
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5622$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5623if ${ac_cv_c_compiler_gnu+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625else
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627/* end confdefs.h. */
5628
5629int
5630main ()
5631{
5632#ifndef __GNUC__
5633 choke me
5634#endif
5635
5636 ;
5637 return 0;
5638}
5639_ACEOF
5640if ac_fn_c_try_compile "$LINENO"; then :
5641 ac_compiler_gnu=yes
5642else
5643 ac_compiler_gnu=no
5644fi
5645rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5646ac_cv_c_compiler_gnu=$ac_compiler_gnu
5647
5648fi
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5650$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5651if test $ac_compiler_gnu = yes; then
5652 GCC=yes
5653else
5654 GCC=
5655fi
5656ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5657ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5659$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5660if ${ac_cv_build_prog_cc_g+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662else
5663 ac_save_c_werror_flag=$ac_c_werror_flag
5664 ac_c_werror_flag=yes
5665 ac_cv_build_prog_cc_g=no
5666 CFLAGS_FOR_BUILD="-g"
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668/* end confdefs.h. */
5669
5670int
5671main ()
5672{
5673
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678if ac_fn_c_try_compile "$LINENO"; then :
5679 ac_cv_build_prog_cc_g=yes
5680else
5681 CFLAGS_FOR_BUILD=""
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h. */
5684
5685int
5686main ()
5687{
5688
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693if ac_fn_c_try_compile "$LINENO"; then :
5694
5695else
5696 ac_c_werror_flag=$ac_save_c_werror_flag
5697 CFLAGS_FOR_BUILD="-g"
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699/* end confdefs.h. */
5700
5701int
5702main ()
5703{
5704
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709if ac_fn_c_try_compile "$LINENO"; then :
5710 ac_cv_build_prog_cc_g=yes
5711fi
5712rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5713fi
5714rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5715fi
5716rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5717 ac_c_werror_flag=$ac_save_c_werror_flag
5718fi
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5720$as_echo "$ac_cv_build_prog_cc_g" >&6; }
5721if test "$ac_test_CFLAGS" = set; then
5722 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5723elif test $ac_cv_build_prog_cc_g = yes; then
5724 if test "$GCC" = yes; then
5725 CFLAGS_FOR_BUILD="-g -O2"
5726 else
5727 CFLAGS_FOR_BUILD="-g"
5728 fi
5729else
5730 if test "$GCC" = yes; then
5731 CFLAGS_FOR_BUILD="-O2"
5732 else
5733 CFLAGS_FOR_BUILD=
5734 fi
5735fi
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5737$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5738if ${ac_cv_prog_cc_c89+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740else
5741 ac_cv_prog_cc_c89=no
5742ac_save_CC=$CC_FOR_BUILD
5743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744/* end confdefs.h. */
5745#include <stdarg.h>
5746#include <stdio.h>
5747struct stat;
5748/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5749struct buf { int x; };
5750FILE * (*rcsopen) (struct buf *, struct stat *, int);
5751static char *e (p, i)
5752 char **p;
5753 int i;
5754{
5755 return p[i];
5756}
5757static char *f (char * (*g) (char **, int), char **p, ...)
5758{
5759 char *s;
5760 va_list v;
5761 va_start (v,p);
5762 s = g (p, va_arg (v,int));
5763 va_end (v);
5764 return s;
5765}
5766
5767/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5768 function prototypes and stuff, but not '\xHH' hex character constants.
5769 These don't provoke an error unfortunately, instead are silently treated
5770 as 'x'. The following induces an error, until -std is added to get
5771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5772 array size at least. It's necessary to write '\x00'==0 to get something
5773 that's true only with -std. */
5774int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5775
5776/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5777 inside strings and character constants. */
5778#define FOO(x) 'x'
5779int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5780
5781int test (int i, double x);
5782struct s1 {int (*f) (int a);};
5783struct s2 {int (*f) (double a);};
5784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5785int argc;
5786char **argv;
5787int
5788main ()
5789{
5790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5791 ;
5792 return 0;
5793}
5794_ACEOF
5795for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5797do
5798 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5799 if ac_fn_c_try_compile "$LINENO"; then :
5800 ac_cv_prog_cc_c89=$ac_arg
5801fi
5802rm -f core conftest.err conftest.$ac_build_objext
5803 test "x$ac_cv_prog_cc_c89" != "xno" && break
5804done
5805rm -f conftest.$ac_ext
5806CC_FOR_BUILD=$ac_save_CC
5807
5808fi
5809# AC_CACHE_VAL
5810case "x$ac_cv_prog_cc_c89" in
5811 x)
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5813$as_echo "none needed" >&6; } ;;
5814 xno)
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5816$as_echo "unsupported" >&6; } ;;
5817 *)
5818 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5820$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5821esac
5822if test "x$ac_cv_prog_cc_c89" != xno; then :
5823
5824fi
5825
5826ac_ext=c
5827ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5828ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5829ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5830ac_compiler_gnu=$ac_cv_c_compiler_gnu
5831
5832ac_ext=c
5833ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5834ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5835ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5836ac_compiler_gnu=$ac_cv_c_compiler_gnu
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5838$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5839if ${am_cv_prog_cc_c_o+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h. */
5844
5845int
5846main ()
5847{
5848
5849 ;
5850 return 0;
5851}
5852_ACEOF
5853 # Make sure it works both with $CC and with simple cc.
5854 # Following AC_PROG_CC_C_O, we do the test twice because some
5855 # compilers refuse to overwrite an existing .o file with -o,
5856 # though they will create one.
5857 am_cv_prog_cc_c_o=yes
5858 for am_i in 1 2; do
5859 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5860 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } \
5864 && test -f conftest2.$ac_build_objext; then
5865 : OK
5866 else
5867 am_cv_prog_cc_c_o=no
5868 break
5869 fi
5870 done
5871 rm -f core conftest*
5872 unset am_i
5873fi
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5875$as_echo "$am_cv_prog_cc_c_o" >&6; }
5876if test "$am_cv_prog_cc_c_o" != yes; then
5877 # Losing compiler, so override with the script.
5878 # FIXME: It is wrong to rewrite CC.
5879 # But if we don't then we get into trouble of one sort or another.
5880 # A longer-term fix would be to have automake use am__CC in this case,
5881 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5882 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5883fi
5884ac_ext=c
5885ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5886ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5887ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5888ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889
5890
5891depcc="$CC_FOR_BUILD" am_compiler_list=
5892
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5894$as_echo_n "checking dependency style of $depcc... " >&6; }
5895if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897else
5898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5899 # We make a subdir and do the tests there. Otherwise we can end up
5900 # making bogus files that we don't know about and never remove. For
5901 # instance it was reported that on HP-UX the gcc test will end up
5902 # making a dummy file named 'D' -- because '-MD' means "put the output
5903 # in D".
5904 rm -rf conftest.dir
5905 mkdir conftest.dir
5906 # Copy depcomp to subdir because otherwise we won't find it if we're
5907 # using a relative directory.
5908 cp "$am_depcomp" conftest.dir
5909 cd conftest.dir
5910 # We will build objects and dependencies in a subdirectory because
5911 # it helps to detect inapplicable dependency modes. For instance
5912 # both Tru64's cc and ICC support -MD to output dependencies as a
5913 # side effect of compilation, but ICC will put the dependencies in
5914 # the current directory while Tru64 will put them in the object
5915 # directory.
5916 mkdir sub
5917
5918 am_cv_CC_dependencies_compiler_type=none
5919 if test "$am_compiler_list" = ""; then
5920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5921 fi
5922 am__universal=false
5923 case " $depcc " in #(
5924 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5925 esac
5926
5927 for depmode in $am_compiler_list; do
5928 # Setup a source with many dependencies, because some compilers
5929 # like to wrap large dependency lists on column 80 (with \), and
5930 # we should not choose a depcomp mode which is confused by this.
5931 #
5932 # We need to recreate these files for each test, as the compiler may
5933 # overwrite some of them when testing with obscure command lines.
5934 # This happens at least with the AIX C compiler.
5935 : > sub/conftest.c
5936 for i in 1 2 3 4 5 6; do
5937 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5938 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5939 # Solaris 10 /bin/sh.
5940 echo '/* dummy */' > sub/conftst$i.h
5941 done
5942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5943
5944 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5945 # mode. It turns out that the SunPro C++ compiler does not properly
5946 # handle '-M -o', and we need to detect this. Also, some Intel
5947 # versions had trouble with output in subdirs.
5948 am__obj=sub/conftest.${OBJEXT-o}
5949 am__minus_obj="-o $am__obj"
5950 case $depmode in
5951 gcc)
5952 # This depmode causes a compiler race in universal mode.
5953 test "$am__universal" = false || continue
5954 ;;
5955 nosideeffect)
5956 # After this tag, mechanisms are not by side-effect, so they'll
5957 # only be used when explicitly requested.
5958 if test "x$enable_dependency_tracking" = xyes; then
5959 continue
5960 else
5961 break
5962 fi
5963 ;;
5964 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5965 # This compiler won't grok '-c -o', but also, the minuso test has
5966 # not run yet. These depmodes are late enough in the game, and
5967 # so weak that their functioning should not be impacted.
5968 am__obj=conftest.${OBJEXT-o}
5969 am__minus_obj=
5970 ;;
5971 none) break ;;
5972 esac
5973 if depmode=$depmode \
5974 source=sub/conftest.c object=$am__obj \
5975 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5976 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5977 >/dev/null 2>conftest.err &&
5978 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5980 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5982 # icc doesn't choke on unknown options, it will just issue warnings
5983 # or remarks (even with -Werror). So we grep stderr for any message
5984 # that says an option was ignored or not supported.
5985 # When given -MP, icc 7.0 and 7.1 complain thusly:
5986 # icc: Command line warning: ignoring option '-M'; no argument required
5987 # The diagnosis changed in icc 8.0:
5988 # icc: Command line remark: option '-MP' not supported
5989 if (grep 'ignoring option' conftest.err ||
5990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5991 am_cv_CC_dependencies_compiler_type=$depmode
5992 break
5993 fi
5994 fi
5995 done
5996
5997 cd ..
5998 rm -rf conftest.dir
5999else
6000 am_cv_CC_dependencies_compiler_type=none
6001fi
6002
6003fi
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6005$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6006CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6007
6008 if
6009 test "x$enable_dependency_tracking" != xno \
6010 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6011 am__fastdepCC_TRUE=
6012 am__fastdepCC_FALSE='#'
6013else
6014 am__fastdepCC_TRUE='#'
6015 am__fastdepCC_FALSE=
6016fi
6017
6018
6019ac_ext=c
6020ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6021ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6022ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6023ac_compiler_gnu=$ac_cv_c_compiler_gnu
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6025$as_echo_n "checking how to run the C preprocessor... " >&6; }
6026# On Suns, sometimes $CPP names a directory.
6027if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6028 CPP_FOR_BUILD=
6029fi
6030if test -z "$CPP_FOR_BUILD"; then
6031 if ${ac_cv_build_prog_CPP+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033else
6034 # Double quotes because CPP needs to be expanded
6035 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6036 do
6037 ac_preproc_ok=false
6038for ac_c_preproc_warn_flag in '' yes
6039do
6040 # Use a header file that comes with gcc, so configuring glibc
6041 # with a fresh cross-compiler works.
6042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6043 # <limits.h> exists even on freestanding compilers.
6044 # On the NeXT, cc -E runs the code through the compiler's parser,
6045 # not just through cpp. "Syntax error" is here to catch this case.
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h. */
6048#ifdef __STDC__
6049# include <limits.h>
6050#else
6051# include <assert.h>
6052#endif
6053 Syntax error
6054_ACEOF
6055if ac_fn_c_try_cpp "$LINENO"; then :
6056
6057else
6058 # Broken: fails on valid input.
6059continue
6060fi
6061rm -f conftest.err conftest.i conftest.$ac_ext
6062
6063 # OK, works on sane cases. Now check whether nonexistent headers
6064 # can be detected and how.
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h. */
6067#include <ac_nonexistent.h>
6068_ACEOF
6069if ac_fn_c_try_cpp "$LINENO"; then :
6070 # Broken: success on invalid input.
6071continue
6072else
6073 # Passes both tests.
6074ac_preproc_ok=:
6075break
6076fi
6077rm -f conftest.err conftest.i conftest.$ac_ext
6078
6079done
6080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6081rm -f conftest.i conftest.err conftest.$ac_ext
6082if $ac_preproc_ok; then :
6083 break
6084fi
6085
6086 done
6087 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6088
6089fi
6090 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6091else
6092 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6093fi
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
6095$as_echo "$CPP_FOR_BUILD" >&6; }
6096ac_preproc_ok=false
6097for ac_c_preproc_warn_flag in '' yes
6098do
6099 # Use a header file that comes with gcc, so configuring glibc
6100 # with a fresh cross-compiler works.
6101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6102 # <limits.h> exists even on freestanding compilers.
6103 # On the NeXT, cc -E runs the code through the compiler's parser,
6104 # not just through cpp. "Syntax error" is here to catch this case.
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h. */
6107#ifdef __STDC__
6108# include <limits.h>
6109#else
6110# include <assert.h>
6111#endif
6112 Syntax error
6113_ACEOF
6114if ac_fn_c_try_cpp "$LINENO"; then :
6115
6116else
6117 # Broken: fails on valid input.
6118continue
6119fi
6120rm -f conftest.err conftest.i conftest.$ac_ext
6121
6122 # OK, works on sane cases. Now check whether nonexistent headers
6123 # can be detected and how.
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h. */
6126#include <ac_nonexistent.h>
6127_ACEOF
6128if ac_fn_c_try_cpp "$LINENO"; then :
6129 # Broken: success on invalid input.
6130continue
6131else
6132 # Passes both tests.
6133ac_preproc_ok=:
6134break
6135fi
6136rm -f conftest.err conftest.i conftest.$ac_ext
6137
6138done
6139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6140rm -f conftest.i conftest.err conftest.$ac_ext
6141if $ac_preproc_ok; then :
6142
6143else
6144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6146as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6147See \`config.log' for more details" "$LINENO" 5; }
6148fi
6149
6150ac_ext=c
6151ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6152ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6153ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6154ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
6156
6157
6158ac_tool_prefix=$save_ac_tool_prefix
6159cross_compiling=$save_cross_compiling
6160
6161
6162BUILD_EXEEXT=$ac_build_exeext
6163BUILD_OBJEXT=$ac_build_objext
6164
6165ac_ext=cpp
6166ac_cpp='$CXXCPP $CPPFLAGS'
6167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6171$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6172if test -z "$CXXCPP"; then
6173 if ${ac_cv_prog_CXXCPP+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175else
6176 # Double quotes because CXXCPP needs to be expanded
6177 for CXXCPP in "$CXX -E" "/lib/cpp"
6178 do
6179 ac_preproc_ok=false
6180for ac_cxx_preproc_warn_flag in '' yes
6181do
6182 # Use a header file that comes with gcc, so configuring glibc
6183 # with a fresh cross-compiler works.
6184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6185 # <limits.h> exists even on freestanding compilers.
6186 # On the NeXT, cc -E runs the code through the compiler's parser,
6187 # not just through cpp. "Syntax error" is here to catch this case.
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189/* end confdefs.h. */
6190#ifdef __STDC__
6191# include <limits.h>
6192#else
6193# include <assert.h>
6194#endif
6195 Syntax error
6196_ACEOF
6197if ac_fn_cxx_try_cpp "$LINENO"; then :
6198
6199else
6200 # Broken: fails on valid input.
6201continue
6202fi
6203rm -f conftest.err conftest.i conftest.$ac_ext
6204
6205 # OK, works on sane cases. Now check whether nonexistent headers
6206 # can be detected and how.
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h. */
6209#include <ac_nonexistent.h>
6210_ACEOF
6211if ac_fn_cxx_try_cpp "$LINENO"; then :
6212 # Broken: success on invalid input.
6213continue
6214else
6215 # Passes both tests.
6216ac_preproc_ok=:
6217break
6218fi
6219rm -f conftest.err conftest.i conftest.$ac_ext
6220
6221done
6222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6223rm -f conftest.i conftest.err conftest.$ac_ext
6224if $ac_preproc_ok; then :
6225 break
6226fi
6227
6228 done
6229 ac_cv_prog_CXXCPP=$CXXCPP
6230
6231fi
6232 CXXCPP=$ac_cv_prog_CXXCPP
6233else
6234 ac_cv_prog_CXXCPP=$CXXCPP
6235fi
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6237$as_echo "$CXXCPP" >&6; }
6238ac_preproc_ok=false
6239for ac_cxx_preproc_warn_flag in '' yes
6240do
6241 # Use a header file that comes with gcc, so configuring glibc
6242 # with a fresh cross-compiler works.
6243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6244 # <limits.h> exists even on freestanding compilers.
6245 # On the NeXT, cc -E runs the code through the compiler's parser,
6246 # not just through cpp. "Syntax error" is here to catch this case.
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248/* end confdefs.h. */
6249#ifdef __STDC__
6250# include <limits.h>
6251#else
6252# include <assert.h>
6253#endif
6254 Syntax error
6255_ACEOF
6256if ac_fn_cxx_try_cpp "$LINENO"; then :
6257
6258else
6259 # Broken: fails on valid input.
6260continue
6261fi
6262rm -f conftest.err conftest.i conftest.$ac_ext
6263
6264 # OK, works on sane cases. Now check whether nonexistent headers
6265 # can be detected and how.
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267/* end confdefs.h. */
6268#include <ac_nonexistent.h>
6269_ACEOF
6270if ac_fn_cxx_try_cpp "$LINENO"; then :
6271 # Broken: success on invalid input.
6272continue
6273else
6274 # Passes both tests.
6275ac_preproc_ok=:
6276break
6277fi
6278rm -f conftest.err conftest.i conftest.$ac_ext
6279
6280done
6281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6282rm -f conftest.i conftest.err conftest.$ac_ext
6283if $ac_preproc_ok; then :
6284
6285else
6286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6288as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6289See \`config.log' for more details" "$LINENO" 5; }
6290fi
6291
6292ac_ext=c
6293ac_cpp='$CPP $CPPFLAGS'
6294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6296ac_compiler_gnu=$ac_cv_c_compiler_gnu
6297
6298
6299
6300save_cross_compiling=$cross_compiling
6301save_ac_tool_prefix=$ac_tool_prefix
6302cross_compiling=no
6303ac_tool_prefix=
6304
6305ac_ext=cpp
6306ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6307ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6308ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6310if test -z "$CXX_FOR_BUILD"; then
6311 if test -n "$CCC"; then
6312 CXX_FOR_BUILD=$CCC
6313 else
6314 if test -n "$ac_tool_prefix"; then
6315 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6316 do
6317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6318set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320$as_echo_n "checking for $ac_word... " >&6; }
6321if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323else
6324 if test -n "$CXX_FOR_BUILD"; then
6325 ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338done
6339 done
6340IFS=$as_save_IFS
6341
6342fi
6343fi
6344CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
6345if test -n "$CXX_FOR_BUILD"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
6347$as_echo "$CXX_FOR_BUILD" >&6; }
6348else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350$as_echo "no" >&6; }
6351fi
6352
6353
6354 test -n "$CXX_FOR_BUILD" && break
6355 done
6356fi
6357if test -z "$CXX_FOR_BUILD"; then
6358 ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
6359 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6360do
6361 # Extract the first word of "$ac_prog", so it can be a program name with args.
6362set dummy $ac_prog; ac_word=$2
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364$as_echo_n "checking for $ac_word... " >&6; }
6365if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367else
6368 if test -n "$ac_ct_CXX_FOR_BUILD"; then
6369 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
6370else
6371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372for as_dir in $PATH
6373do
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6381 fi
6382done
6383 done
6384IFS=$as_save_IFS
6385
6386fi
6387fi
6388ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
6389if test -n "$ac_ct_CXX_FOR_BUILD"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
6391$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
6392else
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394$as_echo "no" >&6; }
6395fi
6396
6397
6398 test -n "$ac_ct_CXX_FOR_BUILD" && break
6399done
6400
6401 if test "x$ac_ct_CXX_FOR_BUILD" = x; then
6402 CXX_FOR_BUILD="g++"
6403 else
6404 case $cross_compiling:$ac_tool_warned in
6405yes:)
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6407$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6408ac_tool_warned=yes ;;
6409esac
6410 CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
6411 fi
6412fi
6413
6414 fi
6415fi
6416# Provide some information about the compiler.
6417$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6418set X $ac_build_compile
6419ac_compiler=$2
6420for ac_option in --version -v -V -qversion; do
6421 { { ac_try="$ac_compiler $ac_option >&5"
6422case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6425esac
6426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6427$as_echo "$ac_try_echo"; } >&5
6428 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6429 ac_status=$?
6430 if test -s conftest.err; then
6431 sed '10a\
6432... rest of stderr output deleted ...
6433 10q' conftest.err >conftest.er1
6434 cat conftest.er1 >&5
6435 fi
6436 rm -f conftest.er1 conftest.err
6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438 test $ac_status = 0; }
6439done
6440
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6442$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6443if ${ac_cv_cxx_compiler_gnu+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445else
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h. */
6448
6449int
6450main ()
6451{
6452#ifndef __GNUC__
6453 choke me
6454#endif
6455
6456 ;
6457 return 0;
6458}
6459_ACEOF
6460if ac_fn_cxx_try_compile "$LINENO"; then :
6461 ac_compiler_gnu=yes
6462else
6463 ac_compiler_gnu=no
6464fi
6465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6467
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6470$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6471if test $ac_compiler_gnu = yes; then
6472 GXX=yes
6473else
6474 GXX=
6475fi
6476ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
6477ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
6479$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
6480if ${ac_cv_build_prog_cxx_g+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482else
6483 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6484 ac_cxx_werror_flag=yes
6485 ac_cv_build_prog_cxx_g=no
6486 CXXFLAGS_FOR_BUILD="-g"
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488/* end confdefs.h. */
6489
6490int
6491main ()
6492{
6493
6494 ;
6495 return 0;
6496}
6497_ACEOF
6498if ac_fn_cxx_try_compile "$LINENO"; then :
6499 ac_cv_build_prog_cxx_g=yes
6500else
6501 CXXFLAGS_FOR_BUILD=""
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503/* end confdefs.h. */
6504
6505int
6506main ()
6507{
6508
6509 ;
6510 return 0;
6511}
6512_ACEOF
6513if ac_fn_cxx_try_compile "$LINENO"; then :
6514
6515else
6516 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6517 CXXFLAGS_FOR_BUILD="-g"
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519/* end confdefs.h. */
6520
6521int
6522main ()
6523{
6524
6525 ;
6526 return 0;
6527}
6528_ACEOF
6529if ac_fn_cxx_try_compile "$LINENO"; then :
6530 ac_cv_build_prog_cxx_g=yes
6531fi
6532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533fi
6534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535fi
6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6538fi
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
6540$as_echo "$ac_cv_build_prog_cxx_g" >&6; }
6541if test "$ac_test_CXXFLAGS" = set; then
6542 CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
6543elif test $ac_cv_build_prog_cxx_g = yes; then
6544 if test "$GXX" = yes; then
6545 CXXFLAGS_FOR_BUILD="-g -O2"
6546 else
6547 CXXFLAGS_FOR_BUILD="-g"
6548 fi
6549else
6550 if test "$GXX" = yes; then
6551 CXXFLAGS_FOR_BUILD="-O2"
6552 else
6553 CXXFLAGS_FOR_BUILD=
6554 fi
6555fi
6556ac_ext=c
6557ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6558ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6559ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6560ac_compiler_gnu=$ac_cv_c_compiler_gnu
6561
6562depcc="$CXX_FOR_BUILD" am_compiler_list=
6563
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6565$as_echo_n "checking dependency style of $depcc... " >&6; }
6566if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568else
6569 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6570 # We make a subdir and do the tests there. Otherwise we can end up
6571 # making bogus files that we don't know about and never remove. For
6572 # instance it was reported that on HP-UX the gcc test will end up
6573 # making a dummy file named 'D' -- because '-MD' means "put the output
6574 # in D".
6575 rm -rf conftest.dir
6576 mkdir conftest.dir
6577 # Copy depcomp to subdir because otherwise we won't find it if we're
6578 # using a relative directory.
6579 cp "$am_depcomp" conftest.dir
6580 cd conftest.dir
6581 # We will build objects and dependencies in a subdirectory because
6582 # it helps to detect inapplicable dependency modes. For instance
6583 # both Tru64's cc and ICC support -MD to output dependencies as a
6584 # side effect of compilation, but ICC will put the dependencies in
6585 # the current directory while Tru64 will put them in the object
6586 # directory.
6587 mkdir sub
6588
6589 am_cv_CXX_dependencies_compiler_type=none
6590 if test "$am_compiler_list" = ""; then
6591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6592 fi
6593 am__universal=false
6594 case " $depcc " in #(
6595 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6596 esac
6597
6598 for depmode in $am_compiler_list; do
6599 # Setup a source with many dependencies, because some compilers
6600 # like to wrap large dependency lists on column 80 (with \), and
6601 # we should not choose a depcomp mode which is confused by this.
6602 #
6603 # We need to recreate these files for each test, as the compiler may
6604 # overwrite some of them when testing with obscure command lines.
6605 # This happens at least with the AIX C compiler.
6606 : > sub/conftest.c
6607 for i in 1 2 3 4 5 6; do
6608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6609 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6610 # Solaris 10 /bin/sh.
6611 echo '/* dummy */' > sub/conftst$i.h
6612 done
6613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6614
6615 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6616 # mode. It turns out that the SunPro C++ compiler does not properly
6617 # handle '-M -o', and we need to detect this. Also, some Intel
6618 # versions had trouble with output in subdirs.
6619 am__obj=sub/conftest.${OBJEXT-o}
6620 am__minus_obj="-o $am__obj"
6621 case $depmode in
6622 gcc)
6623 # This depmode causes a compiler race in universal mode.
6624 test "$am__universal" = false || continue
6625 ;;
6626 nosideeffect)
6627 # After this tag, mechanisms are not by side-effect, so they'll
6628 # only be used when explicitly requested.
6629 if test "x$enable_dependency_tracking" = xyes; then
6630 continue
6631 else
6632 break
6633 fi
6634 ;;
6635 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6636 # This compiler won't grok '-c -o', but also, the minuso test has
6637 # not run yet. These depmodes are late enough in the game, and
6638 # so weak that their functioning should not be impacted.
6639 am__obj=conftest.${OBJEXT-o}
6640 am__minus_obj=
6641 ;;
6642 none) break ;;
6643 esac
6644 if depmode=$depmode \
6645 source=sub/conftest.c object=$am__obj \
6646 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6647 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6648 >/dev/null 2>conftest.err &&
6649 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6651 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6653 # icc doesn't choke on unknown options, it will just issue warnings
6654 # or remarks (even with -Werror). So we grep stderr for any message
6655 # that says an option was ignored or not supported.
6656 # When given -MP, icc 7.0 and 7.1 complain thusly:
6657 # icc: Command line warning: ignoring option '-M'; no argument required
6658 # The diagnosis changed in icc 8.0:
6659 # icc: Command line remark: option '-MP' not supported
6660 if (grep 'ignoring option' conftest.err ||
6661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6662 am_cv_CXX_dependencies_compiler_type=$depmode
6663 break
6664 fi
6665 fi
6666 done
6667
6668 cd ..
6669 rm -rf conftest.dir
6670else
6671 am_cv_CXX_dependencies_compiler_type=none
6672fi
6673
6674fi
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6676$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6677CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6678
6679 if
6680 test "x$enable_dependency_tracking" != xno \
6681 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6682 am__fastdepCXX_TRUE=
6683 am__fastdepCXX_FALSE='#'
6684else
6685 am__fastdepCXX_TRUE='#'
6686 am__fastdepCXX_FALSE=
6687fi
6688
6689
6690ac_ext=cpp
6691ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6692ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6693ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6696$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6697if test -z "$CXXCPP_FOR_BUILD"; then
6698 if ${ac_cv_build_prog_CXXCPP+:} false; then :
6699 $as_echo_n "(cached) " >&6
6700else
6701 # Double quotes because CXXCPP needs to be expanded
6702 for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
6703 do
6704 ac_preproc_ok=false
6705for ac_cxx_preproc_warn_flag in '' yes
6706do
6707 # Use a header file that comes with gcc, so configuring glibc
6708 # with a fresh cross-compiler works.
6709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6710 # <limits.h> exists even on freestanding compilers.
6711 # On the NeXT, cc -E runs the code through the compiler's parser,
6712 # not just through cpp. "Syntax error" is here to catch this case.
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h. */
6715#ifdef __STDC__
6716# include <limits.h>
6717#else
6718# include <assert.h>
6719#endif
6720 Syntax error
6721_ACEOF
6722if ac_fn_cxx_try_cpp "$LINENO"; then :
6723
6724else
6725 # Broken: fails on valid input.
6726continue
6727fi
6728rm -f conftest.err conftest.i conftest.$ac_ext
6729
6730 # OK, works on sane cases. Now check whether nonexistent headers
6731 # can be detected and how.
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733/* end confdefs.h. */
6734#include <ac_nonexistent.h>
6735_ACEOF
6736if ac_fn_cxx_try_cpp "$LINENO"; then :
6737 # Broken: success on invalid input.
6738continue
6739else
6740 # Passes both tests.
6741ac_preproc_ok=:
6742break
6743fi
6744rm -f conftest.err conftest.i conftest.$ac_ext
6745
6746done
6747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6748rm -f conftest.i conftest.err conftest.$ac_ext
6749if $ac_preproc_ok; then :
6750 break
6751fi
6752
6753 done
6754 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6755
6756fi
6757 CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
6758else
6759 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6760fi
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
6762$as_echo "$CXXCPP_FOR_BUILD" >&6; }
6763ac_preproc_ok=false
6764for ac_cxx_preproc_warn_flag in '' yes
6765do
6766 # Use a header file that comes with gcc, so configuring glibc
6767 # with a fresh cross-compiler works.
6768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6769 # <limits.h> exists even on freestanding compilers.
6770 # On the NeXT, cc -E runs the code through the compiler's parser,
6771 # not just through cpp. "Syntax error" is here to catch this case.
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h. */
6774#ifdef __STDC__
6775# include <limits.h>
6776#else
6777# include <assert.h>
6778#endif
6779 Syntax error
6780_ACEOF
6781if ac_fn_cxx_try_cpp "$LINENO"; then :
6782
6783else
6784 # Broken: fails on valid input.
6785continue
6786fi
6787rm -f conftest.err conftest.i conftest.$ac_ext
6788
6789 # OK, works on sane cases. Now check whether nonexistent headers
6790 # can be detected and how.
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792/* end confdefs.h. */
6793#include <ac_nonexistent.h>
6794_ACEOF
6795if ac_fn_cxx_try_cpp "$LINENO"; then :
6796 # Broken: success on invalid input.
6797continue
6798else
6799 # Passes both tests.
6800ac_preproc_ok=:
6801break
6802fi
6803rm -f conftest.err conftest.i conftest.$ac_ext
6804
6805done
6806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6807rm -f conftest.i conftest.err conftest.$ac_ext
6808if $ac_preproc_ok; then :
6809
6810else
6811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6813as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
6814See \`config.log' for more details" "$LINENO" 5; }
6815fi
6816
6817ac_ext=c
6818ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6819ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6820ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822
6823
6824ac_tool_prefix=$save_ac_tool_prefix
6825cross_compiling=$save_cross_compiling
6826
6827
6828
6829
6830
6831if test -n "$ac_tool_prefix"; then
6832 for ac_prog in ar lib "link -lib"
6833 do
6834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837$as_echo_n "checking for $ac_word... " >&6; }
6838if ${ac_cv_prog_AR+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840else
6841 if test -n "$AR"; then
6842 ac_cv_prog_AR="$AR" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855done
6856 done
6857IFS=$as_save_IFS
6858
6859fi
6860fi
6861AR=$ac_cv_prog_AR
6862if test -n "$AR"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6864$as_echo "$AR" >&6; }
6865else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867$as_echo "no" >&6; }
6868fi
6869
6870
6871 test -n "$AR" && break
6872 done
a243b558
JF
6873fi
6874if test -z "$AR"; then
6875 ac_ct_AR=$AR
6876 for ac_prog in ar lib "link -lib"
6877do
6878 # Extract the first word of "$ac_prog", so it can be a program name with args.
6879set dummy $ac_prog; ac_word=$2
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881$as_echo_n "checking for $ac_word... " >&6; }
6882if ${ac_cv_prog_ac_ct_AR+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884else
6885 if test -n "$ac_ct_AR"; then
6886 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6887else
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_ac_ct_AR="$ac_prog"
6896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899done
6900 done
6901IFS=$as_save_IFS
6902
6903fi
6904fi
6905ac_ct_AR=$ac_cv_prog_ac_ct_AR
6906if test -n "$ac_ct_AR"; then
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6908$as_echo "$ac_ct_AR" >&6; }
6909else
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911$as_echo "no" >&6; }
6912fi
6913
6914
6915 test -n "$ac_ct_AR" && break
6916done
6917
6918 if test "x$ac_ct_AR" = x; then
6919 AR="false"
9c60689e
DWT
6920 else
6921 case $cross_compiling:$ac_tool_warned in
6922yes:)
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925ac_tool_warned=yes ;;
35fa52c0 6926esac
a243b558 6927 AR=$ac_ct_AR
9c60689e 6928 fi
a243b558
JF
6929fi
6930
6931: ${AR=ar}
6932
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6934$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6935if ${am_cv_ar_interface+:} false; then :
6936 $as_echo_n "(cached) " >&6
9c60689e 6937else
a93f15c0
JF
6938 ac_ext=c
6939ac_cpp='$CPP $CPPFLAGS'
6940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942ac_compiler_gnu=$ac_cv_c_compiler_gnu
6943
6944 am_cv_ar_interface=ar
a243b558
JF
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946/* end confdefs.h. */
6947int some_variable = 0;
6948_ACEOF
6949if ac_fn_c_try_compile "$LINENO"; then :
6950 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6952 (eval $am_ar_try) 2>&5
6953 ac_status=$?
6954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6955 test $ac_status = 0; }
6956 if test "$ac_status" -eq 0; then
6957 am_cv_ar_interface=ar
6958 else
6959 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6961 (eval $am_ar_try) 2>&5
6962 ac_status=$?
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }
6965 if test "$ac_status" -eq 0; then
6966 am_cv_ar_interface=lib
6967 else
6968 am_cv_ar_interface=unknown
6969 fi
6970 fi
6971 rm -f conftest.lib libconftest.a
6972
35fa52c0 6973fi
a243b558 6974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
6975 ac_ext=c
6976ac_cpp='$CPP $CPPFLAGS'
6977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 6980
a243b558
JF
6981fi
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6983$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 6984
a243b558
JF
6985case $am_cv_ar_interface in
6986ar)
6987 ;;
6988lib)
6989 # Microsoft lib, so override with the ar-lib wrapper script.
6990 # FIXME: It is wrong to rewrite AR.
6991 # But if we don't then we get into trouble of one sort or another.
6992 # A longer-term fix would be to have automake use am__AR in this case,
6993 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6994 # similar.
6995 AR="$am_aux_dir/ar-lib $AR"
6996 ;;
6997unknown)
6998 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6999 ;;
7000esac
35fa52c0 7001
35fa52c0 7002
35fa52c0 7003
a243b558
JF
7004case `pwd` in
7005 *\ * | *\ *)
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7007$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7008esac
35fa52c0
DWT
7009
7010
7011
9d54db95
JF
7012macro_version='2.4.6'
7013macro_revision='2.4.6'
35fa52c0
DWT
7014
7015
7016
7017
7018
7019
7020
7021
7022
8d20f0f1
JF
7023
7024
7025
7026
7027ltmain=$ac_aux_dir/ltmain.sh
7028
a243b558
JF
7029# Backslashify metacharacters that are still active within
7030# double-quoted strings.
7031sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 7032
a243b558
JF
7033# Same as above, but do not quote variable references.
7034double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 7035
a243b558
JF
7036# Sed substitution to delay expansion of an escaped shell variable in a
7037# double_quote_subst'ed string.
7038delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 7039
a243b558
JF
7040# Sed substitution to delay expansion of an escaped single quote.
7041delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 7042
a243b558
JF
7043# Sed substitution to avoid accidental globbing in evaled expressions
7044no_glob_subst='s/\*/\\\*/g'
35fa52c0 7045
a243b558
JF
7046ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7047ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7048ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 7049
a243b558
JF
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7051$as_echo_n "checking how to print strings... " >&6; }
7052# Test print first, because it will be a builtin if present.
7053if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7054 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7055 ECHO='print -r --'
7056elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7057 ECHO='printf %s\n'
7058else
7059 # Use this function as a fallback that always works.
7060 func_fallback_echo ()
7061 {
7062 eval 'cat <<_LTECHO_EOF
7063$1
7064_LTECHO_EOF'
7065 }
7066 ECHO='func_fallback_echo'
ee134472
JF
7067fi
7068
a243b558
JF
7069# func_echo_all arg...
7070# Invoke $ECHO with all args, space-separated.
7071func_echo_all ()
7072{
7073 $ECHO ""
7074}
35fa52c0 7075
9d54db95 7076case $ECHO in
a243b558
JF
7077 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7078$as_echo "printf" >&6; } ;;
7079 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7080$as_echo "print -r" >&6; } ;;
7081 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7082$as_echo "cat" >&6; } ;;
7083esac
35fa52c0 7084
35fa52c0 7085
ee134472
JF
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
35fa52c0 7096
9c60689e 7097
a243b558
JF
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7099$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7100if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
7101 $as_echo_n "(cached) " >&6
7102else
a243b558
JF
7103 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7104 for ac_i in 1 2 3 4 5 6 7; do
7105 ac_script="$ac_script$as_nl$ac_script"
7106 done
7107 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7108 { ac_script=; unset ac_script;}
7109 if test -z "$SED"; then
7110 ac_path_SED_found=false
7111 # Loop through the user's path and test for each of PROGNAME-LIST
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
7113for as_dir in $PATH
7114do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
a243b558 7117 for ac_prog in sed gsed; do
9c60689e 7118 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7119 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7120 as_fn_executable_p "$ac_path_SED" || continue
7121# Check for GNU ac_path_SED and select it if it is found.
7122 # Check for GNU $ac_path_SED
7123case `"$ac_path_SED" --version 2>&1` in
7124*GNU*)
7125 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7126*)
7127 ac_count=0
7128 $as_echo_n 0123456789 >"conftest.in"
7129 while :
7130 do
7131 cat "conftest.in" "conftest.in" >"conftest.tmp"
7132 mv "conftest.tmp" "conftest.in"
7133 cp "conftest.in" "conftest.nl"
7134 $as_echo '' >> "conftest.nl"
7135 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7137 as_fn_arith $ac_count + 1 && ac_count=$as_val
7138 if test $ac_count -gt ${ac_path_SED_max-0}; then
7139 # Best one so far, save it but keep looking for a better one
7140 ac_cv_path_SED="$ac_path_SED"
7141 ac_path_SED_max=$ac_count
7142 fi
7143 # 10*(2^10) chars as input seems more than enough
7144 test $ac_count -gt 10 && break
35fa52c0 7145 done
a243b558
JF
7146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7147esac
9c60689e 7148
a243b558
JF
7149 $ac_path_SED_found && break 3
7150 done
7151 done
9c60689e
DWT
7152 done
7153IFS=$as_save_IFS
a243b558
JF
7154 if test -z "$ac_cv_path_SED"; then
7155 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
7156 fi
7157else
a243b558 7158 ac_cv_path_SED=$SED
9c60689e
DWT
7159fi
7160
a243b558
JF
7161fi
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7163$as_echo "$ac_cv_path_SED" >&6; }
7164 SED="$ac_cv_path_SED"
7165 rm -f conftest.sed
9c60689e 7166
a243b558
JF
7167test -z "$SED" && SED=sed
7168Xsed="$SED -e 1s/^X//"
9c60689e 7169
ee134472 7170
ee134472 7171
9c60689e
DWT
7172
7173
7174
7175
7176
7177
7178
7179
a243b558
JF
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7181$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7182if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
7183 $as_echo_n "(cached) " >&6
7184else
a243b558
JF
7185 if test -z "$GREP"; then
7186 ac_path_GREP_found=false
7187 # Loop through the user's path and test for each of PROGNAME-LIST
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
a243b558 7193 for ac_prog in grep ggrep; do
9c60689e 7194 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7195 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7196 as_fn_executable_p "$ac_path_GREP" || continue
7197# Check for GNU ac_path_GREP and select it if it is found.
7198 # Check for GNU $ac_path_GREP
7199case `"$ac_path_GREP" --version 2>&1` in
7200*GNU*)
7201 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7202*)
7203 ac_count=0
7204 $as_echo_n 0123456789 >"conftest.in"
7205 while :
7206 do
7207 cat "conftest.in" "conftest.in" >"conftest.tmp"
7208 mv "conftest.tmp" "conftest.in"
7209 cp "conftest.in" "conftest.nl"
7210 $as_echo 'GREP' >> "conftest.nl"
7211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7213 as_fn_arith $ac_count + 1 && ac_count=$as_val
7214 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7215 # Best one so far, save it but keep looking for a better one
7216 ac_cv_path_GREP="$ac_path_GREP"
7217 ac_path_GREP_max=$ac_count
7218 fi
7219 # 10*(2^10) chars as input seems more than enough
7220 test $ac_count -gt 10 && break
7221 done
7222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7223esac
9c60689e 7224
a243b558
JF
7225 $ac_path_GREP_found && break 3
7226 done
ee134472 7227 done
a243b558
JF
7228 done
7229IFS=$as_save_IFS
7230 if test -z "$ac_cv_path_GREP"; then
7231 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7232 fi
7233else
7234 ac_cv_path_GREP=$GREP
9c60689e 7235fi
a243b558
JF
7236
7237fi
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7239$as_echo "$ac_cv_path_GREP" >&6; }
7240 GREP="$ac_cv_path_GREP"
7241
7242
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7244$as_echo_n "checking for egrep... " >&6; }
7245if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
7246 $as_echo_n "(cached) " >&6
7247else
a243b558
JF
7248 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7249 then ac_cv_path_EGREP="$GREP -E"
7250 else
7251 if test -z "$EGREP"; then
7252 ac_path_EGREP_found=false
7253 # Loop through the user's path and test for each of PROGNAME-LIST
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
a243b558 7259 for ac_prog in egrep; do
9c60689e 7260 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7261 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7262 as_fn_executable_p "$ac_path_EGREP" || continue
7263# Check for GNU ac_path_EGREP and select it if it is found.
7264 # Check for GNU $ac_path_EGREP
7265case `"$ac_path_EGREP" --version 2>&1` in
7266*GNU*)
7267 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7268*)
7269 ac_count=0
7270 $as_echo_n 0123456789 >"conftest.in"
7271 while :
7272 do
7273 cat "conftest.in" "conftest.in" >"conftest.tmp"
7274 mv "conftest.tmp" "conftest.in"
7275 cp "conftest.in" "conftest.nl"
7276 $as_echo 'EGREP' >> "conftest.nl"
7277 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7279 as_fn_arith $ac_count + 1 && ac_count=$as_val
7280 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7281 # Best one so far, save it but keep looking for a better one
7282 ac_cv_path_EGREP="$ac_path_EGREP"
7283 ac_path_EGREP_max=$ac_count
7284 fi
7285 # 10*(2^10) chars as input seems more than enough
7286 test $ac_count -gt 10 && break
9c60689e 7287 done
a243b558
JF
7288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7289esac
9c60689e 7290
a243b558
JF
7291 $ac_path_EGREP_found && break 3
7292 done
7293 done
7294 done
7295IFS=$as_save_IFS
7296 if test -z "$ac_cv_path_EGREP"; then
7297 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7298 fi
9c60689e 7299else
a243b558 7300 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
7301fi
7302
a243b558
JF
7303 fi
7304fi
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7306$as_echo "$ac_cv_path_EGREP" >&6; }
7307 EGREP="$ac_cv_path_EGREP"
ee134472 7308
ee134472 7309
a243b558
JF
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7311$as_echo_n "checking for fgrep... " >&6; }
7312if ${ac_cv_path_FGREP+:} false; then :
7313 $as_echo_n "(cached) " >&6
7314else
7315 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7316 then ac_cv_path_FGREP="$GREP -F"
7317 else
7318 if test -z "$FGREP"; then
7319 ac_path_FGREP_found=false
7320 # Loop through the user's path and test for each of PROGNAME-LIST
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7323do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_prog in fgrep; do
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7329 as_fn_executable_p "$ac_path_FGREP" || continue
7330# Check for GNU ac_path_FGREP and select it if it is found.
7331 # Check for GNU $ac_path_FGREP
7332case `"$ac_path_FGREP" --version 2>&1` in
7333*GNU*)
7334 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7335*)
7336 ac_count=0
7337 $as_echo_n 0123456789 >"conftest.in"
7338 while :
7339 do
7340 cat "conftest.in" "conftest.in" >"conftest.tmp"
7341 mv "conftest.tmp" "conftest.in"
7342 cp "conftest.in" "conftest.nl"
7343 $as_echo 'FGREP' >> "conftest.nl"
7344 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7346 as_fn_arith $ac_count + 1 && ac_count=$as_val
7347 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7348 # Best one so far, save it but keep looking for a better one
7349 ac_cv_path_FGREP="$ac_path_FGREP"
7350 ac_path_FGREP_max=$ac_count
7351 fi
7352 # 10*(2^10) chars as input seems more than enough
7353 test $ac_count -gt 10 && break
7354 done
7355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 7356esac
a243b558
JF
7357
7358 $ac_path_FGREP_found && break 3
7359 done
7360 done
7361 done
7362IFS=$as_save_IFS
7363 if test -z "$ac_cv_path_FGREP"; then
7364 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 7365 fi
a243b558
JF
7366else
7367 ac_cv_path_FGREP=$FGREP
ee134472
JF
7368fi
7369
a243b558
JF
7370 fi
7371fi
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7373$as_echo "$ac_cv_path_FGREP" >&6; }
7374 FGREP="$ac_cv_path_FGREP"
ee134472
JF
7375
7376
a243b558 7377test -z "$GREP" && GREP=grep
ee134472
JF
7378
7379
7380
7381
7382
7383
7384
ee134472 7385
ee134472 7386
ee134472 7387
ee134472 7388
ee134472 7389
ee134472
JF
7390
7391
7392
7393
7394
7395
7396
a243b558
JF
7397# Check whether --with-gnu-ld was given.
7398if test "${with_gnu_ld+set}" = set; then :
9d54db95 7399 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
a243b558
JF
7400else
7401 with_gnu_ld=no
7402fi
7403
7404ac_prog=ld
9d54db95 7405if test yes = "$GCC"; then
a243b558
JF
7406 # Check if gcc -print-prog-name=ld gives a path.
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7408$as_echo_n "checking for ld used by $CC... " >&6; }
7409 case $host in
7410 *-*-mingw*)
9d54db95 7411 # gcc leaves a trailing carriage return, which upsets mingw
a243b558
JF
7412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7413 *)
7414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7415 esac
7416 case $ac_prog in
7417 # Accept absolute paths.
7418 [\\/]* | ?:[\\/]*)
7419 re_direlt='/[^/][^/]*/\.\./'
7420 # Canonicalize the pathname of ld
7421 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7422 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7423 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7424 done
9d54db95 7425 test -z "$LD" && LD=$ac_prog
a243b558
JF
7426 ;;
7427 "")
7428 # If it fails, then pretend we aren't using GCC.
7429 ac_prog=ld
7430 ;;
7431 *)
7432 # If it is relative, then search for the first ld in PATH.
7433 with_gnu_ld=unknown
7434 ;;
7435 esac
9d54db95 7436elif test yes = "$with_gnu_ld"; then
a243b558
JF
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7438$as_echo_n "checking for GNU ld... " >&6; }
7439else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7441$as_echo_n "checking for non-GNU ld... " >&6; }
7442fi
7443if ${lt_cv_path_LD+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445else
7446 if test -z "$LD"; then
9d54db95 7447 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 7448 for ac_dir in $PATH; do
9d54db95 7449 IFS=$lt_save_ifs
a243b558
JF
7450 test -z "$ac_dir" && ac_dir=.
7451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 7452 lt_cv_path_LD=$ac_dir/$ac_prog
a243b558
JF
7453 # Check to see if the program is GNU ld. I'd rather use --version,
7454 # but apparently some variants of GNU ld only accept -v.
7455 # Break only if it was the GNU/non-GNU ld that we prefer.
7456 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7457 *GNU* | *'with BFD'*)
9d54db95 7458 test no != "$with_gnu_ld" && break
a243b558
JF
7459 ;;
7460 *)
9d54db95 7461 test yes != "$with_gnu_ld" && break
a243b558
JF
7462 ;;
7463 esac
7464 fi
7465 done
9d54db95 7466 IFS=$lt_save_ifs
a243b558 7467else
9d54db95 7468 lt_cv_path_LD=$LD # Let the user override the test with a path.
a243b558
JF
7469fi
7470fi
7471
9d54db95 7472LD=$lt_cv_path_LD
a243b558
JF
7473if test -n "$LD"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7475$as_echo "$LD" >&6; }
7476else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478$as_echo "no" >&6; }
7479fi
7480test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7482$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7483if ${lt_cv_prog_gnu_ld+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485else
7486 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7487case `$LD -v 2>&1 </dev/null` in
7488*GNU* | *'with BFD'*)
7489 lt_cv_prog_gnu_ld=yes
7490 ;;
7491*)
7492 lt_cv_prog_gnu_ld=no
7493 ;;
7494esac
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7497$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7498with_gnu_ld=$lt_cv_prog_gnu_ld
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7509$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7510if ${lt_cv_path_NM+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512else
7513 if test -n "$NM"; then
7514 # Let the user override the test.
9d54db95 7515 lt_cv_path_NM=$NM
a243b558 7516else
9d54db95 7517 lt_nm_to_check=${ac_tool_prefix}nm
a243b558
JF
7518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7519 lt_nm_to_check="$lt_nm_to_check nm"
7520 fi
7521 for lt_tmp_nm in $lt_nm_to_check; do
9d54db95 7522 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 7523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9d54db95 7524 IFS=$lt_save_ifs
a243b558 7525 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
7526 tmp_nm=$ac_dir/$lt_tmp_nm
7527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
a243b558 7528 # Check to see if the nm accepts a BSD-compat flag.
9d54db95 7529 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
a243b558
JF
7530 # nm: unknown option "B" ignored
7531 # Tru64's nm complains that /dev/null is an invalid object file
9d54db95
JF
7532 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7533 case $build_os in
7534 mingw*) lt_bad_file=conftest.nm/nofile ;;
7535 *) lt_bad_file=/dev/null ;;
7536 esac
7537 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7538 *$lt_bad_file* | *'Invalid file or object type'*)
a243b558 7539 lt_cv_path_NM="$tmp_nm -B"
9d54db95 7540 break 2
a243b558
JF
7541 ;;
7542 *)
7543 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7544 */dev/null*)
7545 lt_cv_path_NM="$tmp_nm -p"
9d54db95 7546 break 2
a243b558
JF
7547 ;;
7548 *)
7549 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7550 continue # so that we can try to find one that supports BSD flags
7551 ;;
7552 esac
7553 ;;
7554 esac
7555 fi
7556 done
9d54db95 7557 IFS=$lt_save_ifs
a243b558
JF
7558 done
7559 : ${lt_cv_path_NM=no}
7560fi
7561fi
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7563$as_echo "$lt_cv_path_NM" >&6; }
9d54db95
JF
7564if test no != "$lt_cv_path_NM"; then
7565 NM=$lt_cv_path_NM
a243b558
JF
7566else
7567 # Didn't find any BSD compatible name lister, look for dumpbin.
7568 if test -n "$DUMPBIN"; then :
7569 # Let the user override the test.
7570 else
7571 if test -n "$ac_tool_prefix"; then
7572 for ac_prog in dumpbin "link -dump"
7573 do
7574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7575set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7578if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
7579 $as_echo_n "(cached) " >&6
7580else
a243b558
JF
7581 if test -n "$DUMPBIN"; then
7582 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
7583else
7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7591 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595done
7596 done
7597IFS=$as_save_IFS
7598
7599fi
7600fi
a243b558
JF
7601DUMPBIN=$ac_cv_prog_DUMPBIN
7602if test -n "$DUMPBIN"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7604$as_echo "$DUMPBIN" >&6; }
ee134472
JF
7605else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
7608fi
7609
7610
a243b558
JF
7611 test -n "$DUMPBIN" && break
7612 done
ee134472 7613fi
a243b558
JF
7614if test -z "$DUMPBIN"; then
7615 ac_ct_DUMPBIN=$DUMPBIN
7616 for ac_prog in dumpbin "link -dump"
7617do
7618 # Extract the first word of "$ac_prog", so it can be a program name with args.
7619set dummy $ac_prog; ac_word=$2
ee134472
JF
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7622if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
7623 $as_echo_n "(cached) " >&6
7624else
a243b558
JF
7625 if test -n "$ac_ct_DUMPBIN"; then
7626 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
7627else
7628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7635 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 break 2
7638 fi
7639done
7640 done
7641IFS=$as_save_IFS
7642
7643fi
7644fi
a243b558
JF
7645ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7646if test -n "$ac_ct_DUMPBIN"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7648$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
7649else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651$as_echo "no" >&6; }
7652fi
7653
a243b558
JF
7654
7655 test -n "$ac_ct_DUMPBIN" && break
7656done
7657
7658 if test "x$ac_ct_DUMPBIN" = x; then
7659 DUMPBIN=":"
ee134472
JF
7660 else
7661 case $cross_compiling:$ac_tool_warned in
7662yes:)
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7665ac_tool_warned=yes ;;
7666esac
a243b558 7667 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 7668 fi
9c60689e
DWT
7669fi
7670
9d54db95 7671 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
a243b558 7672 *COFF*)
9d54db95 7673 DUMPBIN="$DUMPBIN -symbols -headers"
a243b558
JF
7674 ;;
7675 *)
7676 DUMPBIN=:
7677 ;;
7678 esac
7679 fi
9c60689e 7680
9d54db95
JF
7681 if test : != "$DUMPBIN"; then
7682 NM=$DUMPBIN
a243b558
JF
7683 fi
7684fi
7685test -z "$NM" && NM=nm
9c60689e
DWT
7686
7687
7688
7689
7690
a243b558
JF
7691
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7693$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7694if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
7695 $as_echo_n "(cached) " >&6
7696else
a243b558
JF
7697 lt_cv_nm_interface="BSD nm"
7698 echo "int some_variable = 0;" > conftest.$ac_ext
7699 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7700 (eval "$ac_compile" 2>conftest.err)
7701 cat conftest.err >&5
7702 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7703 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7704 cat conftest.err >&5
7705 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7706 cat conftest.out >&5
7707 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7708 lt_cv_nm_interface="MS dumpbin"
9c60689e 7709 fi
00a96142 7710 rm -rf conftest*
9c60689e 7711fi
a243b558
JF
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7713$as_echo "$lt_cv_nm_interface" >&6; }
7714
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7716$as_echo_n "checking whether ln -s works... " >&6; }
7717LN_S=$as_ln_s
7718if test "$LN_S" = "ln -s"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7720$as_echo "yes" >&6; }
9c60689e 7721else
a243b558
JF
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7723$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
7724fi
7725
a243b558
JF
7726# find the maximum length of command line arguments
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7728$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7729if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
7730 $as_echo_n "(cached) " >&6
7731else
a243b558 7732 i=0
9d54db95 7733 teststring=ABCD
9c60689e 7734
a243b558
JF
7735 case $build_os in
7736 msdosdjgpp*)
7737 # On DJGPP, this test can blow up pretty badly due to problems in libc
7738 # (any single argument exceeding 2000 bytes causes a buffer overrun
7739 # during glob expansion). Even if it were fixed, the result of this
7740 # check would be larger than it should be.
7741 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7742 ;;
9c60689e 7743
a243b558
JF
7744 gnu*)
7745 # Under GNU Hurd, this test is not required because there is
7746 # no limit to the length of command line arguments.
7747 # Libtool will interpret -1 as no limit whatsoever
7748 lt_cv_sys_max_cmd_len=-1;
7749 ;;
9c60689e 7750
a243b558
JF
7751 cygwin* | mingw* | cegcc*)
7752 # On Win9x/ME, this test blows up -- it succeeds, but takes
7753 # about 5 minutes as the teststring grows exponentially.
7754 # Worse, since 9x/ME are not pre-emptively multitasking,
7755 # you end up with a "frozen" computer, even though with patience
7756 # the test eventually succeeds (with a max line length of 256k).
7757 # Instead, let's just punt: use the minimum linelength reported by
7758 # all of the supported platforms: 8192 (on NT/2K/XP).
7759 lt_cv_sys_max_cmd_len=8192;
7760 ;;
9c60689e 7761
a243b558
JF
7762 mint*)
7763 # On MiNT this can take a long time and run out of memory.
7764 lt_cv_sys_max_cmd_len=8192;
7765 ;;
9c60689e 7766
a243b558
JF
7767 amigaos*)
7768 # On AmigaOS with pdksh, this test takes hours, literally.
7769 # So we just punt and use a minimum line length of 8192.
7770 lt_cv_sys_max_cmd_len=8192;
7771 ;;
9c60689e 7772
9d54db95 7773 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a243b558
JF
7774 # This has been around since 386BSD, at least. Likely further.
7775 if test -x /sbin/sysctl; then
7776 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7777 elif test -x /usr/sbin/sysctl; then
7778 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7779 else
7780 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7781 fi
7782 # And add a safety zone
7783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7785 ;;
9c60689e 7786
a243b558
JF
7787 interix*)
7788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7789 lt_cv_sys_max_cmd_len=196608
7790 ;;
9c60689e 7791
a243b558
JF
7792 os2*)
7793 # The test takes a long time on OS/2.
7794 lt_cv_sys_max_cmd_len=8192
7795 ;;
9c60689e 7796
a243b558
JF
7797 osf*)
7798 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7799 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7800 # nice to cause kernel panics so lets avoid the loop below.
7801 # First set a reasonable default.
7802 lt_cv_sys_max_cmd_len=16384
7803 #
7804 if test -x /sbin/sysconfig; then
7805 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7806 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7807 esac
7808 fi
7809 ;;
7810 sco3.2v5*)
7811 lt_cv_sys_max_cmd_len=102400
7812 ;;
7813 sysv5* | sco5v6* | sysv4.2uw2*)
7814 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7815 if test -n "$kargmax"; then
7816 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7817 else
7818 lt_cv_sys_max_cmd_len=32768
7819 fi
9c60689e
DWT
7820 ;;
7821 *)
a243b558 7822 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9d54db95
JF
7823 if test -n "$lt_cv_sys_max_cmd_len" && \
7824 test undefined != "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
7825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7827 else
7828 # Make teststring a little bigger before we do anything with it.
7829 # a 1K string should be a reasonable start.
9d54db95 7830 for i in 1 2 3 4 5 6 7 8; do
a243b558
JF
7831 teststring=$teststring$teststring
7832 done
7833 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7834 # If test is not a shell built-in, we'll probably end up computing a
7835 # maximum length that is only half of the actual maximum length, but
7836 # we can't tell.
9d54db95 7837 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
a243b558 7838 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9d54db95 7839 test 17 != "$i" # 1/2 MB should be enough
a243b558
JF
7840 do
7841 i=`expr $i + 1`
7842 teststring=$teststring$teststring
7843 done
7844 # Only check the string length outside the loop.
7845 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7846 teststring=
7847 # Add a significant safety factor because C++ compilers can tack on
7848 # massive amounts of additional arguments before passing them to the
7849 # linker. It appears as though 1/2 is a usable value.
7850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7851 fi
9c60689e
DWT
7852 ;;
7853 esac
ee134472 7854
a243b558 7855fi
ee134472 7856
9d54db95 7857if test -n "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7859$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7860else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7862$as_echo "none" >&6; }
7863fi
7864max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
7865
7866
9c60689e
DWT
7867
7868
7869
7870
a243b558
JF
7871: ${CP="cp -f"}
7872: ${MV="mv -f"}
7873: ${RM="rm -f"}
9c60689e 7874
a243b558
JF
7875if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7876 lt_unset=unset
7877else
7878 lt_unset=false
7879fi
9c60689e
DWT
7880
7881
7882
7883
7884
a243b558
JF
7885# test EBCDIC or ASCII
7886case `echo X|tr X '\101'` in
7887 A) # ASCII based system
7888 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7889 lt_SP2NL='tr \040 \012'
7890 lt_NL2SP='tr \015\012 \040\040'
7891 ;;
7892 *) # EBCDIC based system
7893 lt_SP2NL='tr \100 \n'
7894 lt_NL2SP='tr \r\n \100\100'
7895 ;;
7896esac
9c60689e
DWT
7897
7898
7899
7900
7901
7902
7903
7904
7905
a243b558
JF
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7907$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7908if ${lt_cv_to_host_file_cmd+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910else
7911 case $host in
7912 *-*-mingw* )
7913 case $build in
7914 *-*-mingw* ) # actually msys
7915 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7916 ;;
7917 *-*-cygwin* )
7918 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7919 ;;
7920 * ) # otherwise, assume *nix
7921 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7922 ;;
7923 esac
7924 ;;
7925 *-*-cygwin* )
7926 case $build in
7927 *-*-mingw* ) # actually msys
7928 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7929 ;;
7930 *-*-cygwin* )
7931 lt_cv_to_host_file_cmd=func_convert_file_noop
7932 ;;
7933 * ) # otherwise, assume *nix
7934 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7935 ;;
7936 esac
7937 ;;
7938 * ) # unhandled hosts (and "normal" native builds)
7939 lt_cv_to_host_file_cmd=func_convert_file_noop
7940 ;;
7941esac
9c60689e 7942
a243b558 7943fi
9c60689e 7944
a243b558
JF
7945to_host_file_cmd=$lt_cv_to_host_file_cmd
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7947$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
7948
7949
7950
7951
7952
a243b558
JF
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7954$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7955if ${lt_cv_to_tool_file_cmd+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957else
7958 #assume ordinary cross tools, or native build.
7959lt_cv_to_tool_file_cmd=func_convert_file_noop
7960case $host in
7961 *-*-mingw* )
7962 case $build in
7963 *-*-mingw* ) # actually msys
7964 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7965 ;;
7966 esac
7967 ;;
7968esac
9c60689e 7969
a243b558 7970fi
9c60689e 7971
a243b558
JF
7972to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7974$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 7975
9c60689e 7976
9c60689e 7977
9c60689e
DWT
7978
7979
a243b558
JF
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7981$as_echo_n "checking for $LD option to reload object files... " >&6; }
7982if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
7983 $as_echo_n "(cached) " >&6
7984else
a243b558
JF
7985 lt_cv_ld_reload_flag='-r'
7986fi
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7988$as_echo "$lt_cv_ld_reload_flag" >&6; }
7989reload_flag=$lt_cv_ld_reload_flag
7990case $reload_flag in
7991"" | " "*) ;;
7992*) reload_flag=" $reload_flag" ;;
7993esac
7994reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 7995case $host_os in
a243b558 7996 cygwin* | mingw* | pw32* | cegcc*)
9d54db95 7997 if test yes != "$GCC"; then
a243b558
JF
7998 reload_cmds=false
7999 fi
8000 ;;
8001 darwin*)
9d54db95
JF
8002 if test yes = "$GCC"; then
8003 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
a243b558
JF
8004 else
8005 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8006 fi
8007 ;;
9c60689e
DWT
8008esac
8009
9c60689e 8010
9c60689e 8011
9c60689e 8012
9c60689e 8013
9c60689e 8014
9c60689e 8015
9c60689e 8016
9c60689e 8017
a243b558
JF
8018if test -n "$ac_tool_prefix"; then
8019 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8020set dummy ${ac_tool_prefix}objdump; ac_word=$2
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022$as_echo_n "checking for $ac_word... " >&6; }
8023if ${ac_cv_prog_OBJDUMP+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025else
8026 if test -n "$OBJDUMP"; then
8027 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8028else
8029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH
8031do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040done
8041 done
8042IFS=$as_save_IFS
9c60689e 8043
a243b558
JF
8044fi
8045fi
8046OBJDUMP=$ac_cv_prog_OBJDUMP
8047if test -n "$OBJDUMP"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8049$as_echo "$OBJDUMP" >&6; }
8050else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052$as_echo "no" >&6; }
8053fi
9c60689e 8054
9c60689e 8055
a243b558
JF
8056fi
8057if test -z "$ac_cv_prog_OBJDUMP"; then
8058 ac_ct_OBJDUMP=$OBJDUMP
8059 # Extract the first word of "objdump", so it can be a program name with args.
8060set dummy objdump; ac_word=$2
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062$as_echo_n "checking for $ac_word... " >&6; }
8063if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065else
8066 if test -n "$ac_ct_OBJDUMP"; then
8067 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
9c60689e
DWT
8079 fi
8080done
a243b558
JF
8081 done
8082IFS=$as_save_IFS
9c60689e
DWT
8083
8084fi
9c60689e 8085fi
a243b558
JF
8086ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8087if test -n "$ac_ct_OBJDUMP"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8089$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 8090else
a243b558
JF
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092$as_echo "no" >&6; }
9c60689e
DWT
8093fi
8094
a243b558
JF
8095 if test "x$ac_ct_OBJDUMP" = x; then
8096 OBJDUMP="false"
8097 else
8098 case $cross_compiling:$ac_tool_warned in
8099yes:)
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102ac_tool_warned=yes ;;
8103esac
8104 OBJDUMP=$ac_ct_OBJDUMP
8105 fi
8106else
8107 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
8108fi
8109
a243b558 8110test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
8111
8112
8113
8114
8115
8116
8117
8118
8119
a243b558
JF
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8121$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8122if ${lt_cv_deplibs_check_method+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124else
8125 lt_cv_file_magic_cmd='$MAGIC_CMD'
8126lt_cv_file_magic_test_file=
8127lt_cv_deplibs_check_method='unknown'
8128# Need to set the preceding variable on all platforms that support
8129# interlibrary dependencies.
8130# 'none' -- dependencies not supported.
9d54db95 8131# 'unknown' -- same as none, but documents that we really don't know.
a243b558
JF
8132# 'pass_all' -- all dependencies passed with no checks.
8133# 'test_compile' -- check by making test program.
8134# 'file_magic [[regex]]' -- check by looking for files in library path
9d54db95
JF
8135# that responds to the $file_magic_cmd with a given extended regex.
8136# If you have 'file' or equivalent on your system and you're not sure
8137# whether 'pass_all' will *always* work, you probably want this one.
9c60689e 8138
a243b558
JF
8139case $host_os in
8140aix[4-9]*)
8141 lt_cv_deplibs_check_method=pass_all
8142 ;;
9c60689e 8143
a243b558
JF
8144beos*)
8145 lt_cv_deplibs_check_method=pass_all
8146 ;;
9c60689e 8147
a243b558
JF
8148bsdi[45]*)
8149 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8150 lt_cv_file_magic_cmd='/usr/bin/file -L'
8151 lt_cv_file_magic_test_file=/shlib/libc.so
8152 ;;
9c60689e 8153
a243b558
JF
8154cygwin*)
8155 # func_win32_libid is a shell function defined in ltmain.sh
8156 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8157 lt_cv_file_magic_cmd='func_win32_libid'
8158 ;;
9c60689e 8159
a243b558
JF
8160mingw* | pw32*)
8161 # Base MSYS/MinGW do not provide the 'file' command needed by
8162 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8163 # unless we find 'file', for example because we are cross-compiling.
9d54db95 8164 if ( file / ) >/dev/null 2>&1; then
a243b558
JF
8165 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8166 lt_cv_file_magic_cmd='func_win32_libid'
8167 else
8168 # Keep this pattern in sync with the one in func_win32_libid.
8169 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8170 lt_cv_file_magic_cmd='$OBJDUMP -f'
8171 fi
8172 ;;
9c60689e 8173
a243b558
JF
8174cegcc*)
8175 # use the weaker test based on 'objdump'. See mingw*.
8176 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8177 lt_cv_file_magic_cmd='$OBJDUMP -f'
8178 ;;
9c60689e 8179
a243b558
JF
8180darwin* | rhapsody*)
8181 lt_cv_deplibs_check_method=pass_all
8182 ;;
9c60689e 8183
a243b558
JF
8184freebsd* | dragonfly*)
8185 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8186 case $host_cpu in
8187 i*86 )
8188 # Not sure whether the presence of OpenBSD here was a mistake.
8189 # Let's accept both of them until this is cleared up.
8190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8191 lt_cv_file_magic_cmd=/usr/bin/file
8192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8193 ;;
8194 esac
8195 else
8196 lt_cv_deplibs_check_method=pass_all
8197 fi
8198 ;;
9c60689e 8199
a243b558
JF
8200haiku*)
8201 lt_cv_deplibs_check_method=pass_all
8202 ;;
9c60689e 8203
a243b558
JF
8204hpux10.20* | hpux11*)
8205 lt_cv_file_magic_cmd=/usr/bin/file
8206 case $host_cpu in
8207 ia64*)
8208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8209 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8210 ;;
8211 hppa*64*)
8212 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]'
8213 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8214 ;;
8215 *)
8216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8217 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8218 ;;
8219 esac
8220 ;;
9c60689e 8221
a243b558
JF
8222interix[3-9]*)
8223 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8225 ;;
9c60689e 8226
a243b558
JF
8227irix5* | irix6* | nonstopux*)
8228 case $LD in
8229 *-32|*"-32 ") libmagic=32-bit;;
8230 *-n32|*"-n32 ") libmagic=N32;;
8231 *-64|*"-64 ") libmagic=64-bit;;
8232 *) libmagic=never-match;;
8233 esac
8234 lt_cv_deplibs_check_method=pass_all
8235 ;;
9c60689e 8236
a243b558 8237# This must be glibc/ELF.
9d54db95 8238linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
8239 lt_cv_deplibs_check_method=pass_all
8240 ;;
9c60689e 8241
a243b558
JF
8242netbsd*)
8243 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8245 else
8246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8247 fi
8248 ;;
9c60689e 8249
a243b558
JF
8250newos6*)
8251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8252 lt_cv_file_magic_cmd=/usr/bin/file
8253 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8254 ;;
9c60689e 8255
a243b558
JF
8256*nto* | *qnx*)
8257 lt_cv_deplibs_check_method=pass_all
8258 ;;
9c60689e 8259
9d54db95
JF
8260openbsd* | bitrig*)
8261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558
JF
8262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8263 else
8264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8265 fi
8266 ;;
9c60689e 8267
a243b558
JF
8268osf3* | osf4* | osf5*)
8269 lt_cv_deplibs_check_method=pass_all
8270 ;;
9c60689e 8271
a243b558
JF
8272rdos*)
8273 lt_cv_deplibs_check_method=pass_all
9c60689e 8274 ;;
a243b558
JF
8275
8276solaris*)
8277 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
8278 ;;
8279
a243b558
JF
8280sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8281 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
8282 ;;
8283
a243b558
JF
8284sysv4 | sysv4.3*)
8285 case $host_vendor in
8286 motorola)
8287 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]'
8288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8289 ;;
8290 ncr)
8291 lt_cv_deplibs_check_method=pass_all
8292 ;;
8293 sequent)
8294 lt_cv_file_magic_cmd='/bin/file'
8295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8296 ;;
8297 sni)
8298 lt_cv_file_magic_cmd='/bin/file'
8299 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8300 lt_cv_file_magic_test_file=/lib/libc.so
8301 ;;
8302 siemens)
8303 lt_cv_deplibs_check_method=pass_all
8304 ;;
8305 pc)
8306 lt_cv_deplibs_check_method=pass_all
8307 ;;
8308 esac
8309 ;;
9c60689e 8310
a243b558
JF
8311tpf*)
8312 lt_cv_deplibs_check_method=pass_all
8313 ;;
9d54db95
JF
8314os2*)
8315 lt_cv_deplibs_check_method=pass_all
8316 ;;
a243b558 8317esac
9c60689e 8318
a243b558
JF
8319fi
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8321$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 8322
a243b558
JF
8323file_magic_glob=
8324want_nocaseglob=no
8325if test "$build" = "$host"; then
8326 case $host_os in
8327 mingw* | pw32*)
8328 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8329 want_nocaseglob=yes
8330 else
8331 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8332 fi
8333 ;;
8334 esac
9c60689e 8335fi
9c60689e 8336
a243b558
JF
8337file_magic_cmd=$lt_cv_file_magic_cmd
8338deplibs_check_method=$lt_cv_deplibs_check_method
8339test -z "$deplibs_check_method" && deplibs_check_method=unknown
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
9c60689e 8360
9c60689e 8361
ee134472 8362if test -n "$ac_tool_prefix"; then
a243b558
JF
8363 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8364set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8367if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
8368 $as_echo_n "(cached) " >&6
8369else
a243b558
JF
8370 if test -n "$DLLTOOL"; then
8371 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8380 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384done
8385 done
8386IFS=$as_save_IFS
8387
8388fi
8389fi
a243b558
JF
8390DLLTOOL=$ac_cv_prog_DLLTOOL
8391if test -n "$DLLTOOL"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8393$as_echo "$DLLTOOL" >&6; }
ee134472
JF
8394else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
8397fi
8398
8399
8400fi
a243b558
JF
8401if test -z "$ac_cv_prog_DLLTOOL"; then
8402 ac_ct_DLLTOOL=$DLLTOOL
8403 # Extract the first word of "dlltool", so it can be a program name with args.
8404set dummy dlltool; ac_word=$2
ee134472
JF
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8407if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
8408 $as_echo_n "(cached) " >&6
8409else
a243b558
JF
8410 if test -n "$ac_ct_DLLTOOL"; then
8411 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
8412else
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8420 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8423 fi
8424done
8425 done
8426IFS=$as_save_IFS
8427
8428fi
8429fi
a243b558
JF
8430ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8431if test -n "$ac_ct_DLLTOOL"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8433$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
8434else
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
8437fi
8438
a243b558
JF
8439 if test "x$ac_ct_DLLTOOL" = x; then
8440 DLLTOOL="false"
ee134472
JF
8441 else
8442 case $cross_compiling:$ac_tool_warned in
8443yes:)
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8446ac_tool_warned=yes ;;
8447esac
a243b558 8448 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
8449 fi
8450else
a243b558 8451 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
8452fi
8453
a243b558
JF
8454test -z "$DLLTOOL" && DLLTOOL=dlltool
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8466$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8467if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
8468 $as_echo_n "(cached) " >&6
8469else
a243b558
JF
8470 lt_cv_sharedlib_from_linklib_cmd='unknown'
8471
8472case $host_os in
8473cygwin* | mingw* | pw32* | cegcc*)
9d54db95
JF
8474 # two different shell functions defined in ltmain.sh;
8475 # decide which one to use based on capabilities of $DLLTOOL
a243b558
JF
8476 case `$DLLTOOL --help 2>&1` in
8477 *--identify-strict*)
8478 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8479 ;;
8480 *)
8481 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8482 ;;
8483 esac
8484 ;;
8485*)
8486 # fallback: assume linklib IS sharedlib
9d54db95 8487 lt_cv_sharedlib_from_linklib_cmd=$ECHO
a243b558
JF
8488 ;;
8489esac
8490
ee134472 8491fi
a243b558
JF
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8493$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8494sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8495test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
8496
8497
8498
8499
8500
9c60689e 8501
a243b558
JF
8502
8503if test -n "$ac_tool_prefix"; then
8504 for ac_prog in ar
8505 do
8506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8507set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8510if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
8511 $as_echo_n "(cached) " >&6
8512else
a243b558
JF
8513 if test -n "$AR"; then
8514 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
8515else
8516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517for as_dir in $PATH
8518do
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8523 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 break 2
8526 fi
8527done
8528 done
8529IFS=$as_save_IFS
8530
8531fi
8532fi
a243b558
JF
8533AR=$ac_cv_prog_AR
8534if test -n "$AR"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8536$as_echo "$AR" >&6; }
9c60689e
DWT
8537else
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539$as_echo "no" >&6; }
8540fi
8541
8542
a243b558
JF
8543 test -n "$AR" && break
8544 done
9c60689e 8545fi
a243b558
JF
8546if test -z "$AR"; then
8547 ac_ct_AR=$AR
8548 for ac_prog in ar
8549do
8550 # Extract the first word of "$ac_prog", so it can be a program name with args.
8551set dummy $ac_prog; ac_word=$2
9c60689e
DWT
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8554if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
8555 $as_echo_n "(cached) " >&6
8556else
a243b558
JF
8557 if test -n "$ac_ct_AR"; then
8558 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
8559else
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8567 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8570 fi
8571done
8572 done
8573IFS=$as_save_IFS
8574
8575fi
8576fi
a243b558
JF
8577ac_ct_AR=$ac_cv_prog_ac_ct_AR
8578if test -n "$ac_ct_AR"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8580$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
8581else
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
8584fi
8585
a243b558
JF
8586
8587 test -n "$ac_ct_AR" && break
8588done
8589
8590 if test "x$ac_ct_AR" = x; then
8591 AR="false"
9c60689e
DWT
8592 else
8593 case $cross_compiling:$ac_tool_warned in
8594yes:)
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8597ac_tool_warned=yes ;;
8598esac
a243b558 8599 AR=$ac_ct_AR
9c60689e 8600 fi
a243b558
JF
8601fi
8602
8603: ${AR=ar}
8604: ${AR_FLAGS=cru}
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8617$as_echo_n "checking for archiver @FILE support... " >&6; }
8618if ${lt_cv_ar_at_file+:} false; then :
8619 $as_echo_n "(cached) " >&6
9c60689e 8620else
a243b558
JF
8621 lt_cv_ar_at_file=no
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623/* end confdefs.h. */
8624
8625int
8626main ()
8627{
8628
8629 ;
8630 return 0;
8631}
8632_ACEOF
8633if ac_fn_c_try_compile "$LINENO"; then :
8634 echo conftest.$ac_objext > conftest.lst
8635 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8637 (eval $lt_ar_try) 2>&5
8638 ac_status=$?
8639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8640 test $ac_status = 0; }
9d54db95 8641 if test 0 -eq "$ac_status"; then
a243b558
JF
8642 # Ensure the archiver fails upon bogus file names.
8643 rm -f conftest.$ac_objext libconftest.a
8644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8645 (eval $lt_ar_try) 2>&5
8646 ac_status=$?
8647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8648 test $ac_status = 0; }
9d54db95 8649 if test 0 -ne "$ac_status"; then
a243b558
JF
8650 lt_cv_ar_at_file=@
8651 fi
8652 fi
8653 rm -f conftest.* libconftest.a
8654
9c60689e 8655fi
a243b558 8656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 8657
a243b558
JF
8658fi
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8660$as_echo "$lt_cv_ar_at_file" >&6; }
8661
9d54db95 8662if test no = "$lt_cv_ar_at_file"; then
a243b558
JF
8663 archiver_list_spec=
8664else
8665 archiver_list_spec=$lt_cv_ar_at_file
8666fi
8667
8668
8669
8670
8671
8672
8673
8674if test -n "$ac_tool_prefix"; then
8675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8676set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8679if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
8680 $as_echo_n "(cached) " >&6
8681else
a243b558
JF
8682 if test -n "$STRIP"; then
8683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
8684else
8685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686for as_dir in $PATH
8687do
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8692 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8695 fi
8696done
8697 done
8698IFS=$as_save_IFS
8699
8700fi
8701fi
a243b558
JF
8702STRIP=$ac_cv_prog_STRIP
8703if test -n "$STRIP"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8705$as_echo "$STRIP" >&6; }
9c60689e
DWT
8706else
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708$as_echo "no" >&6; }
8709fi
8710
8711
8712fi
a243b558
JF
8713if test -z "$ac_cv_prog_STRIP"; then
8714 ac_ct_STRIP=$STRIP
8715 # Extract the first word of "strip", so it can be a program name with args.
8716set dummy strip; ac_word=$2
9c60689e
DWT
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8719if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
8720 $as_echo_n "(cached) " >&6
8721else
a243b558
JF
8722 if test -n "$ac_ct_STRIP"; then
8723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
8724else
8725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726for as_dir in $PATH
8727do
8728 IFS=$as_save_IFS
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8732 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 break 2
8735 fi
8736done
8737 done
8738IFS=$as_save_IFS
8739
8740fi
8741fi
a243b558
JF
8742ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8743if test -n "$ac_ct_STRIP"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8745$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
8746else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748$as_echo "no" >&6; }
8749fi
8750
a243b558
JF
8751 if test "x$ac_ct_STRIP" = x; then
8752 STRIP=":"
9c60689e
DWT
8753 else
8754 case $cross_compiling:$ac_tool_warned in
8755yes:)
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8758ac_tool_warned=yes ;;
8759esac
a243b558 8760 STRIP=$ac_ct_STRIP
9c60689e
DWT
8761 fi
8762else
a243b558 8763 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
8764fi
8765
a243b558
JF
8766test -z "$STRIP" && STRIP=:
8767
8768
8769
8770
8771
8772
8773if test -n "$ac_tool_prefix"; then
8774 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8775set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8778if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
8779 $as_echo_n "(cached) " >&6
8780else
a243b558
JF
8781 if test -n "$RANLIB"; then
8782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
8783else
8784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785for as_dir in $PATH
8786do
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8791 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 break 2
8794 fi
8795done
8796 done
8797IFS=$as_save_IFS
8798
8799fi
8800fi
a243b558
JF
8801RANLIB=$ac_cv_prog_RANLIB
8802if test -n "$RANLIB"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8804$as_echo "$RANLIB" >&6; }
9c60689e
DWT
8805else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
8808fi
8809
8810
8811fi
a243b558
JF
8812if test -z "$ac_cv_prog_RANLIB"; then
8813 ac_ct_RANLIB=$RANLIB
8814 # Extract the first word of "ranlib", so it can be a program name with args.
8815set dummy ranlib; ac_word=$2
9c60689e
DWT
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8818if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
8819 $as_echo_n "(cached) " >&6
8820else
a243b558
JF
8821 if test -n "$ac_ct_RANLIB"; then
8822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
8823else
8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825for as_dir in $PATH
8826do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8831 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835done
8836 done
8837IFS=$as_save_IFS
8838
8839fi
8840fi
a243b558
JF
8841ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8842if test -n "$ac_ct_RANLIB"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8844$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
8845else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
8848fi
8849
a243b558
JF
8850 if test "x$ac_ct_RANLIB" = x; then
8851 RANLIB=":"
9c60689e
DWT
8852 else
8853 case $cross_compiling:$ac_tool_warned in
8854yes:)
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8857ac_tool_warned=yes ;;
8858esac
a243b558 8859 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
8860 fi
8861else
a243b558 8862 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
8863fi
8864
a243b558
JF
8865test -z "$RANLIB" && RANLIB=:
8866
8867
9c60689e 8868
9c60689e
DWT
8869
8870
a243b558
JF
8871
8872# Determine commands to create old-style static archives.
8873old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8874old_postinstall_cmds='chmod 644 $oldlib'
8875old_postuninstall_cmds=
8876
8877if test -n "$RANLIB"; then
8878 case $host_os in
9d54db95 8879 bitrig* | openbsd*)
a243b558
JF
8880 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8881 ;;
8882 *)
8883 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8884 ;;
8885 esac
8886 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
8887fi
8888
a243b558
JF
8889case $host_os in
8890 darwin*)
8891 lock_old_archive_extraction=yes ;;
8892 *)
8893 lock_old_archive_extraction=no ;;
9c60689e 8894esac
9c60689e 8895
9c60689e 8896
9c60689e
DWT
8897
8898
9c60689e 8899
9c60689e 8900
9c60689e
DWT
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
53ba6704 8928
9c60689e 8929
9c60689e 8930
9c60689e 8931
53ba6704 8932
a243b558
JF
8933
8934# If no C compiler was specified, use CC.
8935LTCC=${LTCC-"$CC"}
8936
8937# If no C compiler flags were specified, use CFLAGS.
8938LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8939
8940# Allow CC to be a program name with arguments.
8941compiler=$CC
8942
8943
8944# Check for command to grab the raw symbol name followed by C symbol from nm.
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8946$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8947if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
8948 $as_echo_n "(cached) " >&6
8949else
ee134472 8950
a243b558
JF
8951# These are sane defaults that work on at least a few old systems.
8952# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 8953
a243b558
JF
8954# Character class describing NM global symbol codes.
8955symcode='[BCDEGRST]'
9c60689e 8956
a243b558
JF
8957# Regexp to match symbols that can be accessed directly from C.
8958sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 8959
a243b558
JF
8960# Define system-specific variables.
8961case $host_os in
8962aix*)
8963 symcode='[BCDT]'
8964 ;;
8965cygwin* | mingw* | pw32* | cegcc*)
8966 symcode='[ABCDGISTW]'
8967 ;;
8968hpux*)
9d54db95 8969 if test ia64 = "$host_cpu"; then
a243b558
JF
8970 symcode='[ABCDEGRST]'
8971 fi
8972 ;;
8973irix* | nonstopux*)
8974 symcode='[BCDEGRST]'
8975 ;;
8976osf*)
8977 symcode='[BCDEGQRST]'
8978 ;;
8979solaris*)
8980 symcode='[BDRT]'
8981 ;;
8982sco3.2v5*)
8983 symcode='[DT]'
8984 ;;
8985sysv4.2uw2*)
8986 symcode='[DT]'
8987 ;;
8988sysv5* | sco5v6* | unixware* | OpenUNIX*)
8989 symcode='[ABDT]'
8990 ;;
8991sysv4)
8992 symcode='[DFNSTU]'
8993 ;;
8994esac
9c60689e 8995
a243b558
JF
8996# If we're using GNU nm, then use its standard symbol codes.
8997case `$NM -V 2>&1` in
8998*GNU* | *'with BFD'*)
8999 symcode='[ABCDGIRSTW]' ;;
9000esac
9c60689e 9001
9d54db95
JF
9002if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9003 # Gets list of data symbols to import.
9004 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9005 # Adjust the below global symbol transforms to fixup imported variables.
9006 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9007 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9008 lt_c_name_lib_hook="\
9009 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9010 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9011else
9012 # Disable hooks by default.
9013 lt_cv_sys_global_symbol_to_import=
9014 lt_cdecl_hook=
9015 lt_c_name_hook=
9016 lt_c_name_lib_hook=
9017fi
9018
a243b558
JF
9019# Transform an extracted symbol line into a proper C declaration.
9020# Some systems (esp. on ia64) link data and code symbols differently,
9021# so use this general approach.
9d54db95
JF
9022lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9023$lt_cdecl_hook\
9024" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9025" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 9026
a243b558 9027# Transform an extracted symbol line into symbol name and symbol address
9d54db95
JF
9028lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9029$lt_c_name_hook\
9030" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9031" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9032
9033# Transform an extracted symbol line into symbol name with lib prefix and
9034# symbol address.
9035lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9036$lt_c_name_lib_hook\
9037" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9038" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9039" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9c60689e 9040
a243b558
JF
9041# Handle CRLF in mingw tool chain
9042opt_cr=
9043case $build_os in
9044mingw*)
9045 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9046 ;;
9047esac
9c60689e 9048
a243b558
JF
9049# Try without a prefix underscore, then with it.
9050for ac_symprfx in "" "_"; do
9c60689e 9051
a243b558
JF
9052 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9053 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 9054
a243b558
JF
9055 # Write the raw and C identifiers.
9056 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9d54db95
JF
9057 # Fake it for dumpbin and say T for any non-static function,
9058 # D for any global variable and I for any imported variable.
a243b558
JF
9059 # Also find C++ and __fastcall symbols from MSVC++,
9060 # which start with @ or ?.
9061 lt_cv_sys_global_symbol_pipe="$AWK '"\
9062" {last_section=section; section=\$ 3};"\
9063" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9064" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9d54db95
JF
9065" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9066" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9067" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
a243b558
JF
9068" \$ 0!~/External *\|/{next};"\
9069" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9070" {if(hide[section]) next};"\
9d54db95
JF
9071" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9072" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9073" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9074" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
a243b558
JF
9075" ' prfx=^$ac_symprfx"
9076 else
9077 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9078 fi
9079 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 9080
a243b558
JF
9081 # Check to see that the pipe works correctly.
9082 pipe_works=no
9c60689e 9083
00a96142 9084 rm -rf conftest*
a243b558
JF
9085 cat > conftest.$ac_ext <<_LT_EOF
9086#ifdef __cplusplus
9087extern "C" {
9088#endif
9089char nm_test_var;
9090void nm_test_func(void);
9091void nm_test_func(void){}
9092#ifdef __cplusplus
9093}
9094#endif
9095int main(){nm_test_var='a';nm_test_func();return(0);}
9096_LT_EOF
9c60689e 9097
a243b558
JF
9098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9099 (eval $ac_compile) 2>&5
9100 ac_status=$?
9101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9102 test $ac_status = 0; }; then
9103 # Now try to grab the symbols.
9104 nlist=conftest.nm
9105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9106 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9107 ac_status=$?
9108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9109 test $ac_status = 0; } && test -s "$nlist"; then
9110 # Try sorting and uniquifying the output.
9111 if sort "$nlist" | uniq > "$nlist"T; then
9112 mv -f "$nlist"T "$nlist"
9113 else
9114 rm -f "$nlist"T
9115 fi
9c60689e 9116
a243b558
JF
9117 # Make sure that we snagged all the symbols we need.
9118 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9119 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9120 cat <<_LT_EOF > conftest.$ac_ext
9121/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9d54db95
JF
9122#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9123/* DATA imports from DLLs on WIN32 can't be const, because runtime
a243b558
JF
9124 relocations are performed -- see ld's documentation on pseudo-relocs. */
9125# define LT_DLSYM_CONST
9d54db95 9126#elif defined __osf__
a243b558
JF
9127/* This system does not cope well with relocations in const data. */
9128# define LT_DLSYM_CONST
9129#else
9130# define LT_DLSYM_CONST const
9131#endif
9c60689e 9132
a243b558
JF
9133#ifdef __cplusplus
9134extern "C" {
9135#endif
9c60689e 9136
a243b558
JF
9137_LT_EOF
9138 # Now generate the symbol file.
9139 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 9140
a243b558 9141 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 9142
a243b558
JF
9143/* The mapping between symbol names and symbols. */
9144LT_DLSYM_CONST struct {
9145 const char *name;
9146 void *address;
9147}
9148lt__PROGRAM__LTX_preloaded_symbols[] =
9149{
9150 { "@PROGRAM@", (void *) 0 },
9151_LT_EOF
9d54db95 9152 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
a243b558
JF
9153 cat <<\_LT_EOF >> conftest.$ac_ext
9154 {0, (void *) 0}
9155};
9c60689e 9156
a243b558
JF
9157/* This works around a problem in FreeBSD linker */
9158#ifdef FREEBSD_WORKAROUND
9159static const void *lt_preloaded_setup() {
9160 return lt__PROGRAM__LTX_preloaded_symbols;
9161}
9162#endif
9c60689e 9163
a243b558
JF
9164#ifdef __cplusplus
9165}
9166#endif
9167_LT_EOF
9168 # Now try linking the two files.
9169 mv conftest.$ac_objext conftstm.$ac_objext
9170 lt_globsym_save_LIBS=$LIBS
9171 lt_globsym_save_CFLAGS=$CFLAGS
9d54db95 9172 LIBS=conftstm.$ac_objext
a243b558
JF
9173 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9175 (eval $ac_link) 2>&5
9176 ac_status=$?
9177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 9178 test $ac_status = 0; } && test -s conftest$ac_exeext; then
a243b558
JF
9179 pipe_works=yes
9180 fi
9181 LIBS=$lt_globsym_save_LIBS
9182 CFLAGS=$lt_globsym_save_CFLAGS
9183 else
9184 echo "cannot find nm_test_func in $nlist" >&5
9185 fi
9186 else
9187 echo "cannot find nm_test_var in $nlist" >&5
9188 fi
9189 else
9190 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9191 fi
9192 else
9193 echo "$progname: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 fi
9196 rm -rf conftest* conftst*
9c60689e 9197
a243b558 9198 # Do not use the global_symbol_pipe unless it works.
9d54db95 9199 if test yes = "$pipe_works"; then
a243b558
JF
9200 break
9201 else
9202 lt_cv_sys_global_symbol_pipe=
9203 fi
9204done
9c60689e 9205
9c60689e 9206fi
9c60689e 9207
a243b558
JF
9208if test -z "$lt_cv_sys_global_symbol_pipe"; then
9209 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 9210fi
a243b558
JF
9211if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9213$as_echo "failed" >&6; }
9c60689e 9214else
a243b558
JF
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9216$as_echo "ok" >&6; }
9c60689e
DWT
9217fi
9218
a243b558
JF
9219# Response file support.
9220if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9221 nm_file_list_spec='@'
9222elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9223 nm_file_list_spec='@'
9c60689e 9224fi
9c60689e 9225
9c60689e 9226
9c60689e 9227
9c60689e 9228
9c60689e 9229
9c60689e
DWT
9230
9231
9c60689e 9232
9c60689e 9233
9c60689e
DWT
9234
9235
9236
ee134472
JF
9237
9238
9c60689e
DWT
9239
9240
9d54db95
JF
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9c60689e
DWT
9251
9252
9253
9254
9255
9256
9257
549f29b5 9258
549f29b5
DWT
9259
9260
549f29b5 9261
a243b558
JF
9262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9263$as_echo_n "checking for sysroot... " >&6; }
549f29b5 9264
a243b558
JF
9265# Check whether --with-sysroot was given.
9266if test "${with_sysroot+set}" = set; then :
9267 withval=$with_sysroot;
9c60689e 9268else
a243b558 9269 with_sysroot=no
9c60689e
DWT
9270fi
9271
9272
a243b558 9273lt_sysroot=
9d54db95 9274case $with_sysroot in #(
a243b558 9275 yes)
9d54db95 9276 if test yes = "$GCC"; then
a243b558
JF
9277 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9278 fi
9279 ;; #(
9280 /*)
9281 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9282 ;; #(
9283 no|'')
9284 ;; #(
9285 *)
9d54db95
JF
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9287$as_echo "$with_sysroot" >&6; }
a243b558
JF
9288 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9289 ;;
9290esac
9c60689e 9291
a243b558
JF
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9293$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
9294
9295
9296
9297
9298
9d54db95
JF
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9300$as_echo_n "checking for a working dd... " >&6; }
9301if ${ac_cv_path_lt_DD+:} false; then :
9302 $as_echo_n "(cached) " >&6
9303else
9304 printf 0123456789abcdef0123456789abcdef >conftest.i
9305cat conftest.i conftest.i >conftest2.i
9306: ${lt_DD:=$DD}
9307if test -z "$lt_DD"; then
9308 ac_path_lt_DD_found=false
9309 # Loop through the user's path and test for each of PROGNAME-LIST
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311for as_dir in $PATH
9312do
9313 IFS=$as_save_IFS
9314 test -z "$as_dir" && as_dir=.
9315 for ac_prog in dd; do
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9318 as_fn_executable_p "$ac_path_lt_DD" || continue
9319if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9320 cmp -s conftest.i conftest.out \
9321 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9322fi
9323 $ac_path_lt_DD_found && break 3
9324 done
9325 done
9326 done
9327IFS=$as_save_IFS
9328 if test -z "$ac_cv_path_lt_DD"; then
9329 :
9330 fi
9331else
9332 ac_cv_path_lt_DD=$lt_DD
9333fi
9334
9335rm -f conftest.i conftest2.i conftest.out
9336fi
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9338$as_echo "$ac_cv_path_lt_DD" >&6; }
9339
9340
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9342$as_echo_n "checking how to truncate binary pipes... " >&6; }
9343if ${lt_cv_truncate_bin+:} false; then :
9344 $as_echo_n "(cached) " >&6
9345else
9346 printf 0123456789abcdef0123456789abcdef >conftest.i
9347cat conftest.i conftest.i >conftest2.i
9348lt_cv_truncate_bin=
9349if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9350 cmp -s conftest.i conftest.out \
9351 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9352fi
9353rm -f conftest.i conftest2.i conftest.out
9354test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9355fi
9356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9357$as_echo "$lt_cv_truncate_bin" >&6; }
9358
9359
9360
9361
9362
9363
9364
9365# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9366func_cc_basename ()
9367{
9368 for cc_temp in $*""; do
9369 case $cc_temp in
9370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9372 \-*) ;;
9373 *) break;;
9374 esac
9375 done
9376 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9377}
9378
a243b558
JF
9379# Check whether --enable-libtool-lock was given.
9380if test "${enable_libtool_lock+set}" = set; then :
9381 enableval=$enable_libtool_lock;
9c60689e
DWT
9382fi
9383
9d54db95 9384test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9c60689e 9385
a243b558
JF
9386# Some flags need to be propagated to the compiler or linker for good
9387# libtool support.
9388case $host in
9389ia64-*-hpux*)
9d54db95
JF
9390 # Find out what ABI is being produced by ac_compile, and set mode
9391 # options accordingly.
a243b558
JF
9392 echo 'int i;' > conftest.$ac_ext
9393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9394 (eval $ac_compile) 2>&5
9395 ac_status=$?
9396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9397 test $ac_status = 0; }; then
9398 case `/usr/bin/file conftest.$ac_objext` in
9399 *ELF-32*)
9d54db95 9400 HPUX_IA64_MODE=32
a243b558
JF
9401 ;;
9402 *ELF-64*)
9d54db95 9403 HPUX_IA64_MODE=64
a243b558
JF
9404 ;;
9405 esac
9406 fi
9407 rm -rf conftest*
9408 ;;
9409*-*-irix6*)
9d54db95
JF
9410 # Find out what ABI is being produced by ac_compile, and set linker
9411 # options accordingly.
a243b558
JF
9412 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9414 (eval $ac_compile) 2>&5
9415 ac_status=$?
9416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9417 test $ac_status = 0; }; then
9d54db95 9418 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
9419 case `/usr/bin/file conftest.$ac_objext` in
9420 *32-bit*)
9421 LD="${LD-ld} -melf32bsmip"
9422 ;;
9423 *N32*)
9424 LD="${LD-ld} -melf32bmipn32"
9425 ;;
9426 *64-bit*)
9427 LD="${LD-ld} -melf64bmip"
9428 ;;
9429 esac
9430 else
9431 case `/usr/bin/file conftest.$ac_objext` in
9432 *32-bit*)
9433 LD="${LD-ld} -32"
9434 ;;
9435 *N32*)
9436 LD="${LD-ld} -n32"
9437 ;;
9438 *64-bit*)
9439 LD="${LD-ld} -64"
9440 ;;
9441 esac
9442 fi
9443 fi
9444 rm -rf conftest*
9445 ;;
9c60689e 9446
9d54db95
JF
9447mips64*-*linux*)
9448 # Find out what ABI is being produced by ac_compile, and set linker
9449 # options accordingly.
9450 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9452 (eval $ac_compile) 2>&5
9453 ac_status=$?
9454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9455 test $ac_status = 0; }; then
9456 emul=elf
9457 case `/usr/bin/file conftest.$ac_objext` in
9458 *32-bit*)
9459 emul="${emul}32"
9460 ;;
9461 *64-bit*)
9462 emul="${emul}64"
9463 ;;
9464 esac
9465 case `/usr/bin/file conftest.$ac_objext` in
9466 *MSB*)
9467 emul="${emul}btsmip"
9468 ;;
9469 *LSB*)
9470 emul="${emul}ltsmip"
9471 ;;
9472 esac
9473 case `/usr/bin/file conftest.$ac_objext` in
9474 *N32*)
9475 emul="${emul}n32"
9476 ;;
9477 esac
9478 LD="${LD-ld} -m $emul"
9479 fi
9480 rm -rf conftest*
9481 ;;
9482
9483x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
a243b558 9484s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9d54db95
JF
9485 # Find out what ABI is being produced by ac_compile, and set linker
9486 # options accordingly. Note that the listed cases only cover the
9487 # situations where additional linker options are needed (such as when
9488 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9489 # vice versa); the common cases where no linker options are needed do
9490 # not appear in the list.
a243b558
JF
9491 echo 'int i;' > conftest.$ac_ext
9492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9493 (eval $ac_compile) 2>&5
9494 ac_status=$?
9495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9496 test $ac_status = 0; }; then
9497 case `/usr/bin/file conftest.o` in
9498 *32-bit*)
9499 case $host in
9500 x86_64-*kfreebsd*-gnu)
9501 LD="${LD-ld} -m elf_i386_fbsd"
9502 ;;
9503 x86_64-*linux*)
9d54db95
JF
9504 case `/usr/bin/file conftest.o` in
9505 *x86-64*)
9506 LD="${LD-ld} -m elf32_x86_64"
9507 ;;
9508 *)
9509 LD="${LD-ld} -m elf_i386"
9510 ;;
9511 esac
a243b558 9512 ;;
9d54db95
JF
9513 powerpc64le-*linux*)
9514 LD="${LD-ld} -m elf32lppclinux"
9515 ;;
9516 powerpc64-*linux*)
a243b558
JF
9517 LD="${LD-ld} -m elf32ppclinux"
9518 ;;
9519 s390x-*linux*)
9520 LD="${LD-ld} -m elf_s390"
9521 ;;
9522 sparc64-*linux*)
9523 LD="${LD-ld} -m elf32_sparc"
9524 ;;
9525 esac
9526 ;;
9527 *64-bit*)
9528 case $host in
9529 x86_64-*kfreebsd*-gnu)
9530 LD="${LD-ld} -m elf_x86_64_fbsd"
9531 ;;
9532 x86_64-*linux*)
9533 LD="${LD-ld} -m elf_x86_64"
9534 ;;
9d54db95
JF
9535 powerpcle-*linux*)
9536 LD="${LD-ld} -m elf64lppc"
9537 ;;
9538 powerpc-*linux*)
a243b558
JF
9539 LD="${LD-ld} -m elf64ppc"
9540 ;;
9541 s390*-*linux*|s390*-*tpf*)
9542 LD="${LD-ld} -m elf64_s390"
9543 ;;
9544 sparc*-*linux*)
9545 LD="${LD-ld} -m elf64_sparc"
9546 ;;
9547 esac
9548 ;;
9549 esac
9550 fi
9551 rm -rf conftest*
9552 ;;
9c60689e 9553
a243b558
JF
9554*-*-sco3.2v5*)
9555 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9d54db95 9556 SAVE_CFLAGS=$CFLAGS
a243b558
JF
9557 CFLAGS="$CFLAGS -belf"
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9559$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9560if ${lt_cv_cc_needs_belf+:} false; then :
9561 $as_echo_n "(cached) " >&6
9562else
9563 ac_ext=c
9564ac_cpp='$CPP $CPPFLAGS'
9565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9567ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 9568
a243b558
JF
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h. */
9c60689e 9571
a243b558
JF
9572int
9573main ()
9574{
9c60689e 9575
a243b558
JF
9576 ;
9577 return 0;
9578}
9579_ACEOF
9580if ac_fn_c_try_link "$LINENO"; then :
9581 lt_cv_cc_needs_belf=yes
9c60689e 9582else
a243b558 9583 lt_cv_cc_needs_belf=no
9c60689e 9584fi
a243b558
JF
9585rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 ac_ext=c
9588ac_cpp='$CPP $CPPFLAGS'
9589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9591ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 9592
a243b558
JF
9593fi
9594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9595$as_echo "$lt_cv_cc_needs_belf" >&6; }
9d54db95 9596 if test yes != "$lt_cv_cc_needs_belf"; then
a243b558 9597 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9d54db95 9598 CFLAGS=$SAVE_CFLAGS
a243b558
JF
9599 fi
9600 ;;
9601*-*solaris*)
9d54db95
JF
9602 # Find out what ABI is being produced by ac_compile, and set linker
9603 # options accordingly.
a243b558
JF
9604 echo 'int i;' > conftest.$ac_ext
9605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9606 (eval $ac_compile) 2>&5
9607 ac_status=$?
9608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9609 test $ac_status = 0; }; then
9610 case `/usr/bin/file conftest.o` in
9611 *64-bit*)
9612 case $lt_cv_prog_gnu_ld in
9613 yes*)
9614 case $host in
9d54db95 9615 i?86-*-solaris*|x86_64-*-solaris*)
a243b558
JF
9616 LD="${LD-ld} -m elf_x86_64"
9617 ;;
9618 sparc*-*-solaris*)
9619 LD="${LD-ld} -m elf64_sparc"
9620 ;;
9621 esac
9622 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9623 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9d54db95 9624 LD=${LD-ld}_sol2
a243b558
JF
9625 fi
9626 ;;
9627 *)
9628 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9629 LD="${LD-ld} -64"
9630 fi
9631 ;;
9632 esac
9633 ;;
9634 esac
9635 fi
9636 rm -rf conftest*
9637 ;;
9638esac
9c60689e 9639
9d54db95 9640need_locks=$enable_libtool_lock
9c60689e 9641
a243b558
JF
9642if test -n "$ac_tool_prefix"; then
9643 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9644set dummy ${ac_tool_prefix}mt; ac_word=$2
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646$as_echo_n "checking for $ac_word... " >&6; }
9647if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649else
9650 if test -n "$MANIFEST_TOOL"; then
9651 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9652else
9653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654for as_dir in $PATH
9655do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9663 fi
9664done
9665 done
9666IFS=$as_save_IFS
9c60689e 9667
a243b558
JF
9668fi
9669fi
9670MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9671if test -n "$MANIFEST_TOOL"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9673$as_echo "$MANIFEST_TOOL" >&6; }
9674else
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676$as_echo "no" >&6; }
9677fi
9c60689e
DWT
9678
9679
a243b558
JF
9680fi
9681if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9682 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9683 # Extract the first word of "mt", so it can be a program name with args.
9684set dummy mt; ac_word=$2
9685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9686$as_echo_n "checking for $ac_word... " >&6; }
9687if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689else
9690 if test -n "$ac_ct_MANIFEST_TOOL"; then
9691 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9692else
9693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694for as_dir in $PATH
9695do
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9700 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9703 fi
9704done
9705 done
9706IFS=$as_save_IFS
9c60689e 9707
a243b558
JF
9708fi
9709fi
9710ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9711if test -n "$ac_ct_MANIFEST_TOOL"; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9713$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9714else
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9716$as_echo "no" >&6; }
9717fi
9c60689e 9718
a243b558
JF
9719 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9720 MANIFEST_TOOL=":"
9721 else
9722 case $cross_compiling:$ac_tool_warned in
9723yes:)
9724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9726ac_tool_warned=yes ;;
9727esac
9728 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9729 fi
9730else
9731 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9732fi
9c60689e 9733
a243b558
JF
9734test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9736$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9737if ${lt_cv_path_mainfest_tool+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739else
9740 lt_cv_path_mainfest_tool=no
9741 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9742 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9743 cat conftest.err >&5
9744 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9745 lt_cv_path_mainfest_tool=yes
9746 fi
00a96142 9747 rm -rf conftest*
a243b558
JF
9748fi
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9750$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9d54db95 9751if test yes != "$lt_cv_path_mainfest_tool"; then
a243b558
JF
9752 MANIFEST_TOOL=:
9753fi
9c60689e
DWT
9754
9755
9756
9757
9758
9759
a243b558
JF
9760 case $host_os in
9761 rhapsody* | darwin*)
9762 if test -n "$ac_tool_prefix"; then
9763 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9764set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766$as_echo_n "checking for $ac_word... " >&6; }
9767if ${ac_cv_prog_DSYMUTIL+:} false; then :
9768 $as_echo_n "(cached) " >&6
9769else
9770 if test -n "$DSYMUTIL"; then
9771 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9772else
9773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774for as_dir in $PATH
9775do
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9780 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9783 fi
9784done
9785 done
9786IFS=$as_save_IFS
9c60689e 9787
a243b558
JF
9788fi
9789fi
9790DSYMUTIL=$ac_cv_prog_DSYMUTIL
9791if test -n "$DSYMUTIL"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9793$as_echo "$DSYMUTIL" >&6; }
9794else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796$as_echo "no" >&6; }
9797fi
9c60689e
DWT
9798
9799
9c60689e 9800fi
a243b558
JF
9801if test -z "$ac_cv_prog_DSYMUTIL"; then
9802 ac_ct_DSYMUTIL=$DSYMUTIL
9803 # Extract the first word of "dsymutil", so it can be a program name with args.
9804set dummy dsymutil; ac_word=$2
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806$as_echo_n "checking for $ac_word... " >&6; }
9807if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
9808 $as_echo_n "(cached) " >&6
9809else
a243b558
JF
9810 if test -n "$ac_ct_DSYMUTIL"; then
9811 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 9812else
a243b558
JF
9813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814for as_dir in $PATH
9815do
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9820 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 break 2
9823 fi
9824done
9825 done
9826IFS=$as_save_IFS
9827
9c60689e 9828fi
9c60689e 9829fi
a243b558
JF
9830ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9831if test -n "$ac_ct_DSYMUTIL"; then
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9833$as_echo "$ac_ct_DSYMUTIL" >&6; }
9834else
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836$as_echo "no" >&6; }
9837fi
9c60689e 9838
a243b558
JF
9839 if test "x$ac_ct_DSYMUTIL" = x; then
9840 DSYMUTIL=":"
9841 else
9842 case $cross_compiling:$ac_tool_warned in
9843yes:)
9844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9846ac_tool_warned=yes ;;
9c60689e 9847esac
a243b558
JF
9848 DSYMUTIL=$ac_ct_DSYMUTIL
9849 fi
9850else
9851 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9852fi
9c60689e 9853
a243b558
JF
9854 if test -n "$ac_tool_prefix"; then
9855 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9856set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858$as_echo_n "checking for $ac_word... " >&6; }
9859if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
9860 $as_echo_n "(cached) " >&6
9861else
a243b558
JF
9862 if test -n "$NMEDIT"; then
9863 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9864else
9865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866for as_dir in $PATH
9867do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9872 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874 break 2
9875 fi
9876done
9c60689e 9877 done
a243b558 9878IFS=$as_save_IFS
9c60689e 9879
a243b558
JF
9880fi
9881fi
9882NMEDIT=$ac_cv_prog_NMEDIT
9883if test -n "$NMEDIT"; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9885$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
9886else
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888$as_echo "no" >&6; }
9889fi
9890
9891
a243b558
JF
9892fi
9893if test -z "$ac_cv_prog_NMEDIT"; then
9894 ac_ct_NMEDIT=$NMEDIT
9895 # Extract the first word of "nmedit", so it can be a program name with args.
9896set dummy nmedit; ac_word=$2
9897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898$as_echo_n "checking for $ac_word... " >&6; }
9899if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
9900 $as_echo_n "(cached) " >&6
9901else
a243b558
JF
9902 if test -n "$ac_ct_NMEDIT"; then
9903 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9904else
9905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906for as_dir in $PATH
9907do
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9912 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9914 break 2
9915 fi
9916done
9c60689e 9917 done
a243b558 9918IFS=$as_save_IFS
9c60689e 9919
a243b558
JF
9920fi
9921fi
9922ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9923if test -n "$ac_ct_NMEDIT"; then
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9925$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
9926else
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928$as_echo "no" >&6; }
9929fi
9930
a243b558
JF
9931 if test "x$ac_ct_NMEDIT" = x; then
9932 NMEDIT=":"
9c60689e 9933 else
a243b558
JF
9934 case $cross_compiling:$ac_tool_warned in
9935yes:)
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9938ac_tool_warned=yes ;;
9939esac
9940 NMEDIT=$ac_ct_NMEDIT
9c60689e 9941 fi
a243b558
JF
9942else
9943 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
9944fi
9945
a243b558
JF
9946 if test -n "$ac_tool_prefix"; then
9947 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9948set dummy ${ac_tool_prefix}lipo; ac_word=$2
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950$as_echo_n "checking for $ac_word... " >&6; }
9951if ${ac_cv_prog_LIPO+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953else
9954 if test -n "$LIPO"; then
9955 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9956else
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968done
9969 done
9970IFS=$as_save_IFS
9c60689e 9971
a243b558
JF
9972fi
9973fi
9974LIPO=$ac_cv_prog_LIPO
9975if test -n "$LIPO"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9977$as_echo "$LIPO" >&6; }
9978else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980$as_echo "no" >&6; }
9981fi
9c60689e 9982
9c60689e 9983
a243b558
JF
9984fi
9985if test -z "$ac_cv_prog_LIPO"; then
9986 ac_ct_LIPO=$LIPO
9987 # Extract the first word of "lipo", so it can be a program name with args.
9988set dummy lipo; ac_word=$2
9989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990$as_echo_n "checking for $ac_word... " >&6; }
9991if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
9992 $as_echo_n "(cached) " >&6
9993else
a243b558
JF
9994 if test -n "$ac_ct_LIPO"; then
9995 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9996else
9997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998for as_dir in $PATH
9999do
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10004 ac_cv_prog_ac_ct_LIPO="lipo"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10007 fi
10008done
10009 done
10010IFS=$as_save_IFS
9c60689e
DWT
10011
10012fi
a243b558
JF
10013fi
10014ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10015if test -n "$ac_ct_LIPO"; then
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10017$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 10018else
a243b558
JF
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10020$as_echo "no" >&6; }
9c60689e
DWT
10021fi
10022
a243b558
JF
10023 if test "x$ac_ct_LIPO" = x; then
10024 LIPO=":"
10025 else
10026 case $cross_compiling:$ac_tool_warned in
10027yes:)
10028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10030ac_tool_warned=yes ;;
10031esac
10032 LIPO=$ac_ct_LIPO
10033 fi
10034else
10035 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
10036fi
10037
a243b558
JF
10038 if test -n "$ac_tool_prefix"; then
10039 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10040set dummy ${ac_tool_prefix}otool; ac_word=$2
10041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042$as_echo_n "checking for $ac_word... " >&6; }
10043if ${ac_cv_prog_OTOOL+:} false; then :
10044 $as_echo_n "(cached) " >&6
10045else
10046 if test -n "$OTOOL"; then
10047 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10048else
10049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050for as_dir in $PATH
10051do
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10056 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 break 2
10059 fi
10060done
10061 done
10062IFS=$as_save_IFS
9c60689e 10063
a243b558
JF
10064fi
10065fi
10066OTOOL=$ac_cv_prog_OTOOL
10067if test -n "$OTOOL"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10069$as_echo "$OTOOL" >&6; }
10070else
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072$as_echo "no" >&6; }
10073fi
9c60689e
DWT
10074
10075
a243b558
JF
10076fi
10077if test -z "$ac_cv_prog_OTOOL"; then
10078 ac_ct_OTOOL=$OTOOL
10079 # Extract the first word of "otool", so it can be a program name with args.
10080set dummy otool; ac_word=$2
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082$as_echo_n "checking for $ac_word... " >&6; }
10083if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085else
10086 if test -n "$ac_ct_OTOOL"; then
10087 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10088else
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_prog_ac_ct_OTOOL="otool"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10099 fi
10100done
10101 done
10102IFS=$as_save_IFS
9c60689e 10103
a243b558
JF
10104fi
10105fi
10106ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10107if test -n "$ac_ct_OTOOL"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10109$as_echo "$ac_ct_OTOOL" >&6; }
10110else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112$as_echo "no" >&6; }
10113fi
9c60689e 10114
a243b558
JF
10115 if test "x$ac_ct_OTOOL" = x; then
10116 OTOOL=":"
10117 else
10118 case $cross_compiling:$ac_tool_warned in
10119yes:)
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10122ac_tool_warned=yes ;;
10123esac
10124 OTOOL=$ac_ct_OTOOL
10125 fi
10126else
10127 OTOOL="$ac_cv_prog_OTOOL"
10128fi
9c60689e 10129
a243b558
JF
10130 if test -n "$ac_tool_prefix"; then
10131 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10132set dummy ${ac_tool_prefix}otool64; ac_word=$2
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134$as_echo_n "checking for $ac_word... " >&6; }
10135if ${ac_cv_prog_OTOOL64+:} false; then :
10136 $as_echo_n "(cached) " >&6
10137else
10138 if test -n "$OTOOL64"; then
10139 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10140else
10141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142for as_dir in $PATH
10143do
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10151 fi
10152done
10153 done
10154IFS=$as_save_IFS
9c60689e 10155
a243b558
JF
10156fi
10157fi
10158OTOOL64=$ac_cv_prog_OTOOL64
10159if test -n "$OTOOL64"; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10161$as_echo "$OTOOL64" >&6; }
10162else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164$as_echo "no" >&6; }
10165fi
9c60689e 10166
9c60689e 10167
a243b558
JF
10168fi
10169if test -z "$ac_cv_prog_OTOOL64"; then
10170 ac_ct_OTOOL64=$OTOOL64
10171 # Extract the first word of "otool64", so it can be a program name with args.
10172set dummy otool64; ac_word=$2
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174$as_echo_n "checking for $ac_word... " >&6; }
10175if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10176 $as_echo_n "(cached) " >&6
10177else
10178 if test -n "$ac_ct_OTOOL64"; then
10179 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10180else
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10188 ac_cv_prog_ac_ct_OTOOL64="otool64"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10191 fi
10192done
10193 done
10194IFS=$as_save_IFS
9c60689e 10195
a243b558
JF
10196fi
10197fi
10198ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10199if test -n "$ac_ct_OTOOL64"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10201$as_echo "$ac_ct_OTOOL64" >&6; }
10202else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
10205fi
9c60689e 10206
a243b558
JF
10207 if test "x$ac_ct_OTOOL64" = x; then
10208 OTOOL64=":"
10209 else
10210 case $cross_compiling:$ac_tool_warned in
10211yes:)
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10214ac_tool_warned=yes ;;
10215esac
10216 OTOOL64=$ac_ct_OTOOL64
10217 fi
10218else
10219 OTOOL64="$ac_cv_prog_OTOOL64"
10220fi
ee134472 10221
9c60689e 10222
9c60689e 10223
9c60689e 10224
9c60689e 10225
9c60689e 10226
ee134472 10227
9c60689e 10228
9c60689e 10229
9c60689e 10230
9c60689e 10231
9c60689e 10232
9c60689e 10233
9c60689e 10234
9c60689e 10235
9c60689e 10236
9c60689e 10237
9c60689e 10238
9c60689e 10239
9c60689e 10240
9c60689e 10241
9c60689e 10242
9c60689e 10243
9c60689e 10244
9c60689e 10245
a243b558
JF
10246
10247
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10249$as_echo_n "checking for -single_module linker flag... " >&6; }
10250if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
10251 $as_echo_n "(cached) " >&6
10252else
a243b558 10253 lt_cv_apple_cc_single_mod=no
9d54db95 10254 if test -z "$LT_MULTI_MODULE"; then
a243b558
JF
10255 # By default we will add the -single_module flag. You can override
10256 # by either setting the environment variable LT_MULTI_MODULE
10257 # non-empty at configure time, or by adding -multi_module to the
10258 # link flags.
10259 rm -rf libconftest.dylib*
10260 echo "int foo(void){return 1;}" > conftest.c
10261 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10262-dynamiclib -Wl,-single_module conftest.c" >&5
10263 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10264 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10265 _lt_result=$?
10266 # If there is a non-empty error log, and "single_module"
10267 # appears in it, assume the flag caused a linker warning
10268 if test -s conftest.err && $GREP single_module conftest.err; then
10269 cat conftest.err >&5
10270 # Otherwise, if the output was created with a 0 exit code from
10271 # the compiler, it worked.
9d54db95 10272 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a243b558
JF
10273 lt_cv_apple_cc_single_mod=yes
10274 else
10275 cat conftest.err >&5
10276 fi
10277 rm -rf libconftest.dylib*
10278 rm -f conftest.*
10279 fi
ee134472 10280fi
a243b558
JF
10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10282$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 10283
a243b558
JF
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10285$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10286if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
10287 $as_echo_n "(cached) " >&6
10288else
a243b558
JF
10289 lt_cv_ld_exported_symbols_list=no
10290 save_LDFLAGS=$LDFLAGS
10291 echo "_main" > conftest.sym
10292 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294/* end confdefs.h. */
9c60689e 10295
a243b558
JF
10296int
10297main ()
10298{
9c60689e 10299
a243b558
JF
10300 ;
10301 return 0;
10302}
10303_ACEOF
10304if ac_fn_c_try_link "$LINENO"; then :
10305 lt_cv_ld_exported_symbols_list=yes
9c60689e 10306else
a243b558 10307 lt_cv_ld_exported_symbols_list=no
9c60689e 10308fi
a243b558
JF
10309rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
9d54db95 10311 LDFLAGS=$save_LDFLAGS
9c60689e
DWT
10312
10313fi
a243b558
JF
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10315$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 10316
a243b558
JF
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10318$as_echo_n "checking for -force_load linker flag... " >&6; }
10319if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
10320 $as_echo_n "(cached) " >&6
10321else
a243b558
JF
10322 lt_cv_ld_force_load=no
10323 cat > conftest.c << _LT_EOF
10324int forced_loaded() { return 2;}
10325_LT_EOF
10326 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10327 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10328 echo "$AR cru libconftest.a conftest.o" >&5
10329 $AR cru libconftest.a conftest.o 2>&5
10330 echo "$RANLIB libconftest.a" >&5
10331 $RANLIB libconftest.a 2>&5
10332 cat > conftest.c << _LT_EOF
10333int main() { return 0;}
10334_LT_EOF
10335 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10336 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10337 _lt_result=$?
10338 if test -s conftest.err && $GREP force_load conftest.err; then
10339 cat conftest.err >&5
9d54db95 10340 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
a243b558
JF
10341 lt_cv_ld_force_load=yes
10342 else
10343 cat conftest.err >&5
10344 fi
10345 rm -f conftest.err libconftest.a conftest conftest.c
10346 rm -rf conftest.dSYM
9c60689e
DWT
10347
10348fi
a243b558
JF
10349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10350$as_echo "$lt_cv_ld_force_load" >&6; }
10351 case $host_os in
10352 rhapsody* | darwin1.[012])
9d54db95 10353 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
a243b558 10354 darwin1.*)
9d54db95 10355 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558
JF
10356 darwin*) # darwin 5.x on
10357 # if running on 10.5 or later, the deployment target defaults
10358 # to the OS version, if on x86, and 10.4, the deployment
10359 # target defaults to 10.4. Don't you love it?
10360 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10361 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9d54db95
JF
10362 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10363 10.[012][,.]*)
10364 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558 10365 10.*)
9d54db95 10366 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
a243b558
JF
10367 esac
10368 ;;
10369 esac
9d54db95 10370 if test yes = "$lt_cv_apple_cc_single_mod"; then
a243b558
JF
10371 _lt_dar_single_mod='$single_module'
10372 fi
9d54db95
JF
10373 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10374 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
a243b558 10375 else
9d54db95 10376 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
a243b558 10377 fi
9d54db95 10378 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a243b558
JF
10379 _lt_dsymutil='~$DSYMUTIL $lib || :'
10380 else
10381 _lt_dsymutil=
10382 fi
10383 ;;
10384 esac
9c60689e 10385
9d54db95
JF
10386# func_munge_path_list VARIABLE PATH
10387# -----------------------------------
10388# VARIABLE is name of variable containing _space_ separated list of
10389# directories to be munged by the contents of PATH, which is string
10390# having a format:
10391# "DIR[:DIR]:"
10392# string "DIR[ DIR]" will be prepended to VARIABLE
10393# ":DIR[:DIR]"
10394# string "DIR[ DIR]" will be appended to VARIABLE
10395# "DIRP[:DIRP]::[DIRA:]DIRA"
10396# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10397# "DIRA[ DIRA]" will be appended to VARIABLE
10398# "DIR[:DIR]"
10399# VARIABLE will be replaced by "DIR[ DIR]"
10400func_munge_path_list ()
10401{
10402 case x$2 in
10403 x)
10404 ;;
10405 *:)
10406 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10407 ;;
10408 x:*)
10409 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10410 ;;
10411 *::*)
10412 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10413 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10414 ;;
10415 *)
10416 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10417 ;;
10418 esac
10419}
10420
9c60689e 10421
a243b558
JF
10422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10423$as_echo_n "checking for ANSI C header files... " >&6; }
10424if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
10425 $as_echo_n "(cached) " >&6
10426else
a243b558
JF
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428/* end confdefs.h. */
10429#include <stdlib.h>
10430#include <stdarg.h>
10431#include <string.h>
10432#include <float.h>
9c60689e 10433
a243b558
JF
10434int
10435main ()
10436{
9c60689e 10437
a243b558
JF
10438 ;
10439 return 0;
10440}
10441_ACEOF
10442if ac_fn_c_try_compile "$LINENO"; then :
10443 ac_cv_header_stdc=yes
10444else
10445 ac_cv_header_stdc=no
9c60689e 10446fi
a243b558
JF
10447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448
10449if test $ac_cv_header_stdc = yes; then
10450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452/* end confdefs.h. */
10453#include <string.h>
9c60689e 10454
a243b558
JF
10455_ACEOF
10456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10457 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 10458
a243b558
JF
10459else
10460 ac_cv_header_stdc=no
10461fi
10462rm -f conftest*
9c60689e 10463
a243b558
JF
10464fi
10465
10466if test $ac_cv_header_stdc = yes; then
10467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469/* end confdefs.h. */
10470#include <stdlib.h>
10471
10472_ACEOF
10473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10474 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 10475
9c60689e 10476else
a243b558 10477 ac_cv_header_stdc=no
9c60689e 10478fi
a243b558 10479rm -f conftest*
9c60689e 10480
a243b558 10481fi
9c60689e 10482
a243b558
JF
10483if test $ac_cv_header_stdc = yes; then
10484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10485 if test "$cross_compiling" = yes; then :
10486 :
10487else
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h. */
10490#include <ctype.h>
10491#include <stdlib.h>
10492#if ((' ' & 0x0FF) == 0x020)
10493# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10494# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10495#else
10496# define ISLOWER(c) \
10497 (('a' <= (c) && (c) <= 'i') \
10498 || ('j' <= (c) && (c) <= 'r') \
10499 || ('s' <= (c) && (c) <= 'z'))
10500# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10501#endif
9c60689e 10502
a243b558
JF
10503#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10504int
10505main ()
10506{
10507 int i;
10508 for (i = 0; i < 256; i++)
10509 if (XOR (islower (i), ISLOWER (i))
10510 || toupper (i) != TOUPPER (i))
10511 return 2;
10512 return 0;
10513}
10514_ACEOF
10515if ac_fn_c_try_run "$LINENO"; then :
9c60689e 10516
a243b558
JF
10517else
10518 ac_cv_header_stdc=no
10519fi
10520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10521 conftest.$ac_objext conftest.beam conftest.$ac_ext
10522fi
9c60689e 10523
a243b558
JF
10524fi
10525fi
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10527$as_echo "$ac_cv_header_stdc" >&6; }
10528if test $ac_cv_header_stdc = yes; then
9c60689e 10529
a243b558 10530$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 10531
a243b558 10532fi
9c60689e 10533
a243b558
JF
10534# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10535for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10536 inttypes.h stdint.h unistd.h
10537do :
10538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10539ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10540"
10541if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10542 cat >>confdefs.h <<_ACEOF
10543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10544_ACEOF
9c60689e 10545
a243b558 10546fi
ee134472 10547
a243b558 10548done
ee134472 10549
9c60689e 10550
a243b558
JF
10551for ac_header in dlfcn.h
10552do :
10553 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10554"
10555if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10556 cat >>confdefs.h <<_ACEOF
10557#define HAVE_DLFCN_H 1
10558_ACEOF
9c60689e 10559
a243b558 10560fi
9c60689e 10561
a243b558 10562done
9c60689e 10563
9c60689e 10564
9c60689e 10565
9c60689e 10566
a243b558
JF
10567func_stripname_cnf ()
10568{
9d54db95
JF
10569 case $2 in
10570 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10571 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
a243b558
JF
10572 esac
10573} # func_stripname_cnf
9c60689e 10574
9c60689e 10575
ee134472 10576
a243b558
JF
10577
10578
10579# Set options
10580# Check whether --enable-static was given.
10581if test "${enable_static+set}" = set; then :
10582 enableval=$enable_static; p=${PACKAGE-default}
10583 case $enableval in
10584 yes) enable_static=yes ;;
10585 no) enable_static=no ;;
10586 *)
10587 enable_static=no
10588 # Look at the argument we got. We use all the common list separators.
9d54db95 10589 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10590 for pkg in $enableval; do
9d54db95 10591 IFS=$lt_save_ifs
a243b558
JF
10592 if test "X$pkg" = "X$p"; then
10593 enable_static=yes
10594 fi
10595 done
9d54db95 10596 IFS=$lt_save_ifs
9c60689e 10597 ;;
a243b558
JF
10598 esac
10599else
10600 enable_static=no
10601fi
9c60689e 10602
9c60689e 10603
9c60689e 10604
9c60689e 10605
9c60689e 10606
9c60689e 10607
9c60689e 10608
9c60689e 10609
9c60689e 10610
9c60689e 10611
a243b558 10612 enable_dlopen=no
9c60689e 10613
9c60689e 10614
a243b558
JF
10615 enable_win32_dll=no
10616
10617
10618 # Check whether --enable-shared was given.
10619if test "${enable_shared+set}" = set; then :
10620 enableval=$enable_shared; p=${PACKAGE-default}
10621 case $enableval in
10622 yes) enable_shared=yes ;;
10623 no) enable_shared=no ;;
9c60689e 10624 *)
a243b558
JF
10625 enable_shared=no
10626 # Look at the argument we got. We use all the common list separators.
9d54db95 10627 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10628 for pkg in $enableval; do
9d54db95 10629 IFS=$lt_save_ifs
a243b558
JF
10630 if test "X$pkg" = "X$p"; then
10631 enable_shared=yes
10632 fi
10633 done
9d54db95 10634 IFS=$lt_save_ifs
9c60689e
DWT
10635 ;;
10636 esac
a243b558
JF
10637else
10638 enable_shared=yes
10639fi
9c60689e 10640
9c60689e 10641
9c60689e 10642
9c60689e 10643
9c60689e 10644
9c60689e 10645
9c60689e 10646
9c60689e 10647
9c60689e 10648
9c60689e 10649
9c60689e 10650
a243b558
JF
10651# Check whether --with-pic was given.
10652if test "${with_pic+set}" = set; then :
10653 withval=$with_pic; lt_p=${PACKAGE-default}
10654 case $withval in
10655 yes|no) pic_mode=$withval ;;
10656 *)
10657 pic_mode=default
10658 # Look at the argument we got. We use all the common list separators.
9d54db95 10659 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10660 for lt_pkg in $withval; do
9d54db95 10661 IFS=$lt_save_ifs
a243b558
JF
10662 if test "X$lt_pkg" = "X$lt_p"; then
10663 pic_mode=yes
10664 fi
10665 done
9d54db95 10666 IFS=$lt_save_ifs
a243b558
JF
10667 ;;
10668 esac
10669else
10670 pic_mode=default
9c60689e 10671fi
ee134472 10672
ee134472 10673
9c60689e 10674
9c60689e 10675
9c60689e 10676
ee134472 10677
ee134472 10678
9c60689e 10679
a243b558
JF
10680 # Check whether --enable-fast-install was given.
10681if test "${enable_fast_install+set}" = set; then :
10682 enableval=$enable_fast_install; p=${PACKAGE-default}
10683 case $enableval in
10684 yes) enable_fast_install=yes ;;
10685 no) enable_fast_install=no ;;
10686 *)
10687 enable_fast_install=no
10688 # Look at the argument we got. We use all the common list separators.
9d54db95 10689 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10690 for pkg in $enableval; do
9d54db95 10691 IFS=$lt_save_ifs
a243b558
JF
10692 if test "X$pkg" = "X$p"; then
10693 enable_fast_install=yes
9c60689e 10694 fi
a243b558 10695 done
9d54db95 10696 IFS=$lt_save_ifs
9c60689e 10697 ;;
a243b558
JF
10698 esac
10699else
10700 enable_fast_install=yes
10701fi
9c60689e 10702
9c60689e 10703
9c60689e 10704
9c60689e 10705
9c60689e
DWT
10706
10707
53ba6704 10708
9c60689e 10709
9d54db95
JF
10710 shared_archive_member_spec=
10711case $host,$enable_shared in
10712power*-*-aix[5-9]*,yes)
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10714$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10715
10716# Check whether --with-aix-soname was given.
10717if test "${with_aix_soname+set}" = set; then :
10718 withval=$with_aix_soname; case $withval in
10719 aix|svr4|both)
10720 ;;
10721 *)
10722 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10723 ;;
10724 esac
10725 lt_cv_with_aix_soname=$with_aix_soname
10726else
10727 if ${lt_cv_with_aix_soname+:} false; then :
10728 $as_echo_n "(cached) " >&6
10729else
10730 lt_cv_with_aix_soname=aix
10731fi
10732
10733 with_aix_soname=$lt_cv_with_aix_soname
10734fi
10735
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10737$as_echo "$with_aix_soname" >&6; }
10738 if test aix != "$with_aix_soname"; then
10739 # For the AIX way of multilib, we name the shared archive member
10740 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10741 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10742 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10743 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10744 if test 64 = "${OBJECT_MODE-32}"; then
10745 shared_archive_member_spec=shr_64
10746 else
10747 shared_archive_member_spec=shr
10748 fi
10749 fi
10750 ;;
10751*)
10752 with_aix_soname=aix
10753 ;;
10754esac
10755
10756
10757
10758
10759
10760
10761
9c60689e 10762
9c60689e 10763
9c60689e 10764
a243b558 10765# This can be used to rebuild libtool when needed
9d54db95 10766LIBTOOL_DEPS=$ltmain
9c60689e 10767
a243b558
JF
10768# Always use our own libtool.
10769LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 10770
9c60689e 10771
9c60689e 10772
9c60689e 10773
9c60689e 10774
ee134472 10775
ee134472 10776
ee134472 10777
ee134472 10778
9c60689e 10779
9c60689e 10780
9c60689e 10781
9c60689e 10782
9c60689e 10783
9c60689e 10784
9c60689e 10785
9c60689e 10786
9c60689e 10787
9c60689e 10788
9c60689e 10789
9c60689e 10790
9c60689e 10791
9c60689e 10792
9c60689e 10793
9c60689e 10794
9c60689e 10795
9c60689e 10796
9c60689e 10797
9c60689e 10798
9c60689e 10799
a243b558 10800test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
9d54db95 10815if test -n "${ZSH_VERSION+set}"; then
a243b558
JF
10816 setopt NO_GLOB_SUBST
10817fi
9c60689e 10818
a243b558
JF
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10820$as_echo_n "checking for objdir... " >&6; }
10821if ${lt_cv_objdir+:} false; then :
ee134472
JF
10822 $as_echo_n "(cached) " >&6
10823else
a243b558
JF
10824 rm -f .libs 2>/dev/null
10825mkdir .libs 2>/dev/null
10826if test -d .libs; then
10827 lt_cv_objdir=.libs
10828else
10829 # MS-DOS does not allow filenames that begin with a dot.
10830 lt_cv_objdir=_libs
ee134472 10831fi
a243b558
JF
10832rmdir .libs 2>/dev/null
10833fi
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10835$as_echo "$lt_cv_objdir" >&6; }
10836objdir=$lt_cv_objdir
9c60689e
DWT
10837
10838
10839
10840
10841
a243b558
JF
10842cat >>confdefs.h <<_ACEOF
10843#define LT_OBJDIR "$lt_cv_objdir/"
10844_ACEOF
9c60689e
DWT
10845
10846
10847
10848
a243b558
JF
10849case $host_os in
10850aix3*)
10851 # AIX sometimes has problems with the GCC collect2 program. For some
10852 # reason, if we set the COLLECT_NAMES environment variable, the problems
10853 # vanish in a puff of smoke.
9d54db95 10854 if test set != "${COLLECT_NAMES+set}"; then
a243b558
JF
10855 COLLECT_NAMES=
10856 export COLLECT_NAMES
10857 fi
10858 ;;
10859esac
9c60689e 10860
a243b558
JF
10861# Global variables:
10862ofile=libtool
10863can_build_shared=yes
9c60689e 10864
9d54db95 10865# All known linkers require a '.a' archive for static linking (except MSVC,
a243b558
JF
10866# which needs '.lib').
10867libext=a
9c60689e 10868
9d54db95 10869with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e 10870
9d54db95
JF
10871old_CC=$CC
10872old_CFLAGS=$CFLAGS
9c60689e 10873
a243b558
JF
10874# Set sane defaults for various variables
10875test -z "$CC" && CC=cc
10876test -z "$LTCC" && LTCC=$CC
10877test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10878test -z "$LD" && LD=ld
10879test -z "$ac_objext" && ac_objext=o
9c60689e 10880
9d54db95
JF
10881func_cc_basename $compiler
10882cc_basename=$func_cc_basename_result
9c60689e
DWT
10883
10884
a243b558
JF
10885# Only perform the check for file, if the check method requires it
10886test -z "$MAGIC_CMD" && MAGIC_CMD=file
10887case $deplibs_check_method in
10888file_magic*)
10889 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10891$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10892if ${lt_cv_path_MAGIC_CMD+:} false; then :
10893 $as_echo_n "(cached) " >&6
10894else
10895 case $MAGIC_CMD in
10896[\\/*] | ?:[\\/]*)
9d54db95 10897 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
10898 ;;
10899*)
9d54db95
JF
10900 lt_save_MAGIC_CMD=$MAGIC_CMD
10901 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
10902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10903 for ac_dir in $ac_dummy; do
9d54db95 10904 IFS=$lt_save_ifs
a243b558 10905 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
10906 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10907 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
a243b558
JF
10908 if test -n "$file_magic_test_file"; then
10909 case $deplibs_check_method in
10910 "file_magic "*)
10911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 10912 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10914 $EGREP "$file_magic_regex" > /dev/null; then
10915 :
10916 else
10917 cat <<_LT_EOF 1>&2
9c60689e 10918
a243b558
JF
10919*** Warning: the command libtool uses to detect shared libraries,
10920*** $file_magic_cmd, produces output that libtool cannot recognize.
10921*** The result is that libtool may fail to recognize shared libraries
10922*** as such. This will affect the creation of libtool libraries that
10923*** depend on shared libraries, but programs linked with such libtool
10924*** libraries will work regardless of this problem. Nevertheless, you
10925*** may want to report the problem to your system manager and/or to
10926*** bug-libtool@gnu.org
9c60689e 10927
a243b558
JF
10928_LT_EOF
10929 fi ;;
10930 esac
10931 fi
10932 break
10933 fi
10934 done
9d54db95
JF
10935 IFS=$lt_save_ifs
10936 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
10937 ;;
10938esac
10939fi
9c60689e 10940
9d54db95 10941MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10942if test -n "$MAGIC_CMD"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10944$as_echo "$MAGIC_CMD" >&6; }
10945else
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947$as_echo "no" >&6; }
10948fi
9c60689e
DWT
10949
10950
10951
10952
10953
a243b558
JF
10954if test -z "$lt_cv_path_MAGIC_CMD"; then
10955 if test -n "$ac_tool_prefix"; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10957$as_echo_n "checking for file... " >&6; }
10958if ${lt_cv_path_MAGIC_CMD+:} false; then :
10959 $as_echo_n "(cached) " >&6
10960else
10961 case $MAGIC_CMD in
10962[\\/*] | ?:[\\/]*)
9d54db95 10963 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
10964 ;;
10965*)
9d54db95
JF
10966 lt_save_MAGIC_CMD=$MAGIC_CMD
10967 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
10968 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10969 for ac_dir in $ac_dummy; do
9d54db95 10970 IFS=$lt_save_ifs
a243b558 10971 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
10972 if test -f "$ac_dir/file"; then
10973 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
a243b558
JF
10974 if test -n "$file_magic_test_file"; then
10975 case $deplibs_check_method in
10976 "file_magic "*)
10977 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 10978 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10979 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10980 $EGREP "$file_magic_regex" > /dev/null; then
10981 :
10982 else
10983 cat <<_LT_EOF 1>&2
9c60689e 10984
a243b558
JF
10985*** Warning: the command libtool uses to detect shared libraries,
10986*** $file_magic_cmd, produces output that libtool cannot recognize.
10987*** The result is that libtool may fail to recognize shared libraries
10988*** as such. This will affect the creation of libtool libraries that
10989*** depend on shared libraries, but programs linked with such libtool
10990*** libraries will work regardless of this problem. Nevertheless, you
10991*** may want to report the problem to your system manager and/or to
10992*** bug-libtool@gnu.org
9c60689e 10993
a243b558
JF
10994_LT_EOF
10995 fi ;;
10996 esac
10997 fi
10998 break
10999 fi
11000 done
9d54db95
JF
11001 IFS=$lt_save_ifs
11002 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
11003 ;;
11004esac
11005fi
9c60689e 11006
9d54db95 11007MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
11008if test -n "$MAGIC_CMD"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11010$as_echo "$MAGIC_CMD" >&6; }
11011else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013$as_echo "no" >&6; }
11014fi
9c60689e
DWT
11015
11016
a243b558
JF
11017 else
11018 MAGIC_CMD=:
11019 fi
11020fi
9c60689e 11021
a243b558
JF
11022 fi
11023 ;;
11024esac
9c60689e 11025
a243b558 11026# Use C for the default configuration in the libtool script
9c60689e 11027
9d54db95 11028lt_save_CC=$CC
a243b558
JF
11029ac_ext=c
11030ac_cpp='$CPP $CPPFLAGS'
11031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11033ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
11034
11035
a243b558
JF
11036# Source file extension for C test sources.
11037ac_ext=c
9c60689e 11038
a243b558
JF
11039# Object file extension for compiled C test sources.
11040objext=o
11041objext=$objext
9c60689e 11042
a243b558
JF
11043# Code to be used in simple compile tests
11044lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 11045
a243b558
JF
11046# Code to be used in simple link tests
11047lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
11048
11049
11050
11051
11052
11053
11054
a243b558
JF
11055# If no C compiler was specified, use CC.
11056LTCC=${LTCC-"$CC"}
9c60689e 11057
a243b558
JF
11058# If no C compiler flags were specified, use CFLAGS.
11059LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 11060
a243b558
JF
11061# Allow CC to be a program name with arguments.
11062compiler=$CC
9c60689e 11063
a243b558
JF
11064# Save the default compiler, since it gets overwritten when the other
11065# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11066compiler_DEFAULT=$CC
9c60689e 11067
a243b558
JF
11068# save warnings/boilerplate of simple test code
11069ac_outfile=conftest.$ac_objext
11070echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11071eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11072_lt_compiler_boilerplate=`cat conftest.err`
00a96142 11073$RM -r conftest*
9c60689e 11074
a243b558
JF
11075ac_outfile=conftest.$ac_objext
11076echo "$lt_simple_link_test_code" >conftest.$ac_ext
11077eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11078_lt_linker_boilerplate=`cat conftest.err`
11079$RM -r conftest*
9c60689e
DWT
11080
11081
a243b558
JF
11082## CAVEAT EMPTOR:
11083## There is no encapsulation within the following macros, do not change
11084## the running order or otherwise move them around unless you know exactly
11085## what you are doing...
11086if test -n "$compiler"; then
9c60689e 11087
a243b558 11088lt_prog_compiler_no_builtin_flag=
9c60689e 11089
9d54db95 11090if test yes = "$GCC"; then
a243b558
JF
11091 case $cc_basename in
11092 nvcc*)
11093 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11094 *)
11095 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11096 esac
9c60689e 11097
a243b558
JF
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11099$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11100if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11101 $as_echo_n "(cached) " >&6
11102else
11103 lt_cv_prog_compiler_rtti_exceptions=no
11104 ac_outfile=conftest.$ac_objext
11105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 11106 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
11107 # Insert the option either (1) after the last *FLAGS variable, or
11108 # (2) before a word containing "conftest.", or (3) at the end.
11109 # Note that $ac_compile itself does not contain backslashes and begins
11110 # with a dollar sign (not a hyphen), so the echo should work correctly.
11111 # The option is referenced via a variable to avoid confusing sed.
11112 lt_compile=`echo "$ac_compile" | $SED \
11113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11115 -e 's:$: $lt_compiler_flag:'`
11116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11117 (eval "$lt_compile" 2>conftest.err)
11118 ac_status=$?
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 if (exit $ac_status) && test -s "$ac_outfile"; then
11122 # The compiler can only warn and ignore the option if not recognized
11123 # So say no if there are warnings other than the usual output.
11124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11127 lt_cv_prog_compiler_rtti_exceptions=yes
11128 fi
11129 fi
00a96142 11130 $RM -r conftest*
9c60689e 11131
a243b558
JF
11132fi
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11134$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 11135
9d54db95 11136if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
a243b558
JF
11137 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11138else
11139 :
11140fi
9c60689e 11141
a243b558 11142fi
9c60689e
DWT
11143
11144
11145
11146
11147
11148
a243b558
JF
11149 lt_prog_compiler_wl=
11150lt_prog_compiler_pic=
11151lt_prog_compiler_static=
9c60689e
DWT
11152
11153
9d54db95 11154 if test yes = "$GCC"; then
a243b558
JF
11155 lt_prog_compiler_wl='-Wl,'
11156 lt_prog_compiler_static='-static'
9c60689e 11157
a243b558
JF
11158 case $host_os in
11159 aix*)
11160 # All AIX code is PIC.
9d54db95 11161 if test ia64 = "$host_cpu"; then
a243b558
JF
11162 # AIX 5 now supports IA64 processor
11163 lt_prog_compiler_static='-Bstatic'
11164 fi
9d54db95 11165 lt_prog_compiler_pic='-fPIC'
a243b558 11166 ;;
9c60689e 11167
a243b558
JF
11168 amigaos*)
11169 case $host_cpu in
11170 powerpc)
11171 # see comment about AmigaOS4 .so support
11172 lt_prog_compiler_pic='-fPIC'
11173 ;;
11174 m68k)
11175 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
11176 # adding the '-m68020' flag to GCC prevents building anything better,
11177 # like '-m68040'.
a243b558
JF
11178 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11179 ;;
11180 esac
11181 ;;
9c60689e 11182
a243b558
JF
11183 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11184 # PIC is the default for these OSes.
11185 ;;
9c60689e 11186
a243b558
JF
11187 mingw* | cygwin* | pw32* | os2* | cegcc*)
11188 # This hack is so that the source file can tell whether it is being
11189 # built for inclusion in a dll (and should export symbols for example).
11190 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11191 # (--disable-auto-import) libraries
11192 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
11193 case $host_os in
11194 os2*)
11195 lt_prog_compiler_static='$wl-static'
11196 ;;
11197 esac
a243b558 11198 ;;
9c60689e 11199
a243b558
JF
11200 darwin* | rhapsody*)
11201 # PIC is the default on this platform
11202 # Common symbols not allowed in MH_DYLIB files
11203 lt_prog_compiler_pic='-fno-common'
11204 ;;
9c60689e 11205
a243b558
JF
11206 haiku*)
11207 # PIC is the default for Haiku.
11208 # The "-static" flag exists, but is broken.
11209 lt_prog_compiler_static=
11210 ;;
9c60689e 11211
a243b558
JF
11212 hpux*)
11213 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11214 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11215 # sets the default TLS model and affects inlining.
11216 case $host_cpu in
11217 hppa*64*)
11218 # +Z the default
11219 ;;
11220 *)
11221 lt_prog_compiler_pic='-fPIC'
11222 ;;
11223 esac
11224 ;;
9c60689e 11225
a243b558
JF
11226 interix[3-9]*)
11227 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11228 # Instead, we relocate shared libraries at runtime.
11229 ;;
9c60689e 11230
a243b558
JF
11231 msdosdjgpp*)
11232 # Just because we use GCC doesn't mean we suddenly get shared libraries
11233 # on systems that don't support them.
11234 lt_prog_compiler_can_build_shared=no
11235 enable_shared=no
11236 ;;
9c60689e 11237
a243b558
JF
11238 *nto* | *qnx*)
11239 # QNX uses GNU C++, but need to define -shared option too, otherwise
11240 # it will coredump.
11241 lt_prog_compiler_pic='-fPIC -shared'
11242 ;;
9c60689e 11243
a243b558
JF
11244 sysv4*MP*)
11245 if test -d /usr/nec; then
11246 lt_prog_compiler_pic=-Kconform_pic
11247 fi
11248 ;;
9c60689e 11249
a243b558
JF
11250 *)
11251 lt_prog_compiler_pic='-fPIC'
11252 ;;
11253 esac
9c60689e 11254
a243b558
JF
11255 case $cc_basename in
11256 nvcc*) # Cuda Compiler Driver 2.2
11257 lt_prog_compiler_wl='-Xlinker '
11258 if test -n "$lt_prog_compiler_pic"; then
11259 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11260 fi
11261 ;;
11262 esac
11263 else
11264 # PORTME Check for flag to pass linker flags through the system compiler.
11265 case $host_os in
11266 aix*)
11267 lt_prog_compiler_wl='-Wl,'
9d54db95 11268 if test ia64 = "$host_cpu"; then
a243b558
JF
11269 # AIX 5 now supports IA64 processor
11270 lt_prog_compiler_static='-Bstatic'
11271 else
11272 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11273 fi
11274 ;;
9c60689e 11275
9d54db95
JF
11276 darwin* | rhapsody*)
11277 # PIC is the default on this platform
11278 # Common symbols not allowed in MH_DYLIB files
11279 lt_prog_compiler_pic='-fno-common'
11280 case $cc_basename in
11281 nagfor*)
11282 # NAG Fortran compiler
11283 lt_prog_compiler_wl='-Wl,-Wl,,'
11284 lt_prog_compiler_pic='-PIC'
11285 lt_prog_compiler_static='-Bstatic'
11286 ;;
11287 esac
11288 ;;
11289
a243b558
JF
11290 mingw* | cygwin* | pw32* | os2* | cegcc*)
11291 # This hack is so that the source file can tell whether it is being
11292 # built for inclusion in a dll (and should export symbols for example).
11293 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
11294 case $host_os in
11295 os2*)
11296 lt_prog_compiler_static='$wl-static'
11297 ;;
11298 esac
a243b558 11299 ;;
9c60689e 11300
a243b558
JF
11301 hpux9* | hpux10* | hpux11*)
11302 lt_prog_compiler_wl='-Wl,'
11303 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11304 # not for PA HP-UX.
11305 case $host_cpu in
11306 hppa*64*|ia64*)
11307 # +Z the default
11308 ;;
11309 *)
11310 lt_prog_compiler_pic='+Z'
11311 ;;
11312 esac
11313 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9d54db95 11314 lt_prog_compiler_static='$wl-a ${wl}archive'
a243b558 11315 ;;
9c60689e 11316
a243b558
JF
11317 irix5* | irix6* | nonstopux*)
11318 lt_prog_compiler_wl='-Wl,'
11319 # PIC (with -KPIC) is the default.
11320 lt_prog_compiler_static='-non_shared'
11321 ;;
9c60689e 11322
9d54db95 11323 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558 11324 case $cc_basename in
9d54db95 11325 # old Intel for x86_64, which still supported -KPIC.
a243b558
JF
11326 ecc*)
11327 lt_prog_compiler_wl='-Wl,'
11328 lt_prog_compiler_pic='-KPIC'
11329 lt_prog_compiler_static='-static'
11330 ;;
11331 # icc used to be incompatible with GCC.
11332 # ICC 10 doesn't accept -KPIC any more.
11333 icc* | ifort*)
11334 lt_prog_compiler_wl='-Wl,'
11335 lt_prog_compiler_pic='-fPIC'
11336 lt_prog_compiler_static='-static'
11337 ;;
11338 # Lahey Fortran 8.1.
11339 lf95*)
11340 lt_prog_compiler_wl='-Wl,'
11341 lt_prog_compiler_pic='--shared'
11342 lt_prog_compiler_static='--static'
11343 ;;
11344 nagfor*)
11345 # NAG Fortran compiler
11346 lt_prog_compiler_wl='-Wl,-Wl,,'
11347 lt_prog_compiler_pic='-PIC'
11348 lt_prog_compiler_static='-Bstatic'
11349 ;;
9d54db95
JF
11350 tcc*)
11351 # Fabrice Bellard et al's Tiny C Compiler
11352 lt_prog_compiler_wl='-Wl,'
11353 lt_prog_compiler_pic='-fPIC'
11354 lt_prog_compiler_static='-static'
11355 ;;
a243b558
JF
11356 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11357 # Portland Group compilers (*not* the Pentium gcc compiler,
11358 # which looks to be a dead project)
11359 lt_prog_compiler_wl='-Wl,'
11360 lt_prog_compiler_pic='-fpic'
11361 lt_prog_compiler_static='-Bstatic'
11362 ;;
11363 ccc*)
11364 lt_prog_compiler_wl='-Wl,'
11365 # All Alpha code is PIC.
11366 lt_prog_compiler_static='-non_shared'
11367 ;;
11368 xl* | bgxl* | bgf* | mpixl*)
11369 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11370 lt_prog_compiler_wl='-Wl,'
11371 lt_prog_compiler_pic='-qpic'
11372 lt_prog_compiler_static='-qstaticlink'
11373 ;;
11374 *)
11375 case `$CC -V 2>&1 | sed 5q` in
11376 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11377 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11378 lt_prog_compiler_pic='-KPIC'
11379 lt_prog_compiler_static='-Bstatic'
11380 lt_prog_compiler_wl=''
11381 ;;
11382 *Sun\ F* | *Sun*Fortran*)
11383 lt_prog_compiler_pic='-KPIC'
11384 lt_prog_compiler_static='-Bstatic'
11385 lt_prog_compiler_wl='-Qoption ld '
11386 ;;
11387 *Sun\ C*)
11388 # Sun C 5.9
11389 lt_prog_compiler_pic='-KPIC'
11390 lt_prog_compiler_static='-Bstatic'
11391 lt_prog_compiler_wl='-Wl,'
11392 ;;
11393 *Intel*\ [CF]*Compiler*)
11394 lt_prog_compiler_wl='-Wl,'
11395 lt_prog_compiler_pic='-fPIC'
11396 lt_prog_compiler_static='-static'
11397 ;;
11398 *Portland\ Group*)
11399 lt_prog_compiler_wl='-Wl,'
11400 lt_prog_compiler_pic='-fpic'
11401 lt_prog_compiler_static='-Bstatic'
11402 ;;
11403 esac
11404 ;;
11405 esac
11406 ;;
9c60689e 11407
a243b558
JF
11408 newsos6)
11409 lt_prog_compiler_pic='-KPIC'
11410 lt_prog_compiler_static='-Bstatic'
11411 ;;
9c60689e 11412
a243b558
JF
11413 *nto* | *qnx*)
11414 # QNX uses GNU C++, but need to define -shared option too, otherwise
11415 # it will coredump.
11416 lt_prog_compiler_pic='-fPIC -shared'
11417 ;;
9c60689e 11418
a243b558
JF
11419 osf3* | osf4* | osf5*)
11420 lt_prog_compiler_wl='-Wl,'
11421 # All OSF/1 code is PIC.
11422 lt_prog_compiler_static='-non_shared'
11423 ;;
9c60689e 11424
a243b558
JF
11425 rdos*)
11426 lt_prog_compiler_static='-non_shared'
11427 ;;
9c60689e 11428
a243b558
JF
11429 solaris*)
11430 lt_prog_compiler_pic='-KPIC'
11431 lt_prog_compiler_static='-Bstatic'
11432 case $cc_basename in
11433 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11434 lt_prog_compiler_wl='-Qoption ld ';;
11435 *)
11436 lt_prog_compiler_wl='-Wl,';;
11437 esac
11438 ;;
9c60689e 11439
a243b558
JF
11440 sunos4*)
11441 lt_prog_compiler_wl='-Qoption ld '
11442 lt_prog_compiler_pic='-PIC'
11443 lt_prog_compiler_static='-Bstatic'
11444 ;;
9c60689e 11445
a243b558
JF
11446 sysv4 | sysv4.2uw2* | sysv4.3*)
11447 lt_prog_compiler_wl='-Wl,'
11448 lt_prog_compiler_pic='-KPIC'
11449 lt_prog_compiler_static='-Bstatic'
11450 ;;
9c60689e 11451
a243b558 11452 sysv4*MP*)
9d54db95 11453 if test -d /usr/nec; then
a243b558
JF
11454 lt_prog_compiler_pic='-Kconform_pic'
11455 lt_prog_compiler_static='-Bstatic'
11456 fi
11457 ;;
9c60689e 11458
a243b558
JF
11459 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11460 lt_prog_compiler_wl='-Wl,'
11461 lt_prog_compiler_pic='-KPIC'
11462 lt_prog_compiler_static='-Bstatic'
11463 ;;
9c60689e 11464
a243b558
JF
11465 unicos*)
11466 lt_prog_compiler_wl='-Wl,'
11467 lt_prog_compiler_can_build_shared=no
11468 ;;
9c60689e 11469
a243b558
JF
11470 uts4*)
11471 lt_prog_compiler_pic='-pic'
11472 lt_prog_compiler_static='-Bstatic'
11473 ;;
9c60689e 11474
a243b558
JF
11475 *)
11476 lt_prog_compiler_can_build_shared=no
11477 ;;
11478 esac
11479 fi
9c60689e 11480
a243b558 11481case $host_os in
9d54db95 11482 # For platforms that do not support PIC, -DPIC is meaningless:
a243b558
JF
11483 *djgpp*)
11484 lt_prog_compiler_pic=
11485 ;;
11486 *)
11487 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11488 ;;
11489esac
9c60689e 11490
a243b558
JF
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11492$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11493if ${lt_cv_prog_compiler_pic+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495else
11496 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11497fi
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11499$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11500lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 11501
a243b558
JF
11502#
11503# Check to make sure the PIC flag actually works.
11504#
11505if test -n "$lt_prog_compiler_pic"; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11507$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11508if ${lt_cv_prog_compiler_pic_works+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510else
11511 lt_cv_prog_compiler_pic_works=no
11512 ac_outfile=conftest.$ac_objext
11513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 11514 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
11515 # Insert the option either (1) after the last *FLAGS variable, or
11516 # (2) before a word containing "conftest.", or (3) at the end.
11517 # Note that $ac_compile itself does not contain backslashes and begins
11518 # with a dollar sign (not a hyphen), so the echo should work correctly.
11519 # The option is referenced via a variable to avoid confusing sed.
11520 lt_compile=`echo "$ac_compile" | $SED \
11521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11523 -e 's:$: $lt_compiler_flag:'`
11524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11525 (eval "$lt_compile" 2>conftest.err)
11526 ac_status=$?
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 if (exit $ac_status) && test -s "$ac_outfile"; then
11530 # The compiler can only warn and ignore the option if not recognized
11531 # So say no if there are warnings other than the usual output.
11532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11535 lt_cv_prog_compiler_pic_works=yes
11536 fi
11537 fi
00a96142 11538 $RM -r conftest*
9c60689e 11539
a243b558
JF
11540fi
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11542$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 11543
9d54db95 11544if test yes = "$lt_cv_prog_compiler_pic_works"; then
a243b558
JF
11545 case $lt_prog_compiler_pic in
11546 "" | " "*) ;;
11547 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11548 esac
11549else
11550 lt_prog_compiler_pic=
11551 lt_prog_compiler_can_build_shared=no
11552fi
9c60689e 11553
a243b558 11554fi
9c60689e
DWT
11555
11556
11557
11558
11559
11560
9c60689e
DWT
11561
11562
11563
11564
11565
a243b558
JF
11566#
11567# Check to make sure the static flag actually works.
11568#
11569wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11571$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11572if ${lt_cv_prog_compiler_static_works+:} false; then :
11573 $as_echo_n "(cached) " >&6
11574else
11575 lt_cv_prog_compiler_static_works=no
9d54db95 11576 save_LDFLAGS=$LDFLAGS
a243b558
JF
11577 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11578 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11579 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11580 # The linker can only warn and ignore the option if not recognized
11581 # So say no if there are warnings
11582 if test -s conftest.err; then
11583 # Append any errors to the config.log.
11584 cat conftest.err 1>&5
11585 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11587 if diff conftest.exp conftest.er2 >/dev/null; then
11588 lt_cv_prog_compiler_static_works=yes
11589 fi
11590 else
11591 lt_cv_prog_compiler_static_works=yes
11592 fi
11593 fi
11594 $RM -r conftest*
9d54db95 11595 LDFLAGS=$save_LDFLAGS
9c60689e 11596
a243b558
JF
11597fi
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11599$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 11600
9d54db95 11601if test yes = "$lt_cv_prog_compiler_static_works"; then
a243b558 11602 :
9c60689e 11603else
a243b558 11604 lt_prog_compiler_static=
9c60689e 11605fi
9c60689e 11606
9c60689e 11607
9c60689e 11608
9c60689e 11609
9c60689e 11610
9c60689e 11611
9c60689e 11612
a243b558
JF
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11614$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11615if ${lt_cv_prog_compiler_c_o+:} false; then :
11616 $as_echo_n "(cached) " >&6
11617else
11618 lt_cv_prog_compiler_c_o=no
11619 $RM -r conftest 2>/dev/null
11620 mkdir conftest
11621 cd conftest
11622 mkdir out
11623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 11624
a243b558
JF
11625 lt_compiler_flag="-o out/conftest2.$ac_objext"
11626 # Insert the option either (1) after the last *FLAGS variable, or
11627 # (2) before a word containing "conftest.", or (3) at the end.
11628 # Note that $ac_compile itself does not contain backslashes and begins
11629 # with a dollar sign (not a hyphen), so the echo should work correctly.
11630 lt_compile=`echo "$ac_compile" | $SED \
11631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11633 -e 's:$: $lt_compiler_flag:'`
11634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11635 (eval "$lt_compile" 2>out/conftest.err)
11636 ac_status=$?
11637 cat out/conftest.err >&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11640 then
11641 # The compiler can only warn and ignore the option if not recognized
11642 # So say no if there are warnings
11643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11646 lt_cv_prog_compiler_c_o=yes
11647 fi
11648 fi
11649 chmod u+w . 2>&5
00a96142 11650 $RM -r conftest*
a243b558
JF
11651 # SGI C++ compiler will create directory out/ii_files/ for
11652 # template instantiation
11653 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11654 $RM out/* && rmdir out
11655 cd ..
11656 $RM -r conftest
00a96142 11657 $RM -r conftest*
9c60689e 11658
a243b558
JF
11659fi
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11661$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 11662
ee134472 11663
ee134472 11664
ee134472 11665
ee134472 11666
9c60689e 11667
a243b558
JF
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11669$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11670if ${lt_cv_prog_compiler_c_o+:} false; then :
11671 $as_echo_n "(cached) " >&6
11672else
11673 lt_cv_prog_compiler_c_o=no
11674 $RM -r conftest 2>/dev/null
11675 mkdir conftest
11676 cd conftest
11677 mkdir out
11678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 11679
a243b558
JF
11680 lt_compiler_flag="-o out/conftest2.$ac_objext"
11681 # Insert the option either (1) after the last *FLAGS variable, or
11682 # (2) before a word containing "conftest.", or (3) at the end.
11683 # Note that $ac_compile itself does not contain backslashes and begins
11684 # with a dollar sign (not a hyphen), so the echo should work correctly.
11685 lt_compile=`echo "$ac_compile" | $SED \
11686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11688 -e 's:$: $lt_compiler_flag:'`
11689 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11690 (eval "$lt_compile" 2>out/conftest.err)
11691 ac_status=$?
11692 cat out/conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11695 then
11696 # The compiler can only warn and ignore the option if not recognized
11697 # So say no if there are warnings
11698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11699 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11700 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11701 lt_cv_prog_compiler_c_o=yes
11702 fi
11703 fi
11704 chmod u+w . 2>&5
00a96142 11705 $RM -r conftest*
a243b558
JF
11706 # SGI C++ compiler will create directory out/ii_files/ for
11707 # template instantiation
11708 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11709 $RM out/* && rmdir out
11710 cd ..
11711 $RM -r conftest
00a96142 11712 $RM -r conftest*
9c60689e 11713
a243b558
JF
11714fi
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11716$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 11717
9c60689e 11718
a243b558
JF
11719
11720
9d54db95
JF
11721hard_links=nottested
11722if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
a243b558
JF
11723 # do not overwrite the value of need_locks provided by the user
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11725$as_echo_n "checking if we can lock with hard links... " >&6; }
11726 hard_links=yes
00a96142 11727 $RM -r conftest*
a243b558
JF
11728 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11729 touch conftest.a
11730 ln conftest.a conftest.b 2>&5 || hard_links=no
11731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11733$as_echo "$hard_links" >&6; }
9d54db95
JF
11734 if test no = "$hard_links"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11736$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
a243b558 11737 need_locks=warn
9c60689e 11738 fi
a243b558
JF
11739else
11740 need_locks=no
11741fi
9c60689e 11742
ee134472 11743
9c60689e 11744
9c60689e 11745
9c60689e 11746
a243b558
JF
11747
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11749$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11750
11751 runpath_var=
11752 allow_undefined_flag=
11753 always_export_symbols=no
11754 archive_cmds=
11755 archive_expsym_cmds=
11756 compiler_needs_object=no
11757 enable_shared_with_static_runtimes=no
11758 export_dynamic_flag_spec=
11759 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11760 hardcode_automatic=no
11761 hardcode_direct=no
11762 hardcode_direct_absolute=no
11763 hardcode_libdir_flag_spec=
11764 hardcode_libdir_separator=
11765 hardcode_minus_L=no
11766 hardcode_shlibpath_var=unsupported
11767 inherit_rpath=no
11768 link_all_deplibs=unknown
11769 module_cmds=
11770 module_expsym_cmds=
11771 old_archive_from_new_cmds=
11772 old_archive_from_expsyms_cmds=
11773 thread_safe_flag_spec=
11774 whole_archive_flag_spec=
11775 # include_expsyms should be a list of space-separated symbols to be *always*
11776 # included in the symbol list
11777 include_expsyms=
11778 # exclude_expsyms can be an extended regexp of symbols to exclude
9d54db95
JF
11779 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11780 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11781 # as well as any symbol that contains 'd'.
a243b558
JF
11782 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11783 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11784 # platforms (ab)use it in PIC code, but their linkers get confused if
11785 # the symbol is explicitly referenced. Since portable code cannot
11786 # rely on this symbol name, it's probably fine to never include it in
11787 # preloaded symbol tables.
11788 # Exclude shared library initialization/finalization symbols.
11789 extract_expsyms_cmds=
11790
9c60689e 11791 case $host_os in
a243b558
JF
11792 cygwin* | mingw* | pw32* | cegcc*)
11793 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11794 # When not using gcc, we currently assume that we are using
11795 # Microsoft Visual C++.
9d54db95 11796 if test yes != "$GCC"; then
a243b558
JF
11797 with_gnu_ld=no
11798 fi
9c60689e 11799 ;;
a243b558
JF
11800 interix*)
11801 # we just hope/assume this is gcc and not c89 (= MSVC++)
11802 with_gnu_ld=yes
11803 ;;
9d54db95 11804 openbsd* | bitrig*)
a243b558 11805 with_gnu_ld=no
9c60689e
DWT
11806 ;;
11807 esac
9c60689e 11808
a243b558 11809 ld_shlibs=yes
ee134472 11810
a243b558
JF
11811 # On some targets, GNU ld is compatible enough with the native linker
11812 # that we're better off using the native interface for both.
11813 lt_use_gnu_ld_interface=no
9d54db95 11814 if test yes = "$with_gnu_ld"; then
a243b558
JF
11815 case $host_os in
11816 aix*)
11817 # The AIX port of GNU ld has always aspired to compatibility
11818 # with the native linker. However, as the warning in the GNU ld
11819 # block says, versions before 2.19.5* couldn't really create working
11820 # shared libraries, regardless of the interface used.
11821 case `$LD -v 2>&1` in
11822 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11823 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11824 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11825 *)
11826 lt_use_gnu_ld_interface=yes
11827 ;;
11828 esac
11829 ;;
11830 *)
11831 lt_use_gnu_ld_interface=yes
11832 ;;
11833 esac
11834 fi
9c60689e 11835
9d54db95 11836 if test yes = "$lt_use_gnu_ld_interface"; then
a243b558 11837 # If archive_cmds runs LD, not CC, wlarc should be empty
9d54db95 11838 wlarc='$wl'
9c60689e 11839
a243b558
JF
11840 # Set some defaults for GNU ld with shared library support. These
11841 # are reset later if shared libraries are not supported. Putting them
11842 # here allows them to be overridden if necessary.
11843 runpath_var=LD_RUN_PATH
9d54db95
JF
11844 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11845 export_dynamic_flag_spec='$wl--export-dynamic'
a243b558
JF
11846 # ancient GNU ld didn't support --whole-archive et. al.
11847 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9d54db95 11848 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
a243b558
JF
11849 else
11850 whole_archive_flag_spec=
11851 fi
11852 supports_anon_versioning=no
9d54db95 11853 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
a243b558
JF
11854 *GNU\ gold*) supports_anon_versioning=yes ;;
11855 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11856 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11857 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11858 *\ 2.11.*) ;; # other 2.11 versions
11859 *) supports_anon_versioning=yes ;;
11860 esac
ee134472 11861
a243b558
JF
11862 # See if GNU ld supports shared libraries.
11863 case $host_os in
11864 aix[3-9]*)
11865 # On AIX/PPC, the GNU linker is very broken
9d54db95 11866 if test ia64 != "$host_cpu"; then
a243b558
JF
11867 ld_shlibs=no
11868 cat <<_LT_EOF 1>&2
ee134472 11869
a243b558
JF
11870*** Warning: the GNU linker, at least up to release 2.19, is reported
11871*** to be unable to reliably create shared libraries on AIX.
11872*** Therefore, libtool is disabling shared libraries support. If you
11873*** really care for shared libraries, you may want to install binutils
11874*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11875*** You will then need to restart the configuration process.
9c60689e 11876
a243b558
JF
11877_LT_EOF
11878 fi
11879 ;;
9c60689e 11880
a243b558
JF
11881 amigaos*)
11882 case $host_cpu in
11883 powerpc)
11884 # see comment about AmigaOS4 .so support
9d54db95 11885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11886 archive_expsym_cmds=''
11887 ;;
11888 m68k)
11889 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)'
11890 hardcode_libdir_flag_spec='-L$libdir'
11891 hardcode_minus_L=yes
11892 ;;
11893 esac
11894 ;;
9c60689e 11895
a243b558
JF
11896 beos*)
11897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11898 allow_undefined_flag=unsupported
11899 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11900 # support --undefined. This deserves some investigation. FIXME
9d54db95 11901 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11902 else
11903 ld_shlibs=no
11904 fi
11905 ;;
9c60689e 11906
a243b558
JF
11907 cygwin* | mingw* | pw32* | cegcc*)
11908 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11909 # as there is no search path for DLLs.
11910 hardcode_libdir_flag_spec='-L$libdir'
9d54db95 11911 export_dynamic_flag_spec='$wl--export-all-symbols'
a243b558
JF
11912 allow_undefined_flag=unsupported
11913 always_export_symbols=no
11914 enable_shared_with_static_runtimes=yes
11915 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'
11916 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 11917
a243b558 11918 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
11919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11920 # If the export-symbols file already is a .def file, use it as
11921 # is; otherwise, prepend EXPORTS...
11922 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11923 cp $export_symbols $output_objdir/$soname.def;
11924 else
11925 echo EXPORTS > $output_objdir/$soname.def;
11926 cat $export_symbols >> $output_objdir/$soname.def;
11927 fi~
11928 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a243b558
JF
11929 else
11930 ld_shlibs=no
11931 fi
11932 ;;
9c60689e 11933
a243b558 11934 haiku*)
9d54db95 11935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11936 link_all_deplibs=yes
11937 ;;
9c60689e 11938
9d54db95
JF
11939 os2*)
11940 hardcode_libdir_flag_spec='-L$libdir'
11941 hardcode_minus_L=yes
11942 allow_undefined_flag=unsupported
11943 shrext_cmds=.dll
11944 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11945 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11946 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11947 $ECHO EXPORTS >> $output_objdir/$libname.def~
11948 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11949 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11950 emximp -o $lib $output_objdir/$libname.def'
11951 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11952 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11953 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11954 $ECHO EXPORTS >> $output_objdir/$libname.def~
11955 prefix_cmds="$SED"~
11956 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11957 prefix_cmds="$prefix_cmds -e 1d";
11958 fi~
11959 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11960 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11961 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11962 emximp -o $lib $output_objdir/$libname.def'
11963 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11964 enable_shared_with_static_runtimes=yes
11965 ;;
11966
a243b558
JF
11967 interix[3-9]*)
11968 hardcode_direct=no
11969 hardcode_shlibpath_var=no
9d54db95
JF
11970 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11971 export_dynamic_flag_spec='$wl-E'
a243b558
JF
11972 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11973 # Instead, shared libraries are loaded at an image base (0x10000000 by
11974 # default) and relocated if they conflict, which is a slow very memory
11975 # consuming and fragmenting process. To avoid this, we pick a random,
11976 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11977 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
11978 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11979 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'
a243b558 11980 ;;
9c60689e 11981
a243b558
JF
11982 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11983 tmp_diet=no
9d54db95 11984 if test linux-dietlibc = "$host_os"; then
a243b558
JF
11985 case $cc_basename in
11986 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11987 esac
11988 fi
11989 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9d54db95 11990 && test no = "$tmp_diet"
a243b558
JF
11991 then
11992 tmp_addflag=' $pic_flag'
11993 tmp_sharedflag='-shared'
11994 case $cc_basename,$host_cpu in
11995 pgcc*) # Portland Group C compiler
9d54db95 11996 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'
a243b558
JF
11997 tmp_addflag=' $pic_flag'
11998 ;;
11999 pgf77* | pgf90* | pgf95* | pgfortran*)
12000 # Portland Group f77 and f90 compilers
9d54db95 12001 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'
a243b558
JF
12002 tmp_addflag=' $pic_flag -Mnomain' ;;
12003 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12004 tmp_addflag=' -i_dynamic' ;;
12005 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12006 tmp_addflag=' -i_dynamic -nofor_main' ;;
12007 ifc* | ifort*) # Intel Fortran compiler
12008 tmp_addflag=' -nofor_main' ;;
12009 lf95*) # Lahey Fortran 8.1
12010 whole_archive_flag_spec=
12011 tmp_sharedflag='--shared' ;;
9d54db95
JF
12012 nagfor*) # NAGFOR 5.3
12013 tmp_sharedflag='-Wl,-shared' ;;
a243b558
JF
12014 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12015 tmp_sharedflag='-qmkshrobj'
12016 tmp_addflag= ;;
12017 nvcc*) # Cuda Compiler Driver 2.2
9d54db95 12018 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'
a243b558
JF
12019 compiler_needs_object=yes
12020 ;;
12021 esac
12022 case `$CC -V 2>&1 | sed 5q` in
12023 *Sun\ C*) # Sun C 5.9
9d54db95 12024 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'
a243b558
JF
12025 compiler_needs_object=yes
12026 tmp_sharedflag='-G' ;;
12027 *Sun\ F*) # Sun Fortran 8.3
12028 tmp_sharedflag='-G' ;;
12029 esac
9d54db95 12030 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9c60689e 12031
9d54db95 12032 if test yes = "$supports_anon_versioning"; then
a243b558 12033 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
12034 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12035 echo "local: *; };" >> $output_objdir/$libname.ver~
12036 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a243b558 12037 fi
9c60689e 12038
a243b558 12039 case $cc_basename in
9d54db95
JF
12040 tcc*)
12041 export_dynamic_flag_spec='-rdynamic'
12042 ;;
a243b558
JF
12043 xlf* | bgf* | bgxlf* | mpixlf*)
12044 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12045 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9d54db95 12046 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558 12047 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9d54db95 12048 if test yes = "$supports_anon_versioning"; then
a243b558 12049 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
12050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12051 echo "local: *; };" >> $output_objdir/$libname.ver~
12052 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
a243b558
JF
12053 fi
12054 ;;
12055 esac
12056 else
12057 ld_shlibs=no
12058 fi
12059 ;;
9c60689e 12060
a243b558
JF
12061 netbsd*)
12062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12063 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12064 wlarc=
12065 else
9d54db95
JF
12066 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12067 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
12068 fi
12069 ;;
9c60689e 12070
a243b558
JF
12071 solaris*)
12072 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12073 ld_shlibs=no
12074 cat <<_LT_EOF 1>&2
9c60689e 12075
a243b558
JF
12076*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12077*** create shared libraries on Solaris systems. Therefore, libtool
12078*** is disabling shared libraries support. We urge you to upgrade GNU
12079*** binutils to release 2.9.1 or newer. Another option is to modify
12080*** your PATH or compiler configuration so that the native linker is
12081*** used, and then restart.
9c60689e 12082
a243b558
JF
12083_LT_EOF
12084 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12085 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12086 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
12087 else
12088 ld_shlibs=no
12089 fi
12090 ;;
9c60689e 12091
a243b558
JF
12092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12093 case `$LD -v 2>&1` in
12094 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12095 ld_shlibs=no
12096 cat <<_LT_EOF 1>&2
9c60689e 12097
9d54db95 12098*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
a243b558
JF
12099*** reliably create shared libraries on SCO systems. Therefore, libtool
12100*** is disabling shared libraries support. We urge you to upgrade GNU
12101*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12102*** your PATH or compiler configuration so that the native linker is
12103*** used, and then restart.
9c60689e 12104
a243b558
JF
12105_LT_EOF
12106 ;;
12107 *)
12108 # For security reasons, it is highly recommended that you always
12109 # use absolute paths for naming shared libraries, and exclude the
12110 # DT_RUNPATH tag from executables and libraries. But doing so
12111 # requires that you compile everything twice, which is a pain.
12112 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12113 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12115 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
12116 else
12117 ld_shlibs=no
12118 fi
12119 ;;
12120 esac
12121 ;;
9c60689e 12122
a243b558
JF
12123 sunos4*)
12124 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12125 wlarc=
12126 hardcode_direct=yes
12127 hardcode_shlibpath_var=no
12128 ;;
9c60689e 12129
a243b558
JF
12130 *)
12131 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12132 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12133 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
12134 else
12135 ld_shlibs=no
12136 fi
12137 ;;
12138 esac
9c60689e 12139
9d54db95 12140 if test no = "$ld_shlibs"; then
a243b558
JF
12141 runpath_var=
12142 hardcode_libdir_flag_spec=
12143 export_dynamic_flag_spec=
12144 whole_archive_flag_spec=
12145 fi
12146 else
12147 # PORTME fill in a description of your system's linker (not GNU ld)
12148 case $host_os in
12149 aix3*)
12150 allow_undefined_flag=unsupported
12151 always_export_symbols=yes
12152 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'
12153 # Note: this linker hardcodes the directories in LIBPATH if there
12154 # are no directories specified by -L.
12155 hardcode_minus_L=yes
9d54db95 12156 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
a243b558
JF
12157 # Neither direct hardcoding nor static linking is supported with a
12158 # broken collect2.
12159 hardcode_direct=unsupported
12160 fi
12161 ;;
9c60689e 12162
a243b558 12163 aix[4-9]*)
9d54db95 12164 if test ia64 = "$host_cpu"; then
a243b558
JF
12165 # On IA64, the linker does run time linking by default, so we don't
12166 # have to do anything special.
12167 aix_use_runtimelinking=no
12168 exp_sym_flag='-Bexport'
9d54db95 12169 no_entry_flag=
a243b558
JF
12170 else
12171 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
12172 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12173 # Without the "-l" option, or with the "-B" option, AIX nm treats
12174 # weak defined symbols like other global defined symbols, whereas
12175 # GNU nm marks them as "W".
12176 # While the 'weak' keyword is ignored in the Export File, we need
12177 # it in the Import File for the 'aix-soname' feature, so we have
12178 # to replace the "-B" option with "-P" for AIX nm.
a243b558 12179 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 12180 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
a243b558 12181 else
9d54db95 12182 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
a243b558
JF
12183 fi
12184 aix_use_runtimelinking=no
9c60689e 12185
a243b558
JF
12186 # Test if we are trying to use run time linking or normal
12187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
12188 # have runtime linking enabled, and use it for executables.
12189 # For shared libraries, we enable/disable runtime linking
12190 # depending on the kind of the shared library created -
12191 # when "with_aix_soname,aix_use_runtimelinking" is:
12192 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12193 # "aix,yes" lib.so shared, rtl:yes, for executables
12194 # lib.a static archive
12195 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12196 # lib.a(lib.so.V) shared, rtl:no, for executables
12197 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12198 # lib.a(lib.so.V) shared, rtl:no
12199 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12200 # lib.a static archive
a243b558
JF
12201 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12202 for ld_flag in $LDFLAGS; do
9d54db95 12203 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a243b558
JF
12204 aix_use_runtimelinking=yes
12205 break
12206 fi
12207 done
9d54db95
JF
12208 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12209 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12210 # so we don't have lib.a shared libs to link our executables.
12211 # We have to force runtime linking in this case.
12212 aix_use_runtimelinking=yes
12213 LDFLAGS="$LDFLAGS -Wl,-brtl"
12214 fi
a243b558
JF
12215 ;;
12216 esac
9c60689e 12217
a243b558
JF
12218 exp_sym_flag='-bexport'
12219 no_entry_flag='-bnoentry'
12220 fi
9c60689e 12221
a243b558
JF
12222 # When large executables or shared objects are built, AIX ld can
12223 # have problems creating the table of contents. If linking a library
12224 # or program results in "error TOC overflow" add -mminimal-toc to
12225 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12226 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 12227
a243b558
JF
12228 archive_cmds=''
12229 hardcode_direct=yes
12230 hardcode_direct_absolute=yes
12231 hardcode_libdir_separator=':'
12232 link_all_deplibs=yes
9d54db95
JF
12233 file_list_spec='$wl-f,'
12234 case $with_aix_soname,$aix_use_runtimelinking in
12235 aix,*) ;; # traditional, no import file
12236 svr4,* | *,yes) # use import file
12237 # The Import File defines what to hardcode.
12238 hardcode_direct=no
12239 hardcode_direct_absolute=no
12240 ;;
12241 esac
9c60689e 12242
9d54db95 12243 if test yes = "$GCC"; then
a243b558
JF
12244 case $host_os in aix4.[012]|aix4.[012].*)
12245 # We only want to do this on AIX 4.2 and lower, the check
12246 # below for broken collect2 doesn't work under 4.3+
9d54db95 12247 collect2name=`$CC -print-prog-name=collect2`
a243b558
JF
12248 if test -f "$collect2name" &&
12249 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12250 then
12251 # We have reworked collect2
12252 :
12253 else
12254 # We have old collect2
12255 hardcode_direct=unsupported
12256 # It fails to find uninstalled libraries when the uninstalled
12257 # path is not listed in the libpath. Setting hardcode_minus_L
12258 # to unsupported forces relinking
12259 hardcode_minus_L=yes
12260 hardcode_libdir_flag_spec='-L$libdir'
12261 hardcode_libdir_separator=
12262 fi
12263 ;;
12264 esac
12265 shared_flag='-shared'
9d54db95
JF
12266 if test yes = "$aix_use_runtimelinking"; then
12267 shared_flag="$shared_flag "'$wl-G'
a243b558 12268 fi
9d54db95
JF
12269 # Need to ensure runtime linking is disabled for the traditional
12270 # shared library, or the linker may eventually find shared libraries
12271 # /with/ Import File - we do not want to mix them.
12272 shared_flag_aix='-shared'
12273 shared_flag_svr4='-shared $wl-G'
a243b558
JF
12274 else
12275 # not using gcc
9d54db95 12276 if test ia64 = "$host_cpu"; then
a243b558
JF
12277 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12278 # chokes on -Wl,-G. The following line is correct:
12279 shared_flag='-G'
12280 else
9d54db95
JF
12281 if test yes = "$aix_use_runtimelinking"; then
12282 shared_flag='$wl-G'
a243b558 12283 else
9d54db95 12284 shared_flag='$wl-bM:SRE'
a243b558 12285 fi
9d54db95
JF
12286 shared_flag_aix='$wl-bM:SRE'
12287 shared_flag_svr4='$wl-G'
a243b558
JF
12288 fi
12289 fi
9c60689e 12290
9d54db95 12291 export_dynamic_flag_spec='$wl-bexpall'
a243b558
JF
12292 # It seems that -bexpall does not export symbols beginning with
12293 # underscore (_), so it is better to generate a list of symbols to export.
12294 always_export_symbols=yes
9d54db95 12295 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
a243b558
JF
12296 # Warning - without using the other runtime loading flags (-brtl),
12297 # -berok will link without error, but may produce a broken library.
12298 allow_undefined_flag='-berok'
12299 # Determine the default libpath from the value encoded in an
12300 # empty executable.
9d54db95 12301 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 12302 aix_libpath=$lt_cv_aix_libpath
9c60689e 12303else
a243b558 12304 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
12305 $as_echo_n "(cached) " >&6
12306else
a243b558 12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
12308/* end confdefs.h. */
12309
9c60689e
DWT
12310int
12311main ()
12312{
a243b558 12313
9c60689e
DWT
12314 ;
12315 return 0;
12316}
12317_ACEOF
12318if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
12319
12320 lt_aix_libpath_sed='
12321 /Import File Strings/,/^$/ {
12322 /^0/ {
12323 s/^0 *\([^ ]*\) *$/\1/
12324 p
12325 }
12326 }'
12327 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12328 # Check for a 64-bit object if we didn't find anything.
12329 if test -z "$lt_cv_aix_libpath_"; then
12330 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12331 fi
9c60689e
DWT
12332fi
12333rm -f core conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext conftest.$ac_ext
a243b558 12335 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 12336 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558 12337 fi
9c60689e
DWT
12338
12339fi
12340
a243b558
JF
12341 aix_libpath=$lt_cv_aix_libpath_
12342fi
9c60689e 12343
9d54db95
JF
12344 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12345 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
a243b558 12346 else
9d54db95
JF
12347 if test ia64 = "$host_cpu"; then
12348 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
a243b558 12349 allow_undefined_flag="-z nodefs"
9d54db95 12350 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"
a243b558
JF
12351 else
12352 # Determine the default libpath from the value encoded in an
12353 # empty executable.
9d54db95 12354 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 12355 aix_libpath=$lt_cv_aix_libpath
9c60689e 12356else
a243b558 12357 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
12358 $as_echo_n "(cached) " >&6
12359else
a243b558 12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
12361/* end confdefs.h. */
12362
9c60689e
DWT
12363int
12364main ()
12365{
a243b558 12366
9c60689e
DWT
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371if ac_fn_c_try_link "$LINENO"; then :
9c60689e 12372
a243b558
JF
12373 lt_aix_libpath_sed='
12374 /Import File Strings/,/^$/ {
12375 /^0/ {
12376 s/^0 *\([^ ]*\) *$/\1/
12377 p
12378 }
12379 }'
12380 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12381 # Check for a 64-bit object if we didn't find anything.
12382 if test -z "$lt_cv_aix_libpath_"; then
12383 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12384 fi
9c60689e
DWT
12385fi
12386rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
a243b558 12388 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 12389 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558
JF
12390 fi
12391
9c60689e 12392fi
9c60689e 12393
a243b558
JF
12394 aix_libpath=$lt_cv_aix_libpath_
12395fi
12396
9d54db95 12397 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
a243b558
JF
12398 # Warning - without using the other run time loading flags,
12399 # -berok will link without error, but may produce a broken library.
9d54db95
JF
12400 no_undefined_flag=' $wl-bernotok'
12401 allow_undefined_flag=' $wl-berok'
12402 if test yes = "$with_gnu_ld"; then
a243b558 12403 # We only use this code for GNU lds that support --whole-archive.
9d54db95 12404 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
a243b558
JF
12405 else
12406 # Exported symbols can be pulled into shared objects from archives
12407 whole_archive_flag_spec='$convenience'
12408 fi
12409 archive_cmds_need_lc=yes
9d54db95
JF
12410 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12411 # -brtl affects multiple linker settings, -berok does not and is overridden later
12412 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12413 if test svr4 != "$with_aix_soname"; then
12414 # This is similar to how AIX traditionally builds its shared libraries.
12415 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12416 fi
12417 if test aix != "$with_aix_soname"; then
12418 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12419 else
12420 # used by -dlpreopen to get the symbols
12421 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12422 fi
12423 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
a243b558
JF
12424 fi
12425 fi
12426 ;;
12427
12428 amigaos*)
12429 case $host_cpu in
12430 powerpc)
12431 # see comment about AmigaOS4 .so support
9d54db95 12432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
12433 archive_expsym_cmds=''
12434 ;;
12435 m68k)
12436 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)'
12437 hardcode_libdir_flag_spec='-L$libdir'
12438 hardcode_minus_L=yes
12439 ;;
12440 esac
12441 ;;
12442
12443 bsdi[45]*)
12444 export_dynamic_flag_spec=-rdynamic
12445 ;;
12446
12447 cygwin* | mingw* | pw32* | cegcc*)
12448 # When not using gcc, we currently assume that we are using
12449 # Microsoft Visual C++.
12450 # hardcode_libdir_flag_spec is actually meaningless, as there is
12451 # no search path for DLLs.
12452 case $cc_basename in
12453 cl*)
12454 # Native MSVC
12455 hardcode_libdir_flag_spec=' '
12456 allow_undefined_flag=unsupported
12457 always_export_symbols=yes
12458 file_list_spec='@'
12459 # Tell ltmain to make .lib files, not .a files.
12460 libext=lib
12461 # Tell ltmain to make .dll files, not .so files.
9d54db95 12462 shrext_cmds=.dll
a243b558 12463 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
12464 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12465 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12466 cp "$export_symbols" "$output_objdir/$soname.def";
12467 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12468 else
12469 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12470 fi~
12471 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12472 linknames='
a243b558
JF
12473 # The linker will not automatically build a static lib if we build a DLL.
12474 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12475 enable_shared_with_static_runtimes=yes
12476 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12478 # Don't use ranlib
12479 old_postinstall_cmds='chmod 644 $oldlib'
12480 postlink_cmds='lt_outputfile="@OUTPUT@"~
9d54db95
JF
12481 lt_tool_outputfile="@TOOL_OUTPUT@"~
12482 case $lt_outputfile in
12483 *.exe|*.EXE) ;;
12484 *)
12485 lt_outputfile=$lt_outputfile.exe
12486 lt_tool_outputfile=$lt_tool_outputfile.exe
12487 ;;
12488 esac~
12489 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12490 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12491 $RM "$lt_outputfile.manifest";
12492 fi'
a243b558
JF
12493 ;;
12494 *)
12495 # Assume MSVC wrapper
12496 hardcode_libdir_flag_spec=' '
12497 allow_undefined_flag=unsupported
12498 # Tell ltmain to make .lib files, not .a files.
12499 libext=lib
12500 # Tell ltmain to make .dll files, not .so files.
9d54db95 12501 shrext_cmds=.dll
a243b558
JF
12502 # FIXME: Setting linknames here is a bad hack.
12503 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12504 # The linker will automatically build a .lib file if we build a DLL.
12505 old_archive_from_new_cmds='true'
12506 # FIXME: Should let the user specify the lib program.
12507 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12508 enable_shared_with_static_runtimes=yes
12509 ;;
12510 esac
12511 ;;
12512
12513 darwin* | rhapsody*)
12514
12515
12516 archive_cmds_need_lc=no
12517 hardcode_direct=no
12518 hardcode_automatic=yes
12519 hardcode_shlibpath_var=unsupported
9d54db95
JF
12520 if test yes = "$lt_cv_ld_force_load"; then
12521 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\"`'
a243b558
JF
12522
12523 else
12524 whole_archive_flag_spec=''
12525 fi
12526 link_all_deplibs=yes
9d54db95 12527 allow_undefined_flag=$_lt_dar_allow_undefined
a243b558 12528 case $cc_basename in
9d54db95 12529 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
a243b558
JF
12530 *) _lt_dar_can_shared=$GCC ;;
12531 esac
9d54db95 12532 if test yes = "$_lt_dar_can_shared"; then
a243b558 12533 output_verbose_link_cmd=func_echo_all
9d54db95
JF
12534 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12535 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12536 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"
12537 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"
a243b558
JF
12538
12539 else
12540 ld_shlibs=no
12541 fi
12542
12543 ;;
12544
12545 dgux*)
12546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12547 hardcode_libdir_flag_spec='-L$libdir'
12548 hardcode_shlibpath_var=no
12549 ;;
12550
12551 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12552 # support. Future versions do this automatically, but an explicit c++rt0.o
12553 # does not break anything, and helps significantly (at the cost of a little
12554 # extra space).
12555 freebsd2.2*)
12556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12557 hardcode_libdir_flag_spec='-R$libdir'
12558 hardcode_direct=yes
12559 hardcode_shlibpath_var=no
12560 ;;
12561
12562 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12563 freebsd2.*)
12564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12565 hardcode_direct=yes
12566 hardcode_minus_L=yes
12567 hardcode_shlibpath_var=no
12568 ;;
12569
12570 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12571 freebsd* | dragonfly*)
12572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12573 hardcode_libdir_flag_spec='-R$libdir'
12574 hardcode_direct=yes
12575 hardcode_shlibpath_var=no
12576 ;;
12577
12578 hpux9*)
9d54db95
JF
12579 if test yes = "$GCC"; then
12580 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
a243b558 12581 else
9d54db95 12582 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
a243b558 12583 fi
9d54db95 12584 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12585 hardcode_libdir_separator=:
12586 hardcode_direct=yes
12587
12588 # hardcode_minus_L: Not really in the search PATH,
12589 # but as the default location of the library.
12590 hardcode_minus_L=yes
9d54db95 12591 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12592 ;;
12593
12594 hpux10*)
9d54db95
JF
12595 if test yes,no = "$GCC,$with_gnu_ld"; then
12596 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12597 else
12598 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12599 fi
9d54db95
JF
12600 if test no = "$with_gnu_ld"; then
12601 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12602 hardcode_libdir_separator=:
12603 hardcode_direct=yes
12604 hardcode_direct_absolute=yes
9d54db95 12605 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12606 # hardcode_minus_L: Not really in the search PATH,
12607 # but as the default location of the library.
12608 hardcode_minus_L=yes
12609 fi
12610 ;;
12611
12612 hpux11*)
9d54db95 12613 if test yes,no = "$GCC,$with_gnu_ld"; then
a243b558
JF
12614 case $host_cpu in
12615 hppa*64*)
9d54db95 12616 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12617 ;;
12618 ia64*)
9d54db95 12619 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12620 ;;
12621 *)
9d54db95 12622 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12623 ;;
12624 esac
12625 else
12626 case $host_cpu in
12627 hppa*64*)
9d54db95 12628 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12629 ;;
12630 ia64*)
9d54db95 12631 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12632 ;;
12633 *)
12634
12635 # Older versions of the 11.00 compiler do not understand -b yet
12636 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12638$as_echo_n "checking if $CC understands -b... " >&6; }
12639if ${lt_cv_prog_compiler__b+:} false; then :
12640 $as_echo_n "(cached) " >&6
12641else
12642 lt_cv_prog_compiler__b=no
9d54db95 12643 save_LDFLAGS=$LDFLAGS
a243b558
JF
12644 LDFLAGS="$LDFLAGS -b"
12645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12647 # The linker can only warn and ignore the option if not recognized
12648 # So say no if there are warnings
12649 if test -s conftest.err; then
12650 # Append any errors to the config.log.
12651 cat conftest.err 1>&5
12652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12654 if diff conftest.exp conftest.er2 >/dev/null; then
12655 lt_cv_prog_compiler__b=yes
12656 fi
12657 else
12658 lt_cv_prog_compiler__b=yes
12659 fi
12660 fi
12661 $RM -r conftest*
9d54db95 12662 LDFLAGS=$save_LDFLAGS
a243b558
JF
12663
12664fi
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12666$as_echo "$lt_cv_prog_compiler__b" >&6; }
12667
9d54db95
JF
12668if test yes = "$lt_cv_prog_compiler__b"; then
12669 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12670else
12671 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12672fi
12673
12674 ;;
12675 esac
12676 fi
9d54db95
JF
12677 if test no = "$with_gnu_ld"; then
12678 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12679 hardcode_libdir_separator=:
12680
12681 case $host_cpu in
12682 hppa*64*|ia64*)
12683 hardcode_direct=no
12684 hardcode_shlibpath_var=no
12685 ;;
12686 *)
12687 hardcode_direct=yes
12688 hardcode_direct_absolute=yes
9d54db95 12689 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12690
12691 # hardcode_minus_L: Not really in the search PATH,
12692 # but as the default location of the library.
12693 hardcode_minus_L=yes
12694 ;;
12695 esac
12696 fi
12697 ;;
12698
12699 irix5* | irix6* | nonstopux*)
9d54db95
JF
12700 if test yes = "$GCC"; then
12701 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'
a243b558
JF
12702 # Try to use the -exported_symbol ld option, if it does not
12703 # work, assume that -exports_file does not work either and
12704 # implicitly export all symbols.
12705 # This should be the same for all languages, so no per-tag cache variable.
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12707$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12708if ${lt_cv_irix_exported_symbol+:} false; then :
12709 $as_echo_n "(cached) " >&6
12710else
9d54db95
JF
12711 save_LDFLAGS=$LDFLAGS
12712 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
a243b558
JF
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714/* end confdefs.h. */
12715int foo (void) { return 0; }
12716_ACEOF
12717if ac_fn_c_try_link "$LINENO"; then :
12718 lt_cv_irix_exported_symbol=yes
12719else
12720 lt_cv_irix_exported_symbol=no
12721fi
12722rm -f core conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
9d54db95 12724 LDFLAGS=$save_LDFLAGS
a243b558
JF
12725fi
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12727$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9d54db95
JF
12728 if test yes = "$lt_cv_irix_exported_symbol"; then
12729 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'
a243b558
JF
12730 fi
12731 else
9d54db95
JF
12732 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'
12733 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'
a243b558
JF
12734 fi
12735 archive_cmds_need_lc='no'
9d54db95 12736 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12737 hardcode_libdir_separator=:
12738 inherit_rpath=yes
12739 link_all_deplibs=yes
12740 ;;
12741
9d54db95
JF
12742 linux*)
12743 case $cc_basename in
12744 tcc*)
12745 # Fabrice Bellard et al's Tiny C Compiler
12746 ld_shlibs=yes
12747 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12748 ;;
12749 esac
12750 ;;
12751
a243b558
JF
12752 netbsd*)
12753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12755 else
12756 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12757 fi
12758 hardcode_libdir_flag_spec='-R$libdir'
12759 hardcode_direct=yes
12760 hardcode_shlibpath_var=no
12761 ;;
12762
12763 newsos6)
12764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12765 hardcode_direct=yes
9d54db95 12766 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12767 hardcode_libdir_separator=:
12768 hardcode_shlibpath_var=no
12769 ;;
12770
12771 *nto* | *qnx*)
12772 ;;
12773
9d54db95 12774 openbsd* | bitrig*)
a243b558
JF
12775 if test -f /usr/libexec/ld.so; then
12776 hardcode_direct=yes
12777 hardcode_shlibpath_var=no
12778 hardcode_direct_absolute=yes
9d54db95 12779 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558 12780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9d54db95
JF
12781 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12782 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12783 export_dynamic_flag_spec='$wl-E'
a243b558 12784 else
9d54db95
JF
12785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12786 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
a243b558
JF
12787 fi
12788 else
12789 ld_shlibs=no
12790 fi
12791 ;;
12792
12793 os2*)
12794 hardcode_libdir_flag_spec='-L$libdir'
12795 hardcode_minus_L=yes
12796 allow_undefined_flag=unsupported
9d54db95
JF
12797 shrext_cmds=.dll
12798 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12799 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12800 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12801 $ECHO EXPORTS >> $output_objdir/$libname.def~
12802 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12803 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12804 emximp -o $lib $output_objdir/$libname.def'
12805 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12806 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12807 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12808 $ECHO EXPORTS >> $output_objdir/$libname.def~
12809 prefix_cmds="$SED"~
12810 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12811 prefix_cmds="$prefix_cmds -e 1d";
12812 fi~
12813 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12814 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12815 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12816 emximp -o $lib $output_objdir/$libname.def'
12817 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12818 enable_shared_with_static_runtimes=yes
a243b558
JF
12819 ;;
12820
12821 osf3*)
9d54db95
JF
12822 if test yes = "$GCC"; then
12823 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12824 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'
a243b558
JF
12825 else
12826 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 12827 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'
a243b558
JF
12828 fi
12829 archive_cmds_need_lc='no'
9d54db95 12830 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12831 hardcode_libdir_separator=:
12832 ;;
12833
12834 osf4* | osf5*) # as osf3* with the addition of -msym flag
9d54db95
JF
12835 if test yes = "$GCC"; then
12836 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12837 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'
12838 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12839 else
12840 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 12841 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'
a243b558 12842 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~
9d54db95 12843 $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'
a243b558
JF
12844
12845 # Both c and cxx compiler support -rpath directly
12846 hardcode_libdir_flag_spec='-rpath $libdir'
12847 fi
12848 archive_cmds_need_lc='no'
12849 hardcode_libdir_separator=:
12850 ;;
12851
12852 solaris*)
12853 no_undefined_flag=' -z defs'
9d54db95
JF
12854 if test yes = "$GCC"; then
12855 wlarc='$wl'
12856 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12857 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12858 $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'
a243b558
JF
12859 else
12860 case `$CC -V 2>&1` in
12861 *"Compilers 5.0"*)
12862 wlarc=''
9d54db95 12863 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
a243b558 12864 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12865 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
a243b558
JF
12866 ;;
12867 *)
9d54db95
JF
12868 wlarc='$wl'
12869 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12871 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a243b558
JF
12872 ;;
12873 esac
12874 fi
12875 hardcode_libdir_flag_spec='-R$libdir'
12876 hardcode_shlibpath_var=no
12877 case $host_os in
12878 solaris2.[0-5] | solaris2.[0-5].*) ;;
12879 *)
12880 # The compiler driver will combine and reorder linker options,
9d54db95 12881 # but understands '-z linker_flag'. GCC discards it without '$wl',
a243b558
JF
12882 # but is careful enough not to reorder.
12883 # Supported since Solaris 2.6 (maybe 2.5.1?)
9d54db95
JF
12884 if test yes = "$GCC"; then
12885 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
a243b558
JF
12886 else
12887 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12888 fi
12889 ;;
12890 esac
12891 link_all_deplibs=yes
12892 ;;
12893
12894 sunos4*)
9d54db95 12895 if test sequent = "$host_vendor"; then
a243b558
JF
12896 # Use $CC to link under sequent, because it throws in some extra .o
12897 # files that make .init and .fini sections work.
9d54db95 12898 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12899 else
12900 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12901 fi
12902 hardcode_libdir_flag_spec='-L$libdir'
12903 hardcode_direct=yes
12904 hardcode_minus_L=yes
12905 hardcode_shlibpath_var=no
12906 ;;
12907
12908 sysv4)
12909 case $host_vendor in
12910 sni)
12911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12912 hardcode_direct=yes # is this really true???
12913 ;;
12914 siemens)
12915 ## LD is ld it makes a PLAMLIB
12916 ## CC just makes a GrossModule.
12917 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12918 reload_cmds='$CC -r -o $output$reload_objs'
12919 hardcode_direct=no
12920 ;;
12921 motorola)
12922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12923 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12924 ;;
12925 esac
12926 runpath_var='LD_RUN_PATH'
12927 hardcode_shlibpath_var=no
12928 ;;
12929
12930 sysv4.3*)
12931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12932 hardcode_shlibpath_var=no
12933 export_dynamic_flag_spec='-Bexport'
12934 ;;
12935
12936 sysv4*MP*)
12937 if test -d /usr/nec; then
12938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12939 hardcode_shlibpath_var=no
12940 runpath_var=LD_RUN_PATH
12941 hardcode_runpath_var=yes
12942 ld_shlibs=yes
12943 fi
12944 ;;
12945
12946 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 12947 no_undefined_flag='$wl-z,text'
a243b558
JF
12948 archive_cmds_need_lc=no
12949 hardcode_shlibpath_var=no
12950 runpath_var='LD_RUN_PATH'
12951
9d54db95
JF
12952 if test yes = "$GCC"; then
12953 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12954 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12955 else
9d54db95
JF
12956 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12957 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12958 fi
12959 ;;
12960
12961 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 12962 # Note: We CANNOT use -z defs as we might desire, because we do not
a243b558
JF
12963 # link with -lc, and that would cause any symbols used from libc to
12964 # always be unresolved, which means just about no library would
12965 # ever link correctly. If we're not using GNU ld we use -z text
12966 # though, which does catch some bad symbols but isn't as heavy-handed
12967 # as -z defs.
9d54db95
JF
12968 no_undefined_flag='$wl-z,text'
12969 allow_undefined_flag='$wl-z,nodefs'
a243b558
JF
12970 archive_cmds_need_lc=no
12971 hardcode_shlibpath_var=no
9d54db95 12972 hardcode_libdir_flag_spec='$wl-R,$libdir'
a243b558
JF
12973 hardcode_libdir_separator=':'
12974 link_all_deplibs=yes
9d54db95 12975 export_dynamic_flag_spec='$wl-Bexport'
a243b558
JF
12976 runpath_var='LD_RUN_PATH'
12977
9d54db95
JF
12978 if test yes = "$GCC"; then
12979 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12980 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12981 else
9d54db95
JF
12982 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12983 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12984 fi
12985 ;;
12986
12987 uts4*)
12988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12989 hardcode_libdir_flag_spec='-L$libdir'
12990 hardcode_shlibpath_var=no
12991 ;;
12992
12993 *)
12994 ld_shlibs=no
12995 ;;
12996 esac
12997
9d54db95 12998 if test sni = "$host_vendor"; then
a243b558
JF
12999 case $host in
13000 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9d54db95 13001 export_dynamic_flag_spec='$wl-Blargedynsym'
a243b558
JF
13002 ;;
13003 esac
13004 fi
13005 fi
13006
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13008$as_echo "$ld_shlibs" >&6; }
9d54db95 13009test no = "$ld_shlibs" && can_build_shared=no
a243b558
JF
13010
13011with_gnu_ld=$with_gnu_ld
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027#
13028# Do we need to explicitly link libc?
13029#
13030case "x$archive_cmds_need_lc" in
13031x|xyes)
13032 # Assume -lc should be added
13033 archive_cmds_need_lc=yes
13034
9d54db95 13035 if test yes,yes = "$GCC,$enable_shared"; then
a243b558
JF
13036 case $archive_cmds in
13037 *'~'*)
13038 # FIXME: we may have to deal with multi-command sequences.
13039 ;;
13040 '$CC '*)
13041 # Test whether the compiler implicitly links with -lc since on some
13042 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13043 # to ld, don't add -lc before -lgcc.
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13045$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13046if ${lt_cv_archive_cmds_need_lc+:} false; then :
13047 $as_echo_n "(cached) " >&6
13048else
00a96142 13049 $RM -r conftest*
a243b558
JF
13050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13051
13052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13053 (eval $ac_compile) 2>&5
13054 ac_status=$?
13055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13056 test $ac_status = 0; } 2>conftest.err; then
13057 soname=conftest
13058 lib=conftest
13059 libobjs=conftest.$ac_objext
13060 deplibs=
13061 wl=$lt_prog_compiler_wl
13062 pic_flag=$lt_prog_compiler_pic
13063 compiler_flags=-v
13064 linker_flags=-v
13065 verstring=
13066 output_objdir=.
13067 libname=conftest
13068 lt_save_allow_undefined_flag=$allow_undefined_flag
13069 allow_undefined_flag=
13070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13071 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13072 ac_status=$?
13073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074 test $ac_status = 0; }
13075 then
13076 lt_cv_archive_cmds_need_lc=no
13077 else
13078 lt_cv_archive_cmds_need_lc=yes
13079 fi
13080 allow_undefined_flag=$lt_save_allow_undefined_flag
13081 else
13082 cat conftest.err 1>&5
13083 fi
00a96142 13084 $RM -r conftest*
a243b558
JF
13085
13086fi
13087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13088$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13089 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13090 ;;
13091 esac
13092 fi
13093 ;;
13094esac
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13248$as_echo_n "checking dynamic linker characteristics... " >&6; }
13249
9d54db95 13250if test yes = "$GCC"; then
a243b558 13251 case $host_os in
9d54db95
JF
13252 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13253 *) lt_awk_arg='/^libraries:/' ;;
a243b558
JF
13254 esac
13255 case $host_os in
9d54db95
JF
13256 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13257 *) lt_sed_strip_eq='s|=/|/|g' ;;
a243b558
JF
13258 esac
13259 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13260 case $lt_search_path_spec in
13261 *\;*)
13262 # if the path contains ";" then we assume it to be the separator
13263 # otherwise default to the standard path separator (i.e. ":") - it is
13264 # assumed that no part of a normal pathname contains ";" but that should
13265 # okay in the real world where ";" in dirpaths is itself problematic.
13266 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13267 ;;
13268 *)
13269 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13270 ;;
13271 esac
13272 # Ok, now we have the path, separated by spaces, we can step through it
9d54db95 13273 # and add multilib dir if necessary...
a243b558 13274 lt_tmp_lt_search_path_spec=
9d54db95
JF
13275 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13276 # ...but if some path component already ends with the multilib dir we assume
13277 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13278 case "$lt_multi_os_dir; $lt_search_path_spec " in
13279 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13280 lt_multi_os_dir=
13281 ;;
13282 esac
a243b558 13283 for lt_sys_path in $lt_search_path_spec; do
9d54db95
JF
13284 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13285 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13286 elif test -n "$lt_multi_os_dir"; then
a243b558
JF
13287 test -d "$lt_sys_path" && \
13288 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13289 fi
13290 done
13291 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9d54db95
JF
13292BEGIN {RS = " "; FS = "/|\n";} {
13293 lt_foo = "";
13294 lt_count = 0;
a243b558
JF
13295 for (lt_i = NF; lt_i > 0; lt_i--) {
13296 if ($lt_i != "" && $lt_i != ".") {
13297 if ($lt_i == "..") {
13298 lt_count++;
13299 } else {
13300 if (lt_count == 0) {
9d54db95 13301 lt_foo = "/" $lt_i lt_foo;
a243b558
JF
13302 } else {
13303 lt_count--;
13304 }
13305 }
13306 }
13307 }
13308 if (lt_foo != "") { lt_freq[lt_foo]++; }
13309 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13310}'`
13311 # AWK program above erroneously prepends '/' to C:/dos/paths
13312 # for these hosts.
13313 case $host_os in
13314 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9d54db95 13315 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
a243b558
JF
13316 esac
13317 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13318else
13319 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13320fi
13321library_names_spec=
13322libname_spec='lib$name'
13323soname_spec=
9d54db95 13324shrext_cmds=.so
a243b558
JF
13325postinstall_cmds=
13326postuninstall_cmds=
13327finish_cmds=
13328finish_eval=
13329shlibpath_var=
13330shlibpath_overrides_runpath=unknown
13331version_type=none
13332dynamic_linker="$host_os ld.so"
13333sys_lib_dlsearch_path_spec="/lib /usr/lib"
13334need_lib_prefix=unknown
13335hardcode_into_libs=no
13336
13337# when you set need_version to no, make sure it does not cause -set_version
13338# flags to be left without arguments
13339need_version=unknown
13340
9d54db95
JF
13341
13342
a243b558
JF
13343case $host_os in
13344aix3*)
13345 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 13346 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
a243b558
JF
13347 shlibpath_var=LIBPATH
13348
13349 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 13350 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13351 ;;
13352
13353aix[4-9]*)
13354 version_type=linux # correct to gnu/linux during the next big refactor
13355 need_lib_prefix=no
13356 need_version=no
13357 hardcode_into_libs=yes
9d54db95 13358 if test ia64 = "$host_cpu"; then
a243b558 13359 # AIX 5 supports IA64
9d54db95 13360 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
a243b558
JF
13361 shlibpath_var=LD_LIBRARY_PATH
13362 else
13363 # With GCC up to 2.95.x, collect2 would create an import file
13364 # for dependence libraries. The import file would start with
9d54db95
JF
13365 # the line '#! .'. This would cause the generated library to
13366 # depend on '.', always an invalid library. This was fixed in
a243b558
JF
13367 # development snapshots of GCC prior to 3.0.
13368 case $host_os in
13369 aix4 | aix4.[01] | aix4.[01].*)
13370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13371 echo ' yes '
9d54db95 13372 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
a243b558
JF
13373 :
13374 else
13375 can_build_shared=no
13376 fi
13377 ;;
13378 esac
9d54db95
JF
13379 # Using Import Files as archive members, it is possible to support
13380 # filename-based versioning of shared library archives on AIX. While
13381 # this would work for both with and without runtime linking, it will
13382 # prevent static linking of such archives. So we do filename-based
13383 # shared library versioning with .so extension only, which is used
13384 # when both runtime linking and shared linking is enabled.
13385 # Unfortunately, runtime linking may impact performance, so we do
13386 # not want this to be the default eventually. Also, we use the
13387 # versioned .so libs for executables only if there is the -brtl
13388 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13389 # To allow for filename-based versioning support, we need to create
13390 # libNAME.so.V as an archive file, containing:
13391 # *) an Import File, referring to the versioned filename of the
13392 # archive as well as the shared archive member, telling the
13393 # bitwidth (32 or 64) of that shared object, and providing the
13394 # list of exported symbols of that shared object, eventually
13395 # decorated with the 'weak' keyword
13396 # *) the shared object with the F_LOADONLY flag set, to really avoid
13397 # it being seen by the linker.
13398 # At run time we better use the real file rather than another symlink,
13399 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13400
13401 case $with_aix_soname,$aix_use_runtimelinking in
13402 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
a243b558
JF
13403 # soname into executable. Probably we can add versioning support to
13404 # collect2, so additional links can be useful in future.
9d54db95
JF
13405 aix,yes) # traditional libtool
13406 dynamic_linker='AIX unversionable lib.so'
a243b558
JF
13407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13408 # instead of lib<name>.a to let people know that these are not
13409 # typical AIX shared libraries.
9d54db95
JF
13410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13411 ;;
13412 aix,no) # traditional AIX only
13413 dynamic_linker='AIX lib.a(lib.so.V)'
a243b558
JF
13414 # We preserve .a as extension for shared libraries through AIX4.2
13415 # and later when we are not doing run time linking.
9d54db95
JF
13416 library_names_spec='$libname$release.a $libname.a'
13417 soname_spec='$libname$release$shared_ext$major'
13418 ;;
13419 svr4,*) # full svr4 only
13420 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13421 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13422 # We do not specify a path in Import Files, so LIBPATH fires.
13423 shlibpath_overrides_runpath=yes
13424 ;;
13425 *,yes) # both, prefer svr4
13426 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13427 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13428 # unpreferred sharedlib libNAME.a needs extra handling
13429 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13430 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13431 # We do not specify a path in Import Files, so LIBPATH fires.
13432 shlibpath_overrides_runpath=yes
13433 ;;
13434 *,no) # both, prefer aix
13435 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13436 library_names_spec='$libname$release.a $libname.a'
13437 soname_spec='$libname$release$shared_ext$major'
13438 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13439 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13440 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13441 ;;
13442 esac
a243b558
JF
13443 shlibpath_var=LIBPATH
13444 fi
13445 ;;
13446
13447amigaos*)
13448 case $host_cpu in
13449 powerpc)
13450 # Since July 2007 AmigaOS4 officially supports .so libraries.
13451 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 13452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13453 ;;
13454 m68k)
13455 library_names_spec='$libname.ixlibrary $libname.a'
13456 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 13457 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
a243b558
JF
13458 ;;
13459 esac
13460 ;;
13461
13462beos*)
9d54db95 13463 library_names_spec='$libname$shared_ext'
a243b558
JF
13464 dynamic_linker="$host_os ld.so"
13465 shlibpath_var=LIBRARY_PATH
13466 ;;
13467
13468bsdi[45]*)
13469 version_type=linux # correct to gnu/linux during the next big refactor
13470 need_version=no
9d54db95
JF
13471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13472 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13473 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13474 shlibpath_var=LD_LIBRARY_PATH
13475 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13476 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13477 # the default ld.so.conf also contains /usr/contrib/lib and
13478 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13479 # libtool to hard-code these into programs
13480 ;;
13481
13482cygwin* | mingw* | pw32* | cegcc*)
13483 version_type=windows
9d54db95 13484 shrext_cmds=.dll
a243b558
JF
13485 need_version=no
13486 need_lib_prefix=no
9c60689e 13487
a243b558
JF
13488 case $GCC,$cc_basename in
13489 yes,*)
13490 # gcc
13491 library_names_spec='$libname.dll.a'
13492 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
13493 postinstall_cmds='base_file=`basename \$file`~
13494 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
13495 dldir=$destdir/`dirname \$dlpath`~
13496 test -d \$dldir || mkdir -p \$dldir~
13497 $install_prog $dir/$dlname \$dldir/$dlname~
13498 chmod a+x \$dldir/$dlname~
13499 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13500 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13501 fi'
13502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13503 dlpath=$dir/\$dldll~
13504 $RM \$dlpath'
13505 shlibpath_overrides_runpath=yes
9c60689e 13506
a243b558
JF
13507 case $host_os in
13508 cygwin*)
13509 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 13510 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9c60689e 13511
a243b558
JF
13512 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13513 ;;
13514 mingw* | cegcc*)
13515 # MinGW DLLs use traditional 'lib' prefix
9d54db95 13516 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
13517 ;;
13518 pw32*)
13519 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 13520 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
13521 ;;
13522 esac
13523 dynamic_linker='Win32 ld.exe'
13524 ;;
9c60689e 13525
a243b558
JF
13526 *,cl*)
13527 # Native MSVC
13528 libname_spec='$name'
9d54db95
JF
13529 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13530 library_names_spec='$libname.dll.lib'
9c60689e 13531
a243b558
JF
13532 case $build_os in
13533 mingw*)
13534 sys_lib_search_path_spec=
13535 lt_save_ifs=$IFS
13536 IFS=';'
13537 for lt_path in $LIB
13538 do
13539 IFS=$lt_save_ifs
13540 # Let DOS variable expansion print the short 8.3 style file name.
13541 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13542 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13543 done
13544 IFS=$lt_save_ifs
13545 # Convert to MSYS style.
13546 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13547 ;;
13548 cygwin*)
13549 # Convert to unix form, then to dos form, then back to unix form
13550 # but this time dos style (no spaces!) so that the unix form looks
13551 # like /cygdrive/c/PROGRA~1:/cygdr...
13552 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13553 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13554 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13555 ;;
13556 *)
9d54db95 13557 sys_lib_search_path_spec=$LIB
a243b558
JF
13558 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13559 # It is most probably a Windows format PATH.
13560 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13561 else
13562 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13563 fi
13564 # FIXME: find the short name or the path components, as spaces are
13565 # common. (e.g. "Program Files" -> "PROGRA~1")
13566 ;;
13567 esac
13568
13569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
13570 postinstall_cmds='base_file=`basename \$file`~
13571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
13572 dldir=$destdir/`dirname \$dlpath`~
13573 test -d \$dldir || mkdir -p \$dldir~
13574 $install_prog $dir/$dlname \$dldir/$dlname'
13575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13576 dlpath=$dir/\$dldll~
13577 $RM \$dlpath'
13578 shlibpath_overrides_runpath=yes
13579 dynamic_linker='Win32 link.exe'
13580 ;;
9c60689e 13581
a243b558
JF
13582 *)
13583 # Assume MSVC wrapper
9d54db95 13584 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
a243b558
JF
13585 dynamic_linker='Win32 ld.exe'
13586 ;;
13587 esac
13588 # FIXME: first we should search . and the directory the executable is in
13589 shlibpath_var=PATH
13590 ;;
9c60689e 13591
a243b558
JF
13592darwin* | rhapsody*)
13593 dynamic_linker="$host_os dyld"
13594 version_type=darwin
13595 need_lib_prefix=no
13596 need_version=no
9d54db95
JF
13597 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13598 soname_spec='$libname$release$major$shared_ext'
a243b558
JF
13599 shlibpath_overrides_runpath=yes
13600 shlibpath_var=DYLD_LIBRARY_PATH
13601 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 13602
a243b558
JF
13603 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13605 ;;
9c60689e 13606
a243b558
JF
13607dgux*)
13608 version_type=linux # correct to gnu/linux during the next big refactor
13609 need_lib_prefix=no
13610 need_version=no
9d54db95
JF
13611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13612 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13613 shlibpath_var=LD_LIBRARY_PATH
13614 ;;
13615
13616freebsd* | dragonfly*)
13617 # DragonFly does not have aout. When/if they implement a new
13618 # versioning mechanism, adjust this.
13619 if test -x /usr/bin/objformat; then
13620 objformat=`/usr/bin/objformat`
13621 else
13622 case $host_os in
13623 freebsd[23].*) objformat=aout ;;
13624 *) objformat=elf ;;
13625 esac
13626 fi
13627 version_type=freebsd-$objformat
13628 case $version_type in
13629 freebsd-elf*)
9d54db95
JF
13630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13631 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13632 need_version=no
13633 need_lib_prefix=no
13634 ;;
13635 freebsd-*)
9d54db95 13636 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13637 need_version=yes
13638 ;;
13639 esac
13640 shlibpath_var=LD_LIBRARY_PATH
13641 case $host_os in
13642 freebsd2.*)
13643 shlibpath_overrides_runpath=yes
13644 ;;
13645 freebsd3.[01]* | freebsdelf3.[01]*)
13646 shlibpath_overrides_runpath=yes
13647 hardcode_into_libs=yes
13648 ;;
13649 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13650 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13651 shlibpath_overrides_runpath=no
13652 hardcode_into_libs=yes
13653 ;;
13654 *) # from 4.6 on, and DragonFly
13655 shlibpath_overrides_runpath=yes
13656 hardcode_into_libs=yes
13657 ;;
13658 esac
13659 ;;
9c60689e 13660
a243b558
JF
13661haiku*)
13662 version_type=linux # correct to gnu/linux during the next big refactor
13663 need_lib_prefix=no
13664 need_version=no
13665 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
13666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13667 soname_spec='$libname$release$shared_ext$major'
a243b558 13668 shlibpath_var=LIBRARY_PATH
9d54db95 13669 shlibpath_overrides_runpath=no
a243b558
JF
13670 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13671 hardcode_into_libs=yes
13672 ;;
9c60689e 13673
a243b558
JF
13674hpux9* | hpux10* | hpux11*)
13675 # Give a soname corresponding to the major version so that dld.sl refuses to
13676 # link against other versions.
13677 version_type=sunos
13678 need_lib_prefix=no
13679 need_version=no
13680 case $host_cpu in
13681 ia64*)
13682 shrext_cmds='.so'
13683 hardcode_into_libs=yes
13684 dynamic_linker="$host_os dld.so"
13685 shlibpath_var=LD_LIBRARY_PATH
13686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
13687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13688 soname_spec='$libname$release$shared_ext$major'
13689 if test 32 = "$HPUX_IA64_MODE"; then
a243b558 13690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 13691 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a243b558
JF
13692 else
13693 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 13694 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
a243b558 13695 fi
a243b558
JF
13696 ;;
13697 hppa*64*)
13698 shrext_cmds='.sl'
13699 hardcode_into_libs=yes
13700 dynamic_linker="$host_os dld.sl"
13701 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
13703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13704 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13705 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13707 ;;
13708 *)
13709 shrext_cmds='.sl'
13710 dynamic_linker="$host_os dld.sl"
13711 shlibpath_var=SHLIB_PATH
13712 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
13713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13714 soname_spec='$libname$release$shared_ext$major'
9c60689e
DWT
13715 ;;
13716 esac
a243b558
JF
13717 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13718 postinstall_cmds='chmod 555 $lib'
13719 # or fails outright, so override atomically:
13720 install_override_mode=555
13721 ;;
9c60689e 13722
a243b558
JF
13723interix[3-9]*)
13724 version_type=linux # correct to gnu/linux during the next big refactor
13725 need_lib_prefix=no
13726 need_version=no
9d54db95
JF
13727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13728 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13729 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13730 shlibpath_var=LD_LIBRARY_PATH
13731 shlibpath_overrides_runpath=no
13732 hardcode_into_libs=yes
13733 ;;
9c60689e 13734
a243b558
JF
13735irix5* | irix6* | nonstopux*)
13736 case $host_os in
13737 nonstopux*) version_type=nonstopux ;;
13738 *)
9d54db95 13739 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
13740 version_type=linux # correct to gnu/linux during the next big refactor
13741 else
13742 version_type=irix
13743 fi ;;
13744 esac
13745 need_lib_prefix=no
13746 need_version=no
9d54db95
JF
13747 soname_spec='$libname$release$shared_ext$major'
13748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
a243b558
JF
13749 case $host_os in
13750 irix5* | nonstopux*)
13751 libsuff= shlibsuff=
13752 ;;
13753 *)
13754 case $LD in # libtool.m4 will add one of these switches to LD
13755 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13756 libsuff= shlibsuff= libmagic=32-bit;;
13757 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13758 libsuff=32 shlibsuff=N32 libmagic=N32;;
13759 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13760 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13761 *) libsuff= shlibsuff= libmagic=never-match;;
13762 esac
13763 ;;
13764 esac
13765 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13766 shlibpath_overrides_runpath=no
9d54db95
JF
13767 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13768 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
a243b558
JF
13769 hardcode_into_libs=yes
13770 ;;
9c60689e 13771
a243b558
JF
13772# No shared lib support for Linux oldld, aout, or coff.
13773linux*oldld* | linux*aout* | linux*coff*)
13774 dynamic_linker=no
13775 ;;
9c60689e 13776
9d54db95
JF
13777linux*android*)
13778 version_type=none # Android doesn't support versioned libraries.
13779 need_lib_prefix=no
13780 need_version=no
13781 library_names_spec='$libname$release$shared_ext'
13782 soname_spec='$libname$release$shared_ext'
13783 finish_cmds=
13784 shlibpath_var=LD_LIBRARY_PATH
13785 shlibpath_overrides_runpath=yes
13786
13787 # This implies no fast_install, which is unacceptable.
13788 # Some rework will be needed to allow for fast_install
13789 # before this can be enabled.
13790 hardcode_into_libs=yes
13791
13792 dynamic_linker='Android linker'
13793 # Don't embed -rpath directories since the linker doesn't support them.
13794 hardcode_libdir_flag_spec='-L$libdir'
13795 ;;
13796
a243b558 13797# This must be glibc/ELF.
9d54db95 13798linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
13799 version_type=linux # correct to gnu/linux during the next big refactor
13800 need_lib_prefix=no
13801 need_version=no
9d54db95
JF
13802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13803 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13805 shlibpath_var=LD_LIBRARY_PATH
13806 shlibpath_overrides_runpath=no
9c60689e 13807
a243b558
JF
13808 # Some binutils ld are patched to set DT_RUNPATH
13809 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
13810 $as_echo_n "(cached) " >&6
13811else
a243b558
JF
13812 lt_cv_shlibpath_overrides_runpath=no
13813 save_LDFLAGS=$LDFLAGS
13814 save_libdir=$libdir
13815 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13816 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818/* end confdefs.h. */
ee134472 13819
a243b558
JF
13820int
13821main ()
9c60689e 13822{
9c60689e 13823
a243b558
JF
13824 ;
13825 return 0;
13826}
13827_ACEOF
13828if ac_fn_c_try_link "$LINENO"; then :
13829 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13830 lt_cv_shlibpath_overrides_runpath=yes
13831fi
13832fi
13833rm -f core conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
13835 LDFLAGS=$save_LDFLAGS
13836 libdir=$save_libdir
9c60689e 13837
a243b558 13838fi
9c60689e 13839
a243b558 13840 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 13841
a243b558
JF
13842 # This implies no fast_install, which is unacceptable.
13843 # Some rework will be needed to allow for fast_install
13844 # before this can be enabled.
13845 hardcode_into_libs=yes
9c60689e 13846
9d54db95
JF
13847 # Ideally, we could use ldconfig to report *all* directores which are
13848 # searched for libraries, however this is still not possible. Aside from not
13849 # being certain /sbin/ldconfig is available, command
13850 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13851 # even though it is searched at run-time. Try to do the best guess by
13852 # appending ld.so.conf contents (and includes) to the search path.
a243b558
JF
13853 if test -f /etc/ld.so.conf; then
13854 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' ' '`
13855 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13856 fi
ee134472 13857
a243b558
JF
13858 # We used to test for /lib/ld.so.1 and disable shared libraries on
13859 # powerpc, because MkLinux only supported shared libraries with the
13860 # GNU dynamic linker. Since this was broken with cross compilers,
13861 # most powerpc-linux boxes support dynamic linking these days and
13862 # people can always --disable-shared, the test was removed, and we
13863 # assume the GNU/Linux dynamic linker is in use.
13864 dynamic_linker='GNU/Linux ld.so'
13865 ;;
9c60689e 13866
a243b558
JF
13867netbsd*)
13868 version_type=sunos
13869 need_lib_prefix=no
13870 need_version=no
13871 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 13872 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13874 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 13875 else
9d54db95
JF
13876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13877 soname_spec='$libname$release$shared_ext$major'
a243b558 13878 dynamic_linker='NetBSD ld.elf_so'
9c60689e 13879 fi
a243b558
JF
13880 shlibpath_var=LD_LIBRARY_PATH
13881 shlibpath_overrides_runpath=yes
13882 hardcode_into_libs=yes
13883 ;;
9c60689e 13884
a243b558
JF
13885newsos6)
13886 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 13887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13888 shlibpath_var=LD_LIBRARY_PATH
13889 shlibpath_overrides_runpath=yes
13890 ;;
9c60689e 13891
a243b558
JF
13892*nto* | *qnx*)
13893 version_type=qnx
13894 need_lib_prefix=no
13895 need_version=no
9d54db95
JF
13896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13897 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13898 shlibpath_var=LD_LIBRARY_PATH
13899 shlibpath_overrides_runpath=no
13900 hardcode_into_libs=yes
13901 dynamic_linker='ldqnx.so'
13902 ;;
9c60689e 13903
9d54db95 13904openbsd* | bitrig*)
a243b558 13905 version_type=sunos
9d54db95 13906 sys_lib_dlsearch_path_spec=/usr/lib
a243b558 13907 need_lib_prefix=no
9d54db95
JF
13908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13909 need_version=no
a243b558 13910 else
9d54db95 13911 need_version=yes
a243b558 13912 fi
9d54db95
JF
13913 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13915 shlibpath_var=LD_LIBRARY_PATH
13916 shlibpath_overrides_runpath=yes
a243b558 13917 ;;
9c60689e 13918
a243b558
JF
13919os2*)
13920 libname_spec='$name'
9d54db95
JF
13921 version_type=windows
13922 shrext_cmds=.dll
13923 need_version=no
a243b558 13924 need_lib_prefix=no
9d54db95
JF
13925 # OS/2 can only load a DLL with a base name of 8 characters or less.
13926 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13927 v=$($ECHO $release$versuffix | tr -d .-);
13928 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13929 $ECHO $n$v`$shared_ext'
13930 library_names_spec='${libname}_dll.$libext'
a243b558 13931 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
13932 shlibpath_var=BEGINLIBPATH
13933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13935 postinstall_cmds='base_file=`basename \$file`~
13936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13937 dldir=$destdir/`dirname \$dlpath`~
13938 test -d \$dldir || mkdir -p \$dldir~
13939 $install_prog $dir/$dlname \$dldir/$dlname~
13940 chmod a+x \$dldir/$dlname~
13941 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13942 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13943 fi'
13944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13945 dlpath=$dir/\$dldll~
13946 $RM \$dlpath'
a243b558 13947 ;;
9c60689e 13948
a243b558
JF
13949osf3* | osf4* | osf5*)
13950 version_type=osf
13951 need_lib_prefix=no
13952 need_version=no
9d54db95
JF
13953 soname_spec='$libname$release$shared_ext$major'
13954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13955 shlibpath_var=LD_LIBRARY_PATH
13956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 13957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
a243b558
JF
13958 ;;
13959
13960rdos*)
13961 dynamic_linker=no
13962 ;;
13963
13964solaris*)
13965 version_type=linux # correct to gnu/linux during the next big refactor
13966 need_lib_prefix=no
13967 need_version=no
9d54db95
JF
13968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13969 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13970 shlibpath_var=LD_LIBRARY_PATH
13971 shlibpath_overrides_runpath=yes
13972 hardcode_into_libs=yes
13973 # ldd complains unless libraries are executable
13974 postinstall_cmds='chmod +x $lib'
13975 ;;
9c60689e 13976
a243b558
JF
13977sunos4*)
13978 version_type=sunos
9d54db95 13979 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13980 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13981 shlibpath_var=LD_LIBRARY_PATH
13982 shlibpath_overrides_runpath=yes
9d54db95 13983 if test yes = "$with_gnu_ld"; then
a243b558
JF
13984 need_lib_prefix=no
13985 fi
13986 need_version=yes
13987 ;;
9c60689e 13988
a243b558
JF
13989sysv4 | sysv4.3*)
13990 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
13991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13992 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13993 shlibpath_var=LD_LIBRARY_PATH
13994 case $host_vendor in
13995 sni)
13996 shlibpath_overrides_runpath=no
13997 need_lib_prefix=no
13998 runpath_var=LD_RUN_PATH
13999 ;;
14000 siemens)
14001 need_lib_prefix=no
14002 ;;
14003 motorola)
14004 need_lib_prefix=no
14005 need_version=no
14006 shlibpath_overrides_runpath=no
14007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14008 ;;
14009 esac
14010 ;;
9c60689e 14011
a243b558 14012sysv4*MP*)
9d54db95 14013 if test -d /usr/nec; then
a243b558 14014 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
14015 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14016 soname_spec='$libname$shared_ext.$major'
a243b558
JF
14017 shlibpath_var=LD_LIBRARY_PATH
14018 fi
14019 ;;
9c60689e 14020
a243b558 14021sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 14022 version_type=sco
a243b558
JF
14023 need_lib_prefix=no
14024 need_version=no
9d54db95
JF
14025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14026 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=yes
14029 hardcode_into_libs=yes
9d54db95 14030 if test yes = "$with_gnu_ld"; then
a243b558
JF
14031 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14032 else
14033 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14034 case $host_os in
14035 sco3.2v5*)
14036 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14037 ;;
14038 esac
14039 fi
14040 sys_lib_dlsearch_path_spec='/usr/lib'
14041 ;;
9c60689e 14042
a243b558
JF
14043tpf*)
14044 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14045 version_type=linux # correct to gnu/linux during the next big refactor
14046 need_lib_prefix=no
14047 need_version=no
9d54db95 14048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
14049 shlibpath_var=LD_LIBRARY_PATH
14050 shlibpath_overrides_runpath=no
14051 hardcode_into_libs=yes
14052 ;;
9c60689e 14053
a243b558
JF
14054uts4*)
14055 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
14056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14057 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
14058 shlibpath_var=LD_LIBRARY_PATH
14059 ;;
9c60689e 14060
a243b558
JF
14061*)
14062 dynamic_linker=no
14063 ;;
14064esac
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14066$as_echo "$dynamic_linker" >&6; }
9d54db95 14067test no = "$dynamic_linker" && can_build_shared=no
9c60689e 14068
a243b558 14069variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 14070if test yes = "$GCC"; then
a243b558
JF
14071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14072fi
9c60689e 14073
9d54db95
JF
14074if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14075 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
a243b558 14076fi
9d54db95
JF
14077
14078if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14079 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a243b558 14080fi
9c60689e 14081
9d54db95
JF
14082# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14083configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14084
14085# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14086func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14087
14088# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14089configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14090
14091
14092
14093
14094
14095
9c60689e
DWT
14096
14097
14098
14099
14100
14101
14102
9c60689e
DWT
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
9c60689e 14115
9c60689e 14116
9c60689e 14117
9c60689e 14118
9c60689e
DWT
14119
14120
14121
14122
9c60689e 14123
9c60689e
DWT
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
53ba6704
JF
14137
14138
9c60689e
DWT
14139
14140
14141
14142
9c60689e
DWT
14143
14144
3fd51f51 14145
66170b30
JF
14146
14147
14148
3fd51f51 14149
12833ad8
JF
14150
14151
14152
14153
3fd51f51 14154
3fd51f51
DWT
14155
14156
3fd51f51 14157
3fd51f51 14158
3fd51f51 14159
66170b30 14160
632b71ea 14161
632b71ea
DWT
14162
14163
790e5246 14164
66170b30 14165
9c60689e 14166
9c60689e
DWT
14167
14168
9c60689e 14169
9c60689e
DWT
14170
14171
66170b30 14172
66170b30 14173
9c60689e 14174
e9c9a47c
DWT
14175
14176
14177
66170b30
JF
14178
14179
66170b30 14180
e9c9a47c 14181
a243b558
JF
14182
14183
14184
14185
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14188$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14189hardcode_action=
14190if test -n "$hardcode_libdir_flag_spec" ||
14191 test -n "$runpath_var" ||
9d54db95 14192 test yes = "$hardcode_automatic"; then
a243b558
JF
14193
14194 # We can hardcode non-existent directories.
9d54db95 14195 if test no != "$hardcode_direct" &&
a243b558
JF
14196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14197 # have to relink, otherwise we might link with an installed library
14198 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
14199 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14200 test no != "$hardcode_minus_L"; then
a243b558
JF
14201 # Linking always hardcodes the temporary library directory.
14202 hardcode_action=relink
14203 else
14204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14205 hardcode_action=immediate
9c60689e 14206 fi
e9c9a47c 14207else
a243b558
JF
14208 # We cannot hardcode anything, or else we can only hardcode existing
14209 # directories.
14210 hardcode_action=unsupported
14211fi
14212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14213$as_echo "$hardcode_action" >&6; }
14214
9d54db95
JF
14215if test relink = "$hardcode_action" ||
14216 test yes = "$inherit_rpath"; then
a243b558
JF
14217 # Fast installation is not supported
14218 enable_fast_install=no
9d54db95
JF
14219elif test yes = "$shlibpath_overrides_runpath" ||
14220 test no = "$enable_shared"; then
a243b558
JF
14221 # Fast installation is not necessary
14222 enable_fast_install=needless
9c60689e 14223fi
9c60689e 14224
9c60689e 14225
66170b30 14226
66170b30 14227
9c60689e 14228
a243b558 14229
9d54db95 14230 if test yes != "$enable_dlopen"; then
a243b558
JF
14231 enable_dlopen=unknown
14232 enable_dlopen_self=unknown
14233 enable_dlopen_self_static=unknown
66170b30 14234else
a243b558
JF
14235 lt_cv_dlopen=no
14236 lt_cv_dlopen_libs=
66170b30 14237
a243b558
JF
14238 case $host_os in
14239 beos*)
9d54db95 14240 lt_cv_dlopen=load_add_on
a243b558
JF
14241 lt_cv_dlopen_libs=
14242 lt_cv_dlopen_self=yes
14243 ;;
66170b30 14244
a243b558 14245 mingw* | pw32* | cegcc*)
9d54db95 14246 lt_cv_dlopen=LoadLibrary
a243b558
JF
14247 lt_cv_dlopen_libs=
14248 ;;
66170b30 14249
a243b558 14250 cygwin*)
9d54db95 14251 lt_cv_dlopen=dlopen
a243b558
JF
14252 lt_cv_dlopen_libs=
14253 ;;
66170b30 14254
a243b558 14255 darwin*)
9d54db95 14256 # if libdl is installed we need to link against it
a243b558
JF
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14258$as_echo_n "checking for dlopen in -ldl... " >&6; }
14259if ${ac_cv_lib_dl_dlopen+:} false; then :
14260 $as_echo_n "(cached) " >&6
14261else
14262 ac_check_lib_save_LIBS=$LIBS
14263LIBS="-ldl $LIBS"
14264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265/* end confdefs.h. */
66170b30 14266
a243b558
JF
14267/* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
14270#ifdef __cplusplus
14271extern "C"
14272#endif
14273char dlopen ();
14274int
14275main ()
14276{
14277return dlopen ();
14278 ;
14279 return 0;
14280}
14281_ACEOF
14282if ac_fn_c_try_link "$LINENO"; then :
14283 ac_cv_lib_dl_dlopen=yes
14284else
14285 ac_cv_lib_dl_dlopen=no
66170b30 14286fi
a243b558
JF
14287rm -f core conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14289LIBS=$ac_check_lib_save_LIBS
66170b30 14290fi
a243b558
JF
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14292$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14293if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 14294 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558 14295else
66170b30 14296
9d54db95 14297 lt_cv_dlopen=dyld
a243b558
JF
14298 lt_cv_dlopen_libs=
14299 lt_cv_dlopen_self=yes
66170b30 14300
a243b558 14301fi
9c60689e 14302
a243b558 14303 ;;
9c60689e 14304
9d54db95
JF
14305 tpf*)
14306 # Don't try to run any link tests for TPF. We know it's impossible
14307 # because TPF is a cross-compiler, and we know how we open DSOs.
14308 lt_cv_dlopen=dlopen
14309 lt_cv_dlopen_libs=
14310 lt_cv_dlopen_self=no
14311 ;;
14312
a243b558
JF
14313 *)
14314 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14315if test "x$ac_cv_func_shl_load" = xyes; then :
9d54db95 14316 lt_cv_dlopen=shl_load
a243b558
JF
14317else
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14319$as_echo_n "checking for shl_load in -ldld... " >&6; }
14320if ${ac_cv_lib_dld_shl_load+:} false; then :
14321 $as_echo_n "(cached) " >&6
14322else
14323 ac_check_lib_save_LIBS=$LIBS
14324LIBS="-ldld $LIBS"
14325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326/* end confdefs.h. */
66170b30 14327
a243b558
JF
14328/* Override any GCC internal prototype to avoid an error.
14329 Use char because int might match the return type of a GCC
14330 builtin and then its argument prototype would still apply. */
14331#ifdef __cplusplus
14332extern "C"
14333#endif
14334char shl_load ();
14335int
14336main ()
14337{
14338return shl_load ();
14339 ;
14340 return 0;
14341}
14342_ACEOF
14343if ac_fn_c_try_link "$LINENO"; then :
14344 ac_cv_lib_dld_shl_load=yes
66170b30 14345else
a243b558
JF
14346 ac_cv_lib_dld_shl_load=no
14347fi
14348rm -f core conftest.err conftest.$ac_objext \
14349 conftest$ac_exeext conftest.$ac_ext
14350LIBS=$ac_check_lib_save_LIBS
66170b30 14351fi
a243b558
JF
14352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14353$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14354if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9d54db95 14355 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
a243b558
JF
14356else
14357 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14358if test "x$ac_cv_func_dlopen" = xyes; then :
9d54db95 14359 lt_cv_dlopen=dlopen
a243b558
JF
14360else
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14362$as_echo_n "checking for dlopen in -ldl... " >&6; }
14363if ${ac_cv_lib_dl_dlopen+:} false; then :
14364 $as_echo_n "(cached) " >&6
14365else
14366 ac_check_lib_save_LIBS=$LIBS
14367LIBS="-ldl $LIBS"
14368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369/* end confdefs.h. */
e9c9a47c 14370
a243b558
JF
14371/* Override any GCC internal prototype to avoid an error.
14372 Use char because int might match the return type of a GCC
14373 builtin and then its argument prototype would still apply. */
14374#ifdef __cplusplus
14375extern "C"
14376#endif
14377char dlopen ();
14378int
14379main ()
14380{
14381return dlopen ();
14382 ;
14383 return 0;
14384}
14385_ACEOF
14386if ac_fn_c_try_link "$LINENO"; then :
14387 ac_cv_lib_dl_dlopen=yes
14388else
14389 ac_cv_lib_dl_dlopen=no
14390fi
14391rm -f core conftest.err conftest.$ac_objext \
14392 conftest$ac_exeext conftest.$ac_ext
14393LIBS=$ac_check_lib_save_LIBS
14394fi
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14396$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14397if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 14398 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558
JF
14399else
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14401$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14402if ${ac_cv_lib_svld_dlopen+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404else
14405 ac_check_lib_save_LIBS=$LIBS
14406LIBS="-lsvld $LIBS"
14407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408/* end confdefs.h. */
14409
14410/* Override any GCC internal prototype to avoid an error.
14411 Use char because int might match the return type of a GCC
14412 builtin and then its argument prototype would still apply. */
14413#ifdef __cplusplus
14414extern "C"
14415#endif
14416char dlopen ();
14417int
14418main ()
14419{
14420return dlopen ();
14421 ;
14422 return 0;
14423}
14424_ACEOF
14425if ac_fn_c_try_link "$LINENO"; then :
14426 ac_cv_lib_svld_dlopen=yes
14427else
14428 ac_cv_lib_svld_dlopen=no
14429fi
14430rm -f core conftest.err conftest.$ac_objext \
14431 conftest$ac_exeext conftest.$ac_ext
14432LIBS=$ac_check_lib_save_LIBS
14433fi
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14435$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14436if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9d54db95 14437 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
a243b558
JF
14438else
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14440$as_echo_n "checking for dld_link in -ldld... " >&6; }
14441if ${ac_cv_lib_dld_dld_link+:} false; then :
14442 $as_echo_n "(cached) " >&6
14443else
14444 ac_check_lib_save_LIBS=$LIBS
14445LIBS="-ldld $LIBS"
14446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447/* end confdefs.h. */
14448
14449/* Override any GCC internal prototype to avoid an error.
14450 Use char because int might match the return type of a GCC
14451 builtin and then its argument prototype would still apply. */
14452#ifdef __cplusplus
14453extern "C"
14454#endif
14455char dld_link ();
14456int
14457main ()
14458{
14459return dld_link ();
14460 ;
14461 return 0;
14462}
14463_ACEOF
14464if ac_fn_c_try_link "$LINENO"; then :
14465 ac_cv_lib_dld_dld_link=yes
9c60689e 14466else
a243b558
JF
14467 ac_cv_lib_dld_dld_link=no
14468fi
14469rm -f core conftest.err conftest.$ac_objext \
14470 conftest$ac_exeext conftest.$ac_ext
14471LIBS=$ac_check_lib_save_LIBS
14472fi
14473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14474$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14475if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9d54db95 14476 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
9c60689e
DWT
14477fi
14478
14479
a243b558 14480fi
66170b30 14481
66170b30 14482
a243b558 14483fi
66170b30 14484
66170b30
JF
14485
14486fi
e9c9a47c 14487
66170b30 14488
a243b558 14489fi
66170b30 14490
66170b30 14491
66170b30 14492fi
e9c9a47c 14493
a243b558
JF
14494 ;;
14495 esac
9c60689e 14496
9d54db95 14497 if test no = "$lt_cv_dlopen"; then
a243b558 14498 enable_dlopen=no
9d54db95
JF
14499 else
14500 enable_dlopen=yes
a243b558 14501 fi
9c60689e 14502
a243b558
JF
14503 case $lt_cv_dlopen in
14504 dlopen)
9d54db95
JF
14505 save_CPPFLAGS=$CPPFLAGS
14506 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 14507
9d54db95 14508 save_LDFLAGS=$LDFLAGS
a243b558 14509 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 14510
9d54db95 14511 save_LIBS=$LIBS
a243b558 14512 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 14513
a243b558
JF
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14515$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14516if ${lt_cv_dlopen_self+:} false; then :
14517 $as_echo_n "(cached) " >&6
e9c9a47c 14518else
9d54db95 14519 if test yes = "$cross_compiling"; then :
a243b558
JF
14520 lt_cv_dlopen_self=cross
14521else
14522 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14523 lt_status=$lt_dlunknown
14524 cat > conftest.$ac_ext <<_LT_EOF
14525#line $LINENO "configure"
14526#include "confdefs.h"
e9c9a47c 14527
a243b558
JF
14528#if HAVE_DLFCN_H
14529#include <dlfcn.h>
14530#endif
e9c9a47c 14531
a243b558 14532#include <stdio.h>
66170b30 14533
a243b558
JF
14534#ifdef RTLD_GLOBAL
14535# define LT_DLGLOBAL RTLD_GLOBAL
14536#else
14537# ifdef DL_GLOBAL
14538# define LT_DLGLOBAL DL_GLOBAL
14539# else
14540# define LT_DLGLOBAL 0
14541# endif
14542#endif
66170b30 14543
a243b558
JF
14544/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14545 find out it does not work in some platform. */
14546#ifndef LT_DLLAZY_OR_NOW
14547# ifdef RTLD_LAZY
14548# define LT_DLLAZY_OR_NOW RTLD_LAZY
14549# else
14550# ifdef DL_LAZY
14551# define LT_DLLAZY_OR_NOW DL_LAZY
14552# else
14553# ifdef RTLD_NOW
14554# define LT_DLLAZY_OR_NOW RTLD_NOW
14555# else
14556# ifdef DL_NOW
14557# define LT_DLLAZY_OR_NOW DL_NOW
14558# else
14559# define LT_DLLAZY_OR_NOW 0
14560# endif
14561# endif
14562# endif
14563# endif
14564#endif
e9c9a47c 14565
9d54db95 14566/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 14567 correspondingly for the symbols needed. */
9d54db95 14568#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
14569int fnord () __attribute__((visibility("default")));
14570#endif
e9c9a47c 14571
a243b558
JF
14572int fnord () { return 42; }
14573int main ()
14574{
14575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14576 int status = $lt_dlunknown;
e9c9a47c 14577
a243b558
JF
14578 if (self)
14579 {
14580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14581 else
14582 {
14583 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14584 else puts (dlerror ());
14585 }
14586 /* dlclose (self); */
14587 }
14588 else
14589 puts (dlerror ());
e9c9a47c 14590
a243b558
JF
14591 return status;
14592}
14593_LT_EOF
14594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14595 (eval $ac_link) 2>&5
14596 ac_status=$?
14597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 14598 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
14599 (./conftest; exit; ) >&5 2>/dev/null
14600 lt_status=$?
14601 case x$lt_status in
14602 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14603 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14604 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14605 esac
14606 else :
14607 # compilation failed
14608 lt_cv_dlopen_self=no
14609 fi
14610fi
14611rm -fr conftest*
e9c9a47c 14612
e9c9a47c 14613
e9c9a47c 14614fi
a243b558
JF
14615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14616$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 14617
9d54db95 14618 if test yes = "$lt_cv_dlopen_self"; then
a243b558
JF
14619 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14621$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14622if ${lt_cv_dlopen_self_static+:} false; then :
14623 $as_echo_n "(cached) " >&6
e9c9a47c 14624else
9d54db95 14625 if test yes = "$cross_compiling"; then :
a243b558
JF
14626 lt_cv_dlopen_self_static=cross
14627else
14628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14629 lt_status=$lt_dlunknown
14630 cat > conftest.$ac_ext <<_LT_EOF
14631#line $LINENO "configure"
14632#include "confdefs.h"
14633
14634#if HAVE_DLFCN_H
14635#include <dlfcn.h>
14636#endif
14637
14638#include <stdio.h>
e9c9a47c 14639
a243b558
JF
14640#ifdef RTLD_GLOBAL
14641# define LT_DLGLOBAL RTLD_GLOBAL
14642#else
14643# ifdef DL_GLOBAL
14644# define LT_DLGLOBAL DL_GLOBAL
14645# else
14646# define LT_DLGLOBAL 0
14647# endif
14648#endif
e9c9a47c 14649
a243b558
JF
14650/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14651 find out it does not work in some platform. */
14652#ifndef LT_DLLAZY_OR_NOW
14653# ifdef RTLD_LAZY
14654# define LT_DLLAZY_OR_NOW RTLD_LAZY
14655# else
14656# ifdef DL_LAZY
14657# define LT_DLLAZY_OR_NOW DL_LAZY
14658# else
14659# ifdef RTLD_NOW
14660# define LT_DLLAZY_OR_NOW RTLD_NOW
14661# else
14662# ifdef DL_NOW
14663# define LT_DLLAZY_OR_NOW DL_NOW
14664# else
14665# define LT_DLLAZY_OR_NOW 0
14666# endif
14667# endif
14668# endif
14669# endif
14670#endif
66170b30 14671
9d54db95 14672/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 14673 correspondingly for the symbols needed. */
9d54db95 14674#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
14675int fnord () __attribute__((visibility("default")));
14676#endif
e9c9a47c 14677
a243b558
JF
14678int fnord () { return 42; }
14679int main ()
14680{
14681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14682 int status = $lt_dlunknown;
e9c9a47c 14683
a243b558
JF
14684 if (self)
14685 {
14686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14687 else
14688 {
14689 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14690 else puts (dlerror ());
14691 }
14692 /* dlclose (self); */
14693 }
14694 else
14695 puts (dlerror ());
e9c9a47c 14696
a243b558
JF
14697 return status;
14698}
14699_LT_EOF
14700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14701 (eval $ac_link) 2>&5
14702 ac_status=$?
14703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 14704 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
14705 (./conftest; exit; ) >&5 2>/dev/null
14706 lt_status=$?
14707 case x$lt_status in
14708 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14709 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14710 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14711 esac
14712 else :
14713 # compilation failed
14714 lt_cv_dlopen_self_static=no
14715 fi
14716fi
14717rm -fr conftest*
e9c9a47c 14718
b65019fe 14719
a243b558
JF
14720fi
14721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14722$as_echo "$lt_cv_dlopen_self_static" >&6; }
14723 fi
66170b30 14724
9d54db95
JF
14725 CPPFLAGS=$save_CPPFLAGS
14726 LDFLAGS=$save_LDFLAGS
14727 LIBS=$save_LIBS
a243b558
JF
14728 ;;
14729 esac
66170b30 14730
a243b558
JF
14731 case $lt_cv_dlopen_self in
14732 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14733 *) enable_dlopen_self=unknown ;;
14734 esac
14735
14736 case $lt_cv_dlopen_self_static in
14737 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14738 *) enable_dlopen_self_static=unknown ;;
14739 esac
b65019fe
DWT
14740fi
14741
14742
66170b30 14743
b65019fe 14744
e9c9a47c 14745
e9c9a47c
DWT
14746
14747
e9c9a47c 14748
e9c9a47c
DWT
14749
14750
e9c9a47c 14751
e9c9a47c 14752
3530897b 14753
47aaa820 14754
47aaa820 14755
a243b558
JF
14756
14757
14758striplib=
14759old_striplib=
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14761$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14762if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14763 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14764 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14766$as_echo "yes" >&6; }
47aaa820 14767else
a243b558
JF
14768# FIXME - insert some real tests, host_os isn't really good enough
14769 case $host_os in
14770 darwin*)
9d54db95 14771 if test -n "$STRIP"; then
a243b558
JF
14772 striplib="$STRIP -x"
14773 old_striplib="$STRIP -S"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14775$as_echo "yes" >&6; }
14776 else
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14778$as_echo "no" >&6; }
14779 fi
14780 ;;
14781 *)
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783$as_echo "no" >&6; }
14784 ;;
14785 esac
3530897b 14786fi
47aaa820 14787
3530897b
DWT
14788
14789
9c60689e 14790
9c60689e 14791
9c60689e 14792
9c60689e 14793
9c60689e 14794
66170b30 14795
66170b30 14796
66170b30 14797
66170b30 14798
9d54db95 14799 # Report what library types will actually be built
a243b558
JF
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14801$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14803$as_echo "$can_build_shared" >&6; }
66170b30 14804
a243b558
JF
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14806$as_echo_n "checking whether to build shared libraries... " >&6; }
9d54db95 14807 test no = "$can_build_shared" && enable_shared=no
66170b30 14808
a243b558
JF
14809 # On AIX, shared libraries and static libraries use the same namespace, and
14810 # are all built from PIC.
14811 case $host_os in
14812 aix3*)
9d54db95 14813 test yes = "$enable_shared" && enable_static=no
a243b558
JF
14814 if test -n "$RANLIB"; then
14815 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14816 postinstall_cmds='$RANLIB $lib'
14817 fi
14818 ;;
66170b30 14819
a243b558 14820 aix[4-9]*)
9d54db95
JF
14821 if test ia64 != "$host_cpu"; then
14822 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14823 yes,aix,yes) ;; # shared object as lib.so file only
14824 yes,svr4,*) ;; # shared object as lib.so archive member only
14825 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14826 esac
a243b558
JF
14827 fi
14828 ;;
14829 esac
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14831$as_echo "$enable_shared" >&6; }
66170b30 14832
a243b558
JF
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14834$as_echo_n "checking whether to build static libraries... " >&6; }
14835 # Make sure either enable_shared or enable_static is yes.
9d54db95 14836 test yes = "$enable_shared" || enable_static=yes
a243b558
JF
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14838$as_echo "$enable_static" >&6; }
66170b30 14839
9c60689e 14840
e9c9a47c 14841
9c60689e 14842
a243b558
JF
14843fi
14844ac_ext=c
14845ac_cpp='$CPP $CPPFLAGS'
14846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14848ac_compiler_gnu=$ac_cv_c_compiler_gnu
14849
9d54db95 14850CC=$lt_save_CC
e9c9a47c 14851
9d54db95
JF
14852 if test -n "$CXX" && ( test no != "$CXX" &&
14853 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14854 (test g++ != "$CXX"))); then
e9c9a47c
DWT
14855 ac_ext=cpp
14856ac_cpp='$CXXCPP $CPPFLAGS'
14857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14861$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14862if test -z "$CXXCPP"; then
ee134472 14863 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
14864 $as_echo_n "(cached) " >&6
14865else
14866 # Double quotes because CXXCPP needs to be expanded
14867 for CXXCPP in "$CXX -E" "/lib/cpp"
14868 do
14869 ac_preproc_ok=false
14870for ac_cxx_preproc_warn_flag in '' yes
14871do
14872 # Use a header file that comes with gcc, so configuring glibc
14873 # with a fresh cross-compiler works.
14874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14875 # <limits.h> exists even on freestanding compilers.
14876 # On the NeXT, cc -E runs the code through the compiler's parser,
14877 # not just through cpp. "Syntax error" is here to catch this case.
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879/* end confdefs.h. */
14880#ifdef __STDC__
14881# include <limits.h>
14882#else
14883# include <assert.h>
14884#endif
14885 Syntax error
14886_ACEOF
14887if ac_fn_cxx_try_cpp "$LINENO"; then :
14888
14889else
14890 # Broken: fails on valid input.
14891continue
14892fi
12833ad8 14893rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14894
14895 # OK, works on sane cases. Now check whether nonexistent headers
14896 # can be detected and how.
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898/* end confdefs.h. */
14899#include <ac_nonexistent.h>
14900_ACEOF
14901if ac_fn_cxx_try_cpp "$LINENO"; then :
14902 # Broken: success on invalid input.
14903continue
14904else
14905 # Passes both tests.
14906ac_preproc_ok=:
14907break
14908fi
12833ad8 14909rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14910
14911done
14912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 14913rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
14914if $ac_preproc_ok; then :
14915 break
14916fi
14917
14918 done
14919 ac_cv_prog_CXXCPP=$CXXCPP
14920
14921fi
14922 CXXCPP=$ac_cv_prog_CXXCPP
14923else
14924 ac_cv_prog_CXXCPP=$CXXCPP
14925fi
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14927$as_echo "$CXXCPP" >&6; }
14928ac_preproc_ok=false
14929for ac_cxx_preproc_warn_flag in '' yes
14930do
14931 # Use a header file that comes with gcc, so configuring glibc
14932 # with a fresh cross-compiler works.
14933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14934 # <limits.h> exists even on freestanding compilers.
14935 # On the NeXT, cc -E runs the code through the compiler's parser,
14936 # not just through cpp. "Syntax error" is here to catch this case.
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938/* end confdefs.h. */
14939#ifdef __STDC__
14940# include <limits.h>
14941#else
14942# include <assert.h>
14943#endif
14944 Syntax error
14945_ACEOF
14946if ac_fn_cxx_try_cpp "$LINENO"; then :
14947
14948else
14949 # Broken: fails on valid input.
14950continue
14951fi
12833ad8 14952rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14953
14954 # OK, works on sane cases. Now check whether nonexistent headers
14955 # can be detected and how.
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957/* end confdefs.h. */
14958#include <ac_nonexistent.h>
14959_ACEOF
14960if ac_fn_cxx_try_cpp "$LINENO"; then :
14961 # Broken: success on invalid input.
14962continue
14963else
14964 # Passes both tests.
14965ac_preproc_ok=:
14966break
14967fi
12833ad8 14968rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14969
14970done
14971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 14972rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
14973if $ac_preproc_ok; then :
14974
14975else
14976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
14978as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14979See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
14980fi
14981
a243b558
JF
14982ac_ext=c
14983ac_cpp='$CPP $CPPFLAGS'
14984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14986ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
14987
14988else
e9c9a47c
DWT
14989 _lt_caught_CXX_error=yes
14990fi
14991
9c60689e
DWT
14992ac_ext=cpp
14993ac_cpp='$CXXCPP $CPPFLAGS'
14994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 14997
47aaa820
DWT
14998archive_cmds_need_lc_CXX=no
14999allow_undefined_flag_CXX=
15000always_export_symbols_CXX=no
15001archive_expsym_cmds_CXX=
15002compiler_needs_object_CXX=no
15003export_dynamic_flag_spec_CXX=
15004hardcode_direct_CXX=no
15005hardcode_direct_absolute_CXX=no
15006hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
15007hardcode_libdir_separator_CXX=
15008hardcode_minus_L_CXX=no
15009hardcode_shlibpath_var_CXX=unsupported
15010hardcode_automatic_CXX=no
15011inherit_rpath_CXX=no
15012module_cmds_CXX=
15013module_expsym_cmds_CXX=
15014link_all_deplibs_CXX=unknown
15015old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
15016reload_flag_CXX=$reload_flag
15017reload_cmds_CXX=$reload_cmds
47aaa820
DWT
15018no_undefined_flag_CXX=
15019whole_archive_flag_spec_CXX=
15020enable_shared_with_static_runtimes_CXX=no
9c60689e 15021
47aaa820
DWT
15022# Source file extension for C++ test sources.
15023ac_ext=cpp
9c60689e 15024
47aaa820
DWT
15025# Object file extension for compiled C++ test sources.
15026objext=o
15027objext_CXX=$objext
9c60689e 15028
47aaa820
DWT
15029# No sense in running all these tests if we already determined that
15030# the CXX compiler isn't working. Some variables (like enable_shared)
15031# are currently assumed to apply to all compilers on this platform,
15032# and will be corrupted by setting them based on a non-working compiler.
9d54db95 15033if test yes != "$_lt_caught_CXX_error"; then
47aaa820
DWT
15034 # Code to be used in simple compile tests
15035 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 15036
47aaa820
DWT
15037 # Code to be used in simple link tests
15038 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 15039
47aaa820 15040 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 15041
9c60689e 15042
9c60689e 15043
9c60689e 15044
9c60689e 15045
9c60689e 15046
47aaa820
DWT
15047# If no C compiler was specified, use CC.
15048LTCC=${LTCC-"$CC"}
9c60689e 15049
47aaa820
DWT
15050# If no C compiler flags were specified, use CFLAGS.
15051LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 15052
47aaa820
DWT
15053# Allow CC to be a program name with arguments.
15054compiler=$CC
9c60689e 15055
9c60689e 15056
47aaa820
DWT
15057 # save warnings/boilerplate of simple test code
15058 ac_outfile=conftest.$ac_objext
15059echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15060eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15061_lt_compiler_boilerplate=`cat conftest.err`
00a96142 15062$RM -r conftest*
9c60689e 15063
47aaa820
DWT
15064 ac_outfile=conftest.$ac_objext
15065echo "$lt_simple_link_test_code" >conftest.$ac_ext
15066eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15067_lt_linker_boilerplate=`cat conftest.err`
15068$RM -r conftest*
9c60689e 15069
9c60689e 15070
47aaa820
DWT
15071 # Allow CC to be a program name with arguments.
15072 lt_save_CC=$CC
ee134472 15073 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
15074 lt_save_LD=$LD
15075 lt_save_GCC=$GCC
15076 GCC=$GXX
15077 lt_save_with_gnu_ld=$with_gnu_ld
15078 lt_save_path_LD=$lt_cv_path_LD
15079 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15080 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 15081 else
47aaa820 15082 $as_unset lt_cv_prog_gnu_ld
9c60689e 15083 fi
47aaa820
DWT
15084 if test -n "${lt_cv_path_LDCXX+set}"; then
15085 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 15086 else
47aaa820 15087 $as_unset lt_cv_path_LD
9c60689e 15088 fi
47aaa820
DWT
15089 test -z "${LDCXX+set}" || LD=$LDCXX
15090 CC=${CXX-"c++"}
ee134472 15091 CFLAGS=$CXXFLAGS
47aaa820
DWT
15092 compiler=$CC
15093 compiler_CXX=$CC
9d54db95
JF
15094 func_cc_basename $compiler
15095cc_basename=$func_cc_basename_result
9c60689e
DWT
15096
15097
47aaa820
DWT
15098 if test -n "$compiler"; then
15099 # We don't want -fno-exception when compiling C++ code, so set the
15100 # no_builtin_flag separately
9d54db95 15101 if test yes = "$GXX"; then
47aaa820
DWT
15102 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15103 else
15104 lt_prog_compiler_no_builtin_flag_CXX=
15105 fi
9c60689e 15106
9d54db95 15107 if test yes = "$GXX"; then
47aaa820
DWT
15108 # Set up default GNU C++ configuration
15109
15110
15111
15112# Check whether --with-gnu-ld was given.
15113if test "${with_gnu_ld+set}" = set; then :
9d54db95 15114 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9c60689e 15115else
47aaa820 15116 with_gnu_ld=no
9c60689e
DWT
15117fi
15118
47aaa820 15119ac_prog=ld
9d54db95 15120if test yes = "$GCC"; then
47aaa820
DWT
15121 # Check if gcc -print-prog-name=ld gives a path.
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15123$as_echo_n "checking for ld used by $CC... " >&6; }
15124 case $host in
15125 *-*-mingw*)
9d54db95 15126 # gcc leaves a trailing carriage return, which upsets mingw
47aaa820
DWT
15127 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15128 *)
15129 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15130 esac
15131 case $ac_prog in
15132 # Accept absolute paths.
15133 [\\/]* | ?:[\\/]*)
15134 re_direlt='/[^/][^/]*/\.\./'
15135 # Canonicalize the pathname of ld
15136 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15137 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15138 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15139 done
9d54db95 15140 test -z "$LD" && LD=$ac_prog
47aaa820
DWT
15141 ;;
15142 "")
15143 # If it fails, then pretend we aren't using GCC.
15144 ac_prog=ld
15145 ;;
15146 *)
15147 # If it is relative, then search for the first ld in PATH.
15148 with_gnu_ld=unknown
15149 ;;
15150 esac
9d54db95 15151elif test yes = "$with_gnu_ld"; then
47aaa820
DWT
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15153$as_echo_n "checking for GNU ld... " >&6; }
15154else
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15156$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 15157fi
ee134472 15158if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
15159 $as_echo_n "(cached) " >&6
15160else
47aaa820 15161 if test -z "$LD"; then
9d54db95 15162 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47aaa820 15163 for ac_dir in $PATH; do
9d54db95 15164 IFS=$lt_save_ifs
47aaa820
DWT
15165 test -z "$ac_dir" && ac_dir=.
15166 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 15167 lt_cv_path_LD=$ac_dir/$ac_prog
47aaa820
DWT
15168 # Check to see if the program is GNU ld. I'd rather use --version,
15169 # but apparently some variants of GNU ld only accept -v.
15170 # Break only if it was the GNU/non-GNU ld that we prefer.
15171 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15172 *GNU* | *'with BFD'*)
9d54db95 15173 test no != "$with_gnu_ld" && break
47aaa820
DWT
15174 ;;
15175 *)
9d54db95 15176 test yes != "$with_gnu_ld" && break
47aaa820
DWT
15177 ;;
15178 esac
15179 fi
9c60689e 15180 done
9d54db95 15181 IFS=$lt_save_ifs
47aaa820 15182else
9d54db95 15183 lt_cv_path_LD=$LD # Let the user override the test with a path.
9c60689e
DWT
15184fi
15185fi
47aaa820 15186
9d54db95 15187LD=$lt_cv_path_LD
47aaa820
DWT
15188if test -n "$LD"; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15190$as_echo "$LD" >&6; }
9c60689e
DWT
15191else
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193$as_echo "no" >&6; }
15194fi
12833ad8 15195test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
15196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15197$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 15198if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
15199 $as_echo_n "(cached) " >&6
15200else
15201 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15202case `$LD -v 2>&1 </dev/null` in
15203*GNU* | *'with BFD'*)
15204 lt_cv_prog_gnu_ld=yes
15205 ;;
15206*)
15207 lt_cv_prog_gnu_ld=no
15208 ;;
15209esac
15210fi
15211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15212$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15213with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
15214
15215
9c60689e 15216
9c60689e 15217
9c60689e 15218
9c60689e 15219
9c60689e 15220
47aaa820
DWT
15221 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15222 # archiving commands below assume that GNU ld is being used.
9d54db95
JF
15223 if test yes = "$with_gnu_ld"; then
15224 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15225 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 15226
9d54db95
JF
15227 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15228 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 15229
47aaa820
DWT
15230 # If archive_cmds runs LD, not CC, wlarc should be empty
15231 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15232 # investigate it a little bit more. (MM)
9d54db95 15233 wlarc='$wl'
9c60689e 15234
47aaa820
DWT
15235 # ancient GNU ld didn't support --whole-archive et. al.
15236 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15237 $GREP 'no-whole-archive' > /dev/null; then
9d54db95 15238 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820
DWT
15239 else
15240 whole_archive_flag_spec_CXX=
15241 fi
15242 else
15243 with_gnu_ld=no
15244 wlarc=
15245
15246 # A generic and very simple default shared library creation
15247 # command for GNU C++ for the case where it uses the native
15248 # linker, instead of GNU ld. If possible, this setting should
15249 # overridden to take advantage of the native linker features on
15250 # the platform it is being used on.
15251 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15252 fi
15253
15254 # Commands to make compiler produce verbose output that lists
15255 # what "hidden" libraries, object files and flags are used when
15256 # linking a shared library.
ee134472 15257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
15258
15259 else
15260 GXX=no
15261 with_gnu_ld=no
15262 wlarc=
15263 fi
15264
15265 # PORTME: fill in a description of your system's C++ link characteristics
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15267$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15268 ld_shlibs_CXX=yes
15269 case $host_os in
15270 aix3*)
15271 # FIXME: insert proper C++ library support
15272 ld_shlibs_CXX=no
15273 ;;
15274 aix[4-9]*)
9d54db95 15275 if test ia64 = "$host_cpu"; then
47aaa820
DWT
15276 # On IA64, the linker does run time linking by default, so we don't
15277 # have to do anything special.
15278 aix_use_runtimelinking=no
15279 exp_sym_flag='-Bexport'
9d54db95 15280 no_entry_flag=
47aaa820
DWT
15281 else
15282 aix_use_runtimelinking=no
15283
15284 # Test if we are trying to use run time linking or normal
15285 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
15286 # have runtime linking enabled, and use it for executables.
15287 # For shared libraries, we enable/disable runtime linking
15288 # depending on the kind of the shared library created -
15289 # when "with_aix_soname,aix_use_runtimelinking" is:
15290 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15291 # "aix,yes" lib.so shared, rtl:yes, for executables
15292 # lib.a static archive
15293 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15294 # lib.a(lib.so.V) shared, rtl:no, for executables
15295 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15296 # lib.a(lib.so.V) shared, rtl:no
15297 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15298 # lib.a static archive
47aaa820
DWT
15299 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15300 for ld_flag in $LDFLAGS; do
15301 case $ld_flag in
15302 *-brtl*)
15303 aix_use_runtimelinking=yes
15304 break
15305 ;;
15306 esac
15307 done
9d54db95
JF
15308 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15309 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15310 # so we don't have lib.a shared libs to link our executables.
15311 # We have to force runtime linking in this case.
15312 aix_use_runtimelinking=yes
15313 LDFLAGS="$LDFLAGS -Wl,-brtl"
15314 fi
47aaa820
DWT
15315 ;;
15316 esac
15317
15318 exp_sym_flag='-bexport'
15319 no_entry_flag='-bnoentry'
15320 fi
15321
15322 # When large executables or shared objects are built, AIX ld can
15323 # have problems creating the table of contents. If linking a library
15324 # or program results in "error TOC overflow" add -mminimal-toc to
15325 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15326 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15327
15328 archive_cmds_CXX=''
15329 hardcode_direct_CXX=yes
15330 hardcode_direct_absolute_CXX=yes
15331 hardcode_libdir_separator_CXX=':'
15332 link_all_deplibs_CXX=yes
9d54db95
JF
15333 file_list_spec_CXX='$wl-f,'
15334 case $with_aix_soname,$aix_use_runtimelinking in
15335 aix,*) ;; # no import file
15336 svr4,* | *,yes) # use import file
15337 # The Import File defines what to hardcode.
15338 hardcode_direct_CXX=no
15339 hardcode_direct_absolute_CXX=no
15340 ;;
15341 esac
47aaa820 15342
9d54db95 15343 if test yes = "$GXX"; then
47aaa820
DWT
15344 case $host_os in aix4.[012]|aix4.[012].*)
15345 # We only want to do this on AIX 4.2 and lower, the check
15346 # below for broken collect2 doesn't work under 4.3+
9d54db95 15347 collect2name=`$CC -print-prog-name=collect2`
47aaa820
DWT
15348 if test -f "$collect2name" &&
15349 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15350 then
15351 # We have reworked collect2
15352 :
15353 else
15354 # We have old collect2
15355 hardcode_direct_CXX=unsupported
15356 # It fails to find uninstalled libraries when the uninstalled
15357 # path is not listed in the libpath. Setting hardcode_minus_L
15358 # to unsupported forces relinking
15359 hardcode_minus_L_CXX=yes
15360 hardcode_libdir_flag_spec_CXX='-L$libdir'
15361 hardcode_libdir_separator_CXX=
15362 fi
15363 esac
15364 shared_flag='-shared'
9d54db95
JF
15365 if test yes = "$aix_use_runtimelinking"; then
15366 shared_flag=$shared_flag' $wl-G'
47aaa820 15367 fi
9d54db95
JF
15368 # Need to ensure runtime linking is disabled for the traditional
15369 # shared library, or the linker may eventually find shared libraries
15370 # /with/ Import File - we do not want to mix them.
15371 shared_flag_aix='-shared'
15372 shared_flag_svr4='-shared $wl-G'
47aaa820
DWT
15373 else
15374 # not using gcc
9d54db95 15375 if test ia64 = "$host_cpu"; then
47aaa820
DWT
15376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15377 # chokes on -Wl,-G. The following line is correct:
15378 shared_flag='-G'
15379 else
9d54db95
JF
15380 if test yes = "$aix_use_runtimelinking"; then
15381 shared_flag='$wl-G'
47aaa820 15382 else
9d54db95 15383 shared_flag='$wl-bM:SRE'
47aaa820 15384 fi
9d54db95
JF
15385 shared_flag_aix='$wl-bM:SRE'
15386 shared_flag_svr4='$wl-G'
47aaa820
DWT
15387 fi
15388 fi
15389
9d54db95 15390 export_dynamic_flag_spec_CXX='$wl-bexpall'
47aaa820
DWT
15391 # It seems that -bexpall does not export symbols beginning with
15392 # underscore (_), so it is better to generate a list of symbols to
15393 # export.
15394 always_export_symbols_CXX=yes
9d54db95 15395 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
47aaa820
DWT
15396 # Warning - without using the other runtime loading flags (-brtl),
15397 # -berok will link without error, but may produce a broken library.
9d54db95
JF
15398 # The "-G" linker flag allows undefined symbols.
15399 no_undefined_flag_CXX='-bernotok'
47aaa820
DWT
15400 # Determine the default libpath from the value encoded in an empty
15401 # executable.
9d54db95 15402 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
15403 aix_libpath=$lt_cv_aix_libpath
15404else
15405 if ${lt_cv_aix_libpath__CXX+:} false; then :
15406 $as_echo_n "(cached) " >&6
15407else
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
15409/* end confdefs.h. */
15410
15411int
15412main ()
15413{
15414
15415 ;
15416 return 0;
15417}
15418_ACEOF
47aaa820 15419if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 15420
ee134472
JF
15421 lt_aix_libpath_sed='
15422 /Import File Strings/,/^$/ {
15423 /^0/ {
15424 s/^0 *\([^ ]*\) *$/\1/
15425 p
15426 }
15427 }'
15428 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15429 # Check for a 64-bit object if we didn't find anything.
15430 if test -z "$lt_cv_aix_libpath__CXX"; then
15431 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15432 fi
47aaa820
DWT
15433fi
15434rm -f core conftest.err conftest.$ac_objext \
15435 conftest$ac_exeext conftest.$ac_ext
ee134472 15436 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 15437 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
15438 fi
15439
15440fi
15441
15442 aix_libpath=$lt_cv_aix_libpath__CXX
15443fi
47aaa820 15444
9d54db95 15445 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820 15446
9d54db95 15447 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
47aaa820 15448 else
9d54db95
JF
15449 if test ia64 = "$host_cpu"; then
15450 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
47aaa820 15451 allow_undefined_flag_CXX="-z nodefs"
9d54db95 15452 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"
47aaa820
DWT
15453 else
15454 # Determine the default libpath from the value encoded in an
15455 # empty executable.
9d54db95 15456 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
15457 aix_libpath=$lt_cv_aix_libpath
15458else
15459 if ${lt_cv_aix_libpath__CXX+:} false; then :
15460 $as_echo_n "(cached) " >&6
15461else
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
15463/* end confdefs.h. */
15464
15465int
15466main ()
15467{
15468
15469 ;
15470 return 0;
15471}
15472_ACEOF
47aaa820 15473if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 15474
ee134472
JF
15475 lt_aix_libpath_sed='
15476 /Import File Strings/,/^$/ {
15477 /^0/ {
15478 s/^0 *\([^ ]*\) *$/\1/
15479 p
15480 }
15481 }'
15482 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15483 # Check for a 64-bit object if we didn't find anything.
15484 if test -z "$lt_cv_aix_libpath__CXX"; then
15485 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15486 fi
9c60689e 15487fi
47aaa820
DWT
15488rm -f core conftest.err conftest.$ac_objext \
15489 conftest$ac_exeext conftest.$ac_ext
ee134472 15490 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 15491 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
15492 fi
15493
15494fi
15495
15496 aix_libpath=$lt_cv_aix_libpath__CXX
15497fi
9c60689e 15498
9d54db95 15499 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820
DWT
15500 # Warning - without using the other run time loading flags,
15501 # -berok will link without error, but may produce a broken library.
9d54db95
JF
15502 no_undefined_flag_CXX=' $wl-bernotok'
15503 allow_undefined_flag_CXX=' $wl-berok'
15504 if test yes = "$with_gnu_ld"; then
ee134472 15505 # We only use this code for GNU lds that support --whole-archive.
9d54db95 15506 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
ee134472
JF
15507 else
15508 # Exported symbols can be pulled into shared objects from archives
15509 whole_archive_flag_spec_CXX='$convenience'
15510 fi
47aaa820 15511 archive_cmds_need_lc_CXX=yes
9d54db95
JF
15512 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15513 # -brtl affects multiple linker settings, -berok does not and is overridden later
15514 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15515 if test svr4 != "$with_aix_soname"; then
15516 # This is similar to how AIX traditionally builds its shared
15517 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15518 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15519 fi
15520 if test aix != "$with_aix_soname"; then
15521 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15522 else
15523 # used by -dlpreopen to get the symbols
15524 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15525 fi
15526 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
47aaa820
DWT
15527 fi
15528 fi
15529 ;;
9c60689e 15530
47aaa820
DWT
15531 beos*)
15532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15533 allow_undefined_flag_CXX=unsupported
15534 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15535 # support --undefined. This deserves some investigation. FIXME
9d54db95 15536 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47aaa820
DWT
15537 else
15538 ld_shlibs_CXX=no
15539 fi
15540 ;;
9c60689e 15541
47aaa820
DWT
15542 chorus*)
15543 case $cc_basename in
15544 *)
15545 # FIXME: insert proper C++ library support
15546 ld_shlibs_CXX=no
15547 ;;
15548 esac
15549 ;;
9c60689e 15550
47aaa820 15551 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
15552 case $GXX,$cc_basename in
15553 ,cl* | no,cl*)
15554 # Native MSVC
15555 # hardcode_libdir_flag_spec is actually meaningless, as there is
15556 # no search path for DLLs.
15557 hardcode_libdir_flag_spec_CXX=' '
15558 allow_undefined_flag_CXX=unsupported
15559 always_export_symbols_CXX=yes
15560 file_list_spec_CXX='@'
15561 # Tell ltmain to make .lib files, not .a files.
15562 libext=lib
15563 # Tell ltmain to make .dll files, not .so files.
9d54db95 15564 shrext_cmds=.dll
ee134472 15565 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
15566 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15567 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15568 cp "$export_symbols" "$output_objdir/$soname.def";
15569 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15570 else
15571 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15572 fi~
15573 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15574 linknames='
ee134472
JF
15575 # The linker will not automatically build a static lib if we build a DLL.
15576 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15577 enable_shared_with_static_runtimes_CXX=yes
15578 # Don't use ranlib
15579 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15580 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
9d54db95
JF
15581 lt_tool_outputfile="@TOOL_OUTPUT@"~
15582 case $lt_outputfile in
15583 *.exe|*.EXE) ;;
15584 *)
15585 lt_outputfile=$lt_outputfile.exe
15586 lt_tool_outputfile=$lt_tool_outputfile.exe
15587 ;;
15588 esac~
15589 func_to_tool_file "$lt_outputfile"~
15590 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15591 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15592 $RM "$lt_outputfile.manifest";
15593 fi'
ee134472
JF
15594 ;;
15595 *)
15596 # g++
15597 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15598 # as there is no search path for DLLs.
15599 hardcode_libdir_flag_spec_CXX='-L$libdir'
9d54db95 15600 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
ee134472
JF
15601 allow_undefined_flag_CXX=unsupported
15602 always_export_symbols_CXX=no
15603 enable_shared_with_static_runtimes_CXX=yes
15604
15605 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
15606 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'
15607 # If the export-symbols file already is a .def file, use it as
15608 # is; otherwise, prepend EXPORTS...
15609 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15610 cp $export_symbols $output_objdir/$soname.def;
15611 else
15612 echo EXPORTS > $output_objdir/$soname.def;
15613 cat $export_symbols >> $output_objdir/$soname.def;
15614 fi~
15615 $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'
ee134472
JF
15616 else
15617 ld_shlibs_CXX=no
15618 fi
15619 ;;
15620 esac
15621 ;;
47aaa820 15622 darwin* | rhapsody*)
9c60689e 15623
9c60689e 15624
47aaa820
DWT
15625 archive_cmds_need_lc_CXX=no
15626 hardcode_direct_CXX=no
15627 hardcode_automatic_CXX=yes
15628 hardcode_shlibpath_var_CXX=unsupported
9d54db95
JF
15629 if test yes = "$lt_cv_ld_force_load"; then
15630 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 15631
ee134472
JF
15632 else
15633 whole_archive_flag_spec_CXX=''
15634 fi
47aaa820 15635 link_all_deplibs_CXX=yes
9d54db95 15636 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
47aaa820 15637 case $cc_basename in
9d54db95 15638 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
47aaa820
DWT
15639 *) _lt_dar_can_shared=$GCC ;;
15640 esac
9d54db95 15641 if test yes = "$_lt_dar_can_shared"; then
ee134472 15642 output_verbose_link_cmd=func_echo_all
9d54db95
JF
15643 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"
15644 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15645 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"
15646 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"
15647 if test yes != "$lt_cv_apple_cc_single_mod"; then
15648 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"
15649 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"
47aaa820 15650 fi
9c60689e 15651
47aaa820
DWT
15652 else
15653 ld_shlibs_CXX=no
15654 fi
9c60689e 15655
47aaa820 15656 ;;
9c60689e 15657
9d54db95
JF
15658 os2*)
15659 hardcode_libdir_flag_spec_CXX='-L$libdir'
15660 hardcode_minus_L_CXX=yes
15661 allow_undefined_flag_CXX=unsupported
15662 shrext_cmds=.dll
15663 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15664 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15665 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15666 $ECHO EXPORTS >> $output_objdir/$libname.def~
15667 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15669 emximp -o $lib $output_objdir/$libname.def'
15670 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15671 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15672 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15673 $ECHO EXPORTS >> $output_objdir/$libname.def~
15674 prefix_cmds="$SED"~
15675 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15676 prefix_cmds="$prefix_cmds -e 1d";
15677 fi~
15678 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15679 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15680 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15681 emximp -o $lib $output_objdir/$libname.def'
15682 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15683 enable_shared_with_static_runtimes_CXX=yes
15684 ;;
15685
47aaa820
DWT
15686 dgux*)
15687 case $cc_basename in
15688 ec++*)
15689 # FIXME: insert proper C++ library support
15690 ld_shlibs_CXX=no
15691 ;;
15692 ghcx*)
15693 # Green Hills C++ Compiler
15694 # FIXME: insert proper C++ library support
15695 ld_shlibs_CXX=no
15696 ;;
15697 *)
15698 # FIXME: insert proper C++ library support
15699 ld_shlibs_CXX=no
15700 ;;
15701 esac
15702 ;;
9c60689e 15703
53ba6704 15704 freebsd2.*)
47aaa820
DWT
15705 # C++ shared libraries reported to be fairly broken before
15706 # switch to ELF
15707 ld_shlibs_CXX=no
15708 ;;
9c60689e 15709
47aaa820
DWT
15710 freebsd-elf*)
15711 archive_cmds_need_lc_CXX=no
15712 ;;
9c60689e 15713
47aaa820
DWT
15714 freebsd* | dragonfly*)
15715 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15716 # conventions
15717 ld_shlibs_CXX=yes
15718 ;;
9c60689e 15719
ee134472 15720 haiku*)
9d54db95 15721 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
ee134472
JF
15722 link_all_deplibs_CXX=yes
15723 ;;
15724
47aaa820 15725 hpux9*)
9d54db95 15726 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 15727 hardcode_libdir_separator_CXX=:
9d54db95 15728 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15729 hardcode_direct_CXX=yes
15730 hardcode_minus_L_CXX=yes # Not in the search PATH,
15731 # but as the default
15732 # location of the library.
9c60689e 15733
47aaa820
DWT
15734 case $cc_basename in
15735 CC*)
15736 # FIXME: insert proper C++ library support
15737 ld_shlibs_CXX=no
15738 ;;
15739 aCC*)
9d54db95 15740 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
47aaa820
DWT
15741 # Commands to make compiler produce verbose output that lists
15742 # what "hidden" libraries, object files and flags are used when
15743 # linking a shared library.
15744 #
15745 # There doesn't appear to be a way to prevent this compiler from
15746 # explicitly linking system object files so we need to strip them
15747 # from the output so that they don't get included in the library
15748 # dependencies.
9d54db95 15749 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
15750 ;;
15751 *)
9d54db95
JF
15752 if test yes = "$GXX"; then
15753 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
47aaa820
DWT
15754 else
15755 # FIXME: insert proper C++ library support
15756 ld_shlibs_CXX=no
15757 fi
15758 ;;
15759 esac
15760 ;;
9c60689e 15761
47aaa820 15762 hpux10*|hpux11*)
9d54db95
JF
15763 if test no = "$with_gnu_ld"; then
15764 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 15765 hardcode_libdir_separator_CXX=:
9c60689e 15766
47aaa820
DWT
15767 case $host_cpu in
15768 hppa*64*|ia64*)
15769 ;;
15770 *)
9d54db95 15771 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15772 ;;
15773 esac
15774 fi
15775 case $host_cpu in
15776 hppa*64*|ia64*)
15777 hardcode_direct_CXX=no
15778 hardcode_shlibpath_var_CXX=no
15779 ;;
15780 *)
15781 hardcode_direct_CXX=yes
15782 hardcode_direct_absolute_CXX=yes
15783 hardcode_minus_L_CXX=yes # Not in the search PATH,
15784 # but as the default
15785 # location of the library.
15786 ;;
15787 esac
9c60689e 15788
47aaa820
DWT
15789 case $cc_basename in
15790 CC*)
15791 # FIXME: insert proper C++ library support
15792 ld_shlibs_CXX=no
15793 ;;
15794 aCC*)
15795 case $host_cpu in
15796 hppa*64*)
9d54db95 15797 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15798 ;;
15799 ia64*)
9d54db95 15800 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15801 ;;
15802 *)
9d54db95 15803 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15804 ;;
15805 esac
15806 # Commands to make compiler produce verbose output that lists
15807 # what "hidden" libraries, object files and flags are used when
15808 # linking a shared library.
15809 #
15810 # There doesn't appear to be a way to prevent this compiler from
15811 # explicitly linking system object files so we need to strip them
15812 # from the output so that they don't get included in the library
15813 # dependencies.
9d54db95 15814 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
15815 ;;
15816 *)
9d54db95
JF
15817 if test yes = "$GXX"; then
15818 if test no = "$with_gnu_ld"; then
47aaa820
DWT
15819 case $host_cpu in
15820 hppa*64*)
9d54db95 15821 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15822 ;;
15823 ia64*)
9d54db95 15824 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
15825 ;;
15826 *)
9d54db95 15827 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
15828 ;;
15829 esac
15830 fi
15831 else
15832 # FIXME: insert proper C++ library support
15833 ld_shlibs_CXX=no
15834 fi
15835 ;;
15836 esac
15837 ;;
9c60689e 15838
47aaa820
DWT
15839 interix[3-9]*)
15840 hardcode_direct_CXX=no
15841 hardcode_shlibpath_var_CXX=no
9d54db95
JF
15842 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15843 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15844 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15845 # Instead, shared libraries are loaded at an image base (0x10000000 by
15846 # default) and relocated if they conflict, which is a slow very memory
15847 # consuming and fragmenting process. To avoid this, we pick a random,
15848 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15849 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
15850 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'
15851 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'
47aaa820
DWT
15852 ;;
15853 irix5* | irix6*)
15854 case $cc_basename in
15855 CC*)
15856 # SGI C++
9d54db95 15857 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 15858
47aaa820
DWT
15859 # Archives containing C++ object files must be created using
15860 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15861 # necessary to make sure instantiated templates are included
15862 # in the archive.
15863 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15864 ;;
15865 *)
9d54db95
JF
15866 if test yes = "$GXX"; then
15867 if test no = "$with_gnu_ld"; then
15868 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 15869 else
9d54db95 15870 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
15871 fi
15872 fi
15873 link_all_deplibs_CXX=yes
15874 ;;
15875 esac
9d54db95 15876 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
15877 hardcode_libdir_separator_CXX=:
15878 inherit_rpath_CXX=yes
15879 ;;
9c60689e 15880
9d54db95 15881 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
47aaa820
DWT
15882 case $cc_basename in
15883 KCC*)
15884 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 15885
47aaa820
DWT
15886 # KCC will only create a shared library if the output file
15887 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15888 # to its proper name (with version) after linking.
9d54db95
JF
15889 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'
15890 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'
47aaa820
DWT
15891 # Commands to make compiler produce verbose output that lists
15892 # what "hidden" libraries, object files and flags are used when
15893 # linking a shared library.
15894 #
15895 # There doesn't appear to be a way to prevent this compiler from
15896 # explicitly linking system object files so we need to strip them
15897 # from the output so that they don't get included in the library
15898 # dependencies.
9d54db95 15899 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 15900
9d54db95
JF
15901 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15902 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 15903
47aaa820
DWT
15904 # Archives containing C++ object files must be created using
15905 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15906 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15907 ;;
15908 icpc* | ecpc* )
15909 # Intel C++
15910 with_gnu_ld=yes
15911 # version 8.0 and above of icpc choke on multiply defined symbols
15912 # if we add $predep_objects and $postdep_objects, however 7.1 and
15913 # earlier do not add the objects themselves.
15914 case `$CC -V 2>&1` in
15915 *"Version 7."*)
9d54db95
JF
15916 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15917 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'
47aaa820
DWT
15918 ;;
15919 *) # Version 8.0 or newer
15920 tmp_idyn=
15921 case $host_cpu in
15922 ia64*) tmp_idyn=' -i_dynamic';;
15923 esac
9d54db95
JF
15924 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15925 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'
47aaa820
DWT
15926 ;;
15927 esac
15928 archive_cmds_need_lc_CXX=no
9d54db95
JF
15929 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15930 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15931 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
47aaa820
DWT
15932 ;;
15933 pgCC* | pgcpp*)
15934 # Portland Group C++ compiler
15935 case `$CC -V` in
ee134472 15936 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820 15937 prelink_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15938 rm -rf $tpldir~
15939 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15940 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820 15941 old_archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15942 rm -rf $tpldir~
15943 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15944 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15945 $RANLIB $oldlib'
47aaa820 15946 archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15947 rm -rf $tpldir~
15948 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15949 $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 15950 archive_expsym_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15951 rm -rf $tpldir~
15952 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15953 $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 15954 ;;
ee134472 15955 *) # Version 6 and above use weak symbols
9d54db95
JF
15956 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15957 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'
47aaa820
DWT
15958 ;;
15959 esac
9c60689e 15960
9d54db95
JF
15961 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15962 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15963 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
15964 ;;
15965 cxx*)
15966 # Compaq C++
9d54db95
JF
15967 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15968 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 15969
47aaa820
DWT
15970 runpath_var=LD_RUN_PATH
15971 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15972 hardcode_libdir_separator_CXX=:
9c60689e 15973
47aaa820
DWT
15974 # Commands to make compiler produce verbose output that lists
15975 # what "hidden" libraries, object files and flags are used when
15976 # linking a shared library.
15977 #
15978 # There doesn't appear to be a way to prevent this compiler from
15979 # explicitly linking system object files so we need to strip them
15980 # from the output so that they don't get included in the library
15981 # dependencies.
9d54db95 15982 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 15983 ;;
ee134472 15984 xl* | mpixl* | bgxl*)
47aaa820 15985 # IBM XL 8.0 on PPC, with GNU ld
9d54db95
JF
15986 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15987 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15988 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15989 if test yes = "$supports_anon_versioning"; then
47aaa820 15990 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
15991 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15992 echo "local: *; };" >> $output_objdir/$libname.ver~
15993 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
47aaa820
DWT
15994 fi
15995 ;;
15996 *)
15997 case `$CC -V 2>&1 | sed 5q` in
15998 *Sun\ C*)
15999 # Sun C++ 5.9
16000 no_undefined_flag_CXX=' -zdefs'
9d54db95
JF
16001 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16002 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'
47aaa820 16003 hardcode_libdir_flag_spec_CXX='-R$libdir'
9d54db95 16004 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 16005 compiler_needs_object_CXX=yes
9c60689e 16006
47aaa820
DWT
16007 # Not sure whether something based on
16008 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16009 # would be better.
ee134472 16010 output_verbose_link_cmd='func_echo_all'
9c60689e 16011
47aaa820
DWT
16012 # Archives containing C++ object files must be created using
16013 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16014 # necessary to make sure instantiated templates are included
16015 # in the archive.
16016 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16017 ;;
16018 esac
16019 ;;
16020 esac
16021 ;;
9c60689e 16022
47aaa820
DWT
16023 lynxos*)
16024 # FIXME: insert proper C++ library support
16025 ld_shlibs_CXX=no
16026 ;;
9c60689e 16027
47aaa820
DWT
16028 m88k*)
16029 # FIXME: insert proper C++ library support
16030 ld_shlibs_CXX=no
16031 ;;
9c60689e 16032
47aaa820
DWT
16033 mvs*)
16034 case $cc_basename in
16035 cxx*)
16036 # FIXME: insert proper C++ library support
16037 ld_shlibs_CXX=no
16038 ;;
16039 *)
16040 # FIXME: insert proper C++ library support
16041 ld_shlibs_CXX=no
16042 ;;
16043 esac
16044 ;;
9c60689e 16045
47aaa820
DWT
16046 netbsd*)
16047 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16048 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16049 wlarc=
16050 hardcode_libdir_flag_spec_CXX='-R$libdir'
16051 hardcode_direct_CXX=yes
16052 hardcode_shlibpath_var_CXX=no
16053 fi
16054 # Workaround some broken pre-1.5 toolchains
16055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 16056 ;;
47aaa820
DWT
16057
16058 *nto* | *qnx*)
16059 ld_shlibs_CXX=yes
9c60689e 16060 ;;
9c60689e 16061
9d54db95 16062 openbsd* | bitrig*)
47aaa820
DWT
16063 if test -f /usr/libexec/ld.so; then
16064 hardcode_direct_CXX=yes
16065 hardcode_shlibpath_var_CXX=no
16066 hardcode_direct_absolute_CXX=yes
16067 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9d54db95
JF
16068 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16070 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16071 export_dynamic_flag_spec_CXX='$wl-E'
16072 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820 16073 fi
ee134472 16074 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
16075 else
16076 ld_shlibs_CXX=no
16077 fi
16078 ;;
9c60689e 16079
47aaa820
DWT
16080 osf3* | osf4* | osf5*)
16081 case $cc_basename in
16082 KCC*)
16083 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 16084
47aaa820
DWT
16085 # KCC will only create a shared library if the output file
16086 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16087 # to its proper name (with version) after linking.
9d54db95 16088 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 16089
9d54db95 16090 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
47aaa820 16091 hardcode_libdir_separator_CXX=:
9c60689e 16092
47aaa820
DWT
16093 # Archives containing C++ object files must be created using
16094 # the KAI C++ compiler.
16095 case $host in
16096 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16097 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16098 esac
16099 ;;
16100 RCC*)
16101 # Rational C++ 2.4.1
16102 # FIXME: insert proper C++ library support
16103 ld_shlibs_CXX=no
16104 ;;
16105 cxx*)
16106 case $host in
16107 osf3*)
9d54db95
JF
16108 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16109 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'
16110 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
16111 ;;
16112 *)
16113 allow_undefined_flag_CXX=' -expect_unresolved \*'
9d54db95 16114 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 16115 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9d54db95
JF
16116 echo "-hidden">> $lib.exp~
16117 $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~
16118 $RM $lib.exp'
47aaa820
DWT
16119 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16120 ;;
16121 esac
9c60689e 16122
47aaa820 16123 hardcode_libdir_separator_CXX=:
9c60689e 16124
47aaa820
DWT
16125 # Commands to make compiler produce verbose output that lists
16126 # what "hidden" libraries, object files and flags are used when
16127 # linking a shared library.
16128 #
16129 # There doesn't appear to be a way to prevent this compiler from
16130 # explicitly linking system object files so we need to strip them
16131 # from the output so that they don't get included in the library
16132 # dependencies.
9d54db95 16133 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
16134 ;;
16135 *)
9d54db95
JF
16136 if test yes,no = "$GXX,$with_gnu_ld"; then
16137 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
47aaa820
DWT
16138 case $host in
16139 osf3*)
9d54db95 16140 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
16141 ;;
16142 *)
9d54db95 16143 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
16144 ;;
16145 esac
9c60689e 16146
9d54db95 16147 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820 16148 hardcode_libdir_separator_CXX=:
9c60689e 16149
47aaa820
DWT
16150 # Commands to make compiler produce verbose output that lists
16151 # what "hidden" libraries, object files and flags are used when
16152 # linking a shared library.
ee134472 16153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 16154
47aaa820
DWT
16155 else
16156 # FIXME: insert proper C++ library support
16157 ld_shlibs_CXX=no
16158 fi
16159 ;;
16160 esac
16161 ;;
9c60689e 16162
47aaa820 16163 psos*)
9c60689e
DWT
16164 # FIXME: insert proper C++ library support
16165 ld_shlibs_CXX=no
16166 ;;
9c60689e 16167
47aaa820
DWT
16168 sunos4*)
16169 case $cc_basename in
16170 CC*)
16171 # Sun C++ 4.x
16172 # FIXME: insert proper C++ library support
16173 ld_shlibs_CXX=no
9c60689e 16174 ;;
47aaa820
DWT
16175 lcc*)
16176 # Lucid
16177 # FIXME: insert proper C++ library support
16178 ld_shlibs_CXX=no
16179 ;;
16180 *)
16181 # FIXME: insert proper C++ library support
16182 ld_shlibs_CXX=no
16183 ;;
16184 esac
16185 ;;
9c60689e 16186
47aaa820
DWT
16187 solaris*)
16188 case $cc_basename in
ee134472 16189 CC* | sunCC*)
47aaa820
DWT
16190 # Sun C++ 4.2, 5.x and Centerline C++
16191 archive_cmds_need_lc_CXX=yes
16192 no_undefined_flag_CXX=' -zdefs'
9d54db95 16193 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820 16194 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16195 $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 16196
47aaa820
DWT
16197 hardcode_libdir_flag_spec_CXX='-R$libdir'
16198 hardcode_shlibpath_var_CXX=no
16199 case $host_os in
16200 solaris2.[0-5] | solaris2.[0-5].*) ;;
16201 *)
16202 # The compiler driver will combine and reorder linker options,
9d54db95 16203 # but understands '-z linker_flag'.
47aaa820
DWT
16204 # Supported since Solaris 2.6 (maybe 2.5.1?)
16205 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16206 ;;
16207 esac
16208 link_all_deplibs_CXX=yes
9c60689e 16209
ee134472 16210 output_verbose_link_cmd='func_echo_all'
9c60689e 16211
47aaa820
DWT
16212 # Archives containing C++ object files must be created using
16213 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16214 # necessary to make sure instantiated templates are included
16215 # in the archive.
16216 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16217 ;;
16218 gcx*)
16219 # Green Hills C++ Compiler
9d54db95 16220 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9c60689e 16221
47aaa820
DWT
16222 # The C++ compiler must be used to create the archive.
16223 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16224 ;;
16225 *)
16226 # GNU C++ compiler with Solaris linker
9d54db95
JF
16227 if test yes,no = "$GXX,$with_gnu_ld"; then
16228 no_undefined_flag_CXX=' $wl-z ${wl}defs'
47aaa820 16229 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9d54db95 16230 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 16231 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16232 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 16233
47aaa820
DWT
16234 # Commands to make compiler produce verbose output that lists
16235 # what "hidden" libraries, object files and flags are used when
16236 # linking a shared library.
ee134472 16237 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 16238 else
9d54db95 16239 # g++ 2.7 appears to require '-G' NOT '-shared' on this
47aaa820 16240 # platform.
9d54db95 16241 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 16242 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16243 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 16244
47aaa820
DWT
16245 # Commands to make compiler produce verbose output that lists
16246 # what "hidden" libraries, object files and flags are used when
16247 # linking a shared library.
ee134472 16248 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 16249 fi
9c60689e 16250
9d54db95 16251 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
47aaa820
DWT
16252 case $host_os in
16253 solaris2.[0-5] | solaris2.[0-5].*) ;;
16254 *)
9d54db95 16255 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
47aaa820
DWT
16256 ;;
16257 esac
16258 fi
16259 ;;
16260 esac
16261 ;;
9c60689e 16262
47aaa820 16263 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 16264 no_undefined_flag_CXX='$wl-z,text'
47aaa820
DWT
16265 archive_cmds_need_lc_CXX=no
16266 hardcode_shlibpath_var_CXX=no
16267 runpath_var='LD_RUN_PATH'
9c60689e 16268
47aaa820
DWT
16269 case $cc_basename in
16270 CC*)
9d54db95
JF
16271 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16272 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16273 ;;
16274 *)
9d54db95
JF
16275 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16276 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16277 ;;
16278 esac
16279 ;;
9c60689e 16280
47aaa820 16281 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 16282 # Note: We CANNOT use -z defs as we might desire, because we do not
47aaa820
DWT
16283 # link with -lc, and that would cause any symbols used from libc to
16284 # always be unresolved, which means just about no library would
16285 # ever link correctly. If we're not using GNU ld we use -z text
16286 # though, which does catch some bad symbols but isn't as heavy-handed
16287 # as -z defs.
9d54db95
JF
16288 no_undefined_flag_CXX='$wl-z,text'
16289 allow_undefined_flag_CXX='$wl-z,nodefs'
47aaa820
DWT
16290 archive_cmds_need_lc_CXX=no
16291 hardcode_shlibpath_var_CXX=no
9d54db95 16292 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
47aaa820
DWT
16293 hardcode_libdir_separator_CXX=':'
16294 link_all_deplibs_CXX=yes
9d54db95 16295 export_dynamic_flag_spec_CXX='$wl-Bexport'
47aaa820 16296 runpath_var='LD_RUN_PATH'
9c60689e 16297
47aaa820
DWT
16298 case $cc_basename in
16299 CC*)
9d54db95
JF
16300 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16301 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472 16302 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
9d54db95 16303 '"$old_archive_cmds_CXX"
ee134472 16304 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
9d54db95 16305 '"$reload_cmds_CXX"
47aaa820
DWT
16306 ;;
16307 *)
9d54db95
JF
16308 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16309 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16310 ;;
16311 esac
16312 ;;
9c60689e 16313
47aaa820 16314 tandem*)
9c60689e 16315 case $cc_basename in
47aaa820
DWT
16316 NCC*)
16317 # NonStop-UX NCC 3.20
16318 # FIXME: insert proper C++ library support
16319 ld_shlibs_CXX=no
16320 ;;
9c60689e 16321 *)
47aaa820
DWT
16322 # FIXME: insert proper C++ library support
16323 ld_shlibs_CXX=no
16324 ;;
9c60689e
DWT
16325 esac
16326 ;;
16327
47aaa820
DWT
16328 vxworks*)
16329 # FIXME: insert proper C++ library support
16330 ld_shlibs_CXX=no
16331 ;;
9c60689e 16332
47aaa820
DWT
16333 *)
16334 # FIXME: insert proper C++ library support
16335 ld_shlibs_CXX=no
9c60689e 16336 ;;
47aaa820 16337 esac
9c60689e 16338
47aaa820
DWT
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16340$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 16341 test no = "$ld_shlibs_CXX" && can_build_shared=no
9c60689e 16342
9d54db95
JF
16343 GCC_CXX=$GXX
16344 LD_CXX=$LD
9c60689e 16345
47aaa820
DWT
16346 ## CAVEAT EMPTOR:
16347 ## There is no encapsulation within the following macros, do not change
16348 ## the running order or otherwise move them around unless you know exactly
16349 ## what you are doing...
16350 # Dependencies to place before and after the object being linked:
16351predep_objects_CXX=
16352postdep_objects_CXX=
16353predeps_CXX=
16354postdeps_CXX=
16355compiler_lib_search_path_CXX=
9c60689e 16356
47aaa820
DWT
16357cat > conftest.$ac_ext <<_LT_EOF
16358class Foo
16359{
16360public:
16361 Foo (void) { a = 0; }
16362private:
16363 int a;
16364};
16365_LT_EOF
9c60689e 16366
ee134472
JF
16367
16368_lt_libdeps_save_CFLAGS=$CFLAGS
16369case "$CC $CFLAGS " in #(
16370*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16371*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 16372*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
16373esac
16374
47aaa820
DWT
16375if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16376 (eval $ac_compile) 2>&5
16377 ac_status=$?
16378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16379 test $ac_status = 0; }; then
16380 # Parse the compiler output and extract the necessary
16381 # objects, libraries and library flags.
9c60689e 16382
47aaa820
DWT
16383 # Sentinel used to keep track of whether or not we are before
16384 # the conftest object file.
16385 pre_test_object_deps_done=no
9c60689e 16386
47aaa820 16387 for p in `eval "$output_verbose_link_cmd"`; do
9d54db95 16388 case $prev$p in
9c60689e 16389
47aaa820
DWT
16390 -L* | -R* | -l*)
16391 # Some compilers place space between "-{L,R}" and the path.
16392 # Remove the space.
9d54db95
JF
16393 if test x-L = "$p" ||
16394 test x-R = "$p"; then
47aaa820
DWT
16395 prev=$p
16396 continue
47aaa820 16397 fi
9c60689e 16398
ee134472
JF
16399 # Expand the sysroot to ease extracting the directories later.
16400 if test -z "$prev"; then
16401 case $p in
16402 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16403 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16404 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16405 esac
16406 fi
16407 case $p in
16408 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16409 esac
9d54db95
JF
16410 if test no = "$pre_test_object_deps_done"; then
16411 case $prev in
ee134472 16412 -L | -R)
47aaa820
DWT
16413 # Internal compiler library paths should come after those
16414 # provided the user. The postdeps already come after the
16415 # user supplied libs so there is no need to process them.
16416 if test -z "$compiler_lib_search_path_CXX"; then
9d54db95 16417 compiler_lib_search_path_CXX=$prev$p
47aaa820 16418 else
9d54db95 16419 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
47aaa820
DWT
16420 fi
16421 ;;
16422 # The "-l" case would never come before the object being
16423 # linked, so don't bother handling this case.
16424 esac
16425 else
16426 if test -z "$postdeps_CXX"; then
9d54db95 16427 postdeps_CXX=$prev$p
47aaa820 16428 else
9d54db95 16429 postdeps_CXX="${postdeps_CXX} $prev$p"
47aaa820
DWT
16430 fi
16431 fi
ee134472 16432 prev=
47aaa820 16433 ;;
9c60689e 16434
ee134472 16435 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
16436 *.$objext)
16437 # This assumes that the test object file only shows up
16438 # once in the compiler output.
16439 if test "$p" = "conftest.$objext"; then
16440 pre_test_object_deps_done=yes
16441 continue
16442 fi
9c60689e 16443
9d54db95 16444 if test no = "$pre_test_object_deps_done"; then
47aaa820 16445 if test -z "$predep_objects_CXX"; then
9d54db95 16446 predep_objects_CXX=$p
47aaa820
DWT
16447 else
16448 predep_objects_CXX="$predep_objects_CXX $p"
16449 fi
16450 else
16451 if test -z "$postdep_objects_CXX"; then
9d54db95 16452 postdep_objects_CXX=$p
47aaa820
DWT
16453 else
16454 postdep_objects_CXX="$postdep_objects_CXX $p"
16455 fi
16456 fi
16457 ;;
9c60689e 16458
47aaa820 16459 *) ;; # Ignore the rest.
9c60689e 16460
47aaa820
DWT
16461 esac
16462 done
9c60689e 16463
47aaa820
DWT
16464 # Clean up.
16465 rm -f a.out a.exe
16466else
16467 echo "libtool.m4: error: problem compiling CXX test program"
16468fi
9c60689e 16469
47aaa820 16470$RM -f confest.$objext
ee134472 16471CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 16472
47aaa820
DWT
16473# PORTME: override above test on systems where it is broken
16474case $host_os in
16475interix[3-9]*)
16476 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16477 # hack all around it, let's just trust "g++" to DTRT.
16478 predep_objects_CXX=
16479 postdep_objects_CXX=
16480 postdeps_CXX=
16481 ;;
47aaa820 16482esac
9c60689e 16483
9c60689e 16484
47aaa820
DWT
16485case " $postdeps_CXX " in
16486*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16487esac
16488 compiler_lib_search_dirs_CXX=
16489if test -n "${compiler_lib_search_path_CXX}"; then
9d54db95 16490 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
47aaa820 16491fi
9c60689e 16492
9c60689e 16493
9c60689e 16494
9c60689e 16495
9c60689e 16496
9c60689e 16497
9c60689e 16498
9c60689e 16499
9c60689e 16500
9c60689e 16501
9c60689e 16502
9c60689e 16503
9c60689e 16504
9c60689e 16505
9c60689e 16506
9c60689e 16507
9c60689e 16508
9c60689e 16509
9c60689e 16510
9c60689e 16511
9c60689e 16512
9c60689e 16513
9c60689e 16514
9c60689e 16515
9c60689e 16516
9c60689e 16517
9c60689e 16518
9c60689e 16519
9c60689e 16520
9c60689e 16521
9c60689e 16522
47aaa820
DWT
16523 lt_prog_compiler_wl_CXX=
16524lt_prog_compiler_pic_CXX=
16525lt_prog_compiler_static_CXX=
9c60689e 16526
9c60689e
DWT
16527
16528 # C++ specific cases for pic, static, wl, etc.
9d54db95 16529 if test yes = "$GXX"; then
9c60689e
DWT
16530 lt_prog_compiler_wl_CXX='-Wl,'
16531 lt_prog_compiler_static_CXX='-static'
16532
16533 case $host_os in
16534 aix*)
16535 # All AIX code is PIC.
9d54db95 16536 if test ia64 = "$host_cpu"; then
9c60689e
DWT
16537 # AIX 5 now supports IA64 processor
16538 lt_prog_compiler_static_CXX='-Bstatic'
16539 fi
9d54db95 16540 lt_prog_compiler_pic_CXX='-fPIC'
9c60689e
DWT
16541 ;;
16542
16543 amigaos*)
16544 case $host_cpu in
16545 powerpc)
16546 # see comment about AmigaOS4 .so support
16547 lt_prog_compiler_pic_CXX='-fPIC'
16548 ;;
16549 m68k)
16550 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
16551 # adding the '-m68020' flag to GCC prevents building anything better,
16552 # like '-m68040'.
9c60689e
DWT
16553 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16554 ;;
16555 esac
16556 ;;
16557
16558 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16559 # PIC is the default for these OSes.
16560 ;;
16561 mingw* | cygwin* | os2* | pw32* | cegcc*)
16562 # This hack is so that the source file can tell whether it is being
16563 # built for inclusion in a dll (and should export symbols for example).
16564 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16565 # (--disable-auto-import) libraries
16566 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9d54db95
JF
16567 case $host_os in
16568 os2*)
16569 lt_prog_compiler_static_CXX='$wl-static'
16570 ;;
16571 esac
9c60689e
DWT
16572 ;;
16573 darwin* | rhapsody*)
16574 # PIC is the default on this platform
16575 # Common symbols not allowed in MH_DYLIB files
16576 lt_prog_compiler_pic_CXX='-fno-common'
16577 ;;
16578 *djgpp*)
16579 # DJGPP does not support shared libraries at all
16580 lt_prog_compiler_pic_CXX=
16581 ;;
ee134472
JF
16582 haiku*)
16583 # PIC is the default for Haiku.
16584 # The "-static" flag exists, but is broken.
16585 lt_prog_compiler_static_CXX=
16586 ;;
9c60689e
DWT
16587 interix[3-9]*)
16588 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16589 # Instead, we relocate shared libraries at runtime.
16590 ;;
16591 sysv4*MP*)
16592 if test -d /usr/nec; then
16593 lt_prog_compiler_pic_CXX=-Kconform_pic
16594 fi
16595 ;;
16596 hpux*)
16597 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16598 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16599 # sets the default TLS model and affects inlining.
16600 case $host_cpu in
16601 hppa*64*)
16602 ;;
16603 *)
16604 lt_prog_compiler_pic_CXX='-fPIC'
16605 ;;
16606 esac
16607 ;;
16608 *qnx* | *nto*)
16609 # QNX uses GNU C++, but need to define -shared option too, otherwise
16610 # it will coredump.
16611 lt_prog_compiler_pic_CXX='-fPIC -shared'
16612 ;;
16613 *)
16614 lt_prog_compiler_pic_CXX='-fPIC'
16615 ;;
16616 esac
16617 else
16618 case $host_os in
16619 aix[4-9]*)
16620 # All AIX code is PIC.
9d54db95 16621 if test ia64 = "$host_cpu"; then
9c60689e
DWT
16622 # AIX 5 now supports IA64 processor
16623 lt_prog_compiler_static_CXX='-Bstatic'
16624 else
16625 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16626 fi
16627 ;;
16628 chorus*)
16629 case $cc_basename in
16630 cxch68*)
16631 # Green Hills C++ Compiler
16632 # _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"
16633 ;;
16634 esac
16635 ;;
ee134472
JF
16636 mingw* | cygwin* | os2* | pw32* | cegcc*)
16637 # This hack is so that the source file can tell whether it is being
16638 # built for inclusion in a dll (and should export symbols for example).
16639 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16640 ;;
9c60689e
DWT
16641 dgux*)
16642 case $cc_basename in
16643 ec++*)
16644 lt_prog_compiler_pic_CXX='-KPIC'
16645 ;;
16646 ghcx*)
16647 # Green Hills C++ Compiler
16648 lt_prog_compiler_pic_CXX='-pic'
16649 ;;
16650 *)
16651 ;;
16652 esac
16653 ;;
16654 freebsd* | dragonfly*)
16655 # FreeBSD uses GNU C++
16656 ;;
16657 hpux9* | hpux10* | hpux11*)
16658 case $cc_basename in
16659 CC*)
16660 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95
JF
16661 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16662 if test ia64 != "$host_cpu"; then
9c60689e
DWT
16663 lt_prog_compiler_pic_CXX='+Z'
16664 fi
16665 ;;
16666 aCC*)
16667 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95 16668 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
9c60689e
DWT
16669 case $host_cpu in
16670 hppa*64*|ia64*)
16671 # +Z the default
16672 ;;
16673 *)
16674 lt_prog_compiler_pic_CXX='+Z'
16675 ;;
16676 esac
16677 ;;
16678 *)
16679 ;;
16680 esac
16681 ;;
16682 interix*)
16683 # This is c89, which is MS Visual C++ (no shared libs)
16684 # Anyone wants to do a port?
16685 ;;
16686 irix5* | irix6* | nonstopux*)
16687 case $cc_basename in
16688 CC*)
16689 lt_prog_compiler_wl_CXX='-Wl,'
16690 lt_prog_compiler_static_CXX='-non_shared'
16691 # CC pic flag -KPIC is the default.
16692 ;;
16693 *)
16694 ;;
16695 esac
16696 ;;
9d54db95 16697 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9c60689e
DWT
16698 case $cc_basename in
16699 KCC*)
16700 # KAI C++ Compiler
16701 lt_prog_compiler_wl_CXX='--backend -Wl,'
16702 lt_prog_compiler_pic_CXX='-fPIC'
16703 ;;
16704 ecpc* )
9d54db95 16705 # old Intel C++ for x86_64, which still supported -KPIC.
9c60689e
DWT
16706 lt_prog_compiler_wl_CXX='-Wl,'
16707 lt_prog_compiler_pic_CXX='-KPIC'
16708 lt_prog_compiler_static_CXX='-static'
16709 ;;
16710 icpc* )
16711 # Intel C++, used to be incompatible with GCC.
16712 # ICC 10 doesn't accept -KPIC any more.
16713 lt_prog_compiler_wl_CXX='-Wl,'
16714 lt_prog_compiler_pic_CXX='-fPIC'
16715 lt_prog_compiler_static_CXX='-static'
16716 ;;
16717 pgCC* | pgcpp*)
16718 # Portland Group C++ compiler
16719 lt_prog_compiler_wl_CXX='-Wl,'
16720 lt_prog_compiler_pic_CXX='-fpic'
16721 lt_prog_compiler_static_CXX='-Bstatic'
16722 ;;
16723 cxx*)
16724 # Compaq C++
16725 # Make sure the PIC flag is empty. It appears that all Alpha
16726 # Linux and Compaq Tru64 Unix objects are PIC.
16727 lt_prog_compiler_pic_CXX=
16728 lt_prog_compiler_static_CXX='-non_shared'
16729 ;;
ee134472
JF
16730 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16731 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
16732 lt_prog_compiler_wl_CXX='-Wl,'
16733 lt_prog_compiler_pic_CXX='-qpic'
16734 lt_prog_compiler_static_CXX='-qstaticlink'
16735 ;;
16736 *)
16737 case `$CC -V 2>&1 | sed 5q` in
16738 *Sun\ C*)
16739 # Sun C++ 5.9
16740 lt_prog_compiler_pic_CXX='-KPIC'
16741 lt_prog_compiler_static_CXX='-Bstatic'
16742 lt_prog_compiler_wl_CXX='-Qoption ld '
16743 ;;
16744 esac
16745 ;;
16746 esac
16747 ;;
16748 lynxos*)
16749 ;;
16750 m88k*)
16751 ;;
16752 mvs*)
16753 case $cc_basename in
16754 cxx*)
16755 lt_prog_compiler_pic_CXX='-W c,exportall'
16756 ;;
16757 *)
16758 ;;
16759 esac
16760 ;;
53ba6704 16761 netbsd*)
9c60689e
DWT
16762 ;;
16763 *qnx* | *nto*)
16764 # QNX uses GNU C++, but need to define -shared option too, otherwise
16765 # it will coredump.
16766 lt_prog_compiler_pic_CXX='-fPIC -shared'
16767 ;;
16768 osf3* | osf4* | osf5*)
16769 case $cc_basename in
16770 KCC*)
16771 lt_prog_compiler_wl_CXX='--backend -Wl,'
16772 ;;
16773 RCC*)
16774 # Rational C++ 2.4.1
16775 lt_prog_compiler_pic_CXX='-pic'
16776 ;;
16777 cxx*)
16778 # Digital/Compaq C++
16779 lt_prog_compiler_wl_CXX='-Wl,'
16780 # Make sure the PIC flag is empty. It appears that all Alpha
16781 # Linux and Compaq Tru64 Unix objects are PIC.
16782 lt_prog_compiler_pic_CXX=
16783 lt_prog_compiler_static_CXX='-non_shared'
16784 ;;
16785 *)
16786 ;;
16787 esac
16788 ;;
16789 psos*)
16790 ;;
16791 solaris*)
16792 case $cc_basename in
ee134472 16793 CC* | sunCC*)
9c60689e
DWT
16794 # Sun C++ 4.2, 5.x and Centerline C++
16795 lt_prog_compiler_pic_CXX='-KPIC'
16796 lt_prog_compiler_static_CXX='-Bstatic'
16797 lt_prog_compiler_wl_CXX='-Qoption ld '
16798 ;;
16799 gcx*)
16800 # Green Hills C++ Compiler
16801 lt_prog_compiler_pic_CXX='-PIC'
16802 ;;
16803 *)
16804 ;;
16805 esac
16806 ;;
16807 sunos4*)
16808 case $cc_basename in
16809 CC*)
16810 # Sun C++ 4.x
16811 lt_prog_compiler_pic_CXX='-pic'
16812 lt_prog_compiler_static_CXX='-Bstatic'
16813 ;;
16814 lcc*)
16815 # Lucid
16816 lt_prog_compiler_pic_CXX='-pic'
16817 ;;
16818 *)
16819 ;;
16820 esac
16821 ;;
16822 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16823 case $cc_basename in
16824 CC*)
16825 lt_prog_compiler_wl_CXX='-Wl,'
16826 lt_prog_compiler_pic_CXX='-KPIC'
16827 lt_prog_compiler_static_CXX='-Bstatic'
16828 ;;
16829 esac
16830 ;;
16831 tandem*)
16832 case $cc_basename in
16833 NCC*)
16834 # NonStop-UX NCC 3.20
16835 lt_prog_compiler_pic_CXX='-KPIC'
16836 ;;
16837 *)
16838 ;;
16839 esac
16840 ;;
16841 vxworks*)
16842 ;;
16843 *)
16844 lt_prog_compiler_can_build_shared_CXX=no
16845 ;;
16846 esac
16847 fi
16848
16849case $host_os in
9d54db95 16850 # For platforms that do not support PIC, -DPIC is meaningless:
9c60689e
DWT
16851 *djgpp*)
16852 lt_prog_compiler_pic_CXX=
16853 ;;
16854 *)
16855 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16856 ;;
16857esac
9c60689e 16858
ee134472
JF
16859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16860$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16861if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863else
16864 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16865fi
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16867$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16868lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
16869
16870#
16871# Check to make sure the PIC flag actually works.
16872#
16873if test -n "$lt_prog_compiler_pic_CXX"; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16875$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 16876if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
16877 $as_echo_n "(cached) " >&6
16878else
16879 lt_cv_prog_compiler_pic_works_CXX=no
16880 ac_outfile=conftest.$ac_objext
16881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 16882 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
9c60689e
DWT
16883 # Insert the option either (1) after the last *FLAGS variable, or
16884 # (2) before a word containing "conftest.", or (3) at the end.
16885 # Note that $ac_compile itself does not contain backslashes and begins
16886 # with a dollar sign (not a hyphen), so the echo should work correctly.
16887 # The option is referenced via a variable to avoid confusing sed.
16888 lt_compile=`echo "$ac_compile" | $SED \
16889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16891 -e 's:$: $lt_compiler_flag:'`
ee134472 16892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
16893 (eval "$lt_compile" 2>conftest.err)
16894 ac_status=$?
16895 cat conftest.err >&5
ee134472 16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
16897 if (exit $ac_status) && test -s "$ac_outfile"; then
16898 # The compiler can only warn and ignore the option if not recognized
16899 # So say no if there are warnings other than the usual output.
ee134472 16900 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
16901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16902 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16903 lt_cv_prog_compiler_pic_works_CXX=yes
16904 fi
16905 fi
00a96142 16906 $RM -r conftest*
9c60689e
DWT
16907
16908fi
16909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16910$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16911
9d54db95 16912if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
9c60689e
DWT
16913 case $lt_prog_compiler_pic_CXX in
16914 "" | " "*) ;;
16915 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16916 esac
16917else
16918 lt_prog_compiler_pic_CXX=
16919 lt_prog_compiler_can_build_shared_CXX=no
16920fi
16921
16922fi
16923
16924
16925
ee134472
JF
16926
16927
47aaa820
DWT
16928#
16929# Check to make sure the static flag actually works.
16930#
16931wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16933$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 16934if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
16935 $as_echo_n "(cached) " >&6
16936else
16937 lt_cv_prog_compiler_static_works_CXX=no
9d54db95 16938 save_LDFLAGS=$LDFLAGS
47aaa820
DWT
16939 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16940 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16941 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16942 # The linker can only warn and ignore the option if not recognized
16943 # So say no if there are warnings
16944 if test -s conftest.err; then
16945 # Append any errors to the config.log.
16946 cat conftest.err 1>&5
ee134472 16947 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
16948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16949 if diff conftest.exp conftest.er2 >/dev/null; then
16950 lt_cv_prog_compiler_static_works_CXX=yes
16951 fi
16952 else
16953 lt_cv_prog_compiler_static_works_CXX=yes
16954 fi
16955 fi
16956 $RM -r conftest*
9d54db95 16957 LDFLAGS=$save_LDFLAGS
47aaa820
DWT
16958
16959fi
16960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16961$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16962
9d54db95 16963if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
47aaa820
DWT
16964 :
16965else
16966 lt_prog_compiler_static_CXX=
16967fi
16968
16969
16970
16971
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16973$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 16974if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
16975 $as_echo_n "(cached) " >&6
16976else
16977 lt_cv_prog_compiler_c_o_CXX=no
16978 $RM -r conftest 2>/dev/null
16979 mkdir conftest
16980 cd conftest
16981 mkdir out
16982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16983
16984 lt_compiler_flag="-o out/conftest2.$ac_objext"
16985 # Insert the option either (1) after the last *FLAGS variable, or
16986 # (2) before a word containing "conftest.", or (3) at the end.
16987 # Note that $ac_compile itself does not contain backslashes and begins
16988 # with a dollar sign (not a hyphen), so the echo should work correctly.
16989 lt_compile=`echo "$ac_compile" | $SED \
16990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16992 -e 's:$: $lt_compiler_flag:'`
ee134472 16993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
16994 (eval "$lt_compile" 2>out/conftest.err)
16995 ac_status=$?
16996 cat out/conftest.err >&5
ee134472 16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
16998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16999 then
17000 # The compiler can only warn and ignore the option if not recognized
17001 # So say no if there are warnings
ee134472 17002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
17003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17005 lt_cv_prog_compiler_c_o_CXX=yes
17006 fi
17007 fi
17008 chmod u+w . 2>&5
00a96142 17009 $RM -r conftest*
47aaa820
DWT
17010 # SGI C++ compiler will create directory out/ii_files/ for
17011 # template instantiation
17012 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17013 $RM out/* && rmdir out
17014 cd ..
17015 $RM -r conftest
00a96142 17016 $RM -r conftest*
47aaa820
DWT
17017
17018fi
17019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17020$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17021
17022
17023
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17025$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 17026if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
17027 $as_echo_n "(cached) " >&6
17028else
17029 lt_cv_prog_compiler_c_o_CXX=no
17030 $RM -r conftest 2>/dev/null
17031 mkdir conftest
17032 cd conftest
17033 mkdir out
17034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17035
17036 lt_compiler_flag="-o out/conftest2.$ac_objext"
17037 # Insert the option either (1) after the last *FLAGS variable, or
17038 # (2) before a word containing "conftest.", or (3) at the end.
17039 # Note that $ac_compile itself does not contain backslashes and begins
17040 # with a dollar sign (not a hyphen), so the echo should work correctly.
17041 lt_compile=`echo "$ac_compile" | $SED \
17042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17044 -e 's:$: $lt_compiler_flag:'`
ee134472 17045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
17046 (eval "$lt_compile" 2>out/conftest.err)
17047 ac_status=$?
17048 cat out/conftest.err >&5
ee134472 17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
17050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17051 then
17052 # The compiler can only warn and ignore the option if not recognized
17053 # So say no if there are warnings
ee134472 17054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
17055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17057 lt_cv_prog_compiler_c_o_CXX=yes
17058 fi
17059 fi
17060 chmod u+w . 2>&5
00a96142 17061 $RM -r conftest*
47aaa820
DWT
17062 # SGI C++ compiler will create directory out/ii_files/ for
17063 # template instantiation
17064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17065 $RM out/* && rmdir out
17066 cd ..
17067 $RM -r conftest
00a96142 17068 $RM -r conftest*
47aaa820
DWT
17069
17070fi
17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17072$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17073
17074
17075
17076
9d54db95
JF
17077hard_links=nottested
17078if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
47aaa820
DWT
17079 # do not overwrite the value of need_locks provided by the user
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17081$as_echo_n "checking if we can lock with hard links... " >&6; }
17082 hard_links=yes
00a96142 17083 $RM -r conftest*
47aaa820
DWT
17084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17085 touch conftest.a
17086 ln conftest.a conftest.b 2>&5 || hard_links=no
17087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17089$as_echo "$hard_links" >&6; }
9d54db95
JF
17090 if test no = "$hard_links"; then
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17092$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
47aaa820
DWT
17093 need_locks=warn
17094 fi
17095else
17096 need_locks=no
17097fi
17098
17099
17100
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17102$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17103
17104 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 17105 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
17106 case $host_os in
17107 aix[4-9]*)
17108 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
17109 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17110 # Without the "-l" option, or with the "-B" option, AIX nm treats
17111 # weak defined symbols like other global defined symbols, whereas
17112 # GNU nm marks them as "W".
17113 # While the 'weak' keyword is ignored in the Export File, we need
17114 # it in the Import File for the 'aix-soname' feature, so we have
17115 # to replace the "-B" option with "-P" for AIX nm.
47aaa820 17116 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 17117 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
47aaa820 17118 else
9d54db95 17119 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
47aaa820
DWT
17120 fi
17121 ;;
17122 pw32*)
9d54db95 17123 export_symbols_cmds_CXX=$ltdll_cmds
ee134472 17124 ;;
47aaa820 17125 cygwin* | mingw* | cegcc*)
ee134472 17126 case $cc_basename in
53ba6704
JF
17127 cl*)
17128 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17129 ;;
ee134472
JF
17130 *)
17131 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'
17132 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17133 ;;
17134 esac
17135 ;;
47aaa820
DWT
17136 *)
17137 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 17138 ;;
47aaa820 17139 esac
47aaa820
DWT
17140
17141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17142$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 17143test no = "$ld_shlibs_CXX" && can_build_shared=no
47aaa820
DWT
17144
17145with_gnu_ld_CXX=$with_gnu_ld
17146
17147
17148
17149
17150
17151
17152#
17153# Do we need to explicitly link libc?
17154#
17155case "x$archive_cmds_need_lc_CXX" in
17156x|xyes)
17157 # Assume -lc should be added
17158 archive_cmds_need_lc_CXX=yes
17159
9d54db95 17160 if test yes,yes = "$GCC,$enable_shared"; then
47aaa820
DWT
17161 case $archive_cmds_CXX in
17162 *'~'*)
17163 # FIXME: we may have to deal with multi-command sequences.
17164 ;;
17165 '$CC '*)
17166 # Test whether the compiler implicitly links with -lc since on some
17167 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17168 # to ld, don't add -lc before -lgcc.
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17170$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
17171if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17172 $as_echo_n "(cached) " >&6
17173else
00a96142 17174 $RM -r conftest*
ee134472 17175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 17176
ee134472 17177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
17178 (eval $ac_compile) 2>&5
17179 ac_status=$?
17180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17181 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
17182 soname=conftest
17183 lib=conftest
17184 libobjs=conftest.$ac_objext
17185 deplibs=
17186 wl=$lt_prog_compiler_wl_CXX
17187 pic_flag=$lt_prog_compiler_pic_CXX
17188 compiler_flags=-v
17189 linker_flags=-v
17190 verstring=
17191 output_objdir=.
17192 libname=conftest
17193 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17194 allow_undefined_flag_CXX=
17195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
17196 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17197 ac_status=$?
17198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17199 test $ac_status = 0; }
ee134472
JF
17200 then
17201 lt_cv_archive_cmds_need_lc_CXX=no
17202 else
17203 lt_cv_archive_cmds_need_lc_CXX=yes
17204 fi
17205 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17206 else
17207 cat conftest.err 1>&5
17208 fi
00a96142 17209 $RM -r conftest*
ee134472
JF
17210
17211fi
17212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17213$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17214 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
17215 ;;
17216 esac
17217 fi
17218 ;;
17219esac
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
47aaa820
DWT
17279
17280
17281
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17283$as_echo_n "checking dynamic linker characteristics... " >&6; }
17284
17285library_names_spec=
17286libname_spec='lib$name'
17287soname_spec=
9d54db95 17288shrext_cmds=.so
47aaa820
DWT
17289postinstall_cmds=
17290postuninstall_cmds=
17291finish_cmds=
17292finish_eval=
17293shlibpath_var=
17294shlibpath_overrides_runpath=unknown
17295version_type=none
17296dynamic_linker="$host_os ld.so"
17297sys_lib_dlsearch_path_spec="/lib /usr/lib"
17298need_lib_prefix=unknown
17299hardcode_into_libs=no
17300
17301# when you set need_version to no, make sure it does not cause -set_version
17302# flags to be left without arguments
17303need_version=unknown
17304
9d54db95
JF
17305
17306
47aaa820
DWT
17307case $host_os in
17308aix3*)
53ba6704 17309 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 17310 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
47aaa820
DWT
17311 shlibpath_var=LIBPATH
17312
17313 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 17314 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17315 ;;
17316
17317aix[4-9]*)
53ba6704 17318 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17319 need_lib_prefix=no
17320 need_version=no
17321 hardcode_into_libs=yes
9d54db95 17322 if test ia64 = "$host_cpu"; then
47aaa820 17323 # AIX 5 supports IA64
9d54db95 17324 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
47aaa820
DWT
17325 shlibpath_var=LD_LIBRARY_PATH
17326 else
17327 # With GCC up to 2.95.x, collect2 would create an import file
17328 # for dependence libraries. The import file would start with
9d54db95
JF
17329 # the line '#! .'. This would cause the generated library to
17330 # depend on '.', always an invalid library. This was fixed in
47aaa820
DWT
17331 # development snapshots of GCC prior to 3.0.
17332 case $host_os in
17333 aix4 | aix4.[01] | aix4.[01].*)
17334 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17335 echo ' yes '
9d54db95 17336 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
47aaa820
DWT
17337 :
17338 else
17339 can_build_shared=no
17340 fi
17341 ;;
17342 esac
9d54db95
JF
17343 # Using Import Files as archive members, it is possible to support
17344 # filename-based versioning of shared library archives on AIX. While
17345 # this would work for both with and without runtime linking, it will
17346 # prevent static linking of such archives. So we do filename-based
17347 # shared library versioning with .so extension only, which is used
17348 # when both runtime linking and shared linking is enabled.
17349 # Unfortunately, runtime linking may impact performance, so we do
17350 # not want this to be the default eventually. Also, we use the
17351 # versioned .so libs for executables only if there is the -brtl
17352 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17353 # To allow for filename-based versioning support, we need to create
17354 # libNAME.so.V as an archive file, containing:
17355 # *) an Import File, referring to the versioned filename of the
17356 # archive as well as the shared archive member, telling the
17357 # bitwidth (32 or 64) of that shared object, and providing the
17358 # list of exported symbols of that shared object, eventually
17359 # decorated with the 'weak' keyword
17360 # *) the shared object with the F_LOADONLY flag set, to really avoid
17361 # it being seen by the linker.
17362 # At run time we better use the real file rather than another symlink,
17363 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17364
17365 case $with_aix_soname,$aix_use_runtimelinking in
17366 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
47aaa820
DWT
17367 # soname into executable. Probably we can add versioning support to
17368 # collect2, so additional links can be useful in future.
9d54db95
JF
17369 aix,yes) # traditional libtool
17370 dynamic_linker='AIX unversionable lib.so'
47aaa820
DWT
17371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17372 # instead of lib<name>.a to let people know that these are not
17373 # typical AIX shared libraries.
9d54db95
JF
17374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17375 ;;
17376 aix,no) # traditional AIX only
17377 dynamic_linker='AIX lib.a(lib.so.V)'
47aaa820
DWT
17378 # We preserve .a as extension for shared libraries through AIX4.2
17379 # and later when we are not doing run time linking.
9d54db95
JF
17380 library_names_spec='$libname$release.a $libname.a'
17381 soname_spec='$libname$release$shared_ext$major'
17382 ;;
17383 svr4,*) # full svr4 only
17384 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17385 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17386 # We do not specify a path in Import Files, so LIBPATH fires.
17387 shlibpath_overrides_runpath=yes
17388 ;;
17389 *,yes) # both, prefer svr4
17390 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17391 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17392 # unpreferred sharedlib libNAME.a needs extra handling
17393 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17394 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17395 # We do not specify a path in Import Files, so LIBPATH fires.
17396 shlibpath_overrides_runpath=yes
17397 ;;
17398 *,no) # both, prefer aix
17399 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17400 library_names_spec='$libname$release.a $libname.a'
17401 soname_spec='$libname$release$shared_ext$major'
17402 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17403 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17404 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17405 ;;
17406 esac
47aaa820
DWT
17407 shlibpath_var=LIBPATH
17408 fi
17409 ;;
17410
17411amigaos*)
17412 case $host_cpu in
17413 powerpc)
17414 # Since July 2007 AmigaOS4 officially supports .so libraries.
17415 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 17416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17417 ;;
17418 m68k)
17419 library_names_spec='$libname.ixlibrary $libname.a'
17420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 17421 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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
17422 ;;
17423 esac
17424 ;;
17425
17426beos*)
9d54db95 17427 library_names_spec='$libname$shared_ext'
47aaa820
DWT
17428 dynamic_linker="$host_os ld.so"
17429 shlibpath_var=LIBRARY_PATH
17430 ;;
17431
17432bsdi[45]*)
53ba6704 17433 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820 17434 need_version=no
9d54db95
JF
17435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17436 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17441 # the default ld.so.conf also contains /usr/contrib/lib and
17442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17443 # libtool to hard-code these into programs
17444 ;;
9c60689e 17445
47aaa820
DWT
17446cygwin* | mingw* | pw32* | cegcc*)
17447 version_type=windows
9d54db95 17448 shrext_cmds=.dll
47aaa820
DWT
17449 need_version=no
17450 need_lib_prefix=no
9c60689e 17451
ee134472
JF
17452 case $GCC,$cc_basename in
17453 yes,*)
17454 # gcc
47aaa820
DWT
17455 library_names_spec='$libname.dll.a'
17456 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
17457 postinstall_cmds='base_file=`basename \$file`~
17458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
47aaa820
DWT
17459 dldir=$destdir/`dirname \$dlpath`~
17460 test -d \$dldir || mkdir -p \$dldir~
17461 $install_prog $dir/$dlname \$dldir/$dlname~
17462 chmod a+x \$dldir/$dlname~
17463 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17464 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17465 fi'
17466 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17467 dlpath=$dir/\$dldll~
17468 $RM \$dlpath'
17469 shlibpath_overrides_runpath=yes
9c60689e 17470
47aaa820
DWT
17471 case $host_os in
17472 cygwin*)
17473 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 17474 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
ee134472 17475
47aaa820
DWT
17476 ;;
17477 mingw* | cegcc*)
17478 # MinGW DLLs use traditional 'lib' prefix
9d54db95 17479 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
17480 ;;
17481 pw32*)
17482 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 17483 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
17484 ;;
17485 esac
ee134472
JF
17486 dynamic_linker='Win32 ld.exe'
17487 ;;
17488
17489 *,cl*)
17490 # Native MSVC
17491 libname_spec='$name'
9d54db95
JF
17492 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17493 library_names_spec='$libname.dll.lib'
ee134472
JF
17494
17495 case $build_os in
17496 mingw*)
17497 sys_lib_search_path_spec=
17498 lt_save_ifs=$IFS
17499 IFS=';'
17500 for lt_path in $LIB
17501 do
17502 IFS=$lt_save_ifs
17503 # Let DOS variable expansion print the short 8.3 style file name.
17504 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17505 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17506 done
17507 IFS=$lt_save_ifs
17508 # Convert to MSYS style.
17509 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17510 ;;
17511 cygwin*)
17512 # Convert to unix form, then to dos form, then back to unix form
17513 # but this time dos style (no spaces!) so that the unix form looks
17514 # like /cygdrive/c/PROGRA~1:/cygdr...
17515 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17516 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17517 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17518 ;;
17519 *)
9d54db95 17520 sys_lib_search_path_spec=$LIB
ee134472
JF
17521 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17522 # It is most probably a Windows format PATH.
17523 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17524 else
17525 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17526 fi
17527 # FIXME: find the short name or the path components, as spaces are
17528 # common. (e.g. "Program Files" -> "PROGRA~1")
17529 ;;
17530 esac
17531
17532 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
17533 postinstall_cmds='base_file=`basename \$file`~
17534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
ee134472
JF
17535 dldir=$destdir/`dirname \$dlpath`~
17536 test -d \$dldir || mkdir -p \$dldir~
17537 $install_prog $dir/$dlname \$dldir/$dlname'
17538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17539 dlpath=$dir/\$dldll~
17540 $RM \$dlpath'
17541 shlibpath_overrides_runpath=yes
17542 dynamic_linker='Win32 link.exe'
47aaa820 17543 ;;
9c60689e 17544
47aaa820 17545 *)
ee134472 17546 # Assume MSVC wrapper
9d54db95 17547 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
ee134472 17548 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
17549 ;;
17550 esac
47aaa820
DWT
17551 # FIXME: first we should search . and the directory the executable is in
17552 shlibpath_var=PATH
17553 ;;
9c60689e 17554
47aaa820
DWT
17555darwin* | rhapsody*)
17556 dynamic_linker="$host_os dyld"
17557 version_type=darwin
17558 need_lib_prefix=no
17559 need_version=no
9d54db95
JF
17560 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17561 soname_spec='$libname$release$major$shared_ext'
47aaa820
DWT
17562 shlibpath_overrides_runpath=yes
17563 shlibpath_var=DYLD_LIBRARY_PATH
17564 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 17565
47aaa820
DWT
17566 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17567 ;;
9c60689e 17568
47aaa820 17569dgux*)
53ba6704 17570 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17571 need_lib_prefix=no
17572 need_version=no
9d54db95
JF
17573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17574 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17575 shlibpath_var=LD_LIBRARY_PATH
17576 ;;
9c60689e 17577
47aaa820
DWT
17578freebsd* | dragonfly*)
17579 # DragonFly does not have aout. When/if they implement a new
17580 # versioning mechanism, adjust this.
17581 if test -x /usr/bin/objformat; then
17582 objformat=`/usr/bin/objformat`
17583 else
17584 case $host_os in
53ba6704 17585 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
17586 *) objformat=elf ;;
17587 esac
17588 fi
17589 version_type=freebsd-$objformat
17590 case $version_type in
17591 freebsd-elf*)
9d54db95
JF
17592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17593 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17594 need_version=no
17595 need_lib_prefix=no
17596 ;;
17597 freebsd-*)
9d54db95 17598 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17599 need_version=yes
17600 ;;
17601 esac
17602 shlibpath_var=LD_LIBRARY_PATH
17603 case $host_os in
53ba6704 17604 freebsd2.*)
47aaa820
DWT
17605 shlibpath_overrides_runpath=yes
17606 ;;
17607 freebsd3.[01]* | freebsdelf3.[01]*)
17608 shlibpath_overrides_runpath=yes
17609 hardcode_into_libs=yes
17610 ;;
17611 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17612 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17613 shlibpath_overrides_runpath=no
17614 hardcode_into_libs=yes
17615 ;;
17616 *) # from 4.6 on, and DragonFly
17617 shlibpath_overrides_runpath=yes
17618 hardcode_into_libs=yes
17619 ;;
17620 esac
17621 ;;
9c60689e 17622
ee134472 17623haiku*)
53ba6704 17624 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
17625 need_lib_prefix=no
17626 need_version=no
17627 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
17628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17629 soname_spec='$libname$release$shared_ext$major'
ee134472 17630 shlibpath_var=LIBRARY_PATH
9d54db95 17631 shlibpath_overrides_runpath=no
ee134472 17632 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
17633 hardcode_into_libs=yes
17634 ;;
9c60689e 17635
47aaa820
DWT
17636hpux9* | hpux10* | hpux11*)
17637 # Give a soname corresponding to the major version so that dld.sl refuses to
17638 # link against other versions.
17639 version_type=sunos
17640 need_lib_prefix=no
17641 need_version=no
17642 case $host_cpu in
17643 ia64*)
17644 shrext_cmds='.so'
17645 hardcode_into_libs=yes
17646 dynamic_linker="$host_os dld.so"
17647 shlibpath_var=LD_LIBRARY_PATH
17648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
17649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17650 soname_spec='$libname$release$shared_ext$major'
17651 if test 32 = "$HPUX_IA64_MODE"; then
47aaa820 17652 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 17653 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
47aaa820
DWT
17654 else
17655 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 17656 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
47aaa820 17657 fi
47aaa820
DWT
17658 ;;
17659 hppa*64*)
17660 shrext_cmds='.sl'
17661 hardcode_into_libs=yes
17662 dynamic_linker="$host_os dld.sl"
17663 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
17665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17666 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17667 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17669 ;;
17670 *)
17671 shrext_cmds='.sl'
17672 dynamic_linker="$host_os dld.sl"
17673 shlibpath_var=SHLIB_PATH
17674 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
17675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17676 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17677 ;;
17678 esac
ee134472 17679 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 17680 postinstall_cmds='chmod 555 $lib'
ee134472
JF
17681 # or fails outright, so override atomically:
17682 install_override_mode=555
47aaa820 17683 ;;
9c60689e 17684
47aaa820 17685interix[3-9]*)
53ba6704 17686 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17687 need_lib_prefix=no
17688 need_version=no
9d54db95
JF
17689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17690 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17691 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17692 shlibpath_var=LD_LIBRARY_PATH
17693 shlibpath_overrides_runpath=no
17694 hardcode_into_libs=yes
17695 ;;
9c60689e 17696
47aaa820
DWT
17697irix5* | irix6* | nonstopux*)
17698 case $host_os in
17699 nonstopux*) version_type=nonstopux ;;
17700 *)
9d54db95 17701 if test yes = "$lt_cv_prog_gnu_ld"; then
53ba6704 17702 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17703 else
17704 version_type=irix
17705 fi ;;
17706 esac
17707 need_lib_prefix=no
17708 need_version=no
9d54db95
JF
17709 soname_spec='$libname$release$shared_ext$major'
17710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
47aaa820
DWT
17711 case $host_os in
17712 irix5* | nonstopux*)
17713 libsuff= shlibsuff=
17714 ;;
17715 *)
17716 case $LD in # libtool.m4 will add one of these switches to LD
17717 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17718 libsuff= shlibsuff= libmagic=32-bit;;
17719 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17720 libsuff=32 shlibsuff=N32 libmagic=N32;;
17721 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17722 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17723 *) libsuff= shlibsuff= libmagic=never-match;;
17724 esac
17725 ;;
17726 esac
17727 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17728 shlibpath_overrides_runpath=no
9d54db95
JF
17729 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17730 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
47aaa820
DWT
17731 hardcode_into_libs=yes
17732 ;;
9c60689e 17733
47aaa820
DWT
17734# No shared lib support for Linux oldld, aout, or coff.
17735linux*oldld* | linux*aout* | linux*coff*)
17736 dynamic_linker=no
17737 ;;
9c60689e 17738
9d54db95
JF
17739linux*android*)
17740 version_type=none # Android doesn't support versioned libraries.
17741 need_lib_prefix=no
17742 need_version=no
17743 library_names_spec='$libname$release$shared_ext'
17744 soname_spec='$libname$release$shared_ext'
17745 finish_cmds=
17746 shlibpath_var=LD_LIBRARY_PATH
17747 shlibpath_overrides_runpath=yes
17748
17749 # This implies no fast_install, which is unacceptable.
17750 # Some rework will be needed to allow for fast_install
17751 # before this can be enabled.
17752 hardcode_into_libs=yes
17753
17754 dynamic_linker='Android linker'
17755 # Don't embed -rpath directories since the linker doesn't support them.
17756 hardcode_libdir_flag_spec_CXX='-L$libdir'
17757 ;;
17758
53ba6704 17759# This must be glibc/ELF.
9d54db95 17760linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
53ba6704 17761 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17762 need_lib_prefix=no
17763 need_version=no
9d54db95
JF
17764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17765 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17767 shlibpath_var=LD_LIBRARY_PATH
17768 shlibpath_overrides_runpath=no
ee134472 17769
47aaa820 17770 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
17771 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17772 $as_echo_n "(cached) " >&6
17773else
17774 lt_cv_shlibpath_overrides_runpath=no
17775 save_LDFLAGS=$LDFLAGS
17776 save_libdir=$libdir
17777 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17778 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 17780/* end confdefs.h. */
9c60689e 17781
47aaa820
DWT
17782int
17783main ()
17784{
9c60689e 17785
47aaa820
DWT
17786 ;
17787 return 0;
17788}
17789_ACEOF
17790if ac_fn_cxx_try_link "$LINENO"; then :
17791 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 17792 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 17793fi
47aaa820
DWT
17794fi
17795rm -f core conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
17797 LDFLAGS=$save_LDFLAGS
17798 libdir=$save_libdir
17799
17800fi
17801
17802 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 17803
47aaa820
DWT
17804 # This implies no fast_install, which is unacceptable.
17805 # Some rework will be needed to allow for fast_install
17806 # before this can be enabled.
17807 hardcode_into_libs=yes
9c60689e 17808
9d54db95
JF
17809 # Ideally, we could use ldconfig to report *all* directores which are
17810 # searched for libraries, however this is still not possible. Aside from not
17811 # being certain /sbin/ldconfig is available, command
17812 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17813 # even though it is searched at run-time. Try to do the best guess by
17814 # appending ld.so.conf contents (and includes) to the search path.
47aaa820 17815 if test -f /etc/ld.so.conf; then
ee134472 17816 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
17817 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17818 fi
9c60689e 17819
47aaa820
DWT
17820 # We used to test for /lib/ld.so.1 and disable shared libraries on
17821 # powerpc, because MkLinux only supported shared libraries with the
17822 # GNU dynamic linker. Since this was broken with cross compilers,
17823 # most powerpc-linux boxes support dynamic linking these days and
17824 # people can always --disable-shared, the test was removed, and we
17825 # assume the GNU/Linux dynamic linker is in use.
17826 dynamic_linker='GNU/Linux ld.so'
9c60689e 17827 ;;
47aaa820 17828
47aaa820
DWT
17829netbsd*)
17830 version_type=sunos
17831 need_lib_prefix=no
17832 need_version=no
17833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 17834 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17836 dynamic_linker='NetBSD (a.out) ld.so'
17837 else
9d54db95
JF
17838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17839 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17840 dynamic_linker='NetBSD ld.elf_so'
17841 fi
17842 shlibpath_var=LD_LIBRARY_PATH
17843 shlibpath_overrides_runpath=yes
17844 hardcode_into_libs=yes
9c60689e 17845 ;;
9c60689e 17846
47aaa820 17847newsos6)
53ba6704 17848 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 17849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17850 shlibpath_var=LD_LIBRARY_PATH
17851 shlibpath_overrides_runpath=yes
17852 ;;
9c60689e 17853
47aaa820
DWT
17854*nto* | *qnx*)
17855 version_type=qnx
17856 need_lib_prefix=no
17857 need_version=no
9d54db95
JF
17858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17859 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17860 shlibpath_var=LD_LIBRARY_PATH
17861 shlibpath_overrides_runpath=no
17862 hardcode_into_libs=yes
17863 dynamic_linker='ldqnx.so'
17864 ;;
9c60689e 17865
9d54db95 17866openbsd* | bitrig*)
47aaa820 17867 version_type=sunos
9d54db95 17868 sys_lib_dlsearch_path_spec=/usr/lib
47aaa820 17869 need_lib_prefix=no
9d54db95
JF
17870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17871 need_version=no
47aaa820 17872 else
9d54db95 17873 need_version=yes
47aaa820 17874 fi
9d54db95
JF
17875 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 shlibpath_overrides_runpath=yes
47aaa820 17879 ;;
9c60689e 17880
47aaa820
DWT
17881os2*)
17882 libname_spec='$name'
9d54db95
JF
17883 version_type=windows
17884 shrext_cmds=.dll
17885 need_version=no
47aaa820 17886 need_lib_prefix=no
9d54db95
JF
17887 # OS/2 can only load a DLL with a base name of 8 characters or less.
17888 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17889 v=$($ECHO $release$versuffix | tr -d .-);
17890 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17891 $ECHO $n$v`$shared_ext'
17892 library_names_spec='${libname}_dll.$libext'
47aaa820 17893 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
17894 shlibpath_var=BEGINLIBPATH
17895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17897 postinstall_cmds='base_file=`basename \$file`~
17898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17899 dldir=$destdir/`dirname \$dlpath`~
17900 test -d \$dldir || mkdir -p \$dldir~
17901 $install_prog $dir/$dlname \$dldir/$dlname~
17902 chmod a+x \$dldir/$dlname~
17903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17905 fi'
17906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17907 dlpath=$dir/\$dldll~
17908 $RM \$dlpath'
47aaa820 17909 ;;
9c60689e 17910
47aaa820
DWT
17911osf3* | osf4* | osf5*)
17912 version_type=osf
17913 need_lib_prefix=no
17914 need_version=no
9d54db95
JF
17915 soname_spec='$libname$release$shared_ext$major'
17916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17917 shlibpath_var=LD_LIBRARY_PATH
17918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 17919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47aaa820 17920 ;;
9c60689e 17921
47aaa820
DWT
17922rdos*)
17923 dynamic_linker=no
17924 ;;
9c60689e 17925
47aaa820 17926solaris*)
53ba6704 17927 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17928 need_lib_prefix=no
17929 need_version=no
9d54db95
JF
17930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17931 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17932 shlibpath_var=LD_LIBRARY_PATH
17933 shlibpath_overrides_runpath=yes
17934 hardcode_into_libs=yes
17935 # ldd complains unless libraries are executable
17936 postinstall_cmds='chmod +x $lib'
17937 ;;
9c60689e 17938
47aaa820
DWT
17939sunos4*)
17940 version_type=sunos
9d54db95 17941 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17942 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 shlibpath_overrides_runpath=yes
9d54db95 17945 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
17946 need_lib_prefix=no
17947 fi
17948 need_version=yes
17949 ;;
9c60689e 17950
47aaa820 17951sysv4 | sysv4.3*)
53ba6704 17952 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
17953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17954 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17955 shlibpath_var=LD_LIBRARY_PATH
17956 case $host_vendor in
17957 sni)
17958 shlibpath_overrides_runpath=no
17959 need_lib_prefix=no
17960 runpath_var=LD_RUN_PATH
9c60689e 17961 ;;
47aaa820
DWT
17962 siemens)
17963 need_lib_prefix=no
9c60689e 17964 ;;
47aaa820
DWT
17965 motorola)
17966 need_lib_prefix=no
17967 need_version=no
17968 shlibpath_overrides_runpath=no
17969 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17970 ;;
17971 esac
9c60689e 17972 ;;
9c60689e 17973
47aaa820 17974sysv4*MP*)
9d54db95 17975 if test -d /usr/nec; then
53ba6704 17976 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
17977 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17978 soname_spec='$libname$shared_ext.$major'
47aaa820
DWT
17979 shlibpath_var=LD_LIBRARY_PATH
17980 fi
17981 ;;
9c60689e 17982
47aaa820 17983sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 17984 version_type=sco
47aaa820
DWT
17985 need_lib_prefix=no
17986 need_version=no
9d54db95
JF
17987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17988 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17989 shlibpath_var=LD_LIBRARY_PATH
17990 shlibpath_overrides_runpath=yes
17991 hardcode_into_libs=yes
9d54db95 17992 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
17993 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17994 else
17995 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17996 case $host_os in
17997 sco3.2v5*)
17998 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17999 ;;
18000 esac
18001 fi
18002 sys_lib_dlsearch_path_spec='/usr/lib'
18003 ;;
9c60689e 18004
47aaa820
DWT
18005tpf*)
18006 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 18007 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
18008 need_lib_prefix=no
18009 need_version=no
9d54db95 18010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
18011 shlibpath_var=LD_LIBRARY_PATH
18012 shlibpath_overrides_runpath=no
18013 hardcode_into_libs=yes
18014 ;;
9c60689e 18015
47aaa820 18016uts4*)
53ba6704 18017 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
18018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18019 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
18020 shlibpath_var=LD_LIBRARY_PATH
18021 ;;
9c60689e 18022
47aaa820
DWT
18023*)
18024 dynamic_linker=no
e9c9a47c
DWT
18025 ;;
18026esac
18027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18028$as_echo "$dynamic_linker" >&6; }
9d54db95 18029test no = "$dynamic_linker" && can_build_shared=no
e9c9a47c
DWT
18030
18031variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 18032if test yes = "$GCC"; then
e9c9a47c 18033 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 18034fi
9c60689e 18035
9d54db95
JF
18036if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18037 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
47aaa820 18038fi
9d54db95
JF
18039
18040if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18041 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
47aaa820 18042fi
9c60689e 18043
9d54db95
JF
18044# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18045configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18046
18047# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18048func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18049
18050# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18051configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18052
18053
18054
9c60689e 18055
9c60689e 18056
9c60689e 18057
47aaa820 18058
47aaa820 18059
47aaa820 18060
9c60689e 18061
9c60689e 18062
47aaa820 18063
47aaa820 18064
47aaa820 18065
47aaa820 18066
47aaa820 18067
47aaa820 18068
47aaa820 18069
47aaa820 18070
9c60689e 18071
9c60689e 18072
9c60689e 18073
9c60689e 18074
9c60689e 18075
e9c9a47c
DWT
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
ee134472
JF
18087
18088
e9c9a47c
DWT
18089
18090
18091
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18093$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18094hardcode_action_CXX=
18095if test -n "$hardcode_libdir_flag_spec_CXX" ||
18096 test -n "$runpath_var_CXX" ||
9d54db95 18097 test yes = "$hardcode_automatic_CXX"; then
e9c9a47c
DWT
18098
18099 # We can hardcode non-existent directories.
9d54db95 18100 if test no != "$hardcode_direct_CXX" &&
e9c9a47c
DWT
18101 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18102 # have to relink, otherwise we might link with an installed library
18103 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
18104 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18105 test no != "$hardcode_minus_L_CXX"; then
e9c9a47c
DWT
18106 # Linking always hardcodes the temporary library directory.
18107 hardcode_action_CXX=relink
18108 else
18109 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18110 hardcode_action_CXX=immediate
18111 fi
18112else
18113 # We cannot hardcode anything, or else we can only hardcode existing
18114 # directories.
18115 hardcode_action_CXX=unsupported
18116fi
18117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18118$as_echo "$hardcode_action_CXX" >&6; }
18119
9d54db95
JF
18120if test relink = "$hardcode_action_CXX" ||
18121 test yes = "$inherit_rpath_CXX"; then
e9c9a47c
DWT
18122 # Fast installation is not supported
18123 enable_fast_install=no
9d54db95
JF
18124elif test yes = "$shlibpath_overrides_runpath" ||
18125 test no = "$enable_shared"; then
e9c9a47c
DWT
18126 # Fast installation is not necessary
18127 enable_fast_install=needless
47aaa820 18128fi
9c60689e 18129
47aaa820 18130
47aaa820 18131
e9c9a47c
DWT
18132
18133
18134
18135
a243b558
JF
18136 fi # test -n "$compiler"
18137
18138 CC=$lt_save_CC
18139 CFLAGS=$lt_save_CFLAGS
18140 LDCXX=$LD
18141 LD=$lt_save_LD
18142 GCC=$lt_save_GCC
18143 with_gnu_ld=$lt_save_with_gnu_ld
18144 lt_cv_path_LDCXX=$lt_cv_path_LD
18145 lt_cv_path_LD=$lt_save_path_LD
18146 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18147 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
9d54db95 18148fi # test yes != "$_lt_caught_CXX_error"
a243b558
JF
18149
18150ac_ext=c
18151ac_cpp='$CPP $CPPFLAGS'
18152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18154ac_compiler_gnu=$ac_cv_c_compiler_gnu
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170 ac_config_commands="$ac_config_commands libtool"
18171
18172
18173
18174
18175# Only expand once:
18176
18177
18178
18179ac_ext=cpp
18180ac_cpp='$CXXCPP $CPPFLAGS'
18181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18184
18185
1771224f
JF
18186 ax_cxx_compile_cxx11_required=true
18187 ac_ext=cpp
18188ac_cpp='$CXXCPP $CPPFLAGS'
18189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18192 ac_success=no
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18194$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18195if ${ax_cv_cxx_compile_cxx11+:} false; then :
18196 $as_echo_n "(cached) " >&6
18197else
18198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199/* end confdefs.h. */
18200
18201 template <typename T>
18202 struct check
18203 {
18204 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18205 };
18206
18207 struct Base {
18208 virtual void f() {}
18209 };
18210 struct Child : public Base {
18211 virtual void f() override {}
18212 };
18213
18214 typedef check<check<bool>> right_angle_brackets;
18215
18216 int a;
18217 decltype(a) b;
18218
18219 typedef check<int> check_type;
18220 check_type c;
18221 check_type&& cr = static_cast<check_type&&>(c);
18222
18223 auto d = a;
18224 auto l = [](){};
18225
18226_ACEOF
18227if ac_fn_cxx_try_compile "$LINENO"; then :
18228 ax_cv_cxx_compile_cxx11=yes
18229else
18230 ax_cv_cxx_compile_cxx11=no
18231fi
18232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233fi
18234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18235$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18236 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18237 ac_success=yes
18238 fi
18239
18240 if test x$ac_success = xno; then
18241 for switch in -std=gnu++11 -std=gnu++0x; do
18242 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18244$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18245if eval \${$cachevar+:} false; then :
18246 $as_echo_n "(cached) " >&6
18247else
18248 ac_save_CXXFLAGS="$CXXFLAGS"
18249 CXXFLAGS="$CXXFLAGS $switch"
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251/* end confdefs.h. */
18252
18253 template <typename T>
18254 struct check
18255 {
18256 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18257 };
18258
18259 struct Base {
18260 virtual void f() {}
18261 };
18262 struct Child : public Base {
18263 virtual void f() override {}
18264 };
18265
18266 typedef check<check<bool>> right_angle_brackets;
18267
18268 int a;
18269 decltype(a) b;
18270
18271 typedef check<int> check_type;
18272 check_type c;
18273 check_type&& cr = static_cast<check_type&&>(c);
18274
18275 auto d = a;
18276 auto l = [](){};
18277
18278_ACEOF
18279if ac_fn_cxx_try_compile "$LINENO"; then :
18280 eval $cachevar=yes
18281else
18282 eval $cachevar=no
18283fi
18284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18285 CXXFLAGS="$ac_save_CXXFLAGS"
18286fi
18287eval ac_res=\$$cachevar
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18289$as_echo "$ac_res" >&6; }
18290 if eval test x\$$cachevar = xyes; then
18291 CXXFLAGS="$CXXFLAGS $switch"
18292 ac_success=yes
18293 break
18294 fi
18295 done
18296 fi
18297
18298
18299 ac_ext=cpp
18300ac_cpp='$CXXCPP $CPPFLAGS'
18301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18304
18305 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18306 if test x$ac_success = xno; then
18307 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18308 fi
18309 else
18310 if test x$ac_success = xno; then
18311 HAVE_CXX11=0
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18313$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18314 else
18315 HAVE_CXX11=1
18316
18317$as_echo "#define HAVE_CXX11 1" >>confdefs.h
18318
18319 fi
18320
18321
18322 fi
18323
18324OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
18325
a243b558
JF
18326
18327
18328
18329
18330
18331
83c6fec8 18332
a243b558
JF
18333if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18334 if test -n "$ac_tool_prefix"; then
18335 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18336set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18338$as_echo_n "checking for $ac_word... " >&6; }
18339if ${ac_cv_path_PKG_CONFIG+:} false; then :
18340 $as_echo_n "(cached) " >&6
18341else
18342 case $PKG_CONFIG in
18343 [\\/]* | ?:[\\/]*)
18344 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18345 ;;
18346 *)
18347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18348for as_dir in $PATH
18349do
18350 IFS=$as_save_IFS
18351 test -z "$as_dir" && as_dir=.
18352 for ac_exec_ext in '' $ac_executable_extensions; do
18353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18354 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18356 break 2
18357 fi
18358done
18359 done
18360IFS=$as_save_IFS
18361
18362 ;;
18363esac
18364fi
18365PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18366if test -n "$PKG_CONFIG"; then
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18368$as_echo "$PKG_CONFIG" >&6; }
18369else
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18371$as_echo "no" >&6; }
18372fi
18373
18374
18375fi
18376if test -z "$ac_cv_path_PKG_CONFIG"; then
18377 ac_pt_PKG_CONFIG=$PKG_CONFIG
18378 # Extract the first word of "pkg-config", so it can be a program name with args.
18379set dummy pkg-config; ac_word=$2
18380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18381$as_echo_n "checking for $ac_word... " >&6; }
18382if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18383 $as_echo_n "(cached) " >&6
18384else
18385 case $ac_pt_PKG_CONFIG in
18386 [\\/]* | ?:[\\/]*)
18387 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18388 ;;
18389 *)
18390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18391for as_dir in $PATH
18392do
18393 IFS=$as_save_IFS
18394 test -z "$as_dir" && as_dir=.
18395 for ac_exec_ext in '' $ac_executable_extensions; do
18396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18397 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18399 break 2
18400 fi
18401done
18402 done
18403IFS=$as_save_IFS
18404
18405 ;;
18406esac
18407fi
18408ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18409if test -n "$ac_pt_PKG_CONFIG"; then
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18411$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18412else
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414$as_echo "no" >&6; }
18415fi
18416
18417 if test "x$ac_pt_PKG_CONFIG" = x; then
18418 PKG_CONFIG=""
18419 else
18420 case $cross_compiling:$ac_tool_warned in
18421yes:)
18422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18424ac_tool_warned=yes ;;
18425esac
18426 PKG_CONFIG=$ac_pt_PKG_CONFIG
18427 fi
18428else
18429 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18430fi
18431
18432fi
18433if test -n "$PKG_CONFIG"; then
18434 _pkg_min_version=0.22
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18436$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18437 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18439$as_echo "yes" >&6; }
18440 else
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18442$as_echo "no" >&6; }
18443 PKG_CONFIG=""
18444 fi
18445fi
18446
a243b558
JF
18447# Extract the first word of "git", so it can be a program name with args.
18448set dummy git; ac_word=$2
18449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18450$as_echo_n "checking for $ac_word... " >&6; }
18451if ${ac_cv_path_GIT+:} false; then :
18452 $as_echo_n "(cached) " >&6
18453else
18454 case $GIT in
18455 [\\/]* | ?:[\\/]*)
18456 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
18457 ;;
18458 *)
18459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18460for as_dir in $PATH
18461do
18462 IFS=$as_save_IFS
18463 test -z "$as_dir" && as_dir=.
18464 for ac_exec_ext in '' $ac_executable_extensions; do
18465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18466 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
18467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18468 break 2
18469 fi
18470done
18471 done
18472IFS=$as_save_IFS
e9c9a47c 18473
a243b558
JF
18474 ;;
18475esac
18476fi
18477GIT=$ac_cv_path_GIT
18478if test -n "$GIT"; then
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
18480$as_echo "$GIT" >&6; }
18481else
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18483$as_echo "no" >&6; }
18484fi
e9c9a47c
DWT
18485
18486
a243b558
JF
18487# Extract the first word of "time", so it can be a program name with args.
18488set dummy time; ac_word=$2
632b71ea
DWT
18489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18490$as_echo_n "checking for $ac_word... " >&6; }
a243b558 18491if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
18492 $as_echo_n "(cached) " >&6
18493else
a243b558
JF
18494 case $TIME in
18495 [\\/]* | ?:[\\/]*)
18496 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18497 ;;
18498 *)
18499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
18500for as_dir in $PATH
18501do
18502 IFS=$as_save_IFS
18503 test -z "$as_dir" && as_dir=.
18504 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 18505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 18506 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
18507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18508 break 2
18509 fi
18510done
18511 done
18512IFS=$as_save_IFS
18513
a243b558
JF
18514 ;;
18515esac
632b71ea 18516fi
a243b558
JF
18517TIME=$ac_cv_path_TIME
18518if test -n "$TIME"; then
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18520$as_echo "$TIME" >&6; }
632b71ea
DWT
18521else
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18523$as_echo "no" >&6; }
18524fi
18525
18526
a243b558
JF
18527
18528
18529
18530
18531
6ce9ac92
JF
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
18533$as_echo_n "checking for bison >= 3.0... " >&6; }
a243b558
JF
18534 if test -z "$BISON"; then
18535 ac_path_BISON_found=false
18536 # Loop through the user's path and test for each of PROGNAME-LIST
18537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18538for as_dir in $PATH
18539do
18540 IFS=$as_save_IFS
18541 test -z "$as_dir" && as_dir=.
18542 for ac_prog in bison; do
18543 for ac_exec_ext in '' $ac_executable_extensions; do
18544 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
18545 as_fn_executable_p "$ac_path_BISON" || continue
18546version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
18547 if ${version:+false} :; then :
18548
18549else
18550 as_awk_strverscmp='
18551 # Use only awk features that work with 7th edition Unix awk (1978).
18552 # My, what an old awk you have, Mr. Solaris!
18553 END {
18554 while (length(v1) && length(v2)) {
18555 # Set d1 to be the next thing to compare from v1, and likewise for d2.
18556 # Normally this is a single character, but if v1 and v2 contain digits,
18557 # compare them as integers and fractions as strverscmp does.
18558 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
18559 # Split v1 and v2 into their leading digit string components d1 and d2,
18560 # and advance v1 and v2 past the leading digit strings.
18561 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
18562 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
18563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
18564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
18565 if (d1 ~ /^0/) {
18566 if (d2 ~ /^0/) {
18567 # Compare two fractions.
18568 while (d1 ~ /^0/ && d2 ~ /^0/) {
18569 d1 = substr(d1, 2); len1--
18570 d2 = substr(d2, 2); len2--
18571 }
18572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
18573 # The two components differ in length, and the common prefix
18574 # contains only leading zeros. Consider the longer to be less.
18575 d1 = -len1
18576 d2 = -len2
18577 } else {
18578 # Otherwise, compare as strings.
18579 d1 = "x" d1
18580 d2 = "x" d2
18581 }
18582 } else {
18583 # A fraction is less than an integer.
18584 exit 1
18585 }
18586 } else {
18587 if (d2 ~ /^0/) {
18588 # An integer is greater than a fraction.
18589 exit 2
18590 } else {
18591 # Compare two integers.
18592 d1 += 0
18593 d2 += 0
18594 }
18595 }
18596 } else {
18597 # The normal case, without worrying about digits.
18598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
18599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
18600 }
18601 if (d1 < d2) exit 1
18602 if (d1 > d2) exit 2
18603 }
18604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
18605 # which mishandles some comparisons of empty strings to integers.
18606 if (length(v2)) exit 1
18607 if (length(v1)) exit 2
18608 }
18609'
18610as_arg_v1=$version
6ce9ac92 18611as_arg_v2=3.0
a243b558
JF
18612awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18613case $? in #(
18614 1) :
18615 ;; #(
18616 0) :
18617 ac_cv_path_BISON=$ac_path_BISON ;; #(
18618 2) :
18619 ac_cv_path_BISON=$ac_path_BISON ;; #(
18620 *) :
18621 ;;
18622esac
18623fi
18624
18625 $ac_path_BISON_found && break 3
18626 done
18627 done
e9c9a47c 18628 done
a243b558
JF
18629IFS=$as_save_IFS
18630 if test -z "$ac_cv_path_BISON"; then
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18632$as_echo "no" >&6; }
18633 fi
18634else
18635 ac_cv_path_BISON=$BISON
632b71ea 18636fi
a243b558
JF
18637
18638
18639 if true; then :
18640
18641 BISON=$ac_cv_path_BISON
18642
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
18644$as_echo "$BISON" >&6; }
18645
47aaa820 18646else
a243b558
JF
18647 if true; then :
18648
6ce9ac92 18649 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
a243b558 18650
47aaa820 18651else
a243b558
JF
18652
18653 BISON=:
18654
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18656$as_echo "no" >&6; }
18657
18658fi
18659fi
18660
18661
18662
18663
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
18665$as_echo_n "checking for flex >= 2.5.33... " >&6; }
18666 if test -z "$FLEX"; then
18667 ac_path_FLEX_found=false
18668 # Loop through the user's path and test for each of PROGNAME-LIST
18669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
18670for as_dir in $PATH
18671do
18672 IFS=$as_save_IFS
18673 test -z "$as_dir" && as_dir=.
a243b558 18674 for ac_prog in flex; do
47aaa820 18675 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
18676 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
18677 as_fn_executable_p "$ac_path_FLEX" || continue
18678version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
18679 if ${version:+false} :; then :
9c60689e 18680
47aaa820 18681else
a243b558
JF
18682 as_arg_v1=$version
18683as_arg_v2=2.5.33
18684awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18685case $? in #(
18686 1) :
18687 ;; #(
18688 0) :
18689 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18690 2) :
18691 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18692 *) :
18693 ;;
18694esac
18695fi
18696
18697 $ac_path_FLEX_found && break 3
18698 done
18699 done
18700 done
18701IFS=$as_save_IFS
18702 if test -z "$ac_cv_path_FLEX"; then
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 18704$as_echo "no" >&6; }
a243b558
JF
18705 fi
18706else
18707 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
18708fi
18709
18710
a243b558 18711 if true; then :
e9c9a47c 18712
a243b558 18713 FLEX=$ac_cv_path_FLEX
e9c9a47c 18714
a243b558
JF
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
18716$as_echo "$FLEX" >&6; }
9c60689e 18717
632b71ea 18718else
a243b558 18719 if true; then :
e9c9a47c 18720
a243b558 18721 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 18722
e9c9a47c 18723else
a243b558
JF
18724
18725 FLEX=:
18726
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18728$as_echo "no" >&6; }
9c60689e 18729
632b71ea 18730fi
a243b558
JF
18731fi
18732
18733
18734
18735
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
18737$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
18738 if test -z "$GPERF"; then
18739 ac_path_GPERF_found=false
18740 # Loop through the user's path and test for each of PROGNAME-LIST
18741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18742for as_dir in $PATH
18743do
18744 IFS=$as_save_IFS
18745 test -z "$as_dir" && as_dir=.
18746 for ac_prog in gperf; do
18747 for ac_exec_ext in '' $ac_executable_extensions; do
18748 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
18749 as_fn_executable_p "$ac_path_GPERF" || continue
18750version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
18751 if ${version:+false} :; then :
18752
e9c9a47c 18753else
a243b558
JF
18754 as_arg_v1=$version
18755as_arg_v2=3.0.3
18756awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18757case $? in #(
18758 1) :
18759 ;; #(
18760 0) :
18761 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18762 2) :
18763 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18764 *) :
18765 ;;
18766esac
632b71ea 18767fi
a243b558
JF
18768
18769 $ac_path_GPERF_found && break 3
18770 done
18771 done
18772 done
18773IFS=$as_save_IFS
18774 if test -z "$ac_cv_path_GPERF"; then
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18776$as_echo "no" >&6; }
18777 fi
47aaa820 18778else
a243b558
JF
18779 ac_cv_path_GPERF=$GPERF
18780fi
9c60689e
DWT
18781
18782
a243b558 18783 if true; then :
9c60689e 18784
a243b558 18785 GPERF=$ac_cv_path_GPERF
9c60689e 18786
a243b558
JF
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
18788$as_echo "$GPERF" >&6; }
9c60689e 18789
47aaa820 18790else
a243b558 18791 if true; then :
9c60689e 18792
a243b558
JF
18793 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
18794
18795else
18796
18797 GPERF=:
18798
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18800$as_echo "no" >&6; }
9c60689e 18801
47aaa820 18802fi
47aaa820 18803fi
a243b558
JF
18804
18805
18806
18807
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
18809$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
18810 if test -z "$GNUTAR"; then
18811 ac_path_GNUTAR_found=false
18812 # Loop through the user's path and test for each of PROGNAME-LIST
18813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18814for as_dir in $PATH
18815do
18816 IFS=$as_save_IFS
18817 test -z "$as_dir" && as_dir=.
18818 for ac_prog in tar gtar gnutar; do
18819 for ac_exec_ext in '' $ac_executable_extensions; do
18820 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
18821 as_fn_executable_p "$ac_path_GNUTAR" || continue
18822version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
18823 if ${version:+false} :; then :
18824
18825else
18826 as_arg_v1=$version
18827as_arg_v2=1.19
18828awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18829case $? in #(
18830 1) :
18831 ;; #(
18832 0) :
18833 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18834 2) :
18835 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18836 *) :
18837 ;;
18838esac
790e5246 18839fi
a243b558
JF
18840
18841 $ac_path_GNUTAR_found && break 3
18842 done
18843 done
18844 done
18845IFS=$as_save_IFS
18846 if test -z "$ac_cv_path_GNUTAR"; then
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18848$as_echo "no" >&6; }
632b71ea 18849 fi
632b71ea 18850else
a243b558 18851 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 18852fi
66170b30 18853
66170b30 18854
a243b558 18855 if true; then :
66170b30 18856
a243b558 18857 GNUTAR=$ac_cv_path_GNUTAR
66170b30 18858
a243b558
JF
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
18860$as_echo "$GNUTAR" >&6; }
66170b30 18861
a243b558
JF
18862else
18863 if true; then :
66170b30 18864
a243b558 18865 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 18866
66170b30 18867else
66170b30 18868
a243b558 18869 GNUTAR=:
66170b30 18870
a243b558
JF
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18872$as_echo "no" >&6; }
66170b30 18873
a243b558
JF
18874fi
18875fi
66170b30
JF
18876
18877
18878
18879
18880
18881
18882
77578fdd
JF
18883if test "x$LFLAGS" = x; then :
18884 LFLAGS="--full --ecs"
18885fi
18886
18887
66170b30
JF
18888
18889
18890
e9c9a47c
DWT
18891ac_ext=c
18892ac_cpp='$CPP $CPPFLAGS'
18893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18895ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 18896
66170b30
JF
18897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
18898$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
18899if ${ac_cv_cflags_warn_all+:} false; then :
18900 $as_echo_n "(cached) " >&6
18901else
18902 ac_cv_cflags_warn_all="no, unknown"
18903ac_save_CFLAGS="$CFLAGS"
18904for 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" #
18905do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18907/* end confdefs.h. */
18908
18909int
18910main ()
18911{
18912
18913 ;
18914 return 0;
18915}
18916_ACEOF
18917if ac_fn_c_try_compile "$LINENO"; then :
18918 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18919fi
18920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921done
18922CFLAGS="$ac_save_CFLAGS"
18923
18924fi
18925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
18926$as_echo "$ac_cv_cflags_warn_all" >&6; }
18927
83c6fec8 18928
66170b30
JF
18929case ".$ac_cv_cflags_warn_all" in
18930 .ok|.ok,*) ;;
18931 .|.no|.no,*) ;;
18932 *) if ${CFLAGS+:} false; then :
18933 case " $CFLAGS " in
18934 *" $ac_cv_cflags_warn_all "*)
18935 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
18936 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
18937 ac_status=$?
18938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18939 test $ac_status = 0; }
18940 ;;
18941 *)
18942 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
18943 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
18944 ac_status=$?
18945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18946 test $ac_status = 0; }
18947 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
18948 ;;
18949 esac
18950else
18951 CFLAGS="$ac_cv_cflags_warn_all"
18952fi
18953 ;;
18954esac
18955
b816329d
JF
18956ac_ext=cpp
18957ac_cpp='$CXXCPP $CPPFLAGS'
18958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18961
9c60689e 18962
66170b30
JF
18963ac_ext=cpp
18964ac_cpp='$CXXCPP $CPPFLAGS'
18965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 18968
66170b30
JF
18969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
18970$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
18971if ${ac_cv_cxxflags_warn_all+:} false; then :
18972 $as_echo_n "(cached) " >&6
18973else
18974 ac_cv_cxxflags_warn_all="no, unknown"
18975ac_save_CXXFLAGS="$CXXFLAGS"
18976for 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" #
18977do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18979/* end confdefs.h. */
1504c9b8 18980
66170b30
JF
18981int
18982main ()
18983{
1504c9b8 18984
66170b30
JF
18985 ;
18986 return 0;
18987}
18988_ACEOF
18989if ac_fn_cxx_try_compile "$LINENO"; then :
18990 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18991fi
18992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18993done
18994CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 18995
66170b30
JF
18996fi
18997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
18998$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
18999
83c6fec8 19000
66170b30
JF
19001case ".$ac_cv_cxxflags_warn_all" in
19002 .ok|.ok,*) ;;
19003 .|.no|.no,*) ;;
19004 *) if ${CXXFLAGS+:} false; then :
19005 case " $CXXFLAGS " in
19006 *" $ac_cv_cxxflags_warn_all "*)
19007 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
19008 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
19009 ac_status=$?
19010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19011 test $ac_status = 0; }
19012 ;;
19013 *)
19014 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19015 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19016 ac_status=$?
19017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19018 test $ac_status = 0; }
19019 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19020 ;;
19021 esac
19022else
19023 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19024fi
19025 ;;
19026esac
19027
19028ac_ext=cpp
19029ac_cpp='$CXXCPP $CPPFLAGS'
19030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19033
19034
babf7fe8
JF
19035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
19036$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
19037if ${ac_cv_cxxflags_warn_all+:} false; then :
19038 $as_echo_n "(cached) " >&6
19039else
19040 ac_cv_cxxflags_warn_all="no, unknown"
19041ac_save_CXXFLAGS="$CXXFLAGS"
19042for 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" #
19043do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
19044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045/* end confdefs.h. */
19046
19047int
19048main ()
19049{
19050
19051 ;
19052 return 0;
19053}
19054_ACEOF
19055if ac_fn_cxx_try_compile "$LINENO"; then :
19056 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
19057fi
19058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19059done
19060CXXFLAGS="$ac_save_CXXFLAGS"
19061
19062fi
19063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
19064$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
19065
83c6fec8 19066
babf7fe8
JF
19067case ".$ac_cv_cxxflags_warn_all" in
19068 .ok|.ok,*) ;;
19069 .|.no|.no,*) ;;
19070 *) if ${CXXFLAGS+:} false; then :
19071 case " $CXXFLAGS " in
19072 *" $ac_cv_cxxflags_warn_all "*)
19073 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
19074 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
19075 ac_status=$?
19076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19077 test $ac_status = 0; }
19078 ;;
19079 *)
19080 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19081 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19082 ac_status=$?
19083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19084 test $ac_status = 0; }
19085 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19086 ;;
19087 esac
19088else
19089 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19090fi
19091 ;;
19092esac
19093
66170b30
JF
19094
19095
66170b30 19096
66170b30 19097
c10a2228
JF
19098 ac_ext=c
19099ac_cpp='$CPP $CPPFLAGS'
19100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102ac_compiler_gnu=$ac_cv_c_compiler_gnu
19103
babf7fe8
JF
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
19105$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
19106
19107 cy_save=$CFLAGS
19108
babf7fe8 19109 for element in -Werror; do
c10a2228
JF
19110 haveit=
19111 for x in $CFLAGS; do
19112
19113 acl_save_prefix="$prefix"
19114 prefix="$acl_final_prefix"
19115 acl_save_exec_prefix="$exec_prefix"
19116 exec_prefix="$acl_final_exec_prefix"
19117 eval x=\"$x\"
19118 exec_prefix="$acl_save_exec_prefix"
19119 prefix="$acl_save_prefix"
19120
19121 if test "X$x" = "X$element"; then
19122 haveit=yes
19123 break
19124 fi
19125 done
19126 if test -z "$haveit"; then
19127 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19128 fi
19129 done
19130
19131
19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133/* end confdefs.h. */
19134
19135_ACEOF
19136if ac_fn_c_try_compile "$LINENO"; then :
19137 cy_good=1
19138else
19139 cy_good=0
19140fi
19141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19142
19143 CFLAGS=$cy_save
19144 if test "x$cy_good" = x1; then :
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19146$as_echo "yes" >&6; }
19147
babf7fe8 19148 for element in -Werror; do
c10a2228
JF
19149 haveit=
19150 for x in $CFLAGS; do
19151
19152 acl_save_prefix="$prefix"
19153 prefix="$acl_final_prefix"
19154 acl_save_exec_prefix="$exec_prefix"
19155 exec_prefix="$acl_final_exec_prefix"
19156 eval x=\"$x\"
19157 exec_prefix="$acl_save_exec_prefix"
19158 prefix="$acl_save_prefix"
19159
19160 if test "X$x" = "X$element"; then
19161 haveit=yes
19162 break
19163 fi
19164 done
19165 if test -z "$haveit"; then
19166 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19167 fi
19168 done
19169
19170
19171else
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19173$as_echo "no" >&6; }
19174fi
19175
19176 ac_ext=cpp
19177ac_cpp='$CXXCPP $CPPFLAGS'
19178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19181
19182
19183
19184 ac_ext=cpp
19185ac_cpp='$CXXCPP $CPPFLAGS'
19186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19189
babf7fe8
JF
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
19191$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
19192
19193 cy_save=$CXXFLAGS
19194
babf7fe8 19195 for element in -Werror; do
c10a2228
JF
19196 haveit=
19197 for x in $CXXFLAGS; do
19198
19199 acl_save_prefix="$prefix"
19200 prefix="$acl_final_prefix"
19201 acl_save_exec_prefix="$exec_prefix"
19202 exec_prefix="$acl_final_exec_prefix"
19203 eval x=\"$x\"
19204 exec_prefix="$acl_save_exec_prefix"
19205 prefix="$acl_save_prefix"
19206
19207 if test "X$x" = "X$element"; then
19208 haveit=yes
19209 break
19210 fi
19211 done
19212 if test -z "$haveit"; then
19213 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19214 fi
19215 done
19216
19217
19218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19219/* end confdefs.h. */
19220
19221_ACEOF
19222if ac_fn_cxx_try_compile "$LINENO"; then :
19223 cy_good=1
19224else
19225 cy_good=0
19226fi
19227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228
19229 CXXFLAGS=$cy_save
19230 if test "x$cy_good" = x1; then :
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232$as_echo "yes" >&6; }
19233
babf7fe8 19234 for element in -Werror; do
c10a2228
JF
19235 haveit=
19236 for x in $CXXFLAGS; do
19237
19238 acl_save_prefix="$prefix"
19239 prefix="$acl_final_prefix"
19240 acl_save_exec_prefix="$exec_prefix"
19241 exec_prefix="$acl_final_exec_prefix"
19242 eval x=\"$x\"
19243 exec_prefix="$acl_save_exec_prefix"
19244 prefix="$acl_save_prefix"
19245
19246 if test "X$x" = "X$element"; then
19247 haveit=yes
19248 break
19249 fi
19250 done
19251 if test -z "$haveit"; then
19252 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19253 fi
19254 done
19255
19256
19257else
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259$as_echo "no" >&6; }
19260fi
19261
19262 ac_ext=cpp
19263ac_cpp='$CXXCPP $CPPFLAGS'
19264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19267
19268
19269
19270 ac_ext=mm
19271ac_cpp='$OBJCXXCPP $CPPFLAGS'
19272ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19275
babf7fe8
JF
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
19277$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
19278
19279 cy_save=$OBJCXXFLAGS
19280
babf7fe8 19281 for element in -Werror; do
c10a2228
JF
19282 haveit=
19283 for x in $OBJCXXFLAGS; do
19284
19285 acl_save_prefix="$prefix"
19286 prefix="$acl_final_prefix"
19287 acl_save_exec_prefix="$exec_prefix"
19288 exec_prefix="$acl_final_exec_prefix"
19289 eval x=\"$x\"
19290 exec_prefix="$acl_save_exec_prefix"
19291 prefix="$acl_save_prefix"
19292
19293 if test "X$x" = "X$element"; then
19294 haveit=yes
19295 break
19296 fi
19297 done
19298 if test -z "$haveit"; then
19299 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19300 fi
19301 done
19302
19303
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305/* end confdefs.h. */
19306
19307_ACEOF
19308if ac_fn_objcxx_try_compile "$LINENO"; then :
19309 cy_good=1
19310else
19311 cy_good=0
19312fi
19313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314
19315 OBJCXXFLAGS=$cy_save
19316 if test "x$cy_good" = x1; then :
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19318$as_echo "yes" >&6; }
19319
babf7fe8 19320 for element in -Werror; do
c10a2228
JF
19321 haveit=
19322 for x in $OBJCXXFLAGS; do
19323
19324 acl_save_prefix="$prefix"
19325 prefix="$acl_final_prefix"
19326 acl_save_exec_prefix="$exec_prefix"
19327 exec_prefix="$acl_final_exec_prefix"
19328 eval x=\"$x\"
19329 exec_prefix="$acl_save_exec_prefix"
19330 prefix="$acl_save_prefix"
19331
19332 if test "X$x" = "X$element"; then
19333 haveit=yes
19334 break
19335 fi
19336 done
19337 if test -z "$haveit"; then
19338 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19339 fi
19340 done
19341
19342
19343else
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19345$as_echo "no" >&6; }
19346fi
19347
19348 ac_ext=cpp
19349ac_cpp='$CXXCPP $CPPFLAGS'
19350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19353
19354
19355
19356
19357
19358
19359 ac_ext=c
19360ac_cpp='$CPP $CPPFLAGS'
19361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363ac_compiler_gnu=$ac_cv_c_compiler_gnu
19364
babf7fe8
JF
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
19366$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19367
19368 cy_save=$CFLAGS
19369
babf7fe8 19370 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19371 haveit=
19372 for x in $CFLAGS; do
19373
19374 acl_save_prefix="$prefix"
19375 prefix="$acl_final_prefix"
19376 acl_save_exec_prefix="$exec_prefix"
19377 exec_prefix="$acl_final_exec_prefix"
19378 eval x=\"$x\"
19379 exec_prefix="$acl_save_exec_prefix"
19380 prefix="$acl_save_prefix"
19381
19382 if test "X$x" = "X$element"; then
19383 haveit=yes
19384 break
19385 fi
19386 done
19387 if test -z "$haveit"; then
19388 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19389 fi
19390 done
19391
19392
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394/* end confdefs.h. */
19395
19396_ACEOF
19397if ac_fn_c_try_compile "$LINENO"; then :
19398 cy_good=1
19399else
19400 cy_good=0
19401fi
19402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19403
19404 CFLAGS=$cy_save
19405 if test "x$cy_good" = x1; then :
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19407$as_echo "yes" >&6; }
19408
babf7fe8 19409 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19410 haveit=
19411 for x in $CFLAGS; do
19412
19413 acl_save_prefix="$prefix"
19414 prefix="$acl_final_prefix"
19415 acl_save_exec_prefix="$exec_prefix"
19416 exec_prefix="$acl_final_exec_prefix"
19417 eval x=\"$x\"
19418 exec_prefix="$acl_save_exec_prefix"
19419 prefix="$acl_save_prefix"
19420
19421 if test "X$x" = "X$element"; then
19422 haveit=yes
19423 break
19424 fi
19425 done
19426 if test -z "$haveit"; then
19427 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19428 fi
19429 done
19430
19431
19432else
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19434$as_echo "no" >&6; }
19435fi
19436
19437 ac_ext=cpp
19438ac_cpp='$CXXCPP $CPPFLAGS'
19439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19442
19443
19444
19445 ac_ext=cpp
19446ac_cpp='$CXXCPP $CPPFLAGS'
19447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19450
babf7fe8
JF
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
19452$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19453
19454 cy_save=$CXXFLAGS
19455
babf7fe8 19456 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19457 haveit=
19458 for x in $CXXFLAGS; do
19459
19460 acl_save_prefix="$prefix"
19461 prefix="$acl_final_prefix"
19462 acl_save_exec_prefix="$exec_prefix"
19463 exec_prefix="$acl_final_exec_prefix"
19464 eval x=\"$x\"
19465 exec_prefix="$acl_save_exec_prefix"
19466 prefix="$acl_save_prefix"
19467
19468 if test "X$x" = "X$element"; then
19469 haveit=yes
19470 break
19471 fi
19472 done
19473 if test -z "$haveit"; then
19474 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19475 fi
19476 done
19477
19478
19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480/* end confdefs.h. */
19481
19482_ACEOF
19483if ac_fn_cxx_try_compile "$LINENO"; then :
19484 cy_good=1
19485else
19486 cy_good=0
19487fi
19488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489
19490 CXXFLAGS=$cy_save
19491 if test "x$cy_good" = x1; then :
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19493$as_echo "yes" >&6; }
19494
babf7fe8 19495 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19496 haveit=
19497 for x in $CXXFLAGS; do
19498
19499 acl_save_prefix="$prefix"
19500 prefix="$acl_final_prefix"
19501 acl_save_exec_prefix="$exec_prefix"
19502 exec_prefix="$acl_final_exec_prefix"
19503 eval x=\"$x\"
19504 exec_prefix="$acl_save_exec_prefix"
19505 prefix="$acl_save_prefix"
19506
19507 if test "X$x" = "X$element"; then
19508 haveit=yes
19509 break
19510 fi
19511 done
19512 if test -z "$haveit"; then
19513 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19514 fi
19515 done
19516
19517
19518else
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19520$as_echo "no" >&6; }
19521fi
19522
19523 ac_ext=cpp
19524ac_cpp='$CXXCPP $CPPFLAGS'
19525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19528
19529
19530
19531 ac_ext=mm
19532ac_cpp='$OBJCXXCPP $CPPFLAGS'
19533ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19534ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19535ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19536
babf7fe8
JF
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
19538$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19539
19540 cy_save=$OBJCXXFLAGS
19541
babf7fe8 19542 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19543 haveit=
19544 for x in $OBJCXXFLAGS; do
19545
19546 acl_save_prefix="$prefix"
19547 prefix="$acl_final_prefix"
19548 acl_save_exec_prefix="$exec_prefix"
19549 exec_prefix="$acl_final_exec_prefix"
19550 eval x=\"$x\"
19551 exec_prefix="$acl_save_exec_prefix"
19552 prefix="$acl_save_prefix"
19553
19554 if test "X$x" = "X$element"; then
19555 haveit=yes
19556 break
19557 fi
19558 done
19559 if test -z "$haveit"; then
19560 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19561 fi
19562 done
19563
19564
19565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566/* end confdefs.h. */
19567
19568_ACEOF
19569if ac_fn_objcxx_try_compile "$LINENO"; then :
19570 cy_good=1
19571else
19572 cy_good=0
19573fi
19574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575
19576 OBJCXXFLAGS=$cy_save
19577 if test "x$cy_good" = x1; then :
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19579$as_echo "yes" >&6; }
19580
babf7fe8 19581 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19582 haveit=
19583 for x in $OBJCXXFLAGS; do
19584
19585 acl_save_prefix="$prefix"
19586 prefix="$acl_final_prefix"
19587 acl_save_exec_prefix="$exec_prefix"
19588 exec_prefix="$acl_final_exec_prefix"
19589 eval x=\"$x\"
19590 exec_prefix="$acl_save_exec_prefix"
19591 prefix="$acl_save_prefix"
19592
19593 if test "X$x" = "X$element"; then
19594 haveit=yes
19595 break
19596 fi
19597 done
19598 if test -z "$haveit"; then
19599 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19600 fi
19601 done
19602
19603
19604else
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19606$as_echo "no" >&6; }
19607fi
19608
19609 ac_ext=cpp
19610ac_cpp='$CXXCPP $CPPFLAGS'
19611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19614
19615
19616
19617
19618
babf7fe8 19619
c10a2228
JF
19620 ac_ext=c
19621ac_cpp='$CPP $CPPFLAGS'
19622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19624ac_compiler_gnu=$ac_cv_c_compiler_gnu
19625
babf7fe8
JF
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
19627$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
19628
19629 cy_save=$CFLAGS
19630
babf7fe8 19631 for element in -Wno-dangling-else; do
c10a2228
JF
19632 haveit=
19633 for x in $CFLAGS; do
19634
19635 acl_save_prefix="$prefix"
19636 prefix="$acl_final_prefix"
19637 acl_save_exec_prefix="$exec_prefix"
19638 exec_prefix="$acl_final_exec_prefix"
19639 eval x=\"$x\"
19640 exec_prefix="$acl_save_exec_prefix"
19641 prefix="$acl_save_prefix"
19642
19643 if test "X$x" = "X$element"; then
19644 haveit=yes
19645 break
19646 fi
19647 done
19648 if test -z "$haveit"; then
19649 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19650 fi
19651 done
19652
19653
19654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655/* end confdefs.h. */
19656
19657_ACEOF
19658if ac_fn_c_try_compile "$LINENO"; then :
19659 cy_good=1
19660else
19661 cy_good=0
19662fi
19663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664
19665 CFLAGS=$cy_save
19666 if test "x$cy_good" = x1; then :
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19668$as_echo "yes" >&6; }
19669
babf7fe8 19670 for element in -Wno-dangling-else; do
c10a2228
JF
19671 haveit=
19672 for x in $CFLAGS; do
19673
19674 acl_save_prefix="$prefix"
19675 prefix="$acl_final_prefix"
19676 acl_save_exec_prefix="$exec_prefix"
19677 exec_prefix="$acl_final_exec_prefix"
19678 eval x=\"$x\"
19679 exec_prefix="$acl_save_exec_prefix"
19680 prefix="$acl_save_prefix"
19681
19682 if test "X$x" = "X$element"; then
19683 haveit=yes
19684 break
19685 fi
19686 done
19687 if test -z "$haveit"; then
19688 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19689 fi
19690 done
19691
19692
19693else
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19695$as_echo "no" >&6; }
19696fi
19697
19698 ac_ext=cpp
19699ac_cpp='$CXXCPP $CPPFLAGS'
19700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19703
19704
19705
19706 ac_ext=cpp
19707ac_cpp='$CXXCPP $CPPFLAGS'
19708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19711
babf7fe8
JF
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
19713$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
19714
19715 cy_save=$CXXFLAGS
19716
babf7fe8 19717 for element in -Wno-dangling-else; do
c10a2228
JF
19718 haveit=
19719 for x in $CXXFLAGS; do
19720
19721 acl_save_prefix="$prefix"
19722 prefix="$acl_final_prefix"
19723 acl_save_exec_prefix="$exec_prefix"
19724 exec_prefix="$acl_final_exec_prefix"
19725 eval x=\"$x\"
19726 exec_prefix="$acl_save_exec_prefix"
19727 prefix="$acl_save_prefix"
19728
19729 if test "X$x" = "X$element"; then
19730 haveit=yes
19731 break
19732 fi
19733 done
19734 if test -z "$haveit"; then
19735 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19736 fi
19737 done
19738
19739
19740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741/* end confdefs.h. */
19742
19743_ACEOF
19744if ac_fn_cxx_try_compile "$LINENO"; then :
19745 cy_good=1
19746else
19747 cy_good=0
19748fi
19749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750
19751 CXXFLAGS=$cy_save
19752 if test "x$cy_good" = x1; then :
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19754$as_echo "yes" >&6; }
19755
babf7fe8 19756 for element in -Wno-dangling-else; do
c10a2228
JF
19757 haveit=
19758 for x in $CXXFLAGS; do
19759
19760 acl_save_prefix="$prefix"
19761 prefix="$acl_final_prefix"
19762 acl_save_exec_prefix="$exec_prefix"
19763 exec_prefix="$acl_final_exec_prefix"
19764 eval x=\"$x\"
19765 exec_prefix="$acl_save_exec_prefix"
19766 prefix="$acl_save_prefix"
19767
19768 if test "X$x" = "X$element"; then
19769 haveit=yes
19770 break
19771 fi
19772 done
19773 if test -z "$haveit"; then
19774 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19775 fi
19776 done
19777
19778
19779else
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19781$as_echo "no" >&6; }
19782fi
19783
19784 ac_ext=cpp
19785ac_cpp='$CXXCPP $CPPFLAGS'
19786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19789
19790
19791
19792 ac_ext=mm
19793ac_cpp='$OBJCXXCPP $CPPFLAGS'
19794ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19795ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19796ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19797
babf7fe8
JF
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
19799$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
19800
19801 cy_save=$OBJCXXFLAGS
19802
babf7fe8 19803 for element in -Wno-dangling-else; do
c10a2228
JF
19804 haveit=
19805 for x in $OBJCXXFLAGS; do
19806
19807 acl_save_prefix="$prefix"
19808 prefix="$acl_final_prefix"
19809 acl_save_exec_prefix="$exec_prefix"
19810 exec_prefix="$acl_final_exec_prefix"
19811 eval x=\"$x\"
19812 exec_prefix="$acl_save_exec_prefix"
19813 prefix="$acl_save_prefix"
19814
19815 if test "X$x" = "X$element"; then
19816 haveit=yes
19817 break
19818 fi
19819 done
19820 if test -z "$haveit"; then
19821 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19822 fi
19823 done
19824
19825
19826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827/* end confdefs.h. */
19828
19829_ACEOF
19830if ac_fn_objcxx_try_compile "$LINENO"; then :
19831 cy_good=1
19832else
19833 cy_good=0
19834fi
19835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19836
19837 OBJCXXFLAGS=$cy_save
19838 if test "x$cy_good" = x1; then :
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19840$as_echo "yes" >&6; }
19841
babf7fe8 19842 for element in -Wno-dangling-else; do
c10a2228
JF
19843 haveit=
19844 for x in $OBJCXXFLAGS; do
19845
19846 acl_save_prefix="$prefix"
19847 prefix="$acl_final_prefix"
19848 acl_save_exec_prefix="$exec_prefix"
19849 exec_prefix="$acl_final_exec_prefix"
19850 eval x=\"$x\"
19851 exec_prefix="$acl_save_exec_prefix"
19852 prefix="$acl_save_prefix"
19853
19854 if test "X$x" = "X$element"; then
19855 haveit=yes
19856 break
19857 fi
19858 done
19859 if test -z "$haveit"; then
19860 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19861 fi
19862 done
19863
19864
19865else
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19867$as_echo "no" >&6; }
19868fi
19869
19870 ac_ext=cpp
19871ac_cpp='$CXXCPP $CPPFLAGS'
19872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19875
19876
19877
19878
19879
2ada0541
JF
19880 ac_ext=c
19881ac_cpp='$CPP $CPPFLAGS'
19882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19884ac_compiler_gnu=$ac_cv_c_compiler_gnu
19885
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
19887$as_echo_n "checking for cc -Wno-empty-body... " >&6; }
19888
19889 cy_save=$CFLAGS
19890
19891 for element in -Wno-empty-body; do
19892 haveit=
19893 for x in $CFLAGS; do
19894
19895 acl_save_prefix="$prefix"
19896 prefix="$acl_final_prefix"
19897 acl_save_exec_prefix="$exec_prefix"
19898 exec_prefix="$acl_final_exec_prefix"
19899 eval x=\"$x\"
19900 exec_prefix="$acl_save_exec_prefix"
19901 prefix="$acl_save_prefix"
19902
19903 if test "X$x" = "X$element"; then
19904 haveit=yes
19905 break
19906 fi
19907 done
19908 if test -z "$haveit"; then
19909 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19910 fi
19911 done
19912
19913
19914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19915/* end confdefs.h. */
19916
19917_ACEOF
19918if ac_fn_c_try_compile "$LINENO"; then :
19919 cy_good=1
19920else
19921 cy_good=0
19922fi
19923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19924
19925 CFLAGS=$cy_save
19926 if test "x$cy_good" = x1; then :
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19928$as_echo "yes" >&6; }
19929
19930 for element in -Wno-empty-body; do
19931 haveit=
19932 for x in $CFLAGS; do
19933
19934 acl_save_prefix="$prefix"
19935 prefix="$acl_final_prefix"
19936 acl_save_exec_prefix="$exec_prefix"
19937 exec_prefix="$acl_final_exec_prefix"
19938 eval x=\"$x\"
19939 exec_prefix="$acl_save_exec_prefix"
19940 prefix="$acl_save_prefix"
19941
19942 if test "X$x" = "X$element"; then
19943 haveit=yes
19944 break
19945 fi
19946 done
19947 if test -z "$haveit"; then
19948 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19949 fi
19950 done
19951
19952
19953else
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19955$as_echo "no" >&6; }
19956fi
19957
19958 ac_ext=cpp
19959ac_cpp='$CXXCPP $CPPFLAGS'
19960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19963
19964
19965
19966 ac_ext=cpp
19967ac_cpp='$CXXCPP $CPPFLAGS'
19968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19971
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
19973$as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
19974
19975 cy_save=$CXXFLAGS
19976
19977 for element in -Wno-empty-body; do
19978 haveit=
19979 for x in $CXXFLAGS; do
19980
19981 acl_save_prefix="$prefix"
19982 prefix="$acl_final_prefix"
19983 acl_save_exec_prefix="$exec_prefix"
19984 exec_prefix="$acl_final_exec_prefix"
19985 eval x=\"$x\"
19986 exec_prefix="$acl_save_exec_prefix"
19987 prefix="$acl_save_prefix"
19988
19989 if test "X$x" = "X$element"; then
19990 haveit=yes
19991 break
19992 fi
19993 done
19994 if test -z "$haveit"; then
19995 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19996 fi
19997 done
19998
19999
20000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20001/* end confdefs.h. */
20002
20003_ACEOF
20004if ac_fn_cxx_try_compile "$LINENO"; then :
20005 cy_good=1
20006else
20007 cy_good=0
20008fi
20009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010
20011 CXXFLAGS=$cy_save
20012 if test "x$cy_good" = x1; then :
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20014$as_echo "yes" >&6; }
20015
20016 for element in -Wno-empty-body; do
20017 haveit=
20018 for x in $CXXFLAGS; do
20019
20020 acl_save_prefix="$prefix"
20021 prefix="$acl_final_prefix"
20022 acl_save_exec_prefix="$exec_prefix"
20023 exec_prefix="$acl_final_exec_prefix"
20024 eval x=\"$x\"
20025 exec_prefix="$acl_save_exec_prefix"
20026 prefix="$acl_save_prefix"
20027
20028 if test "X$x" = "X$element"; then
20029 haveit=yes
20030 break
20031 fi
20032 done
20033 if test -z "$haveit"; then
20034 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20035 fi
20036 done
20037
20038
20039else
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20041$as_echo "no" >&6; }
20042fi
20043
20044 ac_ext=cpp
20045ac_cpp='$CXXCPP $CPPFLAGS'
20046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20049
20050
20051
20052 ac_ext=mm
20053ac_cpp='$OBJCXXCPP $CPPFLAGS'
20054ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20055ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20056ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20057
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
20059$as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
20060
20061 cy_save=$OBJCXXFLAGS
20062
20063 for element in -Wno-empty-body; do
20064 haveit=
20065 for x in $OBJCXXFLAGS; do
20066
20067 acl_save_prefix="$prefix"
20068 prefix="$acl_final_prefix"
20069 acl_save_exec_prefix="$exec_prefix"
20070 exec_prefix="$acl_final_exec_prefix"
20071 eval x=\"$x\"
20072 exec_prefix="$acl_save_exec_prefix"
20073 prefix="$acl_save_prefix"
20074
20075 if test "X$x" = "X$element"; then
20076 haveit=yes
20077 break
20078 fi
20079 done
20080 if test -z "$haveit"; then
20081 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20082 fi
20083 done
20084
20085
20086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20087/* end confdefs.h. */
20088
20089_ACEOF
20090if ac_fn_objcxx_try_compile "$LINENO"; then :
20091 cy_good=1
20092else
20093 cy_good=0
20094fi
20095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20096
20097 OBJCXXFLAGS=$cy_save
20098 if test "x$cy_good" = x1; then :
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20100$as_echo "yes" >&6; }
20101
20102 for element in -Wno-empty-body; do
20103 haveit=
20104 for x in $OBJCXXFLAGS; do
20105
20106 acl_save_prefix="$prefix"
20107 prefix="$acl_final_prefix"
20108 acl_save_exec_prefix="$exec_prefix"
20109 exec_prefix="$acl_final_exec_prefix"
20110 eval x=\"$x\"
20111 exec_prefix="$acl_save_exec_prefix"
20112 prefix="$acl_save_prefix"
20113
20114 if test "X$x" = "X$element"; then
20115 haveit=yes
20116 break
20117 fi
20118 done
20119 if test -z "$haveit"; then
20120 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20121 fi
20122 done
20123
20124
20125else
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20127$as_echo "no" >&6; }
20128fi
20129
20130 ac_ext=cpp
20131ac_cpp='$CXXCPP $CPPFLAGS'
20132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20135
20136
20137
20138
20139
c10a2228
JF
20140 ac_ext=c
20141ac_cpp='$CPP $CPPFLAGS'
20142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20144ac_compiler_gnu=$ac_cv_c_compiler_gnu
20145
babf7fe8
JF
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
20147$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
20148
20149 cy_save=$CFLAGS
20150
babf7fe8 20151 for element in -Wno-overloaded-virtual; do
1504c9b8 20152 haveit=
c10a2228 20153 for x in $CFLAGS; do
1504c9b8
DWT
20154
20155 acl_save_prefix="$prefix"
20156 prefix="$acl_final_prefix"
20157 acl_save_exec_prefix="$exec_prefix"
20158 exec_prefix="$acl_final_exec_prefix"
20159 eval x=\"$x\"
20160 exec_prefix="$acl_save_exec_prefix"
20161 prefix="$acl_save_prefix"
20162
20163 if test "X$x" = "X$element"; then
20164 haveit=yes
20165 break
20166 fi
20167 done
20168 if test -z "$haveit"; then
c10a2228 20169 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20170 fi
20171 done
20172
66170b30
JF
20173
20174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
20175/* end confdefs.h. */
20176
66170b30 20177_ACEOF
c10a2228 20178if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
20179 cy_good=1
20180else
20181 cy_good=0
20182fi
20183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184
c10a2228 20185 CFLAGS=$cy_save
66170b30
JF
20186 if test "x$cy_good" = x1; then :
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20188$as_echo "yes" >&6; }
20189
babf7fe8 20190 for element in -Wno-overloaded-virtual; do
66170b30
JF
20191 haveit=
20192 for x in $CFLAGS; do
20193
20194 acl_save_prefix="$prefix"
20195 prefix="$acl_final_prefix"
20196 acl_save_exec_prefix="$exec_prefix"
20197 exec_prefix="$acl_final_exec_prefix"
20198 eval x=\"$x\"
20199 exec_prefix="$acl_save_exec_prefix"
20200 prefix="$acl_save_prefix"
20201
20202 if test "X$x" = "X$element"; then
20203 haveit=yes
20204 break
20205 fi
20206 done
20207 if test -z "$haveit"; then
20208 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20209 fi
20210 done
20211
20212
c10a2228
JF
20213else
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20215$as_echo "no" >&6; }
20216fi
20217
20218 ac_ext=cpp
20219ac_cpp='$CXXCPP $CPPFLAGS'
20220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20223
20224
20225
20226 ac_ext=cpp
20227ac_cpp='$CXXCPP $CPPFLAGS'
20228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20231
babf7fe8
JF
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
20233$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
20234
20235 cy_save=$CXXFLAGS
20236
babf7fe8 20237 for element in -Wno-overloaded-virtual; do
66170b30
JF
20238 haveit=
20239 for x in $CXXFLAGS; do
20240
20241 acl_save_prefix="$prefix"
20242 prefix="$acl_final_prefix"
20243 acl_save_exec_prefix="$exec_prefix"
20244 exec_prefix="$acl_final_exec_prefix"
20245 eval x=\"$x\"
20246 exec_prefix="$acl_save_exec_prefix"
20247 prefix="$acl_save_prefix"
20248
20249 if test "X$x" = "X$element"; then
20250 haveit=yes
20251 break
20252 fi
20253 done
20254 if test -z "$haveit"; then
20255 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20256 fi
20257 done
20258
20259
c10a2228
JF
20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261/* end confdefs.h. */
20262
20263_ACEOF
20264if ac_fn_cxx_try_compile "$LINENO"; then :
20265 cy_good=1
20266else
20267 cy_good=0
20268fi
20269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20270
20271 CXXFLAGS=$cy_save
20272 if test "x$cy_good" = x1; then :
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20274$as_echo "yes" >&6; }
20275
babf7fe8 20276 for element in -Wno-overloaded-virtual; do
66170b30 20277 haveit=
c10a2228 20278 for x in $CXXFLAGS; do
66170b30
JF
20279
20280 acl_save_prefix="$prefix"
20281 prefix="$acl_final_prefix"
20282 acl_save_exec_prefix="$exec_prefix"
20283 exec_prefix="$acl_final_exec_prefix"
20284 eval x=\"$x\"
20285 exec_prefix="$acl_save_exec_prefix"
20286 prefix="$acl_save_prefix"
20287
20288 if test "X$x" = "X$element"; then
20289 haveit=yes
20290 break
20291 fi
20292 done
20293 if test -z "$haveit"; then
c10a2228 20294 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
20295 fi
20296 done
20297
20298
66170b30
JF
20299else
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20301$as_echo "no" >&6; }
20302fi
20303
c10a2228
JF
20304 ac_ext=cpp
20305ac_cpp='$CXXCPP $CPPFLAGS'
20306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20309
66170b30
JF
20310
20311
c10a2228
JF
20312 ac_ext=mm
20313ac_cpp='$OBJCXXCPP $CPPFLAGS'
20314ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20315ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20316ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20317
babf7fe8
JF
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
20319$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 20320
c10a2228 20321 cy_save=$OBJCXXFLAGS
66170b30 20322
babf7fe8 20323 for element in -Wno-overloaded-virtual; do
66170b30 20324 haveit=
c10a2228 20325 for x in $OBJCXXFLAGS; do
66170b30
JF
20326
20327 acl_save_prefix="$prefix"
20328 prefix="$acl_final_prefix"
20329 acl_save_exec_prefix="$exec_prefix"
20330 exec_prefix="$acl_final_exec_prefix"
20331 eval x=\"$x\"
20332 exec_prefix="$acl_save_exec_prefix"
20333 prefix="$acl_save_prefix"
20334
20335 if test "X$x" = "X$element"; then
20336 haveit=yes
20337 break
20338 fi
20339 done
20340 if test -z "$haveit"; then
c10a2228 20341 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
20342 fi
20343 done
20344
20345
20346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20347/* end confdefs.h. */
1504c9b8 20348
1504c9b8 20349_ACEOF
c10a2228 20350if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
20351 cy_good=1
20352else
20353 cy_good=0
20354fi
20355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356
c10a2228 20357 OBJCXXFLAGS=$cy_save
66170b30
JF
20358 if test "x$cy_good" = x1; then :
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20360$as_echo "yes" >&6; }
1504c9b8 20361
babf7fe8 20362 for element in -Wno-overloaded-virtual; do
1504c9b8 20363 haveit=
c10a2228 20364 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20365
20366 acl_save_prefix="$prefix"
20367 prefix="$acl_final_prefix"
20368 acl_save_exec_prefix="$exec_prefix"
20369 exec_prefix="$acl_final_exec_prefix"
20370 eval x=\"$x\"
20371 exec_prefix="$acl_save_exec_prefix"
20372 prefix="$acl_save_prefix"
20373
20374 if test "X$x" = "X$element"; then
20375 haveit=yes
20376 break
20377 fi
20378 done
20379 if test -z "$haveit"; then
c10a2228 20380 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20381 fi
20382 done
20383
20384
c10a2228
JF
20385else
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20387$as_echo "no" >&6; }
20388fi
20389
20390 ac_ext=cpp
20391ac_cpp='$CXXCPP $CPPFLAGS'
20392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20395
20396
20397
20398
20399
20400 ac_ext=c
20401ac_cpp='$CPP $CPPFLAGS'
20402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20404ac_compiler_gnu=$ac_cv_c_compiler_gnu
20405
babf7fe8
JF
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
20407$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
20408
20409 cy_save=$CFLAGS
20410
babf7fe8 20411 for element in -Wno-parentheses; do
66170b30 20412 haveit=
c10a2228 20413 for x in $CFLAGS; do
66170b30
JF
20414
20415 acl_save_prefix="$prefix"
20416 prefix="$acl_final_prefix"
20417 acl_save_exec_prefix="$exec_prefix"
20418 exec_prefix="$acl_final_exec_prefix"
20419 eval x=\"$x\"
20420 exec_prefix="$acl_save_exec_prefix"
20421 prefix="$acl_save_prefix"
20422
20423 if test "X$x" = "X$element"; then
20424 haveit=yes
20425 break
20426 fi
20427 done
20428 if test -z "$haveit"; then
c10a2228 20429 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
20430 fi
20431 done
20432
20433
c10a2228
JF
20434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435/* end confdefs.h. */
20436
20437_ACEOF
20438if ac_fn_c_try_compile "$LINENO"; then :
20439 cy_good=1
20440else
20441 cy_good=0
20442fi
20443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20444
20445 CFLAGS=$cy_save
20446 if test "x$cy_good" = x1; then :
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20448$as_echo "yes" >&6; }
20449
babf7fe8 20450 for element in -Wno-parentheses; do
66170b30 20451 haveit=
c10a2228 20452 for x in $CFLAGS; do
66170b30
JF
20453
20454 acl_save_prefix="$prefix"
20455 prefix="$acl_final_prefix"
20456 acl_save_exec_prefix="$exec_prefix"
20457 exec_prefix="$acl_final_exec_prefix"
20458 eval x=\"$x\"
20459 exec_prefix="$acl_save_exec_prefix"
20460 prefix="$acl_save_prefix"
20461
20462 if test "X$x" = "X$element"; then
20463 haveit=yes
20464 break
20465 fi
20466 done
20467 if test -z "$haveit"; then
c10a2228 20468 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
20469 fi
20470 done
20471
20472
66170b30
JF
20473else
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20475$as_echo "no" >&6; }
20476fi
20477
c10a2228
JF
20478 ac_ext=cpp
20479ac_cpp='$CXXCPP $CPPFLAGS'
20480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20483
66170b30
JF
20484
20485
c10a2228
JF
20486 ac_ext=cpp
20487ac_cpp='$CXXCPP $CPPFLAGS'
20488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20491
babf7fe8
JF
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
20493$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
20494
20495 cy_save=$CXXFLAGS
20496
babf7fe8 20497 for element in -Wno-parentheses; do
66170b30
JF
20498 haveit=
20499 for x in $CXXFLAGS; do
20500
20501 acl_save_prefix="$prefix"
20502 prefix="$acl_final_prefix"
20503 acl_save_exec_prefix="$exec_prefix"
20504 exec_prefix="$acl_final_exec_prefix"
20505 eval x=\"$x\"
20506 exec_prefix="$acl_save_exec_prefix"
20507 prefix="$acl_save_prefix"
20508
20509 if test "X$x" = "X$element"; then
20510 haveit=yes
20511 break
20512 fi
20513 done
20514 if test -z "$haveit"; then
20515 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20516 fi
20517 done
20518
20519
20520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20521/* end confdefs.h. */
20522
20523_ACEOF
20524if ac_fn_cxx_try_compile "$LINENO"; then :
20525 cy_good=1
20526else
20527 cy_good=0
20528fi
20529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530
20531 CXXFLAGS=$cy_save
20532 if test "x$cy_good" = x1; then :
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20534$as_echo "yes" >&6; }
20535
babf7fe8 20536 for element in -Wno-parentheses; do
1504c9b8 20537 haveit=
c10a2228 20538 for x in $CXXFLAGS; do
1504c9b8
DWT
20539
20540 acl_save_prefix="$prefix"
20541 prefix="$acl_final_prefix"
20542 acl_save_exec_prefix="$exec_prefix"
20543 exec_prefix="$acl_final_exec_prefix"
20544 eval x=\"$x\"
20545 exec_prefix="$acl_save_exec_prefix"
20546 prefix="$acl_save_prefix"
20547
20548 if test "X$x" = "X$element"; then
20549 haveit=yes
20550 break
20551 fi
20552 done
20553 if test -z "$haveit"; then
c10a2228 20554 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
20555 fi
20556 done
20557
20558
c10a2228
JF
20559else
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20561$as_echo "no" >&6; }
20562fi
20563
20564 ac_ext=cpp
20565ac_cpp='$CXXCPP $CPPFLAGS'
20566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20569
20570
20571
20572 ac_ext=mm
20573ac_cpp='$OBJCXXCPP $CPPFLAGS'
20574ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20575ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20576ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20577
babf7fe8
JF
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
20579$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
20580
20581 cy_save=$OBJCXXFLAGS
20582
babf7fe8 20583 for element in -Wno-parentheses; do
1504c9b8 20584 haveit=
c10a2228 20585 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20586
20587 acl_save_prefix="$prefix"
20588 prefix="$acl_final_prefix"
20589 acl_save_exec_prefix="$exec_prefix"
20590 exec_prefix="$acl_final_exec_prefix"
20591 eval x=\"$x\"
20592 exec_prefix="$acl_save_exec_prefix"
20593 prefix="$acl_save_prefix"
20594
20595 if test "X$x" = "X$element"; then
20596 haveit=yes
20597 break
20598 fi
20599 done
20600 if test -z "$haveit"; then
c10a2228 20601 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20602 fi
20603 done
20604
20605
c10a2228
JF
20606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607/* end confdefs.h. */
20608
20609_ACEOF
20610if ac_fn_objcxx_try_compile "$LINENO"; then :
20611 cy_good=1
20612else
20613 cy_good=0
20614fi
20615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616
20617 OBJCXXFLAGS=$cy_save
20618 if test "x$cy_good" = x1; then :
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20620$as_echo "yes" >&6; }
20621
babf7fe8 20622 for element in -Wno-parentheses; do
1504c9b8 20623 haveit=
c10a2228 20624 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20625
20626 acl_save_prefix="$prefix"
20627 prefix="$acl_final_prefix"
20628 acl_save_exec_prefix="$exec_prefix"
2ada0541
JF
20629 exec_prefix="$acl_final_exec_prefix"
20630 eval x=\"$x\"
20631 exec_prefix="$acl_save_exec_prefix"
20632 prefix="$acl_save_prefix"
20633
20634 if test "X$x" = "X$element"; then
20635 haveit=yes
20636 break
20637 fi
20638 done
20639 if test -z "$haveit"; then
20640 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20641 fi
20642 done
20643
20644
20645else
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20647$as_echo "no" >&6; }
20648fi
20649
20650 ac_ext=cpp
20651ac_cpp='$CXXCPP $CPPFLAGS'
20652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20655
20656
20657
20658
20659
20660 ac_ext=c
20661ac_cpp='$CPP $CPPFLAGS'
20662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664ac_compiler_gnu=$ac_cv_c_compiler_gnu
20665
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
20667$as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
20668
20669 cy_save=$CFLAGS
20670
20671 for element in -Wno-tautological-undefined-compare; do
20672 haveit=
20673 for x in $CFLAGS; do
20674
20675 acl_save_prefix="$prefix"
20676 prefix="$acl_final_prefix"
20677 acl_save_exec_prefix="$exec_prefix"
20678 exec_prefix="$acl_final_exec_prefix"
20679 eval x=\"$x\"
20680 exec_prefix="$acl_save_exec_prefix"
20681 prefix="$acl_save_prefix"
20682
20683 if test "X$x" = "X$element"; then
20684 haveit=yes
20685 break
20686 fi
20687 done
20688 if test -z "$haveit"; then
20689 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20690 fi
20691 done
20692
20693
20694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20695/* end confdefs.h. */
20696
20697_ACEOF
20698if ac_fn_c_try_compile "$LINENO"; then :
20699 cy_good=1
20700else
20701 cy_good=0
20702fi
20703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704
20705 CFLAGS=$cy_save
20706 if test "x$cy_good" = x1; then :
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20708$as_echo "yes" >&6; }
20709
20710 for element in -Wno-tautological-undefined-compare; do
20711 haveit=
20712 for x in $CFLAGS; do
20713
20714 acl_save_prefix="$prefix"
20715 prefix="$acl_final_prefix"
20716 acl_save_exec_prefix="$exec_prefix"
20717 exec_prefix="$acl_final_exec_prefix"
20718 eval x=\"$x\"
20719 exec_prefix="$acl_save_exec_prefix"
20720 prefix="$acl_save_prefix"
20721
20722 if test "X$x" = "X$element"; then
20723 haveit=yes
20724 break
20725 fi
20726 done
20727 if test -z "$haveit"; then
20728 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20729 fi
20730 done
20731
20732
20733else
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20735$as_echo "no" >&6; }
20736fi
20737
20738 ac_ext=cpp
20739ac_cpp='$CXXCPP $CPPFLAGS'
20740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20743
20744
20745
20746 ac_ext=cpp
20747ac_cpp='$CXXCPP $CPPFLAGS'
20748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20751
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
20753$as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
20754
20755 cy_save=$CXXFLAGS
20756
20757 for element in -Wno-tautological-undefined-compare; do
20758 haveit=
20759 for x in $CXXFLAGS; do
20760
20761 acl_save_prefix="$prefix"
20762 prefix="$acl_final_prefix"
20763 acl_save_exec_prefix="$exec_prefix"
20764 exec_prefix="$acl_final_exec_prefix"
20765 eval x=\"$x\"
20766 exec_prefix="$acl_save_exec_prefix"
20767 prefix="$acl_save_prefix"
20768
20769 if test "X$x" = "X$element"; then
20770 haveit=yes
20771 break
20772 fi
20773 done
20774 if test -z "$haveit"; then
20775 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20776 fi
20777 done
20778
20779
20780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20781/* end confdefs.h. */
20782
20783_ACEOF
20784if ac_fn_cxx_try_compile "$LINENO"; then :
20785 cy_good=1
20786else
20787 cy_good=0
20788fi
20789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20790
20791 CXXFLAGS=$cy_save
20792 if test "x$cy_good" = x1; then :
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20794$as_echo "yes" >&6; }
20795
20796 for element in -Wno-tautological-undefined-compare; do
20797 haveit=
20798 for x in $CXXFLAGS; do
20799
20800 acl_save_prefix="$prefix"
20801 prefix="$acl_final_prefix"
20802 acl_save_exec_prefix="$exec_prefix"
20803 exec_prefix="$acl_final_exec_prefix"
20804 eval x=\"$x\"
20805 exec_prefix="$acl_save_exec_prefix"
20806 prefix="$acl_save_prefix"
20807
20808 if test "X$x" = "X$element"; then
20809 haveit=yes
20810 break
20811 fi
20812 done
20813 if test -z "$haveit"; then
20814 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20815 fi
20816 done
20817
20818
20819else
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20821$as_echo "no" >&6; }
20822fi
20823
20824 ac_ext=cpp
20825ac_cpp='$CXXCPP $CPPFLAGS'
20826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20829
20830
20831
20832 ac_ext=mm
20833ac_cpp='$OBJCXXCPP $CPPFLAGS'
20834ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20837
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
20839$as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
20840
20841 cy_save=$OBJCXXFLAGS
20842
20843 for element in -Wno-tautological-undefined-compare; do
20844 haveit=
20845 for x in $OBJCXXFLAGS; do
20846
20847 acl_save_prefix="$prefix"
20848 prefix="$acl_final_prefix"
20849 acl_save_exec_prefix="$exec_prefix"
20850 exec_prefix="$acl_final_exec_prefix"
20851 eval x=\"$x\"
20852 exec_prefix="$acl_save_exec_prefix"
20853 prefix="$acl_save_prefix"
20854
20855 if test "X$x" = "X$element"; then
20856 haveit=yes
20857 break
20858 fi
20859 done
20860 if test -z "$haveit"; then
20861 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20862 fi
20863 done
20864
20865
20866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20867/* end confdefs.h. */
20868
20869_ACEOF
20870if ac_fn_objcxx_try_compile "$LINENO"; then :
20871 cy_good=1
20872else
20873 cy_good=0
20874fi
20875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876
20877 OBJCXXFLAGS=$cy_save
20878 if test "x$cy_good" = x1; then :
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20880$as_echo "yes" >&6; }
20881
20882 for element in -Wno-tautological-undefined-compare; do
20883 haveit=
20884 for x in $OBJCXXFLAGS; do
20885
20886 acl_save_prefix="$prefix"
20887 prefix="$acl_final_prefix"
20888 acl_save_exec_prefix="$exec_prefix"
1504c9b8
DWT
20889 exec_prefix="$acl_final_exec_prefix"
20890 eval x=\"$x\"
20891 exec_prefix="$acl_save_exec_prefix"
20892 prefix="$acl_save_prefix"
20893
20894 if test "X$x" = "X$element"; then
20895 haveit=yes
20896 break
20897 fi
20898 done
20899 if test -z "$haveit"; then
c10a2228 20900 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20901 fi
20902 done
20903
20904
66170b30
JF
20905else
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20907$as_echo "no" >&6; }
1504c9b8 20908fi
1504c9b8 20909
c10a2228
JF
20910 ac_ext=cpp
20911ac_cpp='$CXXCPP $CPPFLAGS'
20912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20915
20916
1504c9b8 20917
1504c9b8 20918
1504c9b8 20919
babf7fe8
JF
20920 ac_ext=c
20921ac_cpp='$CPP $CPPFLAGS'
20922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 20925
babf7fe8
JF
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
20927$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
20928
20929 cy_save=$CFLAGS
20930
20931 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 20932 haveit=
babf7fe8 20933 for x in $CFLAGS; do
1504c9b8
DWT
20934
20935 acl_save_prefix="$prefix"
20936 prefix="$acl_final_prefix"
20937 acl_save_exec_prefix="$exec_prefix"
20938 exec_prefix="$acl_final_exec_prefix"
20939 eval x=\"$x\"
20940 exec_prefix="$acl_save_exec_prefix"
20941 prefix="$acl_save_prefix"
20942
20943 if test "X$x" = "X$element"; then
20944 haveit=yes
20945 break
20946 fi
20947 done
20948 if test -z "$haveit"; then
babf7fe8 20949 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20950 fi
20951 done
20952
66170b30
JF
20953
20954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
20955/* end confdefs.h. */
20956
a243b558 20957_ACEOF
babf7fe8 20958if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
20959 cy_good=1
20960else
20961 cy_good=0
20962fi
babf7fe8 20963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 20964
babf7fe8 20965 CFLAGS=$cy_save
a243b558
JF
20966 if test "x$cy_good" = x1; then :
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20968$as_echo "yes" >&6; }
66170b30 20969
babf7fe8 20970 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 20971 haveit=
babf7fe8 20972 for x in $CFLAGS; do
1504c9b8
DWT
20973
20974 acl_save_prefix="$prefix"
20975 prefix="$acl_final_prefix"
20976 acl_save_exec_prefix="$exec_prefix"
20977 exec_prefix="$acl_final_exec_prefix"
20978 eval x=\"$x\"
20979 exec_prefix="$acl_save_exec_prefix"
20980 prefix="$acl_save_prefix"
20981
20982 if test "X$x" = "X$element"; then
20983 haveit=yes
20984 break
20985 fi
20986 done
20987 if test -z "$haveit"; then
babf7fe8 20988 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20989 fi
20990 done
20991
20992
20993else
66170b30
JF
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20995$as_echo "no" >&6; }
1504c9b8
DWT
20996fi
20997
babf7fe8
JF
20998 ac_ext=cpp
20999ac_cpp='$CXXCPP $CPPFLAGS'
21000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 21003
9c60689e 21004
632b71ea 21005
babf7fe8
JF
21006 ac_ext=cpp
21007ac_cpp='$CXXCPP $CPPFLAGS'
21008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 21011
babf7fe8
JF
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
21013$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 21014
babf7fe8 21015 cy_save=$CXXFLAGS
9c60689e 21016
babf7fe8
JF
21017 for element in -Wno-unneeded-internal-declaration; do
21018 haveit=
21019 for x in $CXXFLAGS; do
9c60689e 21020
babf7fe8
JF
21021 acl_save_prefix="$prefix"
21022 prefix="$acl_final_prefix"
21023 acl_save_exec_prefix="$exec_prefix"
21024 exec_prefix="$acl_final_exec_prefix"
21025 eval x=\"$x\"
21026 exec_prefix="$acl_save_exec_prefix"
21027 prefix="$acl_save_prefix"
66170b30 21028
babf7fe8
JF
21029 if test "X$x" = "X$element"; then
21030 haveit=yes
21031 break
21032 fi
21033 done
21034 if test -z "$haveit"; then
21035 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
21036 fi
21037 done
7eda51e0 21038
7eda51e0 21039
babf7fe8
JF
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041/* end confdefs.h. */
7eda51e0 21042
7eda51e0 21043_ACEOF
babf7fe8
JF
21044if ac_fn_cxx_try_compile "$LINENO"; then :
21045 cy_good=1
9c60689e 21046else
babf7fe8 21047 cy_good=0
9c60689e 21048fi
babf7fe8 21049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 21050
babf7fe8
JF
21051 CXXFLAGS=$cy_save
21052 if test "x$cy_good" = x1; then :
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21054$as_echo "yes" >&6; }
7eda51e0 21055
babf7fe8 21056 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 21057 haveit=
babf7fe8 21058 for x in $CXXFLAGS; do
9c60689e 21059
7eda51e0
JF
21060 acl_save_prefix="$prefix"
21061 prefix="$acl_final_prefix"
21062 acl_save_exec_prefix="$exec_prefix"
21063 exec_prefix="$acl_final_exec_prefix"
21064 eval x=\"$x\"
21065 exec_prefix="$acl_save_exec_prefix"
21066 prefix="$acl_save_prefix"
9c60689e 21067
7eda51e0
JF
21068 if test "X$x" = "X$element"; then
21069 haveit=yes
21070 break
21071 fi
21072 done
21073 if test -z "$haveit"; then
babf7fe8 21074 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
21075 fi
21076 done
9c60689e 21077
9c60689e 21078
5053a6d1 21079else
babf7fe8
JF
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21081$as_echo "no" >&6; }
632b71ea
DWT
21082fi
21083
babf7fe8
JF
21084 ac_ext=cpp
21085ac_cpp='$CXXCPP $CPPFLAGS'
21086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
21089
21090
5053a6d1 21091
babf7fe8
JF
21092 ac_ext=mm
21093ac_cpp='$OBJCXXCPP $CPPFLAGS'
21094ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21095ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21096ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 21097
babf7fe8
JF
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
21099$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 21100
babf7fe8 21101 cy_save=$OBJCXXFLAGS
632b71ea 21102
babf7fe8 21103 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 21104 haveit=
babf7fe8 21105 for x in $OBJCXXFLAGS; do
632b71ea
DWT
21106
21107 acl_save_prefix="$prefix"
21108 prefix="$acl_final_prefix"
21109 acl_save_exec_prefix="$exec_prefix"
21110 exec_prefix="$acl_final_exec_prefix"
5053a6d1 21111 eval x=\"$x\"
632b71ea
DWT
21112 exec_prefix="$acl_save_exec_prefix"
21113 prefix="$acl_save_prefix"
21114
5053a6d1
DWT
21115 if test "X$x" = "X$element"; then
21116 haveit=yes
21117 break
21118 fi
21119 done
21120 if test -z "$haveit"; then
babf7fe8 21121 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
21122 fi
21123 done
21124
66170b30 21125
babf7fe8
JF
21126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21127/* end confdefs.h. */
21128
21129_ACEOF
21130if ac_fn_objcxx_try_compile "$LINENO"; then :
21131 cy_good=1
21132else
21133 cy_good=0
21134fi
21135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21136
21137 OBJCXXFLAGS=$cy_save
21138 if test "x$cy_good" = x1; then :
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21140$as_echo "yes" >&6; }
21141
21142 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 21143 haveit=
babf7fe8 21144 for x in $OBJCXXFLAGS; do
7eda51e0
JF
21145
21146 acl_save_prefix="$prefix"
21147 prefix="$acl_final_prefix"
21148 acl_save_exec_prefix="$exec_prefix"
21149 exec_prefix="$acl_final_exec_prefix"
21150 eval x=\"$x\"
21151 exec_prefix="$acl_save_exec_prefix"
21152 prefix="$acl_save_prefix"
21153
21154 if test "X$x" = "X$element"; then
21155 haveit=yes
21156 break
21157 fi
21158 done
21159 if test -z "$haveit"; then
babf7fe8 21160 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
21161 fi
21162 done
66170b30
JF
21163
21164
babf7fe8
JF
21165else
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21167$as_echo "no" >&6; }
5053a6d1 21168fi
7eda51e0 21169
babf7fe8
JF
21170 ac_ext=cpp
21171ac_cpp='$CXXCPP $CPPFLAGS'
21172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 21175
5053a6d1
DWT
21176
21177
5053a6d1 21178
babf7fe8
JF
21179
21180
2ca4dab3 21181
be2fde87
JF
21182ac_ext=c
21183ac_cpp='$CPP $CPPFLAGS'
21184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21186ac_compiler_gnu=$ac_cv_c_compiler_gnu
21187
21188ax_pthread_ok=no
21189
21190# We used to check for pthread.h first, but this fails if pthread.h
2ca4dab3 21191# requires special compiler flags (e.g. on Tru64 or Sequent).
be2fde87
JF
21192# It gets checked for in the link test anyway.
21193
21194# First of all, check if the user has set any of the PTHREAD_LIBS,
21195# etcetera environment variables, and if threads linking works using
21196# them:
21197if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21198 save_CFLAGS="$CFLAGS"
21199 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21200 save_LIBS="$LIBS"
21201 LIBS="$PTHREAD_LIBS $LIBS"
2ca4dab3
JF
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
21203$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
be2fde87
JF
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205/* end confdefs.h. */
21206
21207/* Override any GCC internal prototype to avoid an error.
21208 Use char because int might match the return type of a GCC
21209 builtin and then its argument prototype would still apply. */
21210#ifdef __cplusplus
21211extern "C"
21212#endif
21213char pthread_join ();
21214int
21215main ()
21216{
21217return pthread_join ();
21218 ;
21219 return 0;
21220}
21221_ACEOF
21222if ac_fn_c_try_link "$LINENO"; then :
21223 ax_pthread_ok=yes
21224fi
21225rm -f core conftest.err conftest.$ac_objext \
21226 conftest$ac_exeext conftest.$ac_ext
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21228$as_echo "$ax_pthread_ok" >&6; }
21229 if test x"$ax_pthread_ok" = xno; then
21230 PTHREAD_LIBS=""
21231 PTHREAD_CFLAGS=""
21232 fi
21233 LIBS="$save_LIBS"
21234 CFLAGS="$save_CFLAGS"
21235fi
21236
21237# We must check for the threads library under a number of different
21238# names; the ordering is very important because some systems
21239# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21240# libraries is broken (non-POSIX).
21241
21242# Create a list of thread flags to try. Items starting with a "-" are
21243# C compiler flags, and other items are library names, except for "none"
21244# which indicates that we try without any flags at all, and "pthread-config"
21245# which is a program returning the flags for the Pth emulation library.
21246
2ca4dab3 21247ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
be2fde87
JF
21248
21249# The ordering *is* (sometimes) important. Some notes on the
21250# individual items follow:
21251
21252# pthreads: AIX (must check this before -lpthread)
21253# none: in case threads are in libc; should be tried before -Kthread and
21254# other compiler flags to prevent continual compiler warnings
21255# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21256# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21257# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
2ca4dab3 21258# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
be2fde87 21259# -pthreads: Solaris/gcc
be2fde87 21260# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
2ca4dab3
JF
21261# doesn't hurt to check since this sometimes defines pthreads and
21262# -D_REENTRANT too), HP C (must be checked before -lpthread, which
21263# is present but should not be used directly)
21264# -mthreads: Mingw32/gcc, Lynx/gcc
be2fde87
JF
21265# pthread: Linux, etcetera
21266# --thread-safe: KAI C++
21267# pthread-config: use pthread-config program (for GNU Pth library)
21268
2ca4dab3
JF
21269case $host_os in
21270
21271 hpux*)
21272
21273 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
21274 # multi-threading and also sets -lpthread."
21275
21276 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
21277 ;;
21278
21279 openedition*)
21280
21281 # IBM z/OS requires a feature-test macro to be defined in order to
21282 # enable POSIX threads at all, so give the user a hint if this is
21283 # not set. (We don't define these ourselves, as they can affect
21284 # other portions of the system API in unpredictable ways.)
21285
21286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21287/* end confdefs.h. */
21288
21289# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
21290 AX_PTHREAD_ZOS_MISSING
21291# endif
21292
21293_ACEOF
21294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21295 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
21297$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
21298fi
21299rm -f conftest*
21300
21301 ;;
21302
be2fde87
JF
21303 solaris*)
21304
2ca4dab3
JF
21305 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
21306 # check that first. On some older versions, libc contains stubbed
be2fde87
JF
21307 # (non-functional) versions of the pthreads routines, so link-based
21308 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
21309 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21310 # a function called by this macro, so we could check for that, but
2ca4dab3
JF
21311 # who knows whether they'll stub that too in a future libc.) So
21312 # we'll look for -pthreads and -lpthread shortly thereafter.
be2fde87 21313
2ca4dab3 21314 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
be2fde87
JF
21315 ;;
21316esac
21317
2ca4dab3
JF
21318# Older versions of Clang only give a warning instead of an error for an
21319# unrecognized option, unless we specify -Werror. (We throw in some extra
21320# Clang warning flags for good measure.)
be2fde87 21321
2ca4dab3
JF
21322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
21323$as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
21324if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
21325 $as_echo_n "(cached) " >&6
21326else
21327 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
21328 save_CFLAGS="$CFLAGS"
21329 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
21330 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
21331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21332/* end confdefs.h. */
21333int foo(void);
21334int
21335main ()
21336{
21337foo()
21338 ;
21339 return 0;
21340}
21341_ACEOF
21342if ac_fn_c_try_compile "$LINENO"; then :
2ca4dab3 21343 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
be2fde87 21344else
2ca4dab3 21345 ax_cv_PTHREAD_REJECT_UNKNOWN=no
be2fde87
JF
21346fi
21347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ca4dab3
JF
21348 CFLAGS="$save_CFLAGS"
21349
21350fi
21351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
21352$as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
21353ax_pthread_extra_flags=
21354if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
21355 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
21356fi
be2fde87
JF
21357
21358if test x"$ax_pthread_ok" = xno; then
21359for flag in $ax_pthread_flags; do
21360
21361 case $flag in
21362 none)
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
21364$as_echo_n "checking whether pthreads work without any flags... " >&6; }
21365 ;;
21366
2ca4dab3
JF
21367 -mt,pthread)
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
21369$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
21370 PTHREAD_CFLAGS="-mt"
21371 PTHREAD_LIBS="-lpthread"
21372 ;;
21373
be2fde87
JF
21374 -*)
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
21376$as_echo_n "checking whether pthreads work with $flag... " >&6; }
21377 PTHREAD_CFLAGS="$flag"
21378 ;;
21379
21380 pthread-config)
21381 # Extract the first word of "pthread-config", so it can be a program name with args.
21382set dummy pthread-config; ac_word=$2
21383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21384$as_echo_n "checking for $ac_word... " >&6; }
21385if ${ac_cv_prog_ax_pthread_config+:} false; then :
21386 $as_echo_n "(cached) " >&6
21387else
21388 if test -n "$ax_pthread_config"; then
21389 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
21390else
21391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21392for as_dir in $PATH
21393do
21394 IFS=$as_save_IFS
21395 test -z "$as_dir" && as_dir=.
21396 for ac_exec_ext in '' $ac_executable_extensions; do
21397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21398 ac_cv_prog_ax_pthread_config="yes"
21399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21400 break 2
21401 fi
21402done
21403 done
21404IFS=$as_save_IFS
21405
21406 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
21407fi
21408fi
21409ax_pthread_config=$ac_cv_prog_ax_pthread_config
21410if test -n "$ax_pthread_config"; then
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
21412$as_echo "$ax_pthread_config" >&6; }
21413else
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21415$as_echo "no" >&6; }
21416fi
21417
21418
21419 if test x"$ax_pthread_config" = xno; then continue; fi
21420 PTHREAD_CFLAGS="`pthread-config --cflags`"
21421 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21422 ;;
21423
21424 *)
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
21426$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21427 PTHREAD_LIBS="-l$flag"
21428 ;;
21429 esac
21430
21431 save_LIBS="$LIBS"
21432 save_CFLAGS="$CFLAGS"
21433 LIBS="$PTHREAD_LIBS $LIBS"
21434 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
21435
21436 # Check for various functions. We must include pthread.h,
21437 # since some functions may be macros. (On the Sequent, we
21438 # need a special flag -Kthread to make this header compile.)
21439 # We check for pthread_join because it is in -lpthread on IRIX
21440 # while pthread_create is in libc. We check for pthread_attr_init
21441 # due to DEC craziness with -lpthreads. We check for
21442 # pthread_cleanup_push because it is one of the few pthread
21443 # functions on Solaris that doesn't have a non-functional libc stub.
21444 # We try pthread_create on general principles.
21445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446/* end confdefs.h. */
21447#include <pthread.h>
21448 static void routine(void *a) { a = 0; }
21449 static void *start_routine(void *a) { return a; }
21450int
21451main ()
21452{
21453pthread_t th; pthread_attr_t attr;
21454 pthread_create(&th, 0, start_routine, 0);
21455 pthread_join(th, 0);
21456 pthread_attr_init(&attr);
21457 pthread_cleanup_push(routine, 0);
21458 pthread_cleanup_pop(0) /* ; */
21459 ;
21460 return 0;
21461}
21462_ACEOF
21463if ac_fn_c_try_link "$LINENO"; then :
21464 ax_pthread_ok=yes
21465fi
21466rm -f core conftest.err conftest.$ac_objext \
21467 conftest$ac_exeext conftest.$ac_ext
21468
21469 LIBS="$save_LIBS"
21470 CFLAGS="$save_CFLAGS"
21471
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21473$as_echo "$ax_pthread_ok" >&6; }
21474 if test "x$ax_pthread_ok" = xyes; then
21475 break;
21476 fi
21477
21478 PTHREAD_LIBS=""
21479 PTHREAD_CFLAGS=""
21480done
21481fi
21482
21483# Various other checks:
21484if test "x$ax_pthread_ok" = xyes; then
21485 save_LIBS="$LIBS"
21486 LIBS="$PTHREAD_LIBS $LIBS"
21487 save_CFLAGS="$CFLAGS"
21488 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21489
21490 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
21492$as_echo_n "checking for joinable pthread attribute... " >&6; }
2ca4dab3
JF
21493if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
21494 $as_echo_n "(cached) " >&6
21495else
21496 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
21497 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21499/* end confdefs.h. */
21500#include <pthread.h>
21501int
21502main ()
21503{
21504int attr = $attr; return attr /* ; */
21505 ;
21506 return 0;
21507}
21508_ACEOF
21509if ac_fn_c_try_link "$LINENO"; then :
2ca4dab3 21510 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
be2fde87
JF
21511fi
21512rm -f core conftest.err conftest.$ac_objext \
21513 conftest$ac_exeext conftest.$ac_ext
2ca4dab3
JF
21514 done
21515
21516fi
21517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
21518$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
21519 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
21520 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
be2fde87
JF
21521
21522cat >>confdefs.h <<_ACEOF
2ca4dab3 21523#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
be2fde87
JF
21524_ACEOF
21525
2ca4dab3 21526fi
be2fde87
JF
21527
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
21529$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
2ca4dab3
JF
21530if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
21531 $as_echo_n "(cached) " >&6
21532else
21533 ax_cv_PTHREAD_SPECIAL_FLAGS=no
21534 ax_pthread_special_flags_added=no
21535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21536/* end confdefs.h. */
21537
21538# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
21539 AX_PTHREAD_NEED_SPECIAL_FLAG
21540# endif
21541
21542_ACEOF
21543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21544 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
21545 case $host_os in
21546 aix* | freebsd*)
21547 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
21548 ;;
21549 darwin* | hpux* | osf* | solaris*)
21550 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
21551 ;;
21552 esac
21553
21554fi
21555rm -f conftest*
21556
21557
21558fi
21559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
21560$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
21561 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
21562 test "x$ax_pthread_special_flags_added" != "xyes"; then :
21563 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
21564 ax_pthread_special_flags_added=yes
21565fi
be2fde87
JF
21566
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
21568$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
21569if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
21570 $as_echo_n "(cached) " >&6
21571else
2ca4dab3 21572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21573/* end confdefs.h. */
21574#include <pthread.h>
21575int
21576main ()
21577{
21578int i = PTHREAD_PRIO_INHERIT;
21579 ;
21580 return 0;
21581}
21582_ACEOF
21583if ac_fn_c_try_link "$LINENO"; then :
21584 ax_cv_PTHREAD_PRIO_INHERIT=yes
21585else
21586 ax_cv_PTHREAD_PRIO_INHERIT=no
21587fi
21588rm -f core conftest.err conftest.$ac_objext \
21589 conftest$ac_exeext conftest.$ac_ext
21590
21591fi
21592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
21593$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
21594 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
21595
21596$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
21597
21598fi
21599
21600 LIBS="$save_LIBS"
21601 CFLAGS="$save_CFLAGS"
21602
21603 # More AIX lossage: compile with *_r variant
21604 if test "x$GCC" != xyes; then
21605 case $host_os in
21606 aix*)
21607 case "x/$CC" in #(
21608 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
21609 #handle absolute path differently from PATH based program lookup
21610 case "x$CC" in #(
21611 x/*) :
21612 if as_fn_executable_p ${CC}_r; then :
21613 PTHREAD_CC="${CC}_r"
21614fi ;; #(
21615 *) :
21616 for ac_prog in ${CC}_r
21617do
21618 # Extract the first word of "$ac_prog", so it can be a program name with args.
21619set dummy $ac_prog; ac_word=$2
21620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21621$as_echo_n "checking for $ac_word... " >&6; }
21622if ${ac_cv_prog_PTHREAD_CC+:} false; then :
21623 $as_echo_n "(cached) " >&6
21624else
21625 if test -n "$PTHREAD_CC"; then
21626 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21627else
21628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21629for as_dir in $PATH
21630do
21631 IFS=$as_save_IFS
21632 test -z "$as_dir" && as_dir=.
21633 for ac_exec_ext in '' $ac_executable_extensions; do
21634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21635 ac_cv_prog_PTHREAD_CC="$ac_prog"
21636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21637 break 2
21638 fi
21639done
21640 done
21641IFS=$as_save_IFS
21642
21643fi
21644fi
21645PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21646if test -n "$PTHREAD_CC"; then
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21648$as_echo "$PTHREAD_CC" >&6; }
21649else
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21651$as_echo "no" >&6; }
21652fi
21653
21654
21655 test -n "$PTHREAD_CC" && break
21656done
21657test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21658 ;;
21659esac ;; #(
21660 *) :
21661 ;;
21662esac
21663 ;;
21664 esac
21665 fi
21666fi
21667
21668test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21669
21670
21671
21672
21673
21674# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21675if test x"$ax_pthread_ok" = xyes; then
21676
21677$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
21678
21679 :
21680else
21681 ax_pthread_ok=no
21682
21683fi
21684ac_ext=cpp
21685ac_cpp='$CXXCPP $CPPFLAGS'
21686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21689
21690
21691
21692
21693
babf7fe8
JF
21694
21695
21696
21697
21698# Check whether --enable-javascript was given.
21699if test "${enable_javascript+set}" = set; then :
21700 enableval=$enable_javascript;
21701 case $enableval in #(
21702 yes) :
21703
21704
21705
21706
21707 cy_save=$LIBS
21708 LIBS=
9918a0fa
JF
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21710$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21711if ${ac_cv_search_JSEvaluateScript+:} false; then :
21712 $as_echo_n "(cached) " >&6
21713else
21714 ac_func_search_save_LIBS=$LIBS
21715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21716/* end confdefs.h. */
21717
21718/* Override any GCC internal prototype to avoid an error.
21719 Use char because int might match the return type of a GCC
21720 builtin and then its argument prototype would still apply. */
21721#ifdef __cplusplus
21722extern "C"
21723#endif
21724char JSEvaluateScript ();
21725int
21726main ()
21727{
21728return JSEvaluateScript ();
21729 ;
21730 return 0;
21731}
21732_ACEOF
21733for ac_lib in '' JavaScriptCore; do
21734 if test -z "$ac_lib"; then
21735 ac_res="none required"
21736 else
21737 ac_res=-l$ac_lib
21738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21739 fi
21740 if ac_fn_cxx_try_link "$LINENO"; then :
21741 ac_cv_search_JSEvaluateScript=$ac_res
21742fi
21743rm -f core conftest.err conftest.$ac_objext \
21744 conftest$ac_exeext
21745 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21746 break
21747fi
21748done
21749if ${ac_cv_search_JSEvaluateScript+:} false; then :
21750
21751else
21752 ac_cv_search_JSEvaluateScript=no
21753fi
21754rm conftest.$ac_ext
21755LIBS=$ac_func_search_save_LIBS
21756fi
21757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
21758$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
21759ac_res=$ac_cv_search_JSEvaluateScript
21760if test "$ac_res" != no; then :
21761 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21762
21763 CY_EXECUTE=1
21764
21765
21766else
babf7fe8
JF
21767
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
21769$as_echo_n "checking for framework JavaScriptCore... " >&6; }
21770if ${ac_cv_framework_JavaScriptCore+:} false; then :
21771 $as_echo_n "(cached) " >&6
21772else
21773
21774 ac_check_framework_save_LIBS=$LIBS
21775 LIBS="-framework JavaScriptCore $LIBS"
21776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21777/* end confdefs.h. */
21778
21779 #include <JavaScriptCore/JSBase.h>
21780
21781int
21782main ()
21783{
21784
21785 JSEvaluateScript(0, 0, 0, 0, 0, 0);
21786
21787 ;
21788 return 0;
21789}
21790_ACEOF
21791if ac_fn_cxx_try_link "$LINENO"; then :
21792
21793 ac_cv_framework_JavaScriptCore=yes
21794
21795else
21796 ac_cv_framework_JavaScriptCore=no
21797fi
21798rm -f core conftest.err conftest.$ac_objext \
21799 conftest$ac_exeext conftest.$ac_ext
21800 LIBS=$ac_check_framework_save_LIBS
21801
21802fi
21803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
21804$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
21805 if test $ac_cv_framework_JavaScriptCore = yes; then :
21806
21807
21808 for element in "-framework JavaScriptCore"; do
21809 haveit=
21810 for x in $LIBS; do
21811
21812 acl_save_prefix="$prefix"
21813 prefix="$acl_final_prefix"
21814 acl_save_exec_prefix="$exec_prefix"
21815 exec_prefix="$acl_final_exec_prefix"
21816 eval x=\"$x\"
21817 exec_prefix="$acl_save_exec_prefix"
21818 prefix="$acl_save_prefix"
21819
21820 if test "X$x" = "X$element"; then
21821 haveit=yes
21822 break
21823 fi
21824 done
21825 if test -z "$haveit"; then
21826 LIBS="${LIBS}${LIBS:+ }$element"
21827 fi
21828 done
21829
21830
21831 CY_EXECUTE=1
21832
21833
21834
21835else
21836
ccb4e34c 21837 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
babf7fe8
JF
21838
21839pkg_failed=no
21840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 21841$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 21842
7eda51e0
JF
21843if test -n "$WEBKIT_CFLAGS"; then
21844 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
21845 elif test -n "$PKG_CONFIG"; then
21846 if test -n "$PKG_CONFIG" && \
21847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21848 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21849 ac_status=$?
21850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21851 test $ac_status = 0; }; then
21852 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 21853 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
21854else
21855 pkg_failed=yes
21856fi
21857 else
21858 pkg_failed=untried
21859fi
21860if test -n "$WEBKIT_LIBS"; then
21861 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
21862 elif test -n "$PKG_CONFIG"; then
21863 if test -n "$PKG_CONFIG" && \
21864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21865 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21866 ac_status=$?
21867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21868 test $ac_status = 0; }; then
21869 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 21870 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
21871else
21872 pkg_failed=yes
21873fi
21874 else
21875 pkg_failed=untried
21876fi
632b71ea 21877
7eda51e0
JF
21878
21879
21880if test $pkg_failed = yes; then
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21882$as_echo "no" >&6; }
21883
21884if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21885 _pkg_short_errors_supported=yes
21886else
21887 _pkg_short_errors_supported=no
21888fi
21889 if test $_pkg_short_errors_supported = yes; then
83c6fec8 21890 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 21891 else
83c6fec8 21892 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
21893 fi
21894 # Put the nasty error message in config.log where it belongs
21895 echo "$WEBKIT_PKG_ERRORS" >&5
21896
21897 :
21898elif test $pkg_failed = untried; then
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21900$as_echo "no" >&6; }
21901 :
21902else
21903 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
21904 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21906$as_echo "yes" >&6; }
21907
21908 CY_EXECUTE=1
21909
21910
7eda51e0
JF
21911 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
21912 haveit=
d70419f1 21913 for x in $CPPFLAGS; do
5053a6d1 21914
7eda51e0
JF
21915 acl_save_prefix="$prefix"
21916 prefix="$acl_final_prefix"
21917 acl_save_exec_prefix="$exec_prefix"
21918 exec_prefix="$acl_final_exec_prefix"
21919 eval x=\"$x\"
21920 exec_prefix="$acl_save_exec_prefix"
21921 prefix="$acl_save_prefix"
5053a6d1 21922
7eda51e0
JF
21923 if test "X$x" = "X$element"; then
21924 haveit=yes
21925 break
21926 fi
21927 done
21928 if test -z "$haveit"; then
d70419f1 21929 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
21930 fi
21931 done
5053a6d1 21932
5053a6d1 21933
7eda51e0 21934 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 21935 haveit=
5053a6d1 21936 for x in $LIBS; do
9c60689e 21937
632b71ea
DWT
21938 acl_save_prefix="$prefix"
21939 prefix="$acl_final_prefix"
21940 acl_save_exec_prefix="$exec_prefix"
21941 exec_prefix="$acl_final_exec_prefix"
21942 eval x=\"$x\"
21943 exec_prefix="$acl_save_exec_prefix"
21944 prefix="$acl_save_prefix"
21945
21946 if test "X$x" = "X$element"; then
21947 haveit=yes
21948 break
21949 fi
21950 done
21951 if test -z "$haveit"; then
5053a6d1 21952 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
21953 fi
21954 done
b128dfee 21955
66170b30 21956
7eda51e0
JF
21957fi; if test "x$CY_EXECUTE" = x1; then break; fi
21958 done
5053a6d1
DWT
21959
21960fi
9918a0fa
JF
21961fi
21962
babf7fe8
JF
21963 LTJAVASCRIPTCORE=$LIBS
21964 LIBS=$cy_save
21965
21966
7eda51e0 21967 ;; #(
babf7fe8 21968 no) :
7eda51e0 21969
babf7fe8
JF
21970 CY_EXECUTE=0
21971 ;; #(
21972 JavaScriptCore) :
c823f118 21973
5053a6d1
DWT
21974
21975
babf7fe8
JF
21976 cy_save=$LIBS
21977 LIBS=
9918a0fa
JF
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21979$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21980if ${ac_cv_search_JSEvaluateScript+:} false; then :
21981 $as_echo_n "(cached) " >&6
21982else
21983 ac_func_search_save_LIBS=$LIBS
21984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21985/* end confdefs.h. */
21986
21987/* Override any GCC internal prototype to avoid an error.
21988 Use char because int might match the return type of a GCC
21989 builtin and then its argument prototype would still apply. */
21990#ifdef __cplusplus
21991extern "C"
21992#endif
21993char JSEvaluateScript ();
21994int
21995main ()
21996{
21997return JSEvaluateScript ();
21998 ;
21999 return 0;
22000}
22001_ACEOF
22002for ac_lib in '' JavaScriptCore; do
22003 if test -z "$ac_lib"; then
22004 ac_res="none required"
22005 else
22006 ac_res=-l$ac_lib
22007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22008 fi
22009 if ac_fn_cxx_try_link "$LINENO"; then :
22010 ac_cv_search_JSEvaluateScript=$ac_res
22011fi
22012rm -f core conftest.err conftest.$ac_objext \
22013 conftest$ac_exeext
22014 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22015 break
22016fi
22017done
22018if ${ac_cv_search_JSEvaluateScript+:} false; then :
22019
22020else
22021 ac_cv_search_JSEvaluateScript=no
22022fi
22023rm conftest.$ac_ext
22024LIBS=$ac_func_search_save_LIBS
22025fi
22026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22027$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22028ac_res=$ac_cv_search_JSEvaluateScript
22029if test "$ac_res" != no; then :
22030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22031
22032 CY_EXECUTE=1
22033
22034
22035else
babf7fe8 22036
5053a6d1
DWT
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22038$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 22039if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
22040 $as_echo_n "(cached) " >&6
22041else
22042
5053a6d1
DWT
22043 ac_check_framework_save_LIBS=$LIBS
22044 LIBS="-framework JavaScriptCore $LIBS"
22045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 22046/* end confdefs.h. */
5053a6d1 22047
7eda51e0 22048 #include <JavaScriptCore/JSBase.h>
5053a6d1 22049
632b71ea
DWT
22050int
22051main ()
22052{
66170b30 22053
7eda51e0 22054 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 22055
632b71ea
DWT
22056 ;
22057 return 0;
22058}
22059_ACEOF
5053a6d1
DWT
22060if ac_fn_cxx_try_link "$LINENO"; then :
22061
22062 ac_cv_framework_JavaScriptCore=yes
22063
22064else
22065 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
22066fi
22067rm -f core conftest.err conftest.$ac_objext \
22068 conftest$ac_exeext conftest.$ac_ext
5053a6d1 22069 LIBS=$ac_check_framework_save_LIBS
b128dfee 22070
c823f118 22071fi
5053a6d1
DWT
22072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22073$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22074 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
22075
22076
7eda51e0 22077 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
22078 haveit=
22079 for x in $LIBS; do
22080
22081 acl_save_prefix="$prefix"
22082 prefix="$acl_final_prefix"
22083 acl_save_exec_prefix="$exec_prefix"
22084 exec_prefix="$acl_final_exec_prefix"
22085 eval x=\"$x\"
22086 exec_prefix="$acl_save_exec_prefix"
22087 prefix="$acl_save_prefix"
22088
22089 if test "X$x" = "X$element"; then
22090 haveit=yes
22091 break
22092 fi
22093 done
22094 if test -z "$haveit"; then
22095 LIBS="${LIBS}${LIBS:+ }$element"
22096 fi
22097 done
c823f118 22098
66170b30 22099
7eda51e0
JF
22100 CY_EXECUTE=1
22101
22102
22103
22104else
22105
ccb4e34c 22106 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
7eda51e0
JF
22107
22108pkg_failed=no
22109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22110$as_echo_n "checking for WEBKIT... " >&6; }
22111
22112if test -n "$WEBKIT_CFLAGS"; then
22113 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22114 elif test -n "$PKG_CONFIG"; then
22115 if test -n "$PKG_CONFIG" && \
22116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22117 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22118 ac_status=$?
22119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22120 test $ac_status = 0; }; then
22121 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22122 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
22123else
22124 pkg_failed=yes
22125fi
22126 else
22127 pkg_failed=untried
22128fi
22129if test -n "$WEBKIT_LIBS"; then
22130 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22131 elif test -n "$PKG_CONFIG"; then
22132 if test -n "$PKG_CONFIG" && \
22133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22134 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22135 ac_status=$?
22136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22137 test $ac_status = 0; }; then
22138 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22139 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
22140else
22141 pkg_failed=yes
22142fi
22143 else
22144 pkg_failed=untried
22145fi
22146
66170b30
JF
22147
22148
7eda51e0
JF
22149if test $pkg_failed = yes; then
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22151$as_echo "no" >&6; }
b128dfee 22152
7eda51e0
JF
22153if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22154 _pkg_short_errors_supported=yes
22155else
22156 _pkg_short_errors_supported=no
632b71ea 22157fi
7eda51e0 22158 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22159 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 22160 else
83c6fec8 22161 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
22162 fi
22163 # Put the nasty error message in config.log where it belongs
22164 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 22165
7eda51e0
JF
22166 :
22167elif test $pkg_failed = untried; then
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22169$as_echo "no" >&6; }
22170 :
5053a6d1
DWT
22171else
22172 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22173 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22175$as_echo "yes" >&6; }
c823f118 22176
7eda51e0
JF
22177 CY_EXECUTE=1
22178
66170b30 22179
7eda51e0 22180 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 22181 haveit=
d70419f1 22182 for x in $CPPFLAGS; do
c823f118 22183
5053a6d1
DWT
22184 acl_save_prefix="$prefix"
22185 prefix="$acl_final_prefix"
22186 acl_save_exec_prefix="$exec_prefix"
22187 exec_prefix="$acl_final_exec_prefix"
22188 eval x=\"$x\"
22189 exec_prefix="$acl_save_exec_prefix"
22190 prefix="$acl_save_prefix"
c823f118 22191
5053a6d1
DWT
22192 if test "X$x" = "X$element"; then
22193 haveit=yes
22194 break
22195 fi
22196 done
22197 if test -z "$haveit"; then
d70419f1 22198 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
22199 fi
22200 done
c823f118 22201
b66977f1 22202
7eda51e0 22203 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
22204 haveit=
22205 for x in $LIBS; do
22206
22207 acl_save_prefix="$prefix"
22208 prefix="$acl_final_prefix"
22209 acl_save_exec_prefix="$exec_prefix"
22210 exec_prefix="$acl_final_exec_prefix"
22211 eval x=\"$x\"
22212 exec_prefix="$acl_save_exec_prefix"
22213 prefix="$acl_save_prefix"
22214
22215 if test "X$x" = "X$element"; then
22216 haveit=yes
22217 break
22218 fi
22219 done
22220 if test -z "$haveit"; then
22221 LIBS="${LIBS}${LIBS:+ }$element"
22222 fi
22223 done
22224
22225
7eda51e0
JF
22226fi; if test "x$CY_EXECUTE" = x1; then break; fi
22227 done
22228
5053a6d1 22229fi
9918a0fa
JF
22230fi
22231
babf7fe8
JF
22232 LTJAVASCRIPTCORE=$LIBS
22233 LIBS=$cy_save
5053a6d1 22234
b66977f1 22235
babf7fe8
JF
22236 ;; #(
22237 *) :
22238 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
22239esac
b66977f1 22240
babf7fe8 22241else
b66977f1 22242
7eda51e0 22243
7eda51e0 22244
babf7fe8
JF
22245 cy_save=$LIBS
22246 LIBS=
9918a0fa
JF
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
22248$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
22249if ${ac_cv_search_JSEvaluateScript+:} false; then :
22250 $as_echo_n "(cached) " >&6
22251else
22252 ac_func_search_save_LIBS=$LIBS
22253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254/* end confdefs.h. */
22255
22256/* Override any GCC internal prototype to avoid an error.
22257 Use char because int might match the return type of a GCC
22258 builtin and then its argument prototype would still apply. */
22259#ifdef __cplusplus
22260extern "C"
22261#endif
22262char JSEvaluateScript ();
22263int
22264main ()
22265{
22266return JSEvaluateScript ();
22267 ;
22268 return 0;
22269}
22270_ACEOF
22271for ac_lib in '' JavaScriptCore; do
22272 if test -z "$ac_lib"; then
22273 ac_res="none required"
22274 else
22275 ac_res=-l$ac_lib
22276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22277 fi
22278 if ac_fn_cxx_try_link "$LINENO"; then :
22279 ac_cv_search_JSEvaluateScript=$ac_res
22280fi
22281rm -f core conftest.err conftest.$ac_objext \
22282 conftest$ac_exeext
22283 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22284 break
22285fi
22286done
22287if ${ac_cv_search_JSEvaluateScript+:} false; then :
22288
22289else
22290 ac_cv_search_JSEvaluateScript=no
22291fi
22292rm conftest.$ac_ext
22293LIBS=$ac_func_search_save_LIBS
22294fi
22295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22296$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22297ac_res=$ac_cv_search_JSEvaluateScript
22298if test "$ac_res" != no; then :
22299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22300
22301 CY_EXECUTE=1
22302
22303
22304else
7eda51e0 22305
babf7fe8
JF
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22307$as_echo_n "checking for framework JavaScriptCore... " >&6; }
22308if ${ac_cv_framework_JavaScriptCore+:} false; then :
22309 $as_echo_n "(cached) " >&6
22310else
7eda51e0 22311
babf7fe8
JF
22312 ac_check_framework_save_LIBS=$LIBS
22313 LIBS="-framework JavaScriptCore $LIBS"
22314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22315/* end confdefs.h. */
7eda51e0 22316
babf7fe8 22317 #include <JavaScriptCore/JSBase.h>
7eda51e0 22318
babf7fe8
JF
22319int
22320main ()
22321{
7eda51e0 22322
babf7fe8 22323 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 22324
babf7fe8
JF
22325 ;
22326 return 0;
22327}
22328_ACEOF
22329if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 22330
babf7fe8 22331 ac_cv_framework_JavaScriptCore=yes
b66977f1 22332
b66977f1 22333else
babf7fe8
JF
22334 ac_cv_framework_JavaScriptCore=no
22335fi
22336rm -f core conftest.err conftest.$ac_objext \
22337 conftest$ac_exeext conftest.$ac_ext
22338 LIBS=$ac_check_framework_save_LIBS
7eda51e0 22339
babf7fe8
JF
22340fi
22341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22342$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22343 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 22344
7eda51e0 22345
babf7fe8
JF
22346 for element in "-framework JavaScriptCore"; do
22347 haveit=
22348 for x in $LIBS; do
22349
22350 acl_save_prefix="$prefix"
22351 prefix="$acl_final_prefix"
22352 acl_save_exec_prefix="$exec_prefix"
22353 exec_prefix="$acl_final_exec_prefix"
22354 eval x=\"$x\"
22355 exec_prefix="$acl_save_exec_prefix"
22356 prefix="$acl_save_prefix"
22357
22358 if test "X$x" = "X$element"; then
22359 haveit=yes
22360 break
22361 fi
22362 done
22363 if test -z "$haveit"; then
22364 LIBS="${LIBS}${LIBS:+ }$element"
22365 fi
22366 done
22367
22368
22369 CY_EXECUTE=1
22370
22371
22372
22373else
22374
ccb4e34c 22375 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
babf7fe8
JF
22376
22377pkg_failed=no
22378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22379$as_echo_n "checking for WEBKIT... " >&6; }
22380
22381if test -n "$WEBKIT_CFLAGS"; then
22382 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22383 elif test -n "$PKG_CONFIG"; then
22384 if test -n "$PKG_CONFIG" && \
22385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22386 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22387 ac_status=$?
22388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22389 test $ac_status = 0; }; then
22390 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22391 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
22392else
22393 pkg_failed=yes
22394fi
22395 else
22396 pkg_failed=untried
22397fi
22398if test -n "$WEBKIT_LIBS"; then
22399 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22400 elif test -n "$PKG_CONFIG"; then
22401 if test -n "$PKG_CONFIG" && \
22402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22403 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22404 ac_status=$?
22405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; then
22407 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22408 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
22409else
22410 pkg_failed=yes
22411fi
22412 else
22413 pkg_failed=untried
22414fi
22415
22416
22417
22418if test $pkg_failed = yes; then
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22420$as_echo "no" >&6; }
22421
22422if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22423 _pkg_short_errors_supported=yes
22424else
22425 _pkg_short_errors_supported=no
22426fi
22427 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22428 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8 22429 else
83c6fec8 22430 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
22431 fi
22432 # Put the nasty error message in config.log where it belongs
22433 echo "$WEBKIT_PKG_ERRORS" >&5
22434
22435 :
22436elif test $pkg_failed = untried; then
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22438$as_echo "no" >&6; }
22439 :
22440else
22441 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22442 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22444$as_echo "yes" >&6; }
22445
22446 CY_EXECUTE=1
22447
22448
22449 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
22450 haveit=
22451 for x in $CPPFLAGS; do
22452
22453 acl_save_prefix="$prefix"
22454 prefix="$acl_final_prefix"
22455 acl_save_exec_prefix="$exec_prefix"
22456 exec_prefix="$acl_final_exec_prefix"
22457 eval x=\"$x\"
22458 exec_prefix="$acl_save_exec_prefix"
22459 prefix="$acl_save_prefix"
22460
22461 if test "X$x" = "X$element"; then
22462 haveit=yes
22463 break
22464 fi
22465 done
22466 if test -z "$haveit"; then
22467 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22468 fi
22469 done
22470
22471
22472 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
22473 haveit=
22474 for x in $LIBS; do
22475
22476 acl_save_prefix="$prefix"
22477 prefix="$acl_final_prefix"
22478 acl_save_exec_prefix="$exec_prefix"
22479 exec_prefix="$acl_final_exec_prefix"
22480 eval x=\"$x\"
22481 exec_prefix="$acl_save_exec_prefix"
22482 prefix="$acl_save_prefix"
22483
22484 if test "X$x" = "X$element"; then
22485 haveit=yes
22486 break
22487 fi
22488 done
22489 if test -z "$haveit"; then
22490 LIBS="${LIBS}${LIBS:+ }$element"
22491 fi
22492 done
22493
22494
22495fi; if test "x$CY_EXECUTE" = x1; then break; fi
22496 done
22497
22498fi
9918a0fa
JF
22499fi
22500
babf7fe8
JF
22501 LTJAVASCRIPTCORE=$LIBS
22502 LIBS=$cy_save
22503
22504
22505
22506fi
22507
22508
a93f15c0
JF
22509# Check whether --enable-console was given.
22510if test "${enable_console+set}" = set; then :
22511 enableval=$enable_console;
22512fi
22513
22514 if test "x$enable_console" != "xno"; then
22515 CY_CONSOLE_TRUE=
22516 CY_CONSOLE_FALSE='#'
22517else
22518 CY_CONSOLE_TRUE='#'
22519 CY_CONSOLE_FALSE=
22520fi
22521
22522
a4287117
JF
22523# Check whether --enable-attach was given.
22524if test "${enable_attach+set}" = set; then :
22525 enableval=$enable_attach;
22526fi
22527
22528 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
22529 CY_ATTACH_TRUE=
22530 CY_ATTACH_FALSE='#'
22531else
22532 CY_ATTACH_TRUE='#'
22533 CY_ATTACH_FALSE=
22534fi
22535
22536
7eda51e0
JF
22537
22538
22539 if test "x$CY_EXECUTE" = x1; then
22540 CY_EXECUTE_TRUE=
22541 CY_EXECUTE_FALSE='#'
b66977f1 22542else
7eda51e0
JF
22543 CY_EXECUTE_TRUE='#'
22544 CY_EXECUTE_FALSE=
b66977f1
DWT
22545fi
22546
22547
8d20f0f1
JF
22548if test "x$CY_SYSTEM" = x; then CY_SYSTEM=1; fi
22549
22550
b66977f1 22551
7eda51e0
JF
22552case $CY_EXECUTE in #(
22553 1) :
22554
ae1b611e
JF
22555
22556 cy_save=$LIBS
22557 LIBS=
22558 for ac_header in uv.h
22559do :
22560 ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default"
22561if test "x$ac_cv_header_uv_h" = xyes; then :
22562 cat >>confdefs.h <<_ACEOF
22563#define HAVE_UV_H 1
22564_ACEOF
22565
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5
22567$as_echo_n "checking for library containing uv_loop_init... " >&6; }
22568if ${ac_cv_search_uv_loop_init+:} false; then :
22569 $as_echo_n "(cached) " >&6
22570else
22571 ac_func_search_save_LIBS=$LIBS
22572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22573/* end confdefs.h. */
22574
22575/* Override any GCC internal prototype to avoid an error.
22576 Use char because int might match the return type of a GCC
22577 builtin and then its argument prototype would still apply. */
22578#ifdef __cplusplus
22579extern "C"
22580#endif
22581char uv_loop_init ();
22582int
22583main ()
22584{
22585return uv_loop_init ();
22586 ;
22587 return 0;
22588}
22589_ACEOF
22590for ac_lib in '' uv; do
22591 if test -z "$ac_lib"; then
22592 ac_res="none required"
22593 else
22594 ac_res=-l$ac_lib
22595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22596 fi
22597 if ac_fn_cxx_try_link "$LINENO"; then :
22598 ac_cv_search_uv_loop_init=$ac_res
22599fi
22600rm -f core conftest.err conftest.$ac_objext \
22601 conftest$ac_exeext
22602 if ${ac_cv_search_uv_loop_init+:} false; then :
22603 break
22604fi
22605done
22606if ${ac_cv_search_uv_loop_init+:} false; then :
22607
22608else
22609 ac_cv_search_uv_loop_init=no
22610fi
22611rm conftest.$ac_ext
22612LIBS=$ac_func_search_save_LIBS
22613fi
22614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5
22615$as_echo "$ac_cv_search_uv_loop_init" >&6; }
22616ac_res=$ac_cv_search_uv_loop_init
22617if test "$ac_res" != no; then :
22618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22619
22620fi
22621
22622
22623fi
22624
22625done
22626
22627 LTLIBUV=$LIBS
22628 LIBS=$cy_save
22629
22630
22631
8d20f0f1
JF
22632
22633 cy_save=$LIBS
22634 LIBS=
22635 for ac_header in sqlite3.h
22636do :
22637 ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
22638if test "x$ac_cv_header_sqlite3_h" = xyes; then :
22639 cat >>confdefs.h <<_ACEOF
22640#define HAVE_SQLITE3_H 1
22641_ACEOF
22642
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
22644$as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
22645if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22646 $as_echo_n "(cached) " >&6
22647else
22648 ac_func_search_save_LIBS=$LIBS
22649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22650/* end confdefs.h. */
22651
22652/* Override any GCC internal prototype to avoid an error.
22653 Use char because int might match the return type of a GCC
22654 builtin and then its argument prototype would still apply. */
22655#ifdef __cplusplus
22656extern "C"
22657#endif
22658char sqlite3_open_v2 ();
22659int
22660main ()
22661{
22662return sqlite3_open_v2 ();
22663 ;
22664 return 0;
22665}
22666_ACEOF
22667for ac_lib in '' sqlite3; do
22668 if test -z "$ac_lib"; then
22669 ac_res="none required"
22670 else
22671 ac_res=-l$ac_lib
22672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22673 fi
22674 if ac_fn_cxx_try_link "$LINENO"; then :
22675 ac_cv_search_sqlite3_open_v2=$ac_res
22676fi
22677rm -f core conftest.err conftest.$ac_objext \
22678 conftest$ac_exeext
22679 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22680 break
22681fi
22682done
22683if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22684
22685else
22686 ac_cv_search_sqlite3_open_v2=no
22687fi
22688rm conftest.$ac_ext
22689LIBS=$ac_func_search_save_LIBS
22690fi
22691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
22692$as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
22693ac_res=$ac_cv_search_sqlite3_open_v2
22694if test "$ac_res" != no; then :
22695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22696
22697fi
22698
22699
22700fi
22701
22702done
22703
22704 LTLIBSQLITE3=$LIBS
22705 LIBS=$cy_save
22706
22707
22708
7eda51e0
JF
22709 for ac_header in ffi.h ffi/ffi.h
22710do :
22711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22712ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22714 cat >>confdefs.h <<_ACEOF
22715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22716_ACEOF
22717 break
b66977f1 22718fi
7eda51e0
JF
22719
22720done
22721
296ee9a6
JF
22722
22723
22724 cy_save=$LIBS
22725 LIBS=
7eda51e0 22726 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 22727
b66977f1
DWT
22728
22729
22730pkg_failed=no
7eda51e0
JF
22731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22732$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 22733
7eda51e0
JF
22734if test -n "$LIBFFI_CFLAGS"; then
22735 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
22736 elif test -n "$PKG_CONFIG"; then
22737 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22739 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22740 ac_status=$?
22741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22742 test $ac_status = 0; }; then
7eda51e0 22743 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 22744 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22745else
22746 pkg_failed=yes
22747fi
12833ad8
JF
22748 else
22749 pkg_failed=untried
b66977f1 22750fi
7eda51e0
JF
22751if test -n "$LIBFFI_LIBS"; then
22752 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
22753 elif test -n "$PKG_CONFIG"; then
22754 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22756 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22757 ac_status=$?
22758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22759 test $ac_status = 0; }; then
7eda51e0 22760 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 22761 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22762else
22763 pkg_failed=yes
22764fi
12833ad8
JF
22765 else
22766 pkg_failed=untried
b66977f1
DWT
22767fi
22768
22769
22770
22771if test $pkg_failed = yes; then
12833ad8
JF
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22773$as_echo "no" >&6; }
b66977f1
DWT
22774
22775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22776 _pkg_short_errors_supported=yes
22777else
22778 _pkg_short_errors_supported=no
22779fi
22780 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22781 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 22782 else
83c6fec8 22783 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
22784 fi
22785 # Put the nasty error message in config.log where it belongs
7eda51e0 22786 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 22787
7eda51e0
JF
22788 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22789elif test $pkg_failed = untried; then
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22791$as_echo "no" >&6; }
22792 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22793else
22794 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22795 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22797$as_echo "yes" >&6; }
b66977f1
DWT
22798
22799
7eda51e0 22800 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 22801 haveit=
d70419f1 22802 for x in $CPPFLAGS; do
b66977f1
DWT
22803
22804 acl_save_prefix="$prefix"
22805 prefix="$acl_final_prefix"
22806 acl_save_exec_prefix="$exec_prefix"
22807 exec_prefix="$acl_final_exec_prefix"
22808 eval x=\"$x\"
22809 exec_prefix="$acl_save_exec_prefix"
22810 prefix="$acl_save_prefix"
22811
22812 if test "X$x" = "X$element"; then
22813 haveit=yes
22814 break
22815 fi
22816 done
22817 if test -z "$haveit"; then
d70419f1 22818 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
22819 fi
22820 done
22821
22822
7eda51e0 22823 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
22824 haveit=
22825 for x in $LIBS; do
22826
22827 acl_save_prefix="$prefix"
22828 prefix="$acl_final_prefix"
22829 acl_save_exec_prefix="$exec_prefix"
22830 exec_prefix="$acl_final_exec_prefix"
22831 eval x=\"$x\"
22832 exec_prefix="$acl_save_exec_prefix"
22833 prefix="$acl_save_prefix"
22834
22835 if test "X$x" = "X$element"; then
22836 haveit=yes
22837 break
22838 fi
22839 done
22840 if test -z "$haveit"; then
22841 LIBS="${LIBS}${LIBS:+ }$element"
22842 fi
22843 done
22844
22845
22846fi
22847
7eda51e0
JF
22848else
22849
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
22851$as_echo_n "checking for library containing ffi_call... " >&6; }
22852if ${ac_cv_search_ffi_call+:} false; then :
22853 $as_echo_n "(cached) " >&6
22854else
22855 ac_func_search_save_LIBS=$LIBS
22856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857/* end confdefs.h. */
22858
22859/* Override any GCC internal prototype to avoid an error.
22860 Use char because int might match the return type of a GCC
22861 builtin and then its argument prototype would still apply. */
22862#ifdef __cplusplus
22863extern "C"
22864#endif
22865char ffi_call ();
22866int
22867main ()
22868{
22869return ffi_call ();
22870 ;
22871 return 0;
22872}
22873_ACEOF
22874for ac_lib in '' ffi; do
22875 if test -z "$ac_lib"; then
22876 ac_res="none required"
22877 else
22878 ac_res=-l$ac_lib
22879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22880 fi
22881 if ac_fn_cxx_try_link "$LINENO"; then :
22882 ac_cv_search_ffi_call=$ac_res
22883fi
22884rm -f core conftest.err conftest.$ac_objext \
22885 conftest$ac_exeext
22886 if ${ac_cv_search_ffi_call+:} false; then :
22887 break
22888fi
22889done
22890if ${ac_cv_search_ffi_call+:} false; then :
22891
22892else
22893 ac_cv_search_ffi_call=no
22894fi
22895rm conftest.$ac_ext
22896LIBS=$ac_func_search_save_LIBS
22897fi
22898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
22899$as_echo "$ac_cv_search_ffi_call" >&6; }
22900ac_res=$ac_cv_search_ffi_call
22901if test "$ac_res" != no; then :
22902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22903
22904fi
22905
22906 case $ac_cv_search_ffi_call in #(
22907 no) :
b66977f1
DWT
22908
22909
22910pkg_failed=no
7eda51e0
JF
22911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22912$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 22913
7eda51e0
JF
22914if test -n "$LIBFFI_CFLAGS"; then
22915 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
22916 elif test -n "$PKG_CONFIG"; then
22917 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22919 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22920 ac_status=$?
22921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22922 test $ac_status = 0; }; then
7eda51e0 22923 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 22924 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22925else
22926 pkg_failed=yes
22927fi
12833ad8
JF
22928 else
22929 pkg_failed=untried
b66977f1 22930fi
7eda51e0
JF
22931if test -n "$LIBFFI_LIBS"; then
22932 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
22933 elif test -n "$PKG_CONFIG"; then
22934 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22936 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22937 ac_status=$?
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }; then
7eda51e0 22940 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 22941 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22942else
22943 pkg_failed=yes
22944fi
12833ad8
JF
22945 else
22946 pkg_failed=untried
b66977f1
DWT
22947fi
22948
22949
22950
22951if test $pkg_failed = yes; then
12833ad8
JF
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953$as_echo "no" >&6; }
b66977f1
DWT
22954
22955if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22956 _pkg_short_errors_supported=yes
22957else
22958 _pkg_short_errors_supported=no
22959fi
22960 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22961 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 22962 else
83c6fec8 22963 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
22964 fi
22965 # Put the nasty error message in config.log where it belongs
7eda51e0 22966 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 22967
7eda51e0
JF
22968 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22969elif test $pkg_failed = untried; then
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22971$as_echo "no" >&6; }
22972 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 22973else
7eda51e0
JF
22974 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22975 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22977$as_echo "yes" >&6; }
b66977f1 22978
b66977f1 22979
7eda51e0 22980 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 22981 haveit=
d70419f1 22982 for x in $CPPFLAGS; do
7eda51e0
JF
22983
22984 acl_save_prefix="$prefix"
22985 prefix="$acl_final_prefix"
22986 acl_save_exec_prefix="$exec_prefix"
22987 exec_prefix="$acl_final_exec_prefix"
22988 eval x=\"$x\"
22989 exec_prefix="$acl_save_exec_prefix"
22990 prefix="$acl_save_prefix"
22991
22992 if test "X$x" = "X$element"; then
22993 haveit=yes
22994 break
22995 fi
22996 done
22997 if test -z "$haveit"; then
d70419f1 22998 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
22999 fi
23000 done
23001
23002
7eda51e0
JF
23003 for element in `$PKG_CONFIG --libs libffi`; do
23004 haveit=
23005 for x in $LIBS; do
23006
23007 acl_save_prefix="$prefix"
23008 prefix="$acl_final_prefix"
23009 acl_save_exec_prefix="$exec_prefix"
23010 exec_prefix="$acl_final_exec_prefix"
23011 eval x=\"$x\"
23012 exec_prefix="$acl_save_exec_prefix"
23013 prefix="$acl_save_prefix"
23014
23015 if test "X$x" = "X$element"; then
23016 haveit=yes
23017 break
23018 fi
23019 done
23020 if test -z "$haveit"; then
23021 LIBS="${LIBS}${LIBS:+ }$element"
23022 fi
23023 done
23024
23025
23026fi ;; #(
23027 *) :
23028 ;;
23029esac
574d4720
JF
23030 for ac_func in ffi_prep_cif_var
23031do :
23032 ac_fn_cxx_check_func "$LINENO" "ffi_prep_cif_var" "ac_cv_func_ffi_prep_cif_var"
23033if test "x$ac_cv_func_ffi_prep_cif_var" = xyes; then :
23034 cat >>confdefs.h <<_ACEOF
23035#define HAVE_FFI_PREP_CIF_VAR 1
23036_ACEOF
23037
23038fi
23039done
23040
7eda51e0
JF
23041
23042fi
296ee9a6
JF
23043 LTLIBFFI=$LIBS
23044 LIBS=$cy_save
23045
23046
7eda51e0 23047
def90846 23048
4930f387
JF
23049 cy_save=$LIBS
23050 LIBS=
23051
def90846
JF
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
23053$as_echo_n "checking for framework JavaVM... " >&6; }
23054if ${ac_cv_framework_JavaVM+:} false; then :
23055 $as_echo_n "(cached) " >&6
23056else
23057
23058 ac_check_framework_save_LIBS=$LIBS
23059 LIBS="-framework JavaVM $LIBS"
23060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061/* end confdefs.h. */
23062
23063 #include <JavaVM/jni.h>
23064
23065int
23066main ()
23067{
23068JNI_GetCreatedJavaVMs(NULL, 0, NULL);
23069 ;
23070 return 0;
23071}
23072_ACEOF
23073if ac_fn_cxx_try_link "$LINENO"; then :
23074
23075 ac_cv_framework_JavaVM=yes
23076
23077else
23078 ac_cv_framework_JavaVM=no
23079fi
23080rm -f core conftest.err conftest.$ac_objext \
23081 conftest$ac_exeext conftest.$ac_ext
23082 LIBS=$ac_check_framework_save_LIBS
23083
23084fi
23085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
23086$as_echo "$ac_cv_framework_JavaVM" >&6; }
23087 if test $ac_cv_framework_JavaVM = yes; then :
23088
23089
23090 for element in "-framework JavaVM"; do
23091 haveit=
23092 for x in $LIBS; do
23093
23094 acl_save_prefix="$prefix"
23095 prefix="$acl_final_prefix"
23096 acl_save_exec_prefix="$exec_prefix"
23097 exec_prefix="$acl_final_exec_prefix"
23098 eval x=\"$x\"
23099 exec_prefix="$acl_save_exec_prefix"
23100 prefix="$acl_save_prefix"
23101
23102 if test "X$x" = "X$element"; then
23103 haveit=yes
23104 break
23105 fi
23106 done
23107 if test -z "$haveit"; then
23108 LIBS="${LIBS}${LIBS:+ }$element"
23109 fi
23110 done
23111
23112
23113 CY_JAVA=1
23114
23115
23116
23117else
23118 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
39ed1631
JF
23119if test "x$ac_cv_header_jni_h" = xyes; then :
23120
23121 CY_JAVA=1
23122
4930f387 23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
39ed1631
JF
23124$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
23125if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23126 $as_echo_n "(cached) " >&6
23127else
23128 ac_func_search_save_LIBS=$LIBS
23129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130/* end confdefs.h. */
23131
23132/* Override any GCC internal prototype to avoid an error.
23133 Use char because int might match the return type of a GCC
23134 builtin and then its argument prototype would still apply. */
23135#ifdef __cplusplus
23136extern "C"
23137#endif
23138char JNI_GetCreatedJavaVMs ();
23139int
23140main ()
23141{
23142return JNI_GetCreatedJavaVMs ();
23143 ;
23144 return 0;
23145}
23146_ACEOF
23147for ac_lib in '' dvm; do
23148 if test -z "$ac_lib"; then
23149 ac_res="none required"
23150 else
23151 ac_res=-l$ac_lib
23152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23153 fi
23154 if ac_fn_cxx_try_link "$LINENO"; then :
23155 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
23156fi
23157rm -f core conftest.err conftest.$ac_objext \
23158 conftest$ac_exeext
23159 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23160 break
23161fi
23162done
23163if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23164
23165else
23166 ac_cv_search_JNI_GetCreatedJavaVMs=no
23167fi
23168rm conftest.$ac_ext
23169LIBS=$ac_func_search_save_LIBS
23170fi
23171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
23172$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
23173ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
23174if test "$ac_res" != no; then :
23175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23176
23177
23178fi
23179
39ed1631
JF
23180
23181else
23182
23183 CY_JAVA=0
23184
23185
23186fi
23187
23188
5f29ae16 23189fi
4930f387
JF
23190 LTJAVA=$LIBS
23191 LIBS=$cy_save
5f29ae16
JF
23192
23193
4930f387
JF
23194
23195
23196 cy_save=$LIBS
23197 LIBS=
23198
3b531dd5
JF
23199pkg_failed=no
23200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRUBY21" >&5
23201$as_echo_n "checking for LIBRUBY21... " >&6; }
23202
23203if test -n "$LIBRUBY21_CFLAGS"; then
23204 pkg_cv_LIBRUBY21_CFLAGS="$LIBRUBY21_CFLAGS"
23205 elif test -n "$PKG_CONFIG"; then
23206 if test -n "$PKG_CONFIG" && \
23207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-2.1\""; } >&5
23208 ($PKG_CONFIG --exists --print-errors "ruby-2.1") 2>&5
23209 ac_status=$?
23210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23211 test $ac_status = 0; }; then
23212 pkg_cv_LIBRUBY21_CFLAGS=`$PKG_CONFIG --cflags "ruby-2.1" 2>/dev/null`
23213 test "x$?" != "x0" && pkg_failed=yes
23214else
23215 pkg_failed=yes
23216fi
23217 else
23218 pkg_failed=untried
23219fi
23220if test -n "$LIBRUBY21_LIBS"; then
23221 pkg_cv_LIBRUBY21_LIBS="$LIBRUBY21_LIBS"
23222 elif test -n "$PKG_CONFIG"; then
23223 if test -n "$PKG_CONFIG" && \
23224 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-2.1\""; } >&5
23225 ($PKG_CONFIG --exists --print-errors "ruby-2.1") 2>&5
23226 ac_status=$?
23227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228 test $ac_status = 0; }; then
23229 pkg_cv_LIBRUBY21_LIBS=`$PKG_CONFIG --libs "ruby-2.1" 2>/dev/null`
23230 test "x$?" != "x0" && pkg_failed=yes
23231else
23232 pkg_failed=yes
23233fi
23234 else
23235 pkg_failed=untried
23236fi
23237
23238
23239
23240if test $pkg_failed = yes; then
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23242$as_echo "no" >&6; }
23243
23244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23245 _pkg_short_errors_supported=yes
23246else
23247 _pkg_short_errors_supported=no
23248fi
23249 if test $_pkg_short_errors_supported = yes; then
23250 LIBRUBY21_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ruby-2.1" 2>&1`
23251 else
23252 LIBRUBY21_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ruby-2.1" 2>&1`
23253 fi
23254 # Put the nasty error message in config.log where it belongs
23255 echo "$LIBRUBY21_PKG_ERRORS" >&5
23256
23257
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Ruby" >&5
23259$as_echo_n "checking for framework Ruby... " >&6; }
23260if ${ac_cv_framework_Ruby+:} false; then :
23261 $as_echo_n "(cached) " >&6
23262else
23263
23264 ac_check_framework_save_LIBS=$LIBS
23265 LIBS="-framework Ruby $LIBS"
23266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23267/* end confdefs.h. */
23268
23269 #include <Ruby/ruby.h>
23270
23271int
23272main ()
23273{
23274ruby_init();
23275 ;
23276 return 0;
23277}
23278_ACEOF
23279if ac_fn_cxx_try_link "$LINENO"; then :
23280
23281 ac_cv_framework_Ruby=yes
23282
23283else
23284 ac_cv_framework_Ruby=no
23285fi
23286rm -f core conftest.err conftest.$ac_objext \
23287 conftest$ac_exeext conftest.$ac_ext
23288 LIBS=$ac_check_framework_save_LIBS
23289
23290fi
23291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ruby" >&5
23292$as_echo "$ac_cv_framework_Ruby" >&6; }
23293 if test $ac_cv_framework_Ruby = yes; then :
23294
23295
23296 for element in "-framework Ruby"; do
23297 haveit=
23298 for x in $LIBS; do
23299
23300 acl_save_prefix="$prefix"
23301 prefix="$acl_final_prefix"
23302 acl_save_exec_prefix="$exec_prefix"
23303 exec_prefix="$acl_final_exec_prefix"
23304 eval x=\"$x\"
23305 exec_prefix="$acl_save_exec_prefix"
23306 prefix="$acl_save_prefix"
23307
23308 if test "X$x" = "X$element"; then
23309 haveit=yes
23310 break
23311 fi
23312 done
23313 if test -z "$haveit"; then
23314 LIBS="${LIBS}${LIBS:+ }$element"
23315 fi
23316 done
23317
23318
23319 CY_RUBY=1
23320
23321
23322
23323else
23324 for ac_header in ruby.h
23325do :
23326 ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
23327if test "x$ac_cv_header_ruby_h" = xyes; then :
23328 cat >>confdefs.h <<_ACEOF
23329#define HAVE_RUBY_H 1
23330_ACEOF
23331
23332 CY_RUBY=1
23333
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ruby_init" >&5
23335$as_echo_n "checking for library containing ruby_init... " >&6; }
23336if ${ac_cv_search_ruby_init+:} false; then :
23337 $as_echo_n "(cached) " >&6
23338else
23339 ac_func_search_save_LIBS=$LIBS
23340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23341/* end confdefs.h. */
23342
23343/* Override any GCC internal prototype to avoid an error.
23344 Use char because int might match the return type of a GCC
23345 builtin and then its argument prototype would still apply. */
23346#ifdef __cplusplus
23347extern "C"
23348#endif
23349char ruby_init ();
23350int
23351main ()
23352{
23353return ruby_init ();
23354 ;
23355 return 0;
23356}
23357_ACEOF
23358for ac_lib in '' ruby; do
23359 if test -z "$ac_lib"; then
23360 ac_res="none required"
23361 else
23362 ac_res=-l$ac_lib
23363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23364 fi
23365 if ac_fn_cxx_try_link "$LINENO"; then :
23366 ac_cv_search_ruby_init=$ac_res
23367fi
23368rm -f core conftest.err conftest.$ac_objext \
23369 conftest$ac_exeext
23370 if ${ac_cv_search_ruby_init+:} false; then :
23371 break
23372fi
23373done
23374if ${ac_cv_search_ruby_init+:} false; then :
23375
23376else
23377 ac_cv_search_ruby_init=no
23378fi
23379rm conftest.$ac_ext
23380LIBS=$ac_func_search_save_LIBS
23381fi
23382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ruby_init" >&5
23383$as_echo "$ac_cv_search_ruby_init" >&6; }
23384ac_res=$ac_cv_search_ruby_init
23385if test "$ac_res" != no; then :
23386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23387
23388
23389fi
23390
23391
23392else
23393
23394 CY_RUBY=0
23395
23396
23397fi
23398
23399done
23400
23401fi
23402elif test $pkg_failed = untried; then
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23404$as_echo "no" >&6; }
23405
5f29ae16
JF
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Ruby" >&5
23407$as_echo_n "checking for framework Ruby... " >&6; }
23408if ${ac_cv_framework_Ruby+:} false; then :
23409 $as_echo_n "(cached) " >&6
23410else
23411
23412 ac_check_framework_save_LIBS=$LIBS
23413 LIBS="-framework Ruby $LIBS"
23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415/* end confdefs.h. */
23416
23417 #include <Ruby/ruby.h>
23418
23419int
23420main ()
23421{
23422ruby_init();
23423 ;
23424 return 0;
23425}
23426_ACEOF
23427if ac_fn_cxx_try_link "$LINENO"; then :
23428
23429 ac_cv_framework_Ruby=yes
23430
23431else
23432 ac_cv_framework_Ruby=no
23433fi
23434rm -f core conftest.err conftest.$ac_objext \
23435 conftest$ac_exeext conftest.$ac_ext
23436 LIBS=$ac_check_framework_save_LIBS
23437
23438fi
23439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ruby" >&5
23440$as_echo "$ac_cv_framework_Ruby" >&6; }
23441 if test $ac_cv_framework_Ruby = yes; then :
23442
23443
23444 for element in "-framework Ruby"; do
23445 haveit=
23446 for x in $LIBS; do
23447
23448 acl_save_prefix="$prefix"
23449 prefix="$acl_final_prefix"
23450 acl_save_exec_prefix="$exec_prefix"
23451 exec_prefix="$acl_final_exec_prefix"
23452 eval x=\"$x\"
23453 exec_prefix="$acl_save_exec_prefix"
23454 prefix="$acl_save_prefix"
23455
23456 if test "X$x" = "X$element"; then
23457 haveit=yes
23458 break
23459 fi
23460 done
23461 if test -z "$haveit"; then
23462 LIBS="${LIBS}${LIBS:+ }$element"
23463 fi
23464 done
23465
23466
23467 CY_RUBY=1
23468
23469
23470
23471else
23472 for ac_header in ruby.h
23473do :
23474 ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
23475if test "x$ac_cv_header_ruby_h" = xyes; then :
23476 cat >>confdefs.h <<_ACEOF
23477#define HAVE_RUBY_H 1
23478_ACEOF
23479
23480 CY_RUBY=1
23481
4930f387 23482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ruby_init" >&5
5f29ae16
JF
23483$as_echo_n "checking for library containing ruby_init... " >&6; }
23484if ${ac_cv_search_ruby_init+:} false; then :
23485 $as_echo_n "(cached) " >&6
23486else
23487 ac_func_search_save_LIBS=$LIBS
23488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23489/* end confdefs.h. */
23490
23491/* Override any GCC internal prototype to avoid an error.
23492 Use char because int might match the return type of a GCC
23493 builtin and then its argument prototype would still apply. */
23494#ifdef __cplusplus
23495extern "C"
23496#endif
23497char ruby_init ();
23498int
23499main ()
23500{
23501return ruby_init ();
23502 ;
23503 return 0;
23504}
23505_ACEOF
23506for ac_lib in '' ruby; do
23507 if test -z "$ac_lib"; then
23508 ac_res="none required"
23509 else
23510 ac_res=-l$ac_lib
23511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23512 fi
23513 if ac_fn_cxx_try_link "$LINENO"; then :
23514 ac_cv_search_ruby_init=$ac_res
23515fi
23516rm -f core conftest.err conftest.$ac_objext \
23517 conftest$ac_exeext
23518 if ${ac_cv_search_ruby_init+:} false; then :
23519 break
23520fi
23521done
23522if ${ac_cv_search_ruby_init+:} false; then :
23523
23524else
23525 ac_cv_search_ruby_init=no
23526fi
23527rm conftest.$ac_ext
23528LIBS=$ac_func_search_save_LIBS
23529fi
23530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ruby_init" >&5
23531$as_echo "$ac_cv_search_ruby_init" >&6; }
23532ac_res=$ac_cv_search_ruby_init
23533if test "$ac_res" != no; then :
23534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23535
5f29ae16 23536
4930f387 23537fi
5f29ae16
JF
23538
23539
23540else
23541
23542 CY_RUBY=0
23543
23544
23545fi
23546
23547done
23548
3b531dd5
JF
23549fi
23550else
23551 LIBRUBY21_CFLAGS=$pkg_cv_LIBRUBY21_CFLAGS
23552 LIBRUBY21_LIBS=$pkg_cv_LIBRUBY21_LIBS
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23554$as_echo "yes" >&6; }
23555
23556 CY_RUBY=1
23557
23558
23559 for element in `$PKG_CONFIG --cflags ruby-2.1`; do
23560 haveit=
23561 for x in $CPPFLAGS; do
23562
23563 acl_save_prefix="$prefix"
23564 prefix="$acl_final_prefix"
23565 acl_save_exec_prefix="$exec_prefix"
23566 exec_prefix="$acl_final_exec_prefix"
23567 eval x=\"$x\"
23568 exec_prefix="$acl_save_exec_prefix"
23569 prefix="$acl_save_prefix"
23570
23571 if test "X$x" = "X$element"; then
23572 haveit=yes
23573 break
23574 fi
23575 done
23576 if test -z "$haveit"; then
23577 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23578 fi
23579 done
23580
23581
23582 for element in `$PKG_CONFIG --libs ruby-2.1`; do
23583 haveit=
23584 for x in $LIBS; do
23585
23586 acl_save_prefix="$prefix"
23587 prefix="$acl_final_prefix"
23588 acl_save_exec_prefix="$exec_prefix"
23589 exec_prefix="$acl_final_exec_prefix"
23590 eval x=\"$x\"
23591 exec_prefix="$acl_save_exec_prefix"
23592 prefix="$acl_save_prefix"
23593
23594 if test "X$x" = "X$element"; then
23595 haveit=yes
23596 break
23597 fi
23598 done
23599 if test -z "$haveit"; then
23600 LIBS="${LIBS}${LIBS:+ }$element"
23601 fi
23602 done
23603
23604
def90846 23605fi
4930f387
JF
23606 LTRUBY=$LIBS
23607 LIBS=$cy_save
23608
23609
39ed1631 23610
7eda51e0
JF
23611 ac_ext=mm
23612ac_cpp='$OBJCXXCPP $CPPFLAGS'
23613ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23614ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23615ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
23616
23617
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
23619$as_echo_n "checking if we really have Objective C++... " >&6; }
23620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23621/* end confdefs.h. */
23622
23623_ACEOF
23624if ac_fn_objcxx_try_compile "$LINENO"; then :
23625
23626 CY_OBJECTIVEC=1
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23628$as_echo "yes" >&6; }
23629
23630else
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 23632$as_echo "no" >&6; }
7eda51e0
JF
23633fi
23634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 23635
7eda51e0 23636 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 23637
7eda51e0 23638
babf7fe8
JF
23639 cy_save=$LIBS
23640 LIBS=
23641
7eda51e0
JF
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
23643$as_echo_n "checking for framework CoreFoundation... " >&6; }
23644if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
23645 $as_echo_n "(cached) " >&6
23646else
23647
23648 ac_check_framework_save_LIBS=$LIBS
7eda51e0 23649 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
23650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23651/* end confdefs.h. */
23652
7eda51e0 23653 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
23654
23655int
23656main ()
23657{
7eda51e0 23658CFAllocatorGetDefault();
b66977f1
DWT
23659 ;
23660 return 0;
23661}
23662_ACEOF
7eda51e0 23663if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 23664
7eda51e0 23665 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
23666
23667else
7eda51e0 23668 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
23669fi
23670rm -f core conftest.err conftest.$ac_objext \
23671 conftest$ac_exeext conftest.$ac_ext
23672 LIBS=$ac_check_framework_save_LIBS
23673
23674fi
7eda51e0
JF
23675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
23676$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
23677 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
23678
23679
7eda51e0 23680 for element in "-framework CoreFoundation"; do
b66977f1
DWT
23681 haveit=
23682 for x in $LIBS; do
23683
23684 acl_save_prefix="$prefix"
23685 prefix="$acl_final_prefix"
23686 acl_save_exec_prefix="$exec_prefix"
23687 exec_prefix="$acl_final_exec_prefix"
23688 eval x=\"$x\"
23689 exec_prefix="$acl_save_exec_prefix"
23690 prefix="$acl_save_prefix"
23691
23692 if test "X$x" = "X$element"; then
23693 haveit=yes
23694 break
23695 fi
23696 done
23697 if test -z "$haveit"; then
23698 LIBS="${LIBS}${LIBS:+ }$element"
23699 fi
23700 done
23701
66170b30 23702
66170b30
JF
23703
23704
b66977f1 23705
b66977f1 23706
7eda51e0
JF
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
23708$as_echo_n "checking for framework Foundation... " >&6; }
23709if ${ac_cv_framework_Foundation+:} false; then :
23710 $as_echo_n "(cached) " >&6
b66977f1 23711else
b66977f1 23712
7eda51e0
JF
23713 ac_check_framework_save_LIBS=$LIBS
23714 LIBS="-framework Foundation $LIBS"
23715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23716/* end confdefs.h. */
66170b30 23717
7eda51e0 23718 #include <Foundation/NSObject.h>
b66977f1 23719
7eda51e0
JF
23720int
23721main ()
23722{
23723[[NSObject alloc] init];
23724 ;
23725 return 0;
23726}
23727_ACEOF
23728if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 23729
7eda51e0 23730 ac_cv_framework_Foundation=yes
b66977f1 23731
7eda51e0
JF
23732else
23733 ac_cv_framework_Foundation=no
23734fi
23735rm -f core conftest.err conftest.$ac_objext \
23736 conftest$ac_exeext conftest.$ac_ext
23737 LIBS=$ac_check_framework_save_LIBS
23738
23739fi
23740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
23741$as_echo "$ac_cv_framework_Foundation" >&6; }
23742 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
23743
23744
7eda51e0 23745 for element in "-framework Foundation"; do
b66977f1
DWT
23746 haveit=
23747 for x in $LIBS; do
23748
23749 acl_save_prefix="$prefix"
23750 prefix="$acl_final_prefix"
23751 acl_save_exec_prefix="$exec_prefix"
23752 exec_prefix="$acl_final_exec_prefix"
23753 eval x=\"$x\"
23754 exec_prefix="$acl_save_exec_prefix"
23755 prefix="$acl_save_prefix"
23756
23757 if test "X$x" = "X$element"; then
23758 haveit=yes
23759 break
23760 fi
23761 done
23762 if test -z "$haveit"; then
23763 LIBS="${LIBS}${LIBS:+ }$element"
23764 fi
23765 done
23766
7eda51e0
JF
23767 cat >>confdefs.h <<_ACEOF
23768#define HAVE_FRAMEWORK_FOUNDATION 1
23769_ACEOF
23770
b66977f1 23771
7eda51e0 23772fi
b66977f1
DWT
23773
23774
7eda51e0 23775else
b66977f1 23776
b66977f1 23777
7eda51e0
JF
23778 for ac_prog in gnustep-config
23779do
23780 # Extract the first word of "$ac_prog", so it can be a program name with args.
23781set dummy $ac_prog; ac_word=$2
23782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23783$as_echo_n "checking for $ac_word... " >&6; }
23784if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
23785 $as_echo_n "(cached) " >&6
b66977f1 23786else
7eda51e0
JF
23787 if test -n "$GNUSTEP_CONFIG"; then
23788 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 23789else
7eda51e0
JF
23790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23791for as_dir in $PATH
23792do
23793 IFS=$as_save_IFS
23794 test -z "$as_dir" && as_dir=.
23795 for ac_exec_ext in '' $ac_executable_extensions; do
23796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23797 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
23798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23799 break 2
23800 fi
23801done
23802 done
23803IFS=$as_save_IFS
b66977f1 23804
b66977f1 23805fi
b66977f1 23806fi
7eda51e0
JF
23807GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
23808if test -n "$GNUSTEP_CONFIG"; then
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
23810$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 23811else
7eda51e0 23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 23813$as_echo "no" >&6; }
b66977f1 23814fi
66170b30 23815
66170b30 23816
7eda51e0
JF
23817 test -n "$GNUSTEP_CONFIG" && break
23818done
b66977f1 23819
b66977f1 23820
7eda51e0 23821 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 23822
b66977f1
DWT
23823
23824
7eda51e0 23825 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 23826 haveit=
7eda51e0 23827 for x in $OBJCXXFLAGS; do
b66977f1
DWT
23828
23829 acl_save_prefix="$prefix"
23830 prefix="$acl_final_prefix"
23831 acl_save_exec_prefix="$exec_prefix"
23832 exec_prefix="$acl_final_exec_prefix"
23833 eval x=\"$x\"
23834 exec_prefix="$acl_save_exec_prefix"
23835 prefix="$acl_save_prefix"
23836
23837 if test "X$x" = "X$element"; then
23838 haveit=yes
23839 break
23840 fi
23841 done
babf7fe8
JF
23842 if test -z "$haveit"; then
23843 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
23844 fi
23845 done
a667869d 23846
a667869d 23847
babf7fe8 23848 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 23849 haveit=
babf7fe8 23850 for x in $LIBS; do
a667869d 23851
632b71ea
DWT
23852 acl_save_prefix="$prefix"
23853 prefix="$acl_final_prefix"
23854 acl_save_exec_prefix="$exec_prefix"
23855 exec_prefix="$acl_final_exec_prefix"
23856 eval x=\"$x\"
23857 exec_prefix="$acl_save_exec_prefix"
23858 prefix="$acl_save_prefix"
23859
23860 if test "X$x" = "X$element"; then
23861 haveit=yes
23862 break
23863 fi
23864 done
23865 if test -z "$haveit"; then
babf7fe8 23866 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
23867 fi
23868 done
23869
5053a6d1 23870
babf7fe8
JF
23871else
23872 CY_OBJECTIVEC=0
23873
23874fi
23875
23876fi
23877 LTOBJECTIVEC=$LIBS
23878 LIBS=$cy_save
23879
23880
23881
23882fi
23883
23884 ac_ext=cpp
23885ac_cpp='$CXXCPP $CPPFLAGS'
23886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23889
23890 ;; #(
23891 *) :
23892 ;;
23893esac
23894
39ed1631
JF
23895 if test "x$CY_JAVA" = x1; then
23896 CY_JAVA_TRUE=
23897 CY_JAVA_FALSE='#'
23898else
23899 CY_JAVA_TRUE='#'
23900 CY_JAVA_FALSE=
23901fi
23902
5f29ae16
JF
23903 if test "x$CY_RUBY" = x1; then
23904 CY_RUBY_TRUE=
23905 CY_RUBY_FALSE='#'
23906else
23907 CY_RUBY_TRUE='#'
23908 CY_RUBY_FALSE=
23909fi
23910
babf7fe8
JF
23911 if test "x$CY_OBJECTIVEC" = x1; then
23912 CY_OBJECTIVEC_TRUE=
23913 CY_OBJECTIVEC_FALSE='#'
23914else
23915 CY_OBJECTIVEC_TRUE='#'
23916 CY_OBJECTIVEC_FALSE=
23917fi
23918
23919
23920
8d20f0f1
JF
23921# Check whether --with-libclang was given.
23922if test "${with_libclang+set}" = set; then :
23923 withval=$with_libclang;
23924else
23925 with_libclang=no
23926fi
23927
23928
23929if test "x$with_libclang" != "xno"; then :
23930
23931 CY_LIBCLANG="$with_libclang"
23932
23933fi
23934 if test "x$with_libclang" != "xno"; then
23935 CY_PRELINK_TRUE=
23936 CY_PRELINK_FALSE='#'
23937else
23938 CY_PRELINK_TRUE='#'
23939 CY_PRELINK_FALSE=
23940fi
23941
23942
23943
babf7fe8
JF
23944 cy_save=$LIBS
23945 LIBS=
23946
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
23948$as_echo_n "checking for a readline compatible library... " >&6; }
23949if ${ax_cv_lib_readline+:} false; then :
5053a6d1 23950 $as_echo_n "(cached) " >&6
a667869d 23951else
632b71ea 23952
babf7fe8
JF
23953 ORIG_LIBS="$LIBS"
23954 for readline_lib in readline edit editline; do
23955 for termcap_lib in "" termcap curses ncurses; do
23956 if test -z "$termcap_lib"; then
23957 TRY_LIB="-l$readline_lib"
23958 else
23959 TRY_LIB="-l$readline_lib -l$termcap_lib"
23960 fi
23961 LIBS="$ORIG_LIBS $TRY_LIB"
23962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 23963/* end confdefs.h. */
632b71ea 23964
babf7fe8
JF
23965/* Override any GCC internal prototype to avoid an error.
23966 Use char because int might match the return type of a GCC
23967 builtin and then its argument prototype would still apply. */
23968#ifdef __cplusplus
23969extern "C"
23970#endif
23971char readline ();
5053a6d1
DWT
23972int
23973main ()
23974{
babf7fe8 23975return readline ();
5053a6d1
DWT
23976 ;
23977 return 0;
23978}
23979_ACEOF
babf7fe8
JF
23980if ac_fn_cxx_try_link "$LINENO"; then :
23981 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
23982fi
23983rm -f core conftest.err conftest.$ac_objext \
23984 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
23985 if test -n "$ax_cv_lib_readline"; then
23986 break
23987 fi
23988 done
23989 if test -n "$ax_cv_lib_readline"; then
23990 break
23991 fi
23992 done
23993 if test -z "$ax_cv_lib_readline"; then
23994 ax_cv_lib_readline="no"
23995 fi
23996 LIBS="$ORIG_LIBS"
23997
23998fi
23999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
24000$as_echo "$ax_cv_lib_readline" >&6; }
24001
24002 if test "$ax_cv_lib_readline" != "no"; then
24003 LIBS="$LIBS $ax_cv_lib_readline"
24004
24005$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
24006
24007 for ac_header in readline.h readline/readline.h
24008do :
24009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24010ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24011if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24012 cat >>confdefs.h <<_ACEOF
24013#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24014_ACEOF
24015
24016fi
24017
24018done
24019
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
24021$as_echo_n "checking whether readline supports history... " >&6; }
24022if ${ax_cv_lib_readline_history+:} false; then :
24023 $as_echo_n "(cached) " >&6
24024else
24025
24026 ax_cv_lib_readline_history="no"
7eda51e0
JF
24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028/* end confdefs.h. */
5053a6d1 24029
babf7fe8
JF
24030/* Override any GCC internal prototype to avoid an error.
24031 Use char because int might match the return type of a GCC
24032 builtin and then its argument prototype would still apply. */
24033#ifdef __cplusplus
24034extern "C"
24035#endif
24036char add_history ();
058f1bc8
DWT
24037int
24038main ()
24039{
babf7fe8 24040return add_history ();
058f1bc8
DWT
24041 ;
24042 return 0;
24043}
24044_ACEOF
babf7fe8
JF
24045if ac_fn_cxx_try_link "$LINENO"; then :
24046 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
24047fi
24048rm -f core conftest.err conftest.$ac_objext \
24049 conftest$ac_exeext conftest.$ac_ext
a667869d 24050
a667869d 24051fi
babf7fe8
JF
24052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
24053$as_echo "$ax_cv_lib_readline_history" >&6; }
24054 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 24055
babf7fe8 24056$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 24057
babf7fe8
JF
24058 for ac_header in history.h readline/history.h
24059do :
24060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24061ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24062if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24063 cat >>confdefs.h <<_ACEOF
24064#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 24065_ACEOF
babf7fe8 24066
7eda51e0 24067fi
058f1bc8 24068
babf7fe8 24069done
058f1bc8 24070
babf7fe8 24071 fi
7eda51e0 24072 fi
058f1bc8 24073
babf7fe8
JF
24074 LTLIBREADLINE=$LIBS
24075 LIBS=$cy_save
058f1bc8 24076
058f1bc8 24077
babf7fe8
JF
24078case $ax_cv_lib_readline in #(
24079 no) :
24080 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
24081 *) :
24082 ;;
24083esac
058f1bc8
DWT
24084
24085
babf7fe8
JF
24086 cy_save=$LIBS
24087 LIBS=
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
24089$as_echo_n "checking for library containing cur_term... " >&6; }
24090if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
24091 $as_echo_n "(cached) " >&6
24092else
babf7fe8
JF
24093 ac_func_search_save_LIBS=$LIBS
24094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
24095/* end confdefs.h. */
24096
babf7fe8
JF
24097/* Override any GCC internal prototype to avoid an error.
24098 Use char because int might match the return type of a GCC
24099 builtin and then its argument prototype would still apply. */
7eda51e0 24100#ifdef __cplusplus
babf7fe8 24101extern "C"
7eda51e0 24102#endif
babf7fe8 24103char cur_term ();
7eda51e0
JF
24104int
24105main ()
24106{
babf7fe8 24107return cur_term ();
7eda51e0
JF
24108 ;
24109 return 0;
24110}
24111_ACEOF
a93f15c0 24112for ac_lib in '' termcap ncurses; do
babf7fe8
JF
24113 if test -z "$ac_lib"; then
24114 ac_res="none required"
24115 else
24116 ac_res=-l$ac_lib
24117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24118 fi
24119 if ac_fn_cxx_try_link "$LINENO"; then :
24120 ac_cv_search_cur_term=$ac_res
7eda51e0 24121fi
babf7fe8
JF
24122rm -f core conftest.err conftest.$ac_objext \
24123 conftest$ac_exeext
24124 if ${ac_cv_search_cur_term+:} false; then :
24125 break
7eda51e0 24126fi
babf7fe8
JF
24127done
24128if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 24129
babf7fe8
JF
24130else
24131 ac_cv_search_cur_term=no
24132fi
24133rm conftest.$ac_ext
24134LIBS=$ac_func_search_save_LIBS
24135fi
24136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
24137$as_echo "$ac_cv_search_cur_term" >&6; }
24138ac_res=$ac_cv_search_cur_term
24139if test "$ac_res" != no; then :
24140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 24141
babf7fe8 24142fi
058f1bc8 24143
babf7fe8
JF
24144 LTLIBTERMCAP=$LIBS
24145 LIBS=$cy_save
058f1bc8 24146
058f1bc8 24147
66170b30
JF
24148
24149
3615a2f7
JF
24150
24151
9777bd50
JF
24152SO=$acl_shlibext
24153
e1cce270 24154
a243b558
JF
24155ac_config_files="$ac_config_files Makefile"
24156
9c60689e
DWT
24157cat >confcache <<\_ACEOF
24158# This file is a shell script that caches the results of configure
24159# tests run on this system so they can be shared between configure
24160# scripts and configure runs, see configure's option --config-cache.
24161# It is not useful on other systems. If it contains results you don't
24162# want to keep, you may remove or edit it.
24163#
24164# config.status only pays attention to the cache file if you give it
24165# the --recheck option to rerun configure.
24166#
24167# `ac_cv_env_foo' variables (set or unset) will be overridden when
24168# loading this file, other *unset* `ac_cv_foo' will be assigned the
24169# following values.
24170
24171_ACEOF
24172
24173# The following way of writing the cache mishandles newlines in values,
24174# but we know of no workaround that is simple, portable, and efficient.
24175# So, we kill variables containing newlines.
24176# Ultrix sh set writes to stderr and can't be redirected directly,
24177# and sets the high bit in the cache file unless we assign to the vars.
24178(
24179 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24180 eval ac_val=\$$ac_var
24181 case $ac_val in #(
24182 *${as_nl}*)
24183 case $ac_var in #(
24184 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24185$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24186 esac
24187 case $ac_var in #(
24188 _ | IFS | as_nl) ;; #(
24189 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24190 *) { eval $ac_var=; unset $ac_var;} ;;
24191 esac ;;
24192 esac
24193 done
24194
24195 (set) 2>&1 |
24196 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24197 *${as_nl}ac_space=\ *)
24198 # `set' does not quote correctly, so add quotes: double-quote
24199 # substitution turns \\\\ into \\, and sed turns \\ into \.
24200 sed -n \
24201 "s/'/'\\\\''/g;
24202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24203 ;; #(
24204 *)
24205 # `set' quotes correctly as required by POSIX, so do not add quotes.
24206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24207 ;;
24208 esac |
24209 sort
24210) |
24211 sed '
24212 /^ac_cv_env_/b end
24213 t clear
24214 :clear
24215 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24216 t end
24217 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24218 :end' >>confcache
24219if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24220 if test -w "$cache_file"; then
ee134472 24221 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24223$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
24224 if test ! -f "$cache_file" || test -h "$cache_file"; then
24225 cat confcache >"$cache_file"
24226 else
24227 case $cache_file in #(
24228 */* | ?:*)
24229 mv -f confcache "$cache_file"$$ &&
24230 mv -f "$cache_file"$$ "$cache_file" ;; #(
24231 *)
24232 mv -f confcache "$cache_file" ;;
24233 esac
24234 fi
24235 fi
9c60689e
DWT
24236 else
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24238$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24239 fi
24240fi
24241rm -f confcache
24242
24243test "x$prefix" = xNONE && prefix=$ac_default_prefix
24244# Let make expand exec_prefix.
24245test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24246
296ee9a6 24247DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
24248
24249ac_libobjs=
24250ac_ltlibobjs=
12833ad8 24251U=
9c60689e
DWT
24252for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24253 # 1. Remove the extension, and $U if already installed.
24254 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24255 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24256 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24257 # will be set to the directory where LIBOBJS objects are built.
24258 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24259 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24260done
24261LIBOBJS=$ac_libobjs
24262
24263LTLIBOBJS=$ac_ltlibobjs
24264
24265
66170b30
JF
24266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24267$as_echo_n "checking that generated files are newer than configure... " >&6; }
24268 if test -n "$am_sleep_pid"; then
24269 # Hide warnings about reused PIDs.
24270 wait $am_sleep_pid 2>/dev/null
24271 fi
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24273$as_echo "done" >&6; }
24274 if test -n "$EXEEXT"; then
24275 am__EXEEXT_TRUE=
24276 am__EXEEXT_FALSE='#'
24277else
24278 am__EXEEXT_TRUE='#'
24279 am__EXEEXT_FALSE=
24280fi
24281
babf7fe8
JF
24282if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24283 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24284Usually this means the macro was only invoked conditionally." "$LINENO" 5
24285fi
66170b30
JF
24286if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24287 as_fn_error $? "conditional \"AMDEP\" was never defined.
24288Usually this means the macro was only invoked conditionally." "$LINENO" 5
24289fi
a93f15c0
JF
24290if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24291 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24292Usually this means the macro was only invoked conditionally." "$LINENO" 5
24293fi
66170b30
JF
24294if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24295 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24296Usually this means the macro was only invoked conditionally." "$LINENO" 5
24297fi
24298if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
24299 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
24300Usually this means the macro was only invoked conditionally." "$LINENO" 5
24301fi
8d20f0f1
JF
24302if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24303 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24304Usually this means the macro was only invoked conditionally." "$LINENO" 5
24305fi
24306if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24307 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24308Usually this means the macro was only invoked conditionally." "$LINENO" 5
24309fi
a93f15c0
JF
24310if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
24311 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
24312Usually this means the macro was only invoked conditionally." "$LINENO" 5
24313fi
a4287117
JF
24314if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
24315 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
24316Usually this means the macro was only invoked conditionally." "$LINENO" 5
24317fi
a243b558
JF
24318if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
24319 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
24320Usually this means the macro was only invoked conditionally." "$LINENO" 5
24321fi
39ed1631
JF
24322if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
24323 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
24324Usually this means the macro was only invoked conditionally." "$LINENO" 5
24325fi
5f29ae16
JF
24326if test -z "${CY_RUBY_TRUE}" && test -z "${CY_RUBY_FALSE}"; then
24327 as_fn_error $? "conditional \"CY_RUBY\" was never defined.
24328Usually this means the macro was only invoked conditionally." "$LINENO" 5
24329fi
a243b558
JF
24330if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
24331 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
24332Usually this means the macro was only invoked conditionally." "$LINENO" 5
24333fi
8d20f0f1
JF
24334if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then
24335 as_fn_error $? "conditional \"CY_PRELINK\" was never defined.
24336Usually this means the macro was only invoked conditionally." "$LINENO" 5
24337fi
9c60689e 24338
ee134472 24339: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
24340ac_write_fail=0
24341ac_clean_files_save=$ac_clean_files
24342ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24343{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24344$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24345as_write_fail=0
24346cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24347#! $SHELL
24348# Generated by $as_me.
24349# Run this file to recreate the current configuration.
24350# Compiler output produced by configure, useful for debugging
24351# configure, is in config.log if it exists.
24352
24353debug=false
24354ac_cs_recheck=false
24355ac_cs_silent=false
24356
24357SHELL=\${CONFIG_SHELL-$SHELL}
24358export SHELL
24359_ASEOF
24360cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24361## -------------------- ##
24362## M4sh Initialization. ##
24363## -------------------- ##
24364
24365# Be more Bourne compatible
24366DUALCASE=1; export DUALCASE # for MKS sh
24367if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24368 emulate sh
24369 NULLCMD=:
24370 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24371 # is contrary to our usage. Disable this feature.
24372 alias -g '${1+"$@"}'='"$@"'
24373 setopt NO_GLOB_SUBST
24374else
24375 case `(set -o) 2>/dev/null` in #(
24376 *posix*) :
24377 set -o posix ;; #(
24378 *) :
24379 ;;
24380esac
24381fi
24382
24383
24384as_nl='
24385'
24386export as_nl
24387# Printing a long string crashes Solaris 7 /usr/bin/printf.
24388as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24390as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24391# Prefer a ksh shell builtin over an external printf program on Solaris,
24392# but without wasting forks for bash or zsh.
24393if test -z "$BASH_VERSION$ZSH_VERSION" \
24394 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24395 as_echo='print -r --'
24396 as_echo_n='print -rn --'
24397elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24398 as_echo='printf %s\n'
24399 as_echo_n='printf %s'
24400else
24401 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24402 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24403 as_echo_n='/usr/ucb/echo -n'
24404 else
24405 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24406 as_echo_n_body='eval
24407 arg=$1;
24408 case $arg in #(
24409 *"$as_nl"*)
24410 expr "X$arg" : "X\\(.*\\)$as_nl";
24411 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24412 esac;
24413 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24414 '
24415 export as_echo_n_body
24416 as_echo_n='sh -c $as_echo_n_body as_echo'
24417 fi
24418 export as_echo_body
24419 as_echo='sh -c $as_echo_body as_echo'
24420fi
24421
24422# The user is always right.
24423if test "${PATH_SEPARATOR+set}" != set; then
24424 PATH_SEPARATOR=:
24425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24427 PATH_SEPARATOR=';'
24428 }
24429fi
24430
24431
24432# IFS
24433# We need space, tab and new line, in precisely that order. Quoting is
24434# there to prevent editors from complaining about space-tab.
24435# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24436# splitting by setting IFS to empty value.)
24437IFS=" "" $as_nl"
24438
24439# Find who we are. Look in the path if we contain no directory separator.
ee134472 24440as_myself=
9c60689e
DWT
24441case $0 in #((
24442 *[\\/]* ) as_myself=$0 ;;
24443 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24444for as_dir in $PATH
24445do
24446 IFS=$as_save_IFS
24447 test -z "$as_dir" && as_dir=.
24448 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24449 done
24450IFS=$as_save_IFS
24451
24452 ;;
24453esac
24454# We did not find ourselves, most probably we were run as `sh COMMAND'
24455# in which case we are not to be found in the path.
24456if test "x$as_myself" = x; then
24457 as_myself=$0
24458fi
24459if test ! -f "$as_myself"; then
24460 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24461 exit 1
24462fi
24463
24464# Unset variables that we do not need and which cause bugs (e.g. in
24465# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24466# suppresses any "Segmentation fault" message there. '((' could
24467# trigger a bug in pdksh 5.2.14.
24468for as_var in BASH_ENV ENV MAIL MAILPATH
24469do eval test x\${$as_var+set} = xset \
24470 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24471done
24472PS1='$ '
24473PS2='> '
24474PS4='+ '
24475
24476# NLS nuisances.
24477LC_ALL=C
24478export LC_ALL
24479LANGUAGE=C
24480export LANGUAGE
24481
24482# CDPATH.
24483(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24484
24485
12833ad8
JF
24486# as_fn_error STATUS ERROR [LINENO LOG_FD]
24487# ----------------------------------------
9c60689e
DWT
24488# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24489# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 24490# script with STATUS, using 1 if that was 0.
9c60689e
DWT
24491as_fn_error ()
24492{
12833ad8
JF
24493 as_status=$1; test $as_status -eq 0 && as_status=1
24494 if test "$4"; then
24495 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24496 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 24497 fi
12833ad8 24498 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
24499 as_fn_exit $as_status
24500} # as_fn_error
24501
24502
24503# as_fn_set_status STATUS
24504# -----------------------
24505# Set $? to STATUS, without forking.
24506as_fn_set_status ()
24507{
24508 return $1
24509} # as_fn_set_status
24510
24511# as_fn_exit STATUS
24512# -----------------
24513# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24514as_fn_exit ()
24515{
24516 set +e
24517 as_fn_set_status $1
24518 exit $1
24519} # as_fn_exit
24520
24521# as_fn_unset VAR
24522# ---------------
24523# Portably unset VAR.
24524as_fn_unset ()
24525{
24526 { eval $1=; unset $1;}
24527}
24528as_unset=as_fn_unset
24529# as_fn_append VAR VALUE
24530# ----------------------
24531# Append the text in VALUE to the end of the definition contained in VAR. Take
24532# advantage of any shell optimizations that allow amortized linear growth over
24533# repeated appends, instead of the typical quadratic growth present in naive
24534# implementations.
24535if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24536 eval 'as_fn_append ()
24537 {
24538 eval $1+=\$2
24539 }'
24540else
24541 as_fn_append ()
24542 {
24543 eval $1=\$$1\$2
24544 }
24545fi # as_fn_append
24546
24547# as_fn_arith ARG...
24548# ------------------
24549# Perform arithmetic evaluation on the ARGs, and store the result in the
24550# global $as_val. Take advantage of shells that can avoid forks. The arguments
24551# must be portable across $(()) and expr.
24552if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24553 eval 'as_fn_arith ()
24554 {
24555 as_val=$(( $* ))
24556 }'
24557else
24558 as_fn_arith ()
24559 {
24560 as_val=`expr "$@" || test $? -eq 1`
24561 }
24562fi # as_fn_arith
24563
24564
24565if expr a : '\(a\)' >/dev/null 2>&1 &&
24566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24567 as_expr=expr
24568else
24569 as_expr=false
24570fi
24571
24572if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24573 as_basename=basename
24574else
24575 as_basename=false
24576fi
24577
24578if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24579 as_dirname=dirname
24580else
24581 as_dirname=false
24582fi
24583
24584as_me=`$as_basename -- "$0" ||
24585$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24586 X"$0" : 'X\(//\)$' \| \
24587 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24588$as_echo X/"$0" |
24589 sed '/^.*\/\([^/][^/]*\)\/*$/{
24590 s//\1/
24591 q
24592 }
24593 /^X\/\(\/\/\)$/{
24594 s//\1/
24595 q
24596 }
24597 /^X\/\(\/\).*/{
24598 s//\1/
24599 q
24600 }
24601 s/.*/./; q'`
24602
24603# Avoid depending upon Character Ranges.
24604as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24605as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24606as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24607as_cr_digits='0123456789'
24608as_cr_alnum=$as_cr_Letters$as_cr_digits
24609
24610ECHO_C= ECHO_N= ECHO_T=
24611case `echo -n x` in #(((((
24612-n*)
24613 case `echo 'xy\c'` in
24614 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24615 xy) ECHO_C='\c';;
24616 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24617 ECHO_T=' ';;
24618 esac;;
24619*)
24620 ECHO_N='-n';;
24621esac
24622
24623rm -f conf$$ conf$$.exe conf$$.file
24624if test -d conf$$.dir; then
24625 rm -f conf$$.dir/conf$$.file
24626else
24627 rm -f conf$$.dir
24628 mkdir conf$$.dir 2>/dev/null
24629fi
24630if (echo >conf$$.file) 2>/dev/null; then
24631 if ln -s conf$$.file conf$$ 2>/dev/null; then
24632 as_ln_s='ln -s'
24633 # ... but there are two gotchas:
24634 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24635 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 24636 # In both cases, we have to default to `cp -pR'.
9c60689e 24637 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 24638 as_ln_s='cp -pR'
9c60689e
DWT
24639 elif ln conf$$.file conf$$ 2>/dev/null; then
24640 as_ln_s=ln
24641 else
53ba6704 24642 as_ln_s='cp -pR'
9c60689e
DWT
24643 fi
24644else
53ba6704 24645 as_ln_s='cp -pR'
9c60689e
DWT
24646fi
24647rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24648rmdir conf$$.dir 2>/dev/null
24649
24650
24651# as_fn_mkdir_p
24652# -------------
24653# Create "$as_dir" as a directory, including parents if necessary.
24654as_fn_mkdir_p ()
24655{
24656
24657 case $as_dir in #(
24658 -*) as_dir=./$as_dir;;
24659 esac
24660 test -d "$as_dir" || eval $as_mkdir_p || {
24661 as_dirs=
24662 while :; do
24663 case $as_dir in #(
24664 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24665 *) as_qdir=$as_dir;;
24666 esac
24667 as_dirs="'$as_qdir' $as_dirs"
24668 as_dir=`$as_dirname -- "$as_dir" ||
24669$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24670 X"$as_dir" : 'X\(//\)[^/]' \| \
24671 X"$as_dir" : 'X\(//\)$' \| \
24672 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24673$as_echo X"$as_dir" |
24674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24675 s//\1/
24676 q
24677 }
24678 /^X\(\/\/\)[^/].*/{
24679 s//\1/
24680 q
24681 }
24682 /^X\(\/\/\)$/{
24683 s//\1/
24684 q
24685 }
24686 /^X\(\/\).*/{
24687 s//\1/
24688 q
24689 }
24690 s/.*/./; q'`
24691 test -d "$as_dir" && break
24692 done
24693 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 24694 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
24695
24696
24697} # as_fn_mkdir_p
24698if mkdir -p . 2>/dev/null; then
24699 as_mkdir_p='mkdir -p "$as_dir"'
24700else
24701 test -d ./-p && rmdir ./-p
24702 as_mkdir_p=false
24703fi
24704
53ba6704
JF
24705
24706# as_fn_executable_p FILE
24707# -----------------------
24708# Test if FILE is an executable regular file.
24709as_fn_executable_p ()
24710{
24711 test -f "$1" && test -x "$1"
24712} # as_fn_executable_p
24713as_test_x='test -x'
24714as_executable_p=as_fn_executable_p
9c60689e
DWT
24715
24716# Sed expression to map a string onto a valid CPP name.
24717as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24718
24719# Sed expression to map a string onto a valid variable name.
24720as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24721
24722
24723exec 6>&1
24724## ----------------------------------- ##
24725## Main body of $CONFIG_STATUS script. ##
24726## ----------------------------------- ##
24727_ASEOF
24728test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24729
24730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24731# Save the log message, to keep $0 and so on meaningful, and to
24732# report actual input values of CONFIG_FILES etc. instead of their
24733# values after options handling.
24734ac_log="
24735This file was extended by Cycript $as_me 0.9, which was
53ba6704 24736generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
24737
24738 CONFIG_FILES = $CONFIG_FILES
24739 CONFIG_HEADERS = $CONFIG_HEADERS
24740 CONFIG_LINKS = $CONFIG_LINKS
24741 CONFIG_COMMANDS = $CONFIG_COMMANDS
24742 $ $0 $@
24743
24744on `(hostname || uname -n) 2>/dev/null | sed 1q`
24745"
24746
24747_ACEOF
24748
24749case $ac_config_files in *"
24750"*) set x $ac_config_files; shift; ac_config_files=$*;;
24751esac
24752
296ee9a6
JF
24753case $ac_config_headers in *"
24754"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24755esac
9c60689e
DWT
24756
24757
24758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24759# Files that config.status was made for.
24760config_files="$ac_config_files"
296ee9a6 24761config_headers="$ac_config_headers"
9c60689e
DWT
24762config_commands="$ac_config_commands"
24763
24764_ACEOF
24765
24766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24767ac_cs_usage="\
24768\`$as_me' instantiates files and other configuration actions
24769from templates according to the current configuration. Unless the files
24770and actions are specified as TAGs, all are instantiated by default.
24771
24772Usage: $0 [OPTION]... [TAG]...
24773
24774 -h, --help print this help, then exit
24775 -V, --version print version number and configuration settings, then exit
24776 --config print configuration, then exit
24777 -q, --quiet, --silent
24778 do not print progress messages
24779 -d, --debug don't remove temporary files
24780 --recheck update $as_me by reconfiguring in the same conditions
24781 --file=FILE[:TEMPLATE]
24782 instantiate the configuration file FILE
296ee9a6
JF
24783 --header=FILE[:TEMPLATE]
24784 instantiate the configuration header FILE
9c60689e
DWT
24785
24786Configuration files:
24787$config_files
24788
296ee9a6
JF
24789Configuration headers:
24790$config_headers
24791
9c60689e
DWT
24792Configuration commands:
24793$config_commands
24794
24795Report bugs to <saurik@saurik.com>.
24796Cycript home page: <http://www.cycript.org/>."
24797
24798_ACEOF
24799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24800ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24801ac_cs_version="\\
24802Cycript config.status 0.9
53ba6704 24803configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
24804 with options \\"\$ac_cs_config\\"
24805
53ba6704 24806Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
24807This config.status script is free software; the Free Software Foundation
24808gives unlimited permission to copy, distribute and modify it."
24809
24810ac_pwd='$ac_pwd'
24811srcdir='$srcdir'
24812INSTALL='$INSTALL'
66170b30
JF
24813MKDIR_P='$MKDIR_P'
24814AWK='$AWK'
9c60689e
DWT
24815test -n "\$AWK" || AWK=awk
24816_ACEOF
24817
24818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24819# The default lists apply if the user does not specify any file.
24820ac_need_defaults=:
24821while test $# != 0
24822do
24823 case $1 in
12833ad8 24824 --*=?*)
9c60689e
DWT
24825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24827 ac_shift=:
24828 ;;
12833ad8
JF
24829 --*=)
24830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24831 ac_optarg=
24832 ac_shift=:
24833 ;;
9c60689e
DWT
24834 *)
24835 ac_option=$1
24836 ac_optarg=$2
24837 ac_shift=shift
24838 ;;
24839 esac
24840
24841 case $ac_option in
24842 # Handling of the options.
24843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24844 ac_cs_recheck=: ;;
24845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24846 $as_echo "$ac_cs_version"; exit ;;
24847 --config | --confi | --conf | --con | --co | --c )
24848 $as_echo "$ac_cs_config"; exit ;;
24849 --debug | --debu | --deb | --de | --d | -d )
24850 debug=: ;;
24851 --file | --fil | --fi | --f )
24852 $ac_shift
24853 case $ac_optarg in
24854 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 24855 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
24856 esac
24857 as_fn_append CONFIG_FILES " '$ac_optarg'"
24858 ac_need_defaults=false;;
296ee9a6
JF
24859 --header | --heade | --head | --hea )
24860 $ac_shift
24861 case $ac_optarg in
24862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24863 esac
24864 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24865 ac_need_defaults=false;;
24866 --he | --h)
24867 # Conflict between --help and --header
24868 as_fn_error $? "ambiguous option: \`$1'
24869Try \`$0 --help' for more information.";;
24870 --help | --hel | -h )
9c60689e
DWT
24871 $as_echo "$ac_cs_usage"; exit ;;
24872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24874 ac_cs_silent=: ;;
24875
24876 # This is an error.
12833ad8 24877 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
24878Try \`$0 --help' for more information." ;;
24879
24880 *) as_fn_append ac_config_targets " $1"
24881 ac_need_defaults=false ;;
24882
24883 esac
24884 shift
24885done
24886
24887ac_configure_extra_args=
24888
24889if $ac_cs_silent; then
24890 exec 6>/dev/null
24891 ac_configure_extra_args="$ac_configure_extra_args --silent"
24892fi
24893
24894_ACEOF
24895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24896if \$ac_cs_recheck; then
53ba6704 24897 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
24898 shift
24899 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24900 CONFIG_SHELL='$SHELL'
24901 export CONFIG_SHELL
24902 exec "\$@"
24903fi
24904
24905_ACEOF
24906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24907exec 5>>config.log
24908{
24909 echo
24910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24911## Running $as_me. ##
24912_ASBOX
24913 $as_echo "$ac_log"
24914} >&5
24915
24916_ACEOF
24917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24918#
24919# INIT-COMMANDS
24920#
66170b30 24921AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
24922
24923
24924# The HP-UX ksh and POSIX shell print the target directory to stdout
24925# if CDPATH is set.
24926(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24927
24928sed_quote_subst='$sed_quote_subst'
24929double_quote_subst='$double_quote_subst'
24930delay_variable_subst='$delay_variable_subst'
ee134472
JF
24931macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24932macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24933enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24934enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24935pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24936enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
9d54db95 24937shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24938SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24939ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 24940PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24941host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24942host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24943host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24944build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24945build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24946build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24947SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24948Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24949GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24950EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24951FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24952LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24953NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24954LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24955max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24956ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24957exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24958lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24959lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24960lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24961lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24962lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24963reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24964reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24965OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24966deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24967file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24968file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24969want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24970DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24971sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24972AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24973AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24974archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24975STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24976RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24977old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24978old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24979old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24980lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24981CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24982CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24983compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24984GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24985lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24986lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9d54db95 24987lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24988lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24989lt_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"`'
9d54db95 24990lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24991nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24992lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
9d54db95 24993lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24994objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24995MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24996lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24997lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24998lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24999lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25000lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25001need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25002MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25003DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25004NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25005LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25006OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25007OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25008libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25009shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25010extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25011archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25012enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25013export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25014whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25015compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25016old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25017old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25018archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25019archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25020module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25021module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25022with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25023allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25024no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25025hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25026hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25027hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25028hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25029hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25030hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25031hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25032inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25033link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25034always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25035export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25036exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25037include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25038prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25039postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25040file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25041variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25042need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25043need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25044version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25045runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25046shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25047shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25048libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25049library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25050soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25051install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25052postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25053postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25054finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25055finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25056hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25057sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
9d54db95
JF
25058configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25059configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25060hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25061enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25062enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25063enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25064old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25065striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25066compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25067predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25068postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25069predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25070postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25071compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25072LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25073reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25074reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25075old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25076compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25077GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25078lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25079lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25080lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25081lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25082lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25083archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25084enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25085export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25086whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25087compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25088old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25089old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25090archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25091archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25092module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25093module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25094with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25095allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25096no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25097hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
25098hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25099hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25100hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25101hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25102hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25103hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25104inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25105link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25106always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25107export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25108exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25109include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25110prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25111postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25112file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25113hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25114compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25115predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25116postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25117predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25118postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25119compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
25120
25121LTCC='$LTCC'
25122LTCFLAGS='$LTCFLAGS'
25123compiler='$compiler_DEFAULT'
25124
ee134472
JF
25125# A function that is used when there is no print builtin or printf.
25126func_fallback_echo ()
25127{
25128 eval 'cat <<_LTECHO_EOF
25129\$1
25130_LTECHO_EOF'
25131}
25132
9c60689e 25133# Quote evaled strings.
ee134472
JF
25134for var in SHELL \
25135ECHO \
53ba6704 25136PATH_SEPARATOR \
ee134472 25137SED \
9c60689e
DWT
25138GREP \
25139EGREP \
25140FGREP \
25141LD \
25142NM \
25143LN_S \
25144lt_SP2NL \
25145lt_NL2SP \
25146reload_flag \
25147OBJDUMP \
25148deplibs_check_method \
25149file_magic_cmd \
ee134472
JF
25150file_magic_glob \
25151want_nocaseglob \
25152DLLTOOL \
25153sharedlib_from_linklib_cmd \
9c60689e
DWT
25154AR \
25155AR_FLAGS \
ee134472 25156archiver_list_spec \
9c60689e
DWT
25157STRIP \
25158RANLIB \
25159CC \
25160CFLAGS \
25161compiler \
25162lt_cv_sys_global_symbol_pipe \
25163lt_cv_sys_global_symbol_to_cdecl \
9d54db95 25164lt_cv_sys_global_symbol_to_import \
9c60689e
DWT
25165lt_cv_sys_global_symbol_to_c_name_address \
25166lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9d54db95 25167lt_cv_nm_interface \
ee134472 25168nm_file_list_spec \
9d54db95 25169lt_cv_truncate_bin \
9c60689e 25170lt_prog_compiler_no_builtin_flag \
9c60689e 25171lt_prog_compiler_pic \
ee134472 25172lt_prog_compiler_wl \
9c60689e
DWT
25173lt_prog_compiler_static \
25174lt_cv_prog_compiler_c_o \
25175need_locks \
ee134472 25176MANIFEST_TOOL \
9c60689e
DWT
25177DSYMUTIL \
25178NMEDIT \
25179LIPO \
25180OTOOL \
25181OTOOL64 \
25182shrext_cmds \
25183export_dynamic_flag_spec \
25184whole_archive_flag_spec \
25185compiler_needs_object \
25186with_gnu_ld \
25187allow_undefined_flag \
25188no_undefined_flag \
25189hardcode_libdir_flag_spec \
9c60689e 25190hardcode_libdir_separator \
9c60689e
DWT
25191exclude_expsyms \
25192include_expsyms \
25193file_list_spec \
25194variables_saved_for_relink \
25195libname_spec \
25196library_names_spec \
25197soname_spec \
ee134472 25198install_override_mode \
9c60689e
DWT
25199finish_eval \
25200old_striplib \
25201striplib \
25202compiler_lib_search_dirs \
25203predep_objects \
25204postdep_objects \
25205predeps \
25206postdeps \
25207compiler_lib_search_path \
25208LD_CXX \
ee134472 25209reload_flag_CXX \
9c60689e
DWT
25210compiler_CXX \
25211lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 25212lt_prog_compiler_pic_CXX \
ee134472 25213lt_prog_compiler_wl_CXX \
9c60689e
DWT
25214lt_prog_compiler_static_CXX \
25215lt_cv_prog_compiler_c_o_CXX \
25216export_dynamic_flag_spec_CXX \
25217whole_archive_flag_spec_CXX \
25218compiler_needs_object_CXX \
25219with_gnu_ld_CXX \
25220allow_undefined_flag_CXX \
25221no_undefined_flag_CXX \
25222hardcode_libdir_flag_spec_CXX \
9c60689e 25223hardcode_libdir_separator_CXX \
9c60689e
DWT
25224exclude_expsyms_CXX \
25225include_expsyms_CXX \
25226file_list_spec_CXX \
25227compiler_lib_search_dirs_CXX \
25228predep_objects_CXX \
25229postdep_objects_CXX \
25230predeps_CXX \
25231postdeps_CXX \
25232compiler_lib_search_path_CXX; do
ee134472 25233 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 25234 *[\\\\\\\`\\"\\\$]*)
9d54db95 25235 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
25236 ;;
25237 *)
25238 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25239 ;;
25240 esac
25241done
25242
25243# Double-quote double-evaled strings.
25244for var in reload_cmds \
25245old_postinstall_cmds \
25246old_postuninstall_cmds \
25247old_archive_cmds \
25248extract_expsyms_cmds \
25249old_archive_from_new_cmds \
25250old_archive_from_expsyms_cmds \
25251archive_cmds \
25252archive_expsym_cmds \
25253module_cmds \
25254module_expsym_cmds \
25255export_symbols_cmds \
25256prelink_cmds \
ee134472 25257postlink_cmds \
9c60689e
DWT
25258postinstall_cmds \
25259postuninstall_cmds \
25260finish_cmds \
25261sys_lib_search_path_spec \
9d54db95
JF
25262configure_time_dlsearch_path \
25263configure_time_lt_sys_library_path \
ee134472 25264reload_cmds_CXX \
9c60689e
DWT
25265old_archive_cmds_CXX \
25266old_archive_from_new_cmds_CXX \
25267old_archive_from_expsyms_cmds_CXX \
25268archive_cmds_CXX \
25269archive_expsym_cmds_CXX \
25270module_cmds_CXX \
25271module_expsym_cmds_CXX \
25272export_symbols_cmds_CXX \
ee134472
JF
25273prelink_cmds_CXX \
25274postlink_cmds_CXX; do
25275 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 25276 *[\\\\\\\`\\"\\\$]*)
9d54db95 25277 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
25278 ;;
25279 *)
25280 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25281 ;;
25282 esac
25283done
25284
9c60689e 25285ac_aux_dir='$ac_aux_dir'
9c60689e 25286
9d54db95 25287# See if we are running on zsh, and set the options that allow our
9c60689e 25288# commands through without removal of \ escapes INIT.
9d54db95 25289if test -n "\${ZSH_VERSION+set}"; then
9c60689e
DWT
25290 setopt NO_GLOB_SUBST
25291fi
25292
25293
25294 PACKAGE='$PACKAGE'
25295 VERSION='$VERSION'
9c60689e
DWT
25296 RM='$RM'
25297 ofile='$ofile'
25298
25299
25300
25301
25302
25303
25304_ACEOF
25305
25306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25307
25308# Handling of arguments.
25309for ac_config_target in $ac_config_targets
25310do
25311 case $ac_config_target in
296ee9a6 25312 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 25313 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 25314 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 25315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 25316
ee134472 25317 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
25318 esac
25319done
25320
25321
25322# If the user did not use the arguments to specify the items to instantiate,
25323# then the envvar interface is used. Set only those that are not.
25324# We use the long form for the default assignment because of an extremely
25325# bizarre bug on SunOS 4.1.3.
25326if $ac_need_defaults; then
25327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 25328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
25329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25330fi
25331
25332# Have a temporary directory for convenience. Make it in the build tree
25333# simply because there is no reason against having it here, and in addition,
25334# creating and moving files from /tmp can sometimes cause problems.
25335# Hook for its removal unless debugging.
25336# Note that there is a small window in which the directory will not be cleaned:
25337# after its creation but before its name has been assigned to `$tmp'.
25338$debug ||
25339{
ee134472 25340 tmp= ac_tmp=
9c60689e 25341 trap 'exit_status=$?
ee134472
JF
25342 : "${ac_tmp:=$tmp}"
25343 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
25344' 0
25345 trap 'as_fn_exit 1' 1 2 13 15
25346}
25347# Create a (secure) tmp directory for tmp files.
25348
25349{
25350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 25351 test -d "$tmp"
9c60689e
DWT
25352} ||
25353{
25354 tmp=./conf$$-$RANDOM
25355 (umask 077 && mkdir "$tmp")
12833ad8 25356} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 25357ac_tmp=$tmp
9c60689e
DWT
25358
25359# Set up the scripts for CONFIG_FILES section.
25360# No need to generate them if there are no CONFIG_FILES.
25361# This happens for instance with `./config.status config.h'.
25362if test -n "$CONFIG_FILES"; then
25363
25364
25365ac_cr=`echo X | tr X '\015'`
25366# On cygwin, bash can eat \r inside `` if the user requested igncr.
25367# But we know of no other shell where ac_cr would be empty at this
25368# point, so we can use a bashism as a fallback.
25369if test "x$ac_cr" = x; then
25370 eval ac_cr=\$\'\\r\'
25371fi
25372ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25373if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 25374 ac_cs_awk_cr='\\r'
9c60689e
DWT
25375else
25376 ac_cs_awk_cr=$ac_cr
25377fi
25378
ee134472 25379echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
25380_ACEOF
25381
25382
25383{
25384 echo "cat >conf$$subs.awk <<_ACEOF" &&
25385 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25386 echo "_ACEOF"
25387} >conf$$subs.sh ||
12833ad8
JF
25388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25389ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
25390ac_delim='%!_!# '
25391for ac_last_try in false false false false false :; do
25392 . ./conf$$subs.sh ||
12833ad8 25393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
25394
25395 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25396 if test $ac_delim_n = $ac_delim_num; then
25397 break
25398 elif $ac_last_try; then
12833ad8 25399 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
25400 else
25401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25402 fi
25403done
25404rm -f conf$$subs.sh
25405
25406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 25407cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
25408_ACEOF
25409sed -n '
25410h
25411s/^/S["/; s/!.*/"]=/
25412p
25413g
25414s/^[^!]*!//
25415:repl
25416t repl
25417s/'"$ac_delim"'$//
25418t delim
25419:nl
25420h
25421s/\(.\{148\}\)..*/\1/
25422t more1
25423s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25424p
25425n
25426b repl
25427:more1
25428s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25429p
25430g
25431s/.\{148\}//
25432t nl
25433:delim
25434h
25435s/\(.\{148\}\)..*/\1/
25436t more2
25437s/["\\]/\\&/g; s/^/"/; s/$/"/
25438p
25439b
25440:more2
25441s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25442p
25443g
25444s/.\{148\}//
25445t delim
25446' <conf$$subs.awk | sed '
25447/^[^""]/{
25448 N
25449 s/\n//
25450}
25451' >>$CONFIG_STATUS || ac_write_fail=1
25452rm -f conf$$subs.awk
25453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25454_ACAWK
ee134472 25455cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
25456 for (key in S) S_is_set[key] = 1
25457 FS = "\a"
25458
25459}
25460{
25461 line = $ 0
25462 nfields = split(line, field, "@")
25463 substed = 0
25464 len = length(field[1])
25465 for (i = 2; i < nfields; i++) {
25466 key = field[i]
25467 keylen = length(key)
25468 if (S_is_set[key]) {
25469 value = S[key]
25470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25471 len += length(value) + length(field[++i])
25472 substed = 1
25473 } else
25474 len += 1 + keylen
25475 }
25476
25477 print line
25478}
25479
25480_ACAWK
25481_ACEOF
25482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25483if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25485else
25486 cat
ee134472 25487fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 25488 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
25489_ACEOF
25490
12833ad8
JF
25491# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25492# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
25493# trailing colons and then remove the whole line if VPATH becomes empty
25494# (actually we leave an empty line to preserve line numbers).
25495if test "x$srcdir" = x.; then
12833ad8
JF
25496 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25497h
25498s///
25499s/^/:/
25500s/[ ]*$/:/
25501s/:\$(srcdir):/:/g
25502s/:\${srcdir}:/:/g
25503s/:@srcdir@:/:/g
25504s/^:*//
9c60689e 25505s/:*$//
12833ad8
JF
25506x
25507s/\(=[ ]*\).*/\1/
25508G
25509s/\n//
9c60689e
DWT
25510s/^[^=]*=[ ]*$//
25511}'
25512fi
25513
25514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25515fi # test -n "$CONFIG_FILES"
25516
296ee9a6
JF
25517# Set up the scripts for CONFIG_HEADERS section.
25518# No need to generate them if there are no CONFIG_HEADERS.
25519# This happens for instance with `./config.status Makefile'.
25520if test -n "$CONFIG_HEADERS"; then
25521cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25522BEGIN {
25523_ACEOF
25524
25525# Transform confdefs.h into an awk script `defines.awk', embedded as
25526# here-document in config.status, that substitutes the proper values into
25527# config.h.in to produce config.h.
25528
25529# Create a delimiter string that does not exist in confdefs.h, to ease
25530# handling of long lines.
25531ac_delim='%!_!# '
25532for ac_last_try in false false :; do
25533 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25534 if test -z "$ac_tt"; then
25535 break
25536 elif $ac_last_try; then
25537 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25538 else
25539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25540 fi
25541done
25542
25543# For the awk script, D is an array of macro values keyed by name,
25544# likewise P contains macro parameters if any. Preserve backslash
25545# newline sequences.
25546
25547ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25548sed -n '
25549s/.\{148\}/&'"$ac_delim"'/g
25550t rset
25551:rset
25552s/^[ ]*#[ ]*define[ ][ ]*/ /
25553t def
25554d
25555:def
25556s/\\$//
25557t bsnl
25558s/["\\]/\\&/g
25559s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25560D["\1"]=" \3"/p
25561s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25562d
25563:bsnl
25564s/["\\]/\\&/g
25565s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25566D["\1"]=" \3\\\\\\n"\\/p
25567t cont
25568s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25569t cont
25570d
25571:cont
25572n
25573s/.\{148\}/&'"$ac_delim"'/g
25574t clear
25575:clear
25576s/\\$//
25577t bsnlc
25578s/["\\]/\\&/g; s/^/"/; s/$/"/p
25579d
25580:bsnlc
25581s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25582b cont
25583' <confdefs.h | sed '
25584s/'"$ac_delim"'/"\\\
25585"/g' >>$CONFIG_STATUS || ac_write_fail=1
25586
25587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25588 for (key in D) D_is_set[key] = 1
25589 FS = "\a"
25590}
25591/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25592 line = \$ 0
25593 split(line, arg, " ")
25594 if (arg[1] == "#") {
25595 defundef = arg[2]
25596 mac1 = arg[3]
25597 } else {
25598 defundef = substr(arg[1], 2)
25599 mac1 = arg[2]
25600 }
25601 split(mac1, mac2, "(") #)
25602 macro = mac2[1]
25603 prefix = substr(line, 1, index(line, defundef) - 1)
25604 if (D_is_set[macro]) {
25605 # Preserve the white space surrounding the "#".
25606 print prefix "define", macro P[macro] D[macro]
25607 next
25608 } else {
25609 # Replace #undef with comments. This is necessary, for example,
25610 # in the case of _POSIX_SOURCE, which is predefined and required
25611 # on some systems where configure will not decide to define it.
25612 if (defundef == "undef") {
25613 print "/*", prefix defundef, macro, "*/"
25614 next
25615 }
25616 }
25617}
25618{ print }
25619_ACAWK
25620_ACEOF
25621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25622 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25623fi # test -n "$CONFIG_HEADERS"
25624
9c60689e 25625
296ee9a6 25626eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
25627shift
25628for ac_tag
25629do
25630 case $ac_tag in
25631 :[FHLC]) ac_mode=$ac_tag; continue;;
25632 esac
25633 case $ac_mode$ac_tag in
25634 :[FHL]*:*);;
ee134472 25635 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
25636 :[FH]-) ac_tag=-:-;;
25637 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25638 esac
25639 ac_save_IFS=$IFS
25640 IFS=:
25641 set x $ac_tag
25642 IFS=$ac_save_IFS
25643 shift
25644 ac_file=$1
25645 shift
25646
25647 case $ac_mode in
25648 :L) ac_source=$1;;
25649 :[FH])
25650 ac_file_inputs=
25651 for ac_f
25652 do
25653 case $ac_f in
ee134472 25654 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
25655 *) # Look for the file first in the build tree, then in the source tree
25656 # (if the path is not absolute). The absolute path cannot be DOS-style,
25657 # because $ac_f cannot contain `:'.
25658 test -f "$ac_f" ||
25659 case $ac_f in
25660 [\\/$]*) false;;
25661 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25662 esac ||
ee134472 25663 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
25664 esac
25665 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25666 as_fn_append ac_file_inputs " '$ac_f'"
25667 done
25668
25669 # Let's still pretend it is `configure' which instantiates (i.e., don't
25670 # use $as_me), people would be surprised to read:
25671 # /* config.h. Generated by config.status. */
25672 configure_input='Generated from '`
25673 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25674 `' by configure.'
25675 if test x"$ac_file" != x-; then
25676 configure_input="$ac_file. $configure_input"
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25678$as_echo "$as_me: creating $ac_file" >&6;}
25679 fi
25680 # Neutralize special characters interpreted by sed in replacement strings.
25681 case $configure_input in #(
25682 *\&* | *\|* | *\\* )
25683 ac_sed_conf_input=`$as_echo "$configure_input" |
25684 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25685 *) ac_sed_conf_input=$configure_input;;
25686 esac
25687
25688 case $ac_tag in
ee134472
JF
25689 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
25691 esac
25692 ;;
25693 esac
25694
25695 ac_dir=`$as_dirname -- "$ac_file" ||
25696$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25697 X"$ac_file" : 'X\(//\)[^/]' \| \
25698 X"$ac_file" : 'X\(//\)$' \| \
25699 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25700$as_echo X"$ac_file" |
25701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25702 s//\1/
25703 q
25704 }
25705 /^X\(\/\/\)[^/].*/{
25706 s//\1/
25707 q
25708 }
25709 /^X\(\/\/\)$/{
25710 s//\1/
25711 q
25712 }
25713 /^X\(\/\).*/{
25714 s//\1/
25715 q
25716 }
25717 s/.*/./; q'`
25718 as_dir="$ac_dir"; as_fn_mkdir_p
25719 ac_builddir=.
25720
25721case "$ac_dir" in
25722.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25723*)
25724 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25725 # A ".." for each directory in $ac_dir_suffix.
25726 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25727 case $ac_top_builddir_sub in
25728 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25729 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25730 esac ;;
25731esac
25732ac_abs_top_builddir=$ac_pwd
25733ac_abs_builddir=$ac_pwd$ac_dir_suffix
25734# for backward compatibility:
25735ac_top_builddir=$ac_top_build_prefix
35fa52c0 25736
9c60689e
DWT
25737case $srcdir in
25738 .) # We are building in place.
25739 ac_srcdir=.
25740 ac_top_srcdir=$ac_top_builddir_sub
25741 ac_abs_top_srcdir=$ac_pwd ;;
25742 [\\/]* | ?:[\\/]* ) # Absolute name.
25743 ac_srcdir=$srcdir$ac_dir_suffix;
25744 ac_top_srcdir=$srcdir
25745 ac_abs_top_srcdir=$srcdir ;;
25746 *) # Relative name.
25747 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25748 ac_top_srcdir=$ac_top_build_prefix$srcdir
25749 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25750esac
25751ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
25752
25753
9c60689e
DWT
25754 case $ac_mode in
25755 :F)
25756 #
25757 # CONFIG_FILE
25758 #
35fa52c0 25759
9c60689e
DWT
25760 case $INSTALL in
25761 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25762 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25763 esac
66170b30
JF
25764 ac_MKDIR_P=$MKDIR_P
25765 case $MKDIR_P in
25766 [\\/$]* | ?:[\\/]* ) ;;
25767 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25768 esac
9c60689e 25769_ACEOF
35fa52c0 25770
9c60689e
DWT
25771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25772# If the template does not know about datarootdir, expand it.
25773# FIXME: This hack should be removed a few years after 2.60.
25774ac_datarootdir_hack=; ac_datarootdir_seen=
25775ac_sed_dataroot='
25776/datarootdir/ {
25777 p
25778 q
25779}
25780/@datadir@/p
25781/@docdir@/p
25782/@infodir@/p
25783/@localedir@/p
25784/@mandir@/p'
25785case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25786*datarootdir*) ac_datarootdir_seen=yes;;
25787*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25789$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25790_ACEOF
25791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25792 ac_datarootdir_hack='
25793 s&@datadir@&$datadir&g
25794 s&@docdir@&$docdir&g
25795 s&@infodir@&$infodir&g
25796 s&@localedir@&$localedir&g
25797 s&@mandir@&$mandir&g
25798 s&\\\${datarootdir}&$datarootdir&g' ;;
25799esac
25800_ACEOF
35fa52c0 25801
9c60689e
DWT
25802# Neutralize VPATH when `$srcdir' = `.'.
25803# Shell code in configure.ac might set extrasub.
25804# FIXME: do we really want to maintain this feature?
25805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25806ac_sed_extra="$ac_vpsub
25807$extrasub
25808_ACEOF
25809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25810:t
25811/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25812s|@configure_input@|$ac_sed_conf_input|;t t
25813s&@top_builddir@&$ac_top_builddir_sub&;t t
25814s&@top_build_prefix@&$ac_top_build_prefix&;t t
25815s&@srcdir@&$ac_srcdir&;t t
25816s&@abs_srcdir@&$ac_abs_srcdir&;t t
25817s&@top_srcdir@&$ac_top_srcdir&;t t
25818s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25819s&@builddir@&$ac_builddir&;t t
25820s&@abs_builddir@&$ac_abs_builddir&;t t
25821s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25822s&@INSTALL@&$ac_INSTALL&;t t
66170b30 25823s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
25824$ac_datarootdir_hack
25825"
ee134472
JF
25826eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25827 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
25828
25829test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
25830 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25831 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25832 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 25833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 25834which seems to be undefined. Please make sure it is defined" >&5
9c60689e 25835$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 25836which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 25837
ee134472 25838 rm -f "$ac_tmp/stdin"
9c60689e 25839 case $ac_file in
ee134472
JF
25840 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25841 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 25842 esac \
12833ad8 25843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 25844 ;;
296ee9a6
JF
25845 :H)
25846 #
25847 # CONFIG_HEADER
25848 #
25849 if test x"$ac_file" != x-; then
25850 {
25851 $as_echo "/* $configure_input */" \
25852 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25853 } >"$ac_tmp/config.h" \
25854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25855 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25857$as_echo "$as_me: $ac_file is unchanged" >&6;}
25858 else
25859 rm -f "$ac_file"
25860 mv "$ac_tmp/config.h" "$ac_file" \
25861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25862 fi
25863 else
25864 $as_echo "/* $configure_input */" \
25865 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25866 || as_fn_error $? "could not create -" "$LINENO" 5
25867 fi
25868# Compute "$ac_file"'s index in $config_headers.
25869_am_arg="$ac_file"
25870_am_stamp_count=1
25871for _am_header in $config_headers :; do
25872 case $_am_header in
25873 $_am_arg | $_am_arg:* )
25874 break ;;
25875 * )
25876 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25877 esac
25878done
25879echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25880$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25881 X"$_am_arg" : 'X\(//\)[^/]' \| \
25882 X"$_am_arg" : 'X\(//\)$' \| \
25883 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25884$as_echo X"$_am_arg" |
25885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25886 s//\1/
25887 q
25888 }
25889 /^X\(\/\/\)[^/].*/{
25890 s//\1/
25891 q
25892 }
25893 /^X\(\/\/\)$/{
25894 s//\1/
25895 q
25896 }
25897 /^X\(\/\).*/{
25898 s//\1/
25899 q
25900 }
25901 s/.*/./; q'`/stamp-h$_am_stamp_count
25902 ;;
35fa52c0 25903
9c60689e
DWT
25904 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25905$as_echo "$as_me: executing $ac_file commands" >&6;}
25906 ;;
25907 esac
35fa52c0 25908
35fa52c0 25909
9c60689e 25910 case $ac_file$ac_mode in
66170b30
JF
25911 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25912 # Older Autoconf quotes --file arguments for eval, but not when files
25913 # are listed without --file. Let's play safe and only enable the eval
25914 # if we detect the quoting.
25915 case $CONFIG_FILES in
25916 *\'*) eval set x "$CONFIG_FILES" ;;
25917 *) set x $CONFIG_FILES ;;
25918 esac
25919 shift
25920 for mf
25921 do
25922 # Strip MF so we end up with the name of the file.
25923 mf=`echo "$mf" | sed -e 's/:.*$//'`
25924 # Check whether this is an Automake generated Makefile or not.
25925 # We used to match only the files named 'Makefile.in', but
25926 # some people rename them; so instead we look at the file content.
25927 # Grep'ing the first line is not enough: some people post-process
25928 # each Makefile.in and add a new line on top of each file to say so.
25929 # Grep'ing the whole file is not good either: AIX grep has a line
25930 # limit of 2048, but all sed's we know have understand at least 4000.
25931 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25932 dirpart=`$as_dirname -- "$mf" ||
25933$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25934 X"$mf" : 'X\(//\)[^/]' \| \
25935 X"$mf" : 'X\(//\)$' \| \
25936 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25937$as_echo X"$mf" |
25938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25939 s//\1/
25940 q
25941 }
25942 /^X\(\/\/\)[^/].*/{
25943 s//\1/
25944 q
25945 }
25946 /^X\(\/\/\)$/{
25947 s//\1/
25948 q
25949 }
25950 /^X\(\/\).*/{
25951 s//\1/
25952 q
25953 }
25954 s/.*/./; q'`
25955 else
25956 continue
25957 fi
25958 # Extract the definition of DEPDIR, am__include, and am__quote
25959 # from the Makefile without running 'make'.
25960 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25961 test -z "$DEPDIR" && continue
25962 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 25963 test -z "$am__include" && continue
66170b30
JF
25964 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25965 # Find all dependency output files, they are included files with
25966 # $(DEPDIR) in their names. We invoke sed twice because it is the
25967 # simplest approach to changing $(DEPDIR) to its actual value in the
25968 # expansion.
25969 for file in `sed -n "
25970 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25971 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
25972 # Make sure the directory exists.
25973 test -f "$dirpart/$file" && continue
25974 fdir=`$as_dirname -- "$file" ||
25975$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25976 X"$file" : 'X\(//\)[^/]' \| \
25977 X"$file" : 'X\(//\)$' \| \
25978 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25979$as_echo X"$file" |
25980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25981 s//\1/
25982 q
25983 }
25984 /^X\(\/\/\)[^/].*/{
25985 s//\1/
25986 q
25987 }
25988 /^X\(\/\/\)$/{
25989 s//\1/
25990 q
25991 }
25992 /^X\(\/\).*/{
25993 s//\1/
25994 q
25995 }
25996 s/.*/./; q'`
25997 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25998 # echo "creating $dirpart/$file"
25999 echo '# dummy' > "$dirpart/$file"
26000 done
26001 done
26002}
26003 ;;
9c60689e
DWT
26004 "libtool":C)
26005
9d54db95 26006 # See if we are running on zsh, and set the options that allow our
9c60689e 26007 # commands through without removal of \ escapes.
9d54db95 26008 if test -n "${ZSH_VERSION+set}"; then
9c60689e 26009 setopt NO_GLOB_SUBST
35fa52c0 26010 fi
35fa52c0 26011
9d54db95 26012 cfgfile=${ofile}T
9c60689e
DWT
26013 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26014 $RM "$cfgfile"
35fa52c0 26015
9c60689e
DWT
26016 cat <<_LT_EOF >> "$cfgfile"
26017#! $SHELL
9d54db95 26018# Generated automatically by $as_me ($PACKAGE) $VERSION
9c60689e
DWT
26019# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26020# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9d54db95
JF
26021
26022# Provide generalized library-building support services.
26023# Written by Gordon Matzigkeit, 1996
26024
26025# Copyright (C) 2014 Free Software Foundation, Inc.
26026# This is free software; see the source for copying conditions. There is NO
26027# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26028
26029# GNU Libtool is free software; you can redistribute it and/or modify
26030# it under the terms of the GNU General Public License as published by
26031# the Free Software Foundation; either version 2 of of the License, or
26032# (at your option) any later version.
9c60689e 26033#
9d54db95
JF
26034# As a special exception to the GNU General Public License, if you
26035# distribute this file as part of a program or library that is built
26036# using GNU Libtool, you may include this file under the same
26037# distribution terms that you use for the rest of that program.
9c60689e 26038#
9d54db95
JF
26039# GNU Libtool is distributed in the hope that it will be useful, but
26040# WITHOUT ANY WARRANTY; without even the implied warranty of
9c60689e
DWT
26041# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26042# GNU General Public License for more details.
26043#
26044# You should have received a copy of the GNU General Public License
9d54db95 26045# along with this program. If not, see <http://www.gnu.org/licenses/>.
35fa52c0 26046
35fa52c0 26047
9c60689e 26048# The names of the tagged configurations supported by this script.
9d54db95
JF
26049available_tags='CXX '
26050
26051# Configured defaults for sys_lib_dlsearch_path munging.
26052: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35fa52c0 26053
9c60689e 26054# ### BEGIN LIBTOOL CONFIG
35fa52c0 26055
9c60689e
DWT
26056# Which release of libtool.m4 was used?
26057macro_version=$macro_version
26058macro_revision=$macro_revision
35fa52c0 26059
9c60689e
DWT
26060# Whether or not to build static libraries.
26061build_old_libs=$enable_static
35fa52c0 26062
549f29b5
DWT
26063# Whether or not to build shared libraries.
26064build_libtool_libs=$enable_shared
26065
9c60689e
DWT
26066# What type of objects to build.
26067pic_mode=$pic_mode
35fa52c0 26068
9c60689e
DWT
26069# Whether or not to optimize for fast installation.
26070fast_install=$enable_fast_install
35fa52c0 26071
9d54db95
JF
26072# Shared archive member basename,for filename based shared library versioning on AIX.
26073shared_archive_member_spec=$shared_archive_member_spec
26074
ee134472
JF
26075# Shell to use when invoking shell scripts.
26076SHELL=$lt_SHELL
26077
26078# An echo program that protects backslashes.
26079ECHO=$lt_ECHO
26080
53ba6704
JF
26081# The PATH separator for the build system.
26082PATH_SEPARATOR=$lt_PATH_SEPARATOR
26083
9c60689e
DWT
26084# The host system.
26085host_alias=$host_alias
26086host=$host
26087host_os=$host_os
35fa52c0 26088
9c60689e
DWT
26089# The build system.
26090build_alias=$build_alias
26091build=$build
26092build_os=$build_os
26093
26094# A sed program that does not truncate output.
26095SED=$lt_SED
26096
26097# Sed that helps us avoid accidentally triggering echo(1) options like -n.
26098Xsed="\$SED -e 1s/^X//"
26099
26100# A grep program that handles long lines.
26101GREP=$lt_GREP
26102
26103# An ERE matcher.
26104EGREP=$lt_EGREP
26105
26106# A literal string matcher.
26107FGREP=$lt_FGREP
26108
26109# A BSD- or MS-compatible name lister.
26110NM=$lt_NM
26111
26112# Whether we need soft or hard links.
26113LN_S=$lt_LN_S
26114
26115# What is the maximum length of a command?
26116max_cmd_len=$max_cmd_len
26117
26118# Object file suffix (normally "o").
26119objext=$ac_objext
26120
26121# Executable file suffix (normally "").
26122exeext=$exeext
26123
26124# whether the shell understands "unset".
26125lt_unset=$lt_unset
26126
26127# turn spaces into newlines.
26128SP2NL=$lt_lt_SP2NL
26129
26130# turn newlines into spaces.
26131NL2SP=$lt_lt_NL2SP
26132
ee134472
JF
26133# convert \$build file names to \$host format.
26134to_host_file_cmd=$lt_cv_to_host_file_cmd
26135
26136# convert \$build files to toolchain format.
26137to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
26138
26139# An object symbol dumper.
26140OBJDUMP=$lt_OBJDUMP
26141
26142# Method to check whether dependent libraries are shared objects.
26143deplibs_check_method=$lt_deplibs_check_method
26144
ee134472 26145# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
26146file_magic_cmd=$lt_file_magic_cmd
26147
ee134472
JF
26148# How to find potential files when deplibs_check_method = "file_magic".
26149file_magic_glob=$lt_file_magic_glob
26150
26151# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26152want_nocaseglob=$lt_want_nocaseglob
26153
26154# DLL creation program.
26155DLLTOOL=$lt_DLLTOOL
26156
26157# Command to associate shared and link libraries.
26158sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26159
9c60689e
DWT
26160# The archiver.
26161AR=$lt_AR
ee134472
JF
26162
26163# Flags to create an archive.
9c60689e
DWT
26164AR_FLAGS=$lt_AR_FLAGS
26165
ee134472
JF
26166# How to feed a file listing to the archiver.
26167archiver_list_spec=$lt_archiver_list_spec
26168
9c60689e
DWT
26169# A symbol stripping program.
26170STRIP=$lt_STRIP
26171
26172# Commands used to install an old-style archive.
26173RANLIB=$lt_RANLIB
26174old_postinstall_cmds=$lt_old_postinstall_cmds
26175old_postuninstall_cmds=$lt_old_postuninstall_cmds
26176
ee134472
JF
26177# Whether to use a lock for old archive extraction.
26178lock_old_archive_extraction=$lock_old_archive_extraction
26179
9c60689e
DWT
26180# A C compiler.
26181LTCC=$lt_CC
26182
26183# LTCC compiler flags.
26184LTCFLAGS=$lt_CFLAGS
26185
26186# Take the output of nm and produce a listing of raw symbols and C names.
26187global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26188
26189# Transform the output of nm in a proper C declaration.
26190global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26191
9d54db95
JF
26192# Transform the output of nm into a list of symbols to manually relocate.
26193global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26194
9c60689e
DWT
26195# Transform the output of nm in a C name address pair.
26196global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26197
26198# Transform the output of nm in a C name address pair when lib prefix is needed.
26199global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26200
9d54db95
JF
26201# The name lister interface.
26202nm_interface=$lt_lt_cv_nm_interface
26203
ee134472
JF
26204# Specify filename containing input files for \$NM.
26205nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 26206
9d54db95 26207# The root where to search for dependent libraries,and where our libraries should be installed.
ee134472 26208lt_sysroot=$lt_sysroot
9c60689e 26209
9d54db95
JF
26210# Command to truncate a binary pipe.
26211lt_truncate_bin=$lt_lt_cv_truncate_bin
26212
ee134472
JF
26213# The name of the directory that contains temporary libtool files.
26214objdir=$objdir
9c60689e
DWT
26215
26216# Used to examine libraries when file_magic_cmd begins with "file".
26217MAGIC_CMD=$MAGIC_CMD
26218
26219# Must we lock files when doing compilation?
26220need_locks=$lt_need_locks
26221
ee134472
JF
26222# Manifest tool.
26223MANIFEST_TOOL=$lt_MANIFEST_TOOL
26224
9c60689e
DWT
26225# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26226DSYMUTIL=$lt_DSYMUTIL
26227
26228# Tool to change global to local symbols on Mac OS X.
26229NMEDIT=$lt_NMEDIT
26230
26231# Tool to manipulate fat objects and archives on Mac OS X.
26232LIPO=$lt_LIPO
26233
26234# ldd/readelf like tool for Mach-O binaries on Mac OS X.
26235OTOOL=$lt_OTOOL
26236
26237# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26238OTOOL64=$lt_OTOOL64
26239
26240# Old archive suffix (normally "a").
26241libext=$libext
26242
26243# Shared library suffix (normally ".so").
26244shrext_cmds=$lt_shrext_cmds
35fa52c0 26245
9c60689e
DWT
26246# The commands to extract the exported symbol list from a shared archive.
26247extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 26248
9c60689e
DWT
26249# Variables whose values should be saved in libtool wrapper scripts and
26250# restored at link time.
26251variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 26252
9c60689e
DWT
26253# Do we need the "lib" prefix for modules?
26254need_lib_prefix=$need_lib_prefix
35fa52c0 26255
9c60689e
DWT
26256# Do we need a version for libraries?
26257need_version=$need_version
35fa52c0 26258
9c60689e
DWT
26259# Library versioning type.
26260version_type=$version_type
35fa52c0 26261
9c60689e
DWT
26262# Shared library runtime path variable.
26263runpath_var=$runpath_var
35fa52c0 26264
9c60689e
DWT
26265# Shared library path variable.
26266shlibpath_var=$shlibpath_var
35fa52c0 26267
9c60689e
DWT
26268# Is shlibpath searched before the hard-coded library search path?
26269shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 26270
9c60689e
DWT
26271# Format of library name prefix.
26272libname_spec=$lt_libname_spec
35fa52c0 26273
9c60689e
DWT
26274# List of archive names. First name is the real one, the rest are links.
26275# The last name is the one that the linker finds with -lNAME
26276library_names_spec=$lt_library_names_spec
dbadc56a 26277
9c60689e
DWT
26278# The coded name of the library, if different from the real name.
26279soname_spec=$lt_soname_spec
dbadc56a 26280
ee134472
JF
26281# Permission mode override for installation of shared libraries.
26282install_override_mode=$lt_install_override_mode
26283
9c60689e
DWT
26284# Command to use after installation of a shared archive.
26285postinstall_cmds=$lt_postinstall_cmds
35fa52c0 26286
9c60689e
DWT
26287# Command to use after uninstallation of a shared archive.
26288postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 26289
9c60689e
DWT
26290# Commands used to finish a libtool library installation in a directory.
26291finish_cmds=$lt_finish_cmds
35fa52c0 26292
9c60689e
DWT
26293# As "finish_cmds", except a single script fragment to be evaled but
26294# not shown.
26295finish_eval=$lt_finish_eval
35fa52c0 26296
9c60689e
DWT
26297# Whether we should hardcode library paths into libraries.
26298hardcode_into_libs=$hardcode_into_libs
dbadc56a 26299
9c60689e
DWT
26300# Compile-time system search path for libraries.
26301sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 26302
9d54db95
JF
26303# Detected run-time system search path for libraries.
26304sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26305
26306# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26307configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
dbadc56a 26308
9c60689e
DWT
26309# Whether dlopen is supported.
26310dlopen_support=$enable_dlopen
dbadc56a 26311
9c60689e
DWT
26312# Whether dlopen of programs is supported.
26313dlopen_self=$enable_dlopen_self
35fa52c0 26314
9c60689e
DWT
26315# Whether dlopen of statically linked programs is supported.
26316dlopen_self_static=$enable_dlopen_self_static
35fa52c0 26317
9c60689e
DWT
26318# Commands to strip libraries.
26319old_striplib=$lt_old_striplib
26320striplib=$lt_striplib
35fa52c0 26321
35fa52c0 26322
9c60689e
DWT
26323# The linker used to build libraries.
26324LD=$lt_LD
dbadc56a 26325
ee134472
JF
26326# How to create reloadable object files.
26327reload_flag=$lt_reload_flag
26328reload_cmds=$lt_reload_cmds
26329
9c60689e
DWT
26330# Commands used to build an old-style archive.
26331old_archive_cmds=$lt_old_archive_cmds
dbadc56a 26332
9c60689e
DWT
26333# A language specific compiler.
26334CC=$lt_compiler
35fa52c0 26335
9c60689e
DWT
26336# Is the compiler the GNU compiler?
26337with_gcc=$GCC
dbadc56a 26338
9c60689e
DWT
26339# Compiler flag to turn off builtin functions.
26340no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 26341
9c60689e
DWT
26342# Additional compiler flags for building library objects.
26343pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 26344
ee134472
JF
26345# How to pass a linker flag through the compiler.
26346wl=$lt_lt_prog_compiler_wl
26347
9c60689e
DWT
26348# Compiler flag to prevent dynamic linking.
26349link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 26350
9c60689e
DWT
26351# Does compiler simultaneously support -c and -o options?
26352compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 26353
9c60689e
DWT
26354# Whether or not to add -lc for building shared libraries.
26355build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 26356
9c60689e
DWT
26357# Whether or not to disallow shared libs when runtime libs are static.
26358allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 26359
9c60689e
DWT
26360# Compiler flag to allow reflexive dlopens.
26361export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 26362
9c60689e
DWT
26363# Compiler flag to generate shared objects directly from archives.
26364whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 26365
9c60689e
DWT
26366# Whether the compiler copes with passing no objects directly.
26367compiler_needs_object=$lt_compiler_needs_object
dbadc56a 26368
9c60689e
DWT
26369# Create an old-style archive from a shared archive.
26370old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 26371
9c60689e
DWT
26372# Create a temporary old-style archive to link instead of a shared archive.
26373old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 26374
9c60689e
DWT
26375# Commands used to build a shared archive.
26376archive_cmds=$lt_archive_cmds
26377archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 26378
9c60689e
DWT
26379# Commands used to build a loadable module if different from building
26380# a shared archive.
26381module_cmds=$lt_module_cmds
26382module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 26383
9c60689e
DWT
26384# Whether we are building with GNU ld or not.
26385with_gnu_ld=$lt_with_gnu_ld
6b66678a 26386
9c60689e
DWT
26387# Flag that allows shared libraries with undefined symbols to be built.
26388allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 26389
9c60689e
DWT
26390# Flag that enforces no undefined symbols.
26391no_undefined_flag=$lt_no_undefined_flag
6b66678a 26392
9c60689e
DWT
26393# Flag to hardcode \$libdir into a binary during linking.
26394# This must work even if \$libdir does not exist
26395hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 26396
9c60689e
DWT
26397# Whether we need a single "-rpath" flag with a separated argument.
26398hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 26399
9d54db95 26400# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
26401# DIR into the resulting binary.
26402hardcode_direct=$hardcode_direct
6b66678a 26403
9d54db95 26404# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 26405# DIR into the resulting binary and the resulting library dependency is
9d54db95 26406# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
26407# library is relocated.
26408hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 26409
9c60689e
DWT
26410# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26411# into the resulting binary.
26412hardcode_minus_L=$hardcode_minus_L
6b66678a 26413
9c60689e
DWT
26414# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26415# into the resulting binary.
26416hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 26417
9c60689e
DWT
26418# Set to "yes" if building a shared library automatically hardcodes DIR
26419# into the library and all subsequent libraries and executables linked
26420# against it.
26421hardcode_automatic=$hardcode_automatic
6b66678a 26422
9c60689e
DWT
26423# Set to yes if linker adds runtime paths of dependent libraries
26424# to runtime path list.
26425inherit_rpath=$inherit_rpath
6b66678a 26426
9c60689e
DWT
26427# Whether libtool must link a program against all its dependency libraries.
26428link_all_deplibs=$link_all_deplibs
26429
9c60689e
DWT
26430# Set to "yes" if exported symbols are required.
26431always_export_symbols=$always_export_symbols
6b66678a 26432
9c60689e
DWT
26433# The commands to list exported symbols.
26434export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 26435
9c60689e
DWT
26436# Symbols that should not be listed in the preloaded symbols.
26437exclude_expsyms=$lt_exclude_expsyms
6b66678a 26438
9c60689e
DWT
26439# Symbols that must always be exported.
26440include_expsyms=$lt_include_expsyms
6b66678a 26441
9c60689e
DWT
26442# Commands necessary for linking programs (against libraries) with templates.
26443prelink_cmds=$lt_prelink_cmds
6b66678a 26444
ee134472
JF
26445# Commands necessary for finishing linking programs.
26446postlink_cmds=$lt_postlink_cmds
26447
9c60689e
DWT
26448# Specify filename containing input files.
26449file_list_spec=$lt_file_list_spec
6b66678a 26450
9c60689e
DWT
26451# How to hardcode a shared library path into an executable.
26452hardcode_action=$hardcode_action
26453
26454# The directories searched by this compiler when creating a shared library.
26455compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26456
26457# Dependencies to place before and after the objects being linked to
26458# create a shared library.
26459predep_objects=$lt_predep_objects
26460postdep_objects=$lt_postdep_objects
26461predeps=$lt_predeps
26462postdeps=$lt_postdeps
26463
26464# The library search path used internally by the compiler when linking
26465# a shared library.
26466compiler_lib_search_path=$lt_compiler_lib_search_path
26467
26468# ### END LIBTOOL CONFIG
26469
9d54db95
JF
26470_LT_EOF
26471
26472 cat <<'_LT_EOF' >> "$cfgfile"
26473
26474# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26475
26476# func_munge_path_list VARIABLE PATH
26477# -----------------------------------
26478# VARIABLE is name of variable containing _space_ separated list of
26479# directories to be munged by the contents of PATH, which is string
26480# having a format:
26481# "DIR[:DIR]:"
26482# string "DIR[ DIR]" will be prepended to VARIABLE
26483# ":DIR[:DIR]"
26484# string "DIR[ DIR]" will be appended to VARIABLE
26485# "DIRP[:DIRP]::[DIRA:]DIRA"
26486# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26487# "DIRA[ DIRA]" will be appended to VARIABLE
26488# "DIR[:DIR]"
26489# VARIABLE will be replaced by "DIR[ DIR]"
26490func_munge_path_list ()
26491{
26492 case x$2 in
26493 x)
26494 ;;
26495 *:)
26496 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26497 ;;
26498 x:*)
26499 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26500 ;;
26501 *::*)
26502 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26503 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26504 ;;
26505 *)
26506 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26507 ;;
26508 esac
26509}
26510
26511
26512# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26513func_cc_basename ()
26514{
26515 for cc_temp in $*""; do
26516 case $cc_temp in
26517 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26518 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26519 \-*) ;;
26520 *) break;;
26521 esac
26522 done
26523 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26524}
26525
26526
26527# ### END FUNCTIONS SHARED WITH CONFIGURE
26528
9c60689e
DWT
26529_LT_EOF
26530
26531 case $host_os in
26532 aix3*)
26533 cat <<\_LT_EOF >> "$cfgfile"
26534# AIX sometimes has problems with the GCC collect2 program. For some
26535# reason, if we set the COLLECT_NAMES environment variable, the problems
26536# vanish in a puff of smoke.
9d54db95 26537if test set != "${COLLECT_NAMES+set}"; then
9c60689e
DWT
26538 COLLECT_NAMES=
26539 export COLLECT_NAMES
6b66678a 26540fi
9c60689e
DWT
26541_LT_EOF
26542 ;;
26543 esac
6b66678a
DWT
26544
26545
9d54db95 26546ltmain=$ac_aux_dir/ltmain.sh
6b66678a 26547
9c60689e
DWT
26548
26549 # We use sed instead of cat because bash on DJGPP gets confused if
26550 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26551 # text mode, it properly converts lines to CR/LF. This bash problem
26552 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
26553 sed '$q' "$ltmain" >> "$cfgfile" \
26554 || (rm -f "$cfgfile"; exit 1)
26555
ee134472 26556 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
26557 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26558 chmod +x "$ofile"
26559
26560
26561 cat <<_LT_EOF >> "$ofile"
26562
26563# ### BEGIN LIBTOOL TAG CONFIG: CXX
26564
26565# The linker used to build libraries.
26566LD=$lt_LD_CXX
26567
ee134472
JF
26568# How to create reloadable object files.
26569reload_flag=$lt_reload_flag_CXX
26570reload_cmds=$lt_reload_cmds_CXX
26571
9c60689e
DWT
26572# Commands used to build an old-style archive.
26573old_archive_cmds=$lt_old_archive_cmds_CXX
26574
26575# A language specific compiler.
26576CC=$lt_compiler_CXX
26577
26578# Is the compiler the GNU compiler?
26579with_gcc=$GCC_CXX
26580
26581# Compiler flag to turn off builtin functions.
26582no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 26583
9c60689e
DWT
26584# Additional compiler flags for building library objects.
26585pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 26586
ee134472
JF
26587# How to pass a linker flag through the compiler.
26588wl=$lt_lt_prog_compiler_wl_CXX
26589
9c60689e
DWT
26590# Compiler flag to prevent dynamic linking.
26591link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 26592
9c60689e
DWT
26593# Does compiler simultaneously support -c and -o options?
26594compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 26595
9c60689e
DWT
26596# Whether or not to add -lc for building shared libraries.
26597build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 26598
9c60689e
DWT
26599# Whether or not to disallow shared libs when runtime libs are static.
26600allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 26601
9c60689e
DWT
26602# Compiler flag to allow reflexive dlopens.
26603export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 26604
9c60689e
DWT
26605# Compiler flag to generate shared objects directly from archives.
26606whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 26607
9c60689e
DWT
26608# Whether the compiler copes with passing no objects directly.
26609compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 26610
9c60689e
DWT
26611# Create an old-style archive from a shared archive.
26612old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 26613
9c60689e
DWT
26614# Create a temporary old-style archive to link instead of a shared archive.
26615old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 26616
9c60689e
DWT
26617# Commands used to build a shared archive.
26618archive_cmds=$lt_archive_cmds_CXX
26619archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 26620
9c60689e
DWT
26621# Commands used to build a loadable module if different from building
26622# a shared archive.
26623module_cmds=$lt_module_cmds_CXX
26624module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 26625
9c60689e
DWT
26626# Whether we are building with GNU ld or not.
26627with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 26628
9c60689e
DWT
26629# Flag that allows shared libraries with undefined symbols to be built.
26630allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 26631
9c60689e
DWT
26632# Flag that enforces no undefined symbols.
26633no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 26634
9c60689e
DWT
26635# Flag to hardcode \$libdir into a binary during linking.
26636# This must work even if \$libdir does not exist
26637hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 26638
9c60689e
DWT
26639# Whether we need a single "-rpath" flag with a separated argument.
26640hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 26641
9d54db95 26642# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
26643# DIR into the resulting binary.
26644hardcode_direct=$hardcode_direct_CXX
6b66678a 26645
9d54db95 26646# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 26647# DIR into the resulting binary and the resulting library dependency is
9d54db95 26648# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
26649# library is relocated.
26650hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 26651
9c60689e
DWT
26652# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26653# into the resulting binary.
26654hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 26655
9c60689e
DWT
26656# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26657# into the resulting binary.
26658hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 26659
9c60689e
DWT
26660# Set to "yes" if building a shared library automatically hardcodes DIR
26661# into the library and all subsequent libraries and executables linked
26662# against it.
26663hardcode_automatic=$hardcode_automatic_CXX
6b66678a 26664
9c60689e
DWT
26665# Set to yes if linker adds runtime paths of dependent libraries
26666# to runtime path list.
26667inherit_rpath=$inherit_rpath_CXX
6b66678a 26668
9c60689e
DWT
26669# Whether libtool must link a program against all its dependency libraries.
26670link_all_deplibs=$link_all_deplibs_CXX
6b66678a 26671
9c60689e
DWT
26672# Set to "yes" if exported symbols are required.
26673always_export_symbols=$always_export_symbols_CXX
6b66678a 26674
9c60689e
DWT
26675# The commands to list exported symbols.
26676export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 26677
9c60689e
DWT
26678# Symbols that should not be listed in the preloaded symbols.
26679exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 26680
9c60689e
DWT
26681# Symbols that must always be exported.
26682include_expsyms=$lt_include_expsyms_CXX
6b66678a 26683
9c60689e
DWT
26684# Commands necessary for linking programs (against libraries) with templates.
26685prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 26686
ee134472
JF
26687# Commands necessary for finishing linking programs.
26688postlink_cmds=$lt_postlink_cmds_CXX
26689
9c60689e
DWT
26690# Specify filename containing input files.
26691file_list_spec=$lt_file_list_spec_CXX
dbadc56a 26692
9c60689e
DWT
26693# How to hardcode a shared library path into an executable.
26694hardcode_action=$hardcode_action_CXX
309b0535 26695
9c60689e
DWT
26696# The directories searched by this compiler when creating a shared library.
26697compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 26698
9c60689e
DWT
26699# Dependencies to place before and after the objects being linked to
26700# create a shared library.
26701predep_objects=$lt_predep_objects_CXX
26702postdep_objects=$lt_postdep_objects_CXX
26703predeps=$lt_predeps_CXX
26704postdeps=$lt_postdeps_CXX
309b0535 26705
9c60689e
DWT
26706# The library search path used internally by the compiler when linking
26707# a shared library.
26708compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26709
26710# ### END LIBTOOL TAG CONFIG: CXX
26711_LT_EOF
26712
26713 ;;
26714
26715 esac
26716done # for ac_tag
26717
26718
26719as_fn_exit 0
26720_ACEOF
26721ac_clean_files=$ac_clean_files_save
26722
26723test $ac_write_fail = 0 ||
12833ad8 26724 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
26725
26726
26727# configure is writing to config.log, and then calls config.status.
26728# config.status does its own redirection, appending to config.log.
26729# Unfortunately, on DOS this fails, as config.log is still kept open
26730# by configure, so config.status won't be able to write to it; its
26731# output is simply discarded. So we exec the FD to /dev/null,
26732# effectively closing config.log, so it can be properly (re)opened and
26733# appended to by config.status. When coming back to configure, we
26734# need to make the FD available again.
26735if test "$no_create" != yes; then
26736 ac_cs_success=:
26737 ac_config_status_args=
26738 test "$silent" = yes &&
26739 ac_config_status_args="$ac_config_status_args --quiet"
26740 exec 5>/dev/null
26741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26742 exec 5>>config.log
26743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26744 # would make configure fail if this is the last instruction.
12833ad8 26745 $ac_cs_success || as_fn_exit 1
309b0535 26746fi
9c60689e
DWT
26747if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26749$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26750fi
26751